JPH0446462A - Area recognizing system for picture processor - Google Patents
Area recognizing system for picture processorInfo
- Publication number
- JPH0446462A JPH0446462A JP2154077A JP15407790A JPH0446462A JP H0446462 A JPH0446462 A JP H0446462A JP 2154077 A JP2154077 A JP 2154077A JP 15407790 A JP15407790 A JP 15407790A JP H0446462 A JPH0446462 A JP H0446462A
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- marking
- area
- data
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 claims abstract description 16
- 238000012545 processing Methods 0.000 claims description 29
- 230000015654 memory Effects 0.000 abstract description 24
- 230000002093 peripheral effect Effects 0.000 abstract 1
- 238000001514 detection method Methods 0.000 description 24
- 238000010586 diagram Methods 0.000 description 18
- 238000012937 correction Methods 0.000 description 9
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 6
- 239000002131 composite material Substances 0.000 description 3
- 238000013144 data compression Methods 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 229930183689 terminalin Natural products 0.000 description 1
Landscapes
- Image Analysis (AREA)
- Image Input (AREA)
- Editing Of Facsimile Originals (AREA)
Abstract
Description
【発明の詳細な説明】
(産業上の利用分野)
この発明は画像処理装置の領域認識方式に関し、特に不
特定の任意形状の閉領域のみならず、これに内接または
外接する矩形領域を取出すことのできる画像処理装置の
領域認識方式に関する。Detailed Description of the Invention (Industrial Field of Application) The present invention relates to an area recognition method for an image processing device, and is used to identify not only a closed area of an unspecified arbitrary shape but also a rectangular area that is inscribed or circumscribed within the closed area. This invention relates to an area recognition method for an image processing device that can perform
(従来の技術)
近年、複写機、ファクシミリ等の画像処理装置において
、原稿の一部分の領域に対して、各種の画像変換、編集
等の処理を施せるようにしたものが開発されている。(Prior Art) In recent years, image processing devices such as copying machines and facsimile machines have been developed that are capable of performing various types of image conversion, editing, and other processing on a partial area of a document.
この画像処理装置の領域認識方式の一例として、原稿面
にマーカーペン等によりマーキングを行い、これを画像
処理装置の入力部から読込んだ後、マークを検出して、
閉領域を認識するようにしたものがある。As an example of the area recognition method of this image processing device, markings are made on the surface of the document using a marker pen, etc., and after reading this from the input section of the image processing device, the marks are detected.
There is one that recognizes closed areas.
この方式は、複雑な形状の閉領域を認識する場合には、
領域の誤認識を起こし易いが、原理的には任意の形状の
閉領域を認識することができる。This method can be used to recognize closed regions with complex shapes.
Although it is easy to misrecognize a region, in principle it is possible to recognize a closed region of any shape.
(発明が解決しようとする課題)
しかしながら、この方式に使用されるマーキングは一般
的に手書きによるものであるため、マーキングの周辺部
は凹凸がある形状となり、画像処理の種類によってはそ
の領域の周辺部にぎざぎざが発生し、見苦しくなるとい
う問題があった。(Problem to be solved by the invention) However, since the markings used in this method are generally handwritten, the periphery of the marking has an uneven shape, and depending on the type of image processing, the periphery of the area There was a problem in that burrs appeared on the parts, making them unsightly.
例えば、第18図のように、原稿上に書かれた文字Bに
マーキングが施されている場合、画像処理の内容が(a
)の削除であれば前記領域の周辺部にぎざぎざは表れな
いが、(b)の白黒反転の処理、(c)の網点掛は処理
等では、その領域の周辺部にぎざぎざが表れることにな
る。For example, as shown in Figure 18, if the character B written on the manuscript is marked, the content of image processing is (a
), jaggies will not appear on the periphery of the area, but if the black and white inversion process in (b) or the halftone dotting process in (c) is used, jaggies will appear on the periphery of the area. Become.
また、この従来方式では領域の認識と画像処理を同時に
リアルタイムに行えるという利点はあるが、事前にその
領域位置が不明であるため、実現できる処理内容に限界
があるという問題があった。Further, although this conventional method has the advantage of being able to perform area recognition and image processing simultaneously in real time, there is a problem in that there is a limit to the processing content that can be realized because the area position is unknown in advance.
例えば、抽出したいくつかの部分を別の位置に移動して
再現することができないという問題があった。For example, there was a problem in that some extracted parts could not be moved to another position and reproduced.
この発明の目的は、前記した従来方式の問題点を除去し
、原稿に凹凸のあるマーキングが施されていでも、指示
領域を直線的にきれいに取出すことができる画像処理装
置の領域認識方式を提供することにある。It is an object of the present invention to provide an area recognition method for an image processing device that eliminates the problems of the conventional method described above and allows a designated area to be extracted linearly and neatly even if a document has uneven markings. There is a particular thing.
また、処理動作の事前に指示領域の位置、形状を知るこ
とができる画像処理装置の領域認識方式を提供すること
にある。Another object of the present invention is to provide an area recognition method for an image processing apparatus that allows the position and shape of a designated area to be known in advance of a processing operation.
(課題を解決するための手段および作用)前記目的を達
成するために、本発明は、画像入力部によって読取られ
た画像データからマーキングを検出する回路と、注目画
素が属するラインおよびの前のラインの隣接画素の判定
結果に基づいて、該注目画素がマーキングによって形成
される閉領域の外、上および内のいずれに属するかを判
定する閉領域認識回路と、該マーキングの閉領域に外接
または内接する矩形領域を検出する手段と、マーキング
の閉領域外でかつ矩形領域内の領域にマーキングの閉領
域内と同じ内容の信号を出力する手段とを備えた点に特
徴がある。(Means and Effects for Solving the Problems) In order to achieve the above object, the present invention provides a circuit for detecting markings from image data read by an image input section, a line to which the pixel of interest belongs, and a line before the pixel. A closed area recognition circuit that determines whether the pixel of interest belongs outside, above, or inside the closed area formed by the marking based on the determination result of adjacent pixels; The present invention is characterized in that it includes means for detecting a rectangular area that is in contact with the marking, and means for outputting a signal having the same content as inside the closed area of the marking to an area outside the closed area of the marking and inside the rectangular area.
本発明においては、まずマーキング検出回路によって画
像データからマーキングが検出され、次いで前記閉領域
認識回路により、注目画素がマーキングによって形成さ
れる閉領域の外、上および内のいずれに属するかを判定
される。In the present invention, a marking detection circuit first detects a marking from image data, and then the closed area recognition circuit determines whether the pixel of interest belongs outside, above, or inside the closed area formed by the marking. Ru.
次に、該マーキングの閉領域に外接または内接する矩形
領域の検出が行われ、マーキングの閉領域外でかつ矩形
領域内の領域にマーキングの閉領域内と同じ内容の信号
が出力される。これにより、前記矩形領域をマーキング
の閉領域内と同等にすることができ、原稿上に記された
マーキングの周辺部の凹凸、ぎざぎざ等を意識すること
無く、マーキング領域に白黒反転、網点掛は等の任意の
処理を施すことができる。Next, a rectangular area circumscribing or inscribing the closed area of the marking is detected, and a signal having the same content as inside the closed area of the marking is output to an area outside the closed area of the marking and inside the rectangular area. As a result, the rectangular area can be made equivalent to the closed area of the marking, and black and white inversion and halftone dot can be applied to the marking area without being aware of unevenness, jaggedness, etc. around the marking written on the document. Any processing such as can be performed.
(実施例) 以下に、図面を参照して、本発明の詳細な説明する。(Example) The present invention will be described in detail below with reference to the drawings.
第1図は本発明の一実施例の概略のブロック図を示す。FIG. 1 shows a schematic block diagram of one embodiment of the invention.
図において、lは画像入力部から送られてきた画像デー
タV1から予め設定されたマーキングを検出するマーキ
ング検出回路、2は該検出回路1の出力に基づいて指定
領域を認識する領域認識部である。また、3は領域認識
部2の認識結果を2次元のエリアで記憶するイメージメ
モリ、4は前記認識結果のデータにより認識領域に接す
る矩形形状の位置座標を検出する矩形座標アドレス検出
部、5はその検出アドレスを記憶するアドレスレジスタ
、12は該検出アドレスによって決定される矩形エリア
に、例えば“1゛の信号を出力する矩形エリア信号発生
回路である。In the figure, l is a marking detection circuit that detects preset markings from image data V1 sent from the image input unit, and 2 is an area recognition unit that recognizes a designated area based on the output of the detection circuit 1. . Further, 3 is an image memory that stores the recognition result of the area recognition unit 2 in a two-dimensional area, 4 is a rectangular coordinate address detection unit that detects the position coordinates of a rectangular shape adjacent to the recognition area based on the data of the recognition result, and 5 is a The address register 12 that stores the detected address is a rectangular area signal generation circuit that outputs, for example, a signal of "1" to the rectangular area determined by the detected address.
さらに、6は前記イメージメモリ3に記憶された任意形
状の領域認識結果を出力する際に、矩形エリア信号発生
回路12からの矩形エリア信号を基に、任意形状から矩
形形状に信号を補正する矩形補正回路、7は任意形状出
力および補正された矩形形状出力からいずれか一つを選
択して出力する出力切替回路、8は前記イメージメモリ
3、矩形座標アドレス検出部、アドレスレジスタ5等に
アクセスして制御を行うシステム制御部である。Further, reference numeral 6 denotes a rectangle for correcting a signal from an arbitrary shape to a rectangular shape based on the rectangular area signal from the rectangular area signal generation circuit 12 when outputting the region recognition result of the arbitrary shape stored in the image memory 3. a correction circuit; 7 is an output switching circuit that selects and outputs either an arbitrary shape output or a corrected rectangular shape output; 8 is a circuit that accesses the image memory 3, the rectangular coordinate address detection section, the address register 5, etc.; This is the system control unit that performs control.
また、9は前記出力切替回路7からの出力に基づいて前
記画像データv1に削除、白黒反転、網点掛は等の処理
を施す画像処理部である。Further, reference numeral 9 denotes an image processing section that performs processing such as deletion, black and white inversion, halftone dotting, etc. on the image data v1 based on the output from the output switching circuit 7.
第2図は第1図の詳細ブロック図を示す。図において、
第1図と同一の符号は、同一または同等物を示す。FIG. 2 shows a detailed block diagram of FIG. In the figure,
The same reference numerals as in FIG. 1 indicate the same or equivalents.
前記マーキング回路1は濃度検出回路1asスレシツル
ドレベル設定回路1b、ノイズ除去回路ICおよびライ
ンメモリ1dから構成されている。The marking circuit 1 is composed of a concentration detection circuit 1as, a threshold level setting circuit 1b, a noise removal circuit IC, and a line memory 1d.
濃度検出回路1aは、マーキングの濃度である、白と黒
の中間のある設定されたグレイ(灰色)レベルを検出す
る回路である。この回路は、第3図に示されているよう
に、2つのスレショルドレベル(THI 、TH2)を
基準値とする2つの比較器とその出力の論理積を取るゲ
ートから構成することができる。The density detection circuit 1a is a circuit that detects a set gray level between white and black, which is the density of the marking. As shown in FIG. 3, this circuit can be constructed of two comparators whose reference values are two threshold levels (THI, TH2) and a gate that takes the AND of their outputs.
この濃度検出回路1aは、マーキングを検出すると、ハ
イ(H)レベルの信号COを出力する。When the density detection circuit 1a detects marking, it outputs a high (H) level signal CO.
この信号COはノイズ除去回路1cに入力する。This signal CO is input to the noise removal circuit 1c.
ノイズ除去回路1cの一例を第4図(a)に示す。An example of the noise removal circuit 1c is shown in FIG. 4(a).
この回路1cは、前記濃度検出回路1aが、入力信号v
1に含まれるノイズ成分や画像エツジ部に生ずる中間濃
度レベルによりマーキングでない部分をマーキングとし
て誤検出してしまったものを除去する回路である。その
原理は、前記濃度検出回路1aの検出結果が、主走査方
向および副走査方向に連続して検出された場合のみ正し
いマーキングと判定するものである。In this circuit 1c, the concentration detection circuit 1a receives an input signal v
This is a circuit for removing portions that are not markings that are erroneously detected as markings due to noise components included in the first image and intermediate density levels occurring at image edge portions. The principle is that marking is determined to be correct only when the detection results of the density detection circuit 1a are detected continuously in the main scanning direction and the sub-scanning direction.
例えば、同図(b)に示されているように、3ラインの
主走査方向の各3画$D11、DI2、D13、D21
. D22、D23、D31SD32およびD33の9
画素が全部マーキングと判定された時のみ、マーク信号
C1を出力し、一つでもマーキングと判定されない画素
が含まれている場合にはノイズと判定する回路である。For example, as shown in FIG.
.. D22, D23, D31SD32 and D33 9
This circuit outputs the mark signal C1 only when all pixels are determined to be markings, and determines that the pixels are noise if even one pixel is included that is not determined to be markings.
いま、シフトレジスタ13に濃度検出回路1aの出力で
ある第nラインの画素データD33が入力してくると、
シフトレジスタ13からは画素データD31〜D33が
アンドゲート14に出力される。Now, when the pixel data D33 of the nth line, which is the output of the density detection circuit 1a, is input to the shift register 13,
Pixel data D31 to D33 are output from the shift register 13 to the AND gate 14.
一方、2個のラインメモリ15には(n−2)ライン、
(n−1)ラインの濃度検出回路1aの出力である画素
データが記憶されており、シフトレジスタ16からは(
n−1)ラインの3つの画素データD21−D23、(
n−2)ラインの3つの画素データDIl〜DIBがア
ンドゲート17に出力される。次いで、前記アンドゲー
ト14および17の出力はアンドゲート18に入り、こ
のアンドゲート18からはマーク信号C1が出力される
。On the other hand, the two line memories 15 have (n-2) lines,
The pixel data that is the output of the density detection circuit 1a of the (n-1) line is stored, and the shift register 16 outputs the (
n-1) line of three pixel data D21-D23, (
Three pixel data DIl to DIB of line n-2) are output to the AND gate 17. Next, the outputs of the AND gates 14 and 17 enter an AND gate 18, which outputs a mark signal C1.
このマーク信号C1は、注目の画素が前記マーキングの
外、上または中のいずれに属するかを認識する認識回路
2aに入力する。This mark signal C1 is input to a recognition circuit 2a that recognizes whether the pixel of interest belongs outside, above, or inside the marking.
認識回路2aとラインメモリ2bの回路の一具体例を第
5図(a)に示す。A specific example of the recognition circuit 2a and line memory 2b is shown in FIG. 5(a).
認識回路2aは、判定ROM21、ラッチ回路22およ
びアドレスカウンタ23から構成されている。The recognition circuit 2a includes a determination ROM 21, a latch circuit 22, and an address counter 23.
この認識回路2aには、前記マーク信号CIと、第6図
に示されているような波形のラインクロック(LINE
CL)() 、ライン選択信号(L−8EL)と、画
素クロック(PIX −CLK)が入力する。This recognition circuit 2a receives the mark signal CI and a line clock (LINE clock) having a waveform as shown in FIG.
CL)(), a line selection signal (L-8EL), and a pixel clock (PIX-CLK) are input.
いま、前記判定ROM21に、第7図に示されているn
ライン目のA画素に対応するマーク信号CIが入力して
きたとすると、判定ROM21の端子IN4に入力する
ライン選択信号(L−8EL)はハイ(H)レベルであ
るので、判定ROM21の処理モードは第1モードの動
作をする。この第1モードでは、nライン目の読取り中
に、n−2ライン目の最終結果を保持したラインメモリ
3の内容と、現在入力中のnライン目の1画素前のデー
タおよび現在入力中の検出データの内容により、仮の一
次判定結果を求め、ラインメモリ2bに記憶する処理を
行う。Now, n shown in FIG. 7 is stored in the judgment ROM 21.
Assuming that the mark signal CI corresponding to the A pixel of the line is input, the line selection signal (L-8EL) input to the terminal IN4 of the determination ROM 21 is at a high (H) level, so the processing mode of the determination ROM 21 is set to Operates in 1 mode. In this first mode, while reading the n-th line, the contents of the line memory 3 holding the final result of the (n-2) line, the data of the previous pixel of the n-th line currently being input, and the data currently being input Based on the content of the detection data, a provisional primary determination result is obtained and a process is performed to store it in the line memory 2b.
前記第1モードにおいては、判定ROM21は、第8図
のテーブルに基づいて、前記仮の一次判定結果を求める
。第8図の(a)は、第7図のA画素に対応するマーク
信号C1が0の時に適用されるテーブルであり、n−2
ラインの対応画素Cの最終結果(テーブルの横開)と、
nラインの一つ前の画素Bの仮の一次判定結果(テーブ
ルの縦111II)に依存して、前記A画素の仮の一次
判定結果を決定するテーブルである。また、同図(b)
は、A画素に対応するマーク信号CIが0の時に適用さ
れるテーブルである。In the first mode, the determination ROM 21 obtains the provisional primary determination result based on the table shown in FIG. FIG. 8(a) is a table applied when the mark signal C1 corresponding to pixel A in FIG. 7 is 0, and n-2
The final result of the corresponding pixel C of the line (horizontal opening of the table),
This table determines the provisional primary determination result of the pixel A, depending on the provisional primary determination result of the previous pixel B (vertical 111II of the table) in n lines. Also, the same figure (b)
is a table that is applied when the mark signal CI corresponding to the A pixel is 0.
前記テーブルにおいて、0、■、Mは通常2ビツトのデ
ータで表現されており、0はマーキングの外、■はマー
キングの中、Mはマーキングの上、Xはマーキングの外
、中および上の判定が不定であることを示している。In the above table, 0, ■, and M are usually expressed as 2-bit data, where 0 is outside the marking, ■ is inside the marking, M is above the marking, and X is outside, inside, and above the marking. This shows that is indeterminate.
例えば、A−0の時、Cが0(外)、Bが0(外)であ
れば、Aの仮の一次判定結果はO(外)となり、Cが1
(中)、BがM(上)であれば、Aの仮の一次判定結
果はl(中)となることを示している。また、A−1で
あれば、前記CおよびBの仮の一次判定結果とは関係な
くマーキングの上と仮定できるので、Aの仮の一次判定
結果はM(上)となる。For example, when A-0, if C is 0 (outside) and B is 0 (outside), the tentative primary judgment result for A is O (outside), and C is 1
(Middle), if B is M (Top), the provisional primary determination result of A is l (Medium). Further, if it is A-1, it can be assumed that it is above the marking regardless of the tentative primary determination results of C and B, so the tentative primary determination result of A is M (top).
なお、前記ASB%Cの画素データを第5図の回路の信
号と対応させると、Aは判定ROM21の端子INIに
入力する信号、Bはラッチ22から端子IN2に入力す
る信号、Cはラインメモリ3から端子INSに入力する
信号となる。Note that when the pixel data of ASB%C is made to correspond to the signals of the circuit in FIG. 3 becomes the signal input to the terminal INS.
上記の動作により、第nラインに対して前記第1モード
の処理が終了すると、第7図のれライン目の、仮の一次
判定結果のデータが、前記ラインメモリ3に格納される
ことになる。なお、この時、該ラインメモリ2bからは
n−2ラインの最終データrl、r2が出力される(第
6図参照)。By the above operation, when the processing in the first mode is completed for the n-th line, the data of the provisional primary judgment result of the second line in FIG. 7 is stored in the line memory 3. . At this time, the line memory 2b outputs the final data rl and r2 of the n-2 line (see FIG. 6).
次に、第6図のn+1ラインの時間帯になると、前記判
定ROM21の端子IN4に入力するライン選択信号(
L−8EL)はロウ(L)に変わる。この結果、判定R
OM21は第2モードの動作に移る。Next, in the time period of line n+1 in FIG. 6, the line selection signal (
L-8EL) changes to LOW (L). As a result, the judgment R
OM21 moves to the second mode of operation.
第2モードは、前記ラインメモリ2bに記憶された仮結
果のデータを、隣り合う画素間の関係から、最終結果に
変換する作用をするモードである。The second mode is a mode in which the temporary result data stored in the line memory 2b is converted into a final result based on the relationship between adjacent pixels.
このモードでは、アドレスカウンタ23はダウンモード
になっているから、ラインメモリ2bのアドレスは減少
する方向に変化することになる。In this mode, the address counter 23 is in the down mode, so the address in the line memory 2b changes in a decreasing direction.
すなわち、第9図に示されているnラインの仮データを
最終結果に変換する動作は、同図の矢印の方向に進むこ
とになる。また、該第2モードでは、。That is, the operation of converting the n lines of temporary data shown in FIG. 9 into the final result proceeds in the direction of the arrow in the same figure. Moreover, in the second mode.
前記判定ROM21は第10図のテーブルにより、前記
変換を行う。The determination ROM 21 performs the conversion using the table shown in FIG.
第10図の横開は注目画素(第9図のD)の右隣りの画
素Eの最終結果のデータを示し、縦振は該注目画素りの
仮の一次判定結果のデータを示す。The horizontal spread in FIG. 10 shows the data of the final result of the pixel E on the right of the pixel of interest (D in FIG. 9), and the vertical spread shows the data of the tentative primary determination result of the pixel of interest.
そして、この2つのデータの関係から、該注目画素りの
最終結果が求められる。Then, the final result for the pixel of interest is determined from the relationship between these two data.
例えば、画素Eの最終結果がO(外)で注目画素pの仮
の一次判定結果がM(上)であれば、該注目画素りの最
終結果はM(上)となり、画素Eの最終結果がM(上)
で注目画素りの仮の一次判定結果がX(不定)であれば
、該注目画@Dの最終結果はI(中)となる。For example, if the final result of pixel E is O (outside) and the tentative primary judgment result of pixel of interest p is M (top), the final result of the pixel of interest is M (top), and the final result of pixel E is is M (top)
If the tentative primary determination result of the pixel of interest is X (indeterminate), the final result of the pixel of interest @D is I (medium).
なお、前記り、Hの画素データを第5図の回路の信号と
対応させると、Dはラインメモリ2bから判定ROM2
1の端子]N3に入力する信号に対応し、Eはラッチ2
2から端子IN2に入力する信号に対応する。Furthermore, if the pixel data of H is made to correspond to the signal of the circuit shown in FIG.
1 terminal] corresponds to the signal input to N3, and E is the latch 2 terminal.
2 to the terminal IN2.
第9図のnラインの最右端の画素は必ずマーキングの外
にあるから、この画素の最終結果は0(外)になってい
る。このため、このnラインの最右端から一つ左の画素
の最終結果は、この最右端の画素の最終結果と最右端か
ら一つ左の画素の仮データとから第10図のテーブルに
基づいて求められる。以下、順次nラインの画素の仮デ
ータが最終結果に変換される。Since the rightmost pixel of line n in FIG. 9 is always outside the marking, the final result for this pixel is 0 (outside). Therefore, the final result of the pixel one position left from the rightmost end of this n line is determined based on the table in Figure 10 from the final result of this rightmost pixel and the temporary data of the pixel one position left from the rightmost end. Desired. Thereafter, the temporary data of the pixels of n lines are sequentially converted into the final result.
以上の動作により、第6図の(n+1)ラインの時間帯
には、処理モードは第2モードとなり、ラインメモリ2
bにnラインの最終結果のデータが格納され、かつ該ラ
インメモリ2bからnラインの仮データが出力されるこ
とになる。As a result of the above operations, the processing mode becomes the second mode during the time period of the (n+1) line in FIG.
The final result data of n lines is stored in the memory 2b, and the temporary data of n lines is output from the line memory 2b.
以上のことから、本実施例によれば、lライン毎に2つ
の処理を繰返しながら1つの結果を得ている。このため
、第6図のラインメモリ2bの出力データrl、r2か
ら明らかなように、1ライン毎に最終データと仮データ
が交互に出力される。From the above, according to this embodiment, one result is obtained while repeating two processes for every l line. Therefore, as is clear from the output data rl and r2 of the line memory 2b in FIG. 6, final data and temporary data are alternately output for each line.
このラインメモリ2bの出力データ「1、r2はデータ
圧縮回路11と矩形座標アドレス検出回路4に送られる
。The output data "1, r2" of the line memory 2b is sent to the data compression circuit 11 and the rectangular coordinate address detection circuit 4.
データ圧縮回路11は領域認識による判定結果を示す出
力データrl、r2を圧縮し、データ量を少なくしてイ
メージメモリ3に記憶される。なお、このイメージメモ
リ3として大きな容量のメモリを用いる場合には、前記
データ圧縮回路11は不要である。The data compression circuit 11 compresses the output data rl and r2 indicating the determination result by area recognition, reduces the amount of data, and stores it in the image memory 3. Note that if a large capacity memory is used as the image memory 3, the data compression circuit 11 is not necessary.
一方、前記矩形座標アドレス検出回路4に送られた出力
データr1、r2は、例えば第11図の回路のオアゲー
トに入力する。ここに、第11図は矩形座標アドレス検
出回路4の一具体例を示す。On the other hand, the output data r1 and r2 sent to the rectangular coordinate address detection circuit 4 are input to the OR gate of the circuit shown in FIG. 11, for example. Here, FIG. 11 shows a specific example of the rectangular coordinate address detection circuit 4.
図において、41.42は選択端子(SEL)に信号“
0”が印加されるとA端子入力を選択し、信号″1°が
印加されるとB端子入力を選択するマルチプレクサ、5
は4ビツトのアドレスAO〜A3により決定される番地
に入力データD1をラッチするアドレスレジスタ、44
は2つの入力AとBを比較する比較器、45は選択端子
(S E L)に信号“0”が印加されるとA端子入力
を選択し、信号“1”が印加されるとB端子入力を選択
するマルチプレクサである。また、46はタイミング発
生器、47はアドレス制御回路である。In the figure, 41.42 is the signal “
a multiplexer which selects the A terminal input when a signal "0" is applied and selects the B terminal input when a signal "1° is applied;
is an address register 44 that latches input data D1 at an address determined by 4-bit addresses AO to A3.
45 is a comparator that compares two inputs A and B, and 45 selects the A terminal input when the signal "0" is applied to the selection terminal (SEL), and selects the B terminal input when the signal "1" is applied. This is a multiplexer that selects the input. Further, 46 is a timing generator, and 47 is an address control circuit.
本実施例では、矩形の領域数を最大4カ所まで検出でき
るようになっている。したがって、アドレスレジスタ5
のアドレス数は前述のように4ビツトとなっており、下
位2ビツトでアドレス値の■in s wax sおよ
びXSYの制御を行い、上位2ビツトでch数の制御を
行っている。In this embodiment, it is possible to detect up to four rectangular areas. Therefore, address register 5
As mentioned above, the address number is 4 bits, and the lower 2 bits control the address value ■in s wax s and XSY, and the upper 2 bits control the number of channels.
第12図は前記アドレスレジスタ5のメモリ割付けの一
例を示している。この例から、アドレスAOが一111
%■aXの区別を表し、アドレスAIがX1Yの区別を
表し、アドレスA2 、A3がch数の区別を表してい
ることが明らかであろう。FIG. 12 shows an example of memory allocation for the address register 5. From this example, address AO is 1111
It is clear that the address AI represents the distinction between %■aX, the address AI represents the distinction between X1Y, and the addresses A2 and A3 represent the distinction between the number of channels.
次に、第13図を参照して、第11図の動作を説明する
。第13図中の符号は第11図のそれと対応するものと
する。Next, the operation shown in FIG. 11 will be explained with reference to FIG. 13. The symbols in FIG. 13 correspond to those in FIG. 11.
オアゲート48に前記出力データrl、r2が入力する
と、その合成信号rl+r2がタイミング発生器46に
入力する。また、このタイミング発生器46には、シス
テムクロックとラインクロックが入力する。なお、タイ
ミング発生器46に合成信号rl+r2が入力するよう
にしたのは、マーキングに外接する矩形領域を検出する
場合の例であり、マーキングに内接する矩形領域を検出
する場合には、該タイミング発生器46に前記出力デー
タr2のみを印加するようにすればよい。When the output data rl and r2 are input to the OR gate 48, the combined signal rl+r2 is input to the timing generator 46. Further, a system clock and a line clock are input to this timing generator 46. The example in which the composite signal rl+r2 is input to the timing generator 46 is for detecting a rectangular area circumscribed to a marking, and when detecting a rectangular area inscribed to a marking, the timing generator 46 It is sufficient to apply only the output data r2 to the device 46.
タイミング発生器46は前記合成信号rl+r2の立上
がりおよび立下りと同期して所定の長さのメモリチップ
セレクト信号を出力する。一方、アドレス制御回路47
は最初は“0゛信号をAI端子から出力しているので、
マルチプレクサ41はA端子に入力しているXアドレス
を選択し、このXアドレス値は前記アドレスレジスタ5
の(0000)番地に格納される。The timing generator 46 outputs a memory chip select signal of a predetermined length in synchronization with the rising and falling edges of the composite signal rl+r2. On the other hand, address control circuit 47
At first, the “0” signal is output from the AI terminal, so
The multiplexer 41 selects the X address input to the A terminal, and this X address value is sent to the address register 5.
is stored at address (0000).
次に、アドレス制御回路47のA1端子から“1°信号
が出力されると、マルチプレクサ41はB端子に入力し
ているYアドレスを選択し、このYアドレス値は前記ア
ドレスレジスタ43の(0010)番地に格納される。Next, when the "1° signal is output from the A1 terminal of the address control circuit 47, the multiplexer 41 selects the Y address input to the B terminal, and this Y address value is set to (0010) of the address register 43. Stored in address.
次に、合成信号rl+r2が立下った時には、アドレス
制御回路47のA1端子から“0”信号が出力されてい
るので、マルチプレクサ41はA端子に入力しているX
アドレスを選択し、このXアドレス値は前記アドレスレ
ジスタ5の(0001)番地に格納される。Next, when the composite signal rl+r2 falls, the "0" signal is output from the A1 terminal of the address control circuit 47, so the multiplexer 41
An address is selected, and this X address value is stored at address (0001) of the address register 5.
上記のようにして、マーキングのXm1n 。Marking Xm1n as described above.
X waxおよびYminの初期値が設定されると、以
後は主走査方向の1ライン毎に新たにマルチプレクサ4
1に入力してくるXアドレス値のマーキングのXm1n
−5XIlax −と前記初期値X1llnsXlax
と前記比較器44で比較され、X1in <Xm1n
であれば前記アドレス(0000)のデータがX5in
−に更新され、Xm1n −≧X1nであれば該アドレ
ス(0000)のデータは更新されず維持される。また
、Xaax −>Xff1axであれば前記アドレス
(0001)のデータがXmax −に更新され、Xm
ax −≦X waxであればアドレス(0001)の
データは更新されず維持される。Once the initial values of X wax and Ymin are set, from now on, a new multiplexer
Xm1n of the marking of the X address value input to 1
−5XIlax − and the initial value X1llnsXlax
is compared by the comparator 44, and X1in <Xm1n
If so, the data at the address (0000) is X5in
-, and if Xm1n -≧X1n, the data at the address (0000) is not updated and is maintained. Also, if Xaax −>Xff1ax, the data at the address (0001) is updated to Xmax −, and Xm
If ax −≦X wax, the data at address (0001) is not updated and is maintained.
一方、前記初期値Yeinは更新されずに維持され、主
走査方向の2ライン以降に検出されたY waxが1ラ
イン毎に更新され、この更新はマーキングの検出が終了
するまで無条件に更新される。On the other hand, the initial value Yein is maintained without being updated, and Y wax detected after the second line in the main scanning direction is updated line by line, and this update is continued unconditionally until marking detection is completed. Ru.
以上のようにして、第11図の回路により、例えば第1
4図に示されているマーキング49の場合、最終的にX
m1n −Xs 、Xmax =X2°、Ysin −
YI SYmax−Ynが検出される。As described above, for example, the first
In the case of marking 49 shown in Figure 4, the final
m1n −Xs, Xmax = X2°, Ysin −
YI SYmax-Yn is detected.
なお、第13図において、メモリライトイネーブル(W
E)信号は、比較器44の出力がマーキングのXm1n
、 Xmaxを更新する必要ありと判断した時にのみ
出力される。In addition, in FIG. 13, the memory write enable (W
E) The output of the comparator 44 is the marking Xm1n
, is output only when it is determined that it is necessary to update Xmax.
上記のようにして求められたマーキングのXおよびY方
向の最小、最大値X■1n s X5ax sYmln
およびY waxは矩形エリア信号発生回路12に送ら
れる。Minimum and maximum values in the X and Y directions of the marking determined as above X■1n s X5ax sYmln
and Y wax are sent to the rectangular area signal generation circuit 12.
第15図は該矩形エリア信号発生回路12の−具体例を
示す回路図である。矩形エリア信号発生回路12は図示
されているように、前記アドレスレジスタ5からのXm
1n (XI)、Xmax (X2 )、Ymin
(Yl )およびYmax (Y2 )と、Xお
よびYアドレスカウンタデータを入力とする4個の比較
器とアンドゲートから構成されている。したがって、こ
の回路より、マーキングに外接する矩形領域内は“1″
、矩形領域外は“θ′の矩形領域信号S3が出力される
。この矩形領域信号S3は矩形補正回路6に入力される
。FIG. 15 is a circuit diagram showing a specific example of the rectangular area signal generation circuit 12. As shown in the figure, the rectangular area signal generating circuit 12 receives Xm from the address register 5.
1n (XI), Xmax (X2), Ymin
(Yl), Ymax (Y2), and four comparators that receive X and Y address counter data as inputs, and an AND gate. Therefore, according to this circuit, "1" is inside the rectangular area circumscribing the marking.
, a rectangular area signal S3 of "θ" is output outside the rectangular area. This rectangular area signal S3 is input to the rectangular correction circuit 6.
第16図はこの矩形補正回路6の一興体例を示す。矩形
補正回路6は、第17図に示されているように、マーキ
ング外でかつ矩形領域S3内の領域に、マーキング内と
同じ信号S2を出力する処理を行う。この結果、第17
図のように、マーキング内およびマーキング外でかつ矩
形領域S3内に信号S2、マーキング上に信号S1が出
力される。FIG. 16 shows an example of this rectangular correction circuit 6. As shown in FIG. 17, the rectangular correction circuit 6 performs a process of outputting the same signal S2 as inside the marking to an area outside the marking and inside the rectangular area S3. As a result, the 17th
As shown in the figure, a signal S2 is output inside and outside the marking and within a rectangular area S3, and a signal S1 is output above the marking.
前記イメージメモリ3からの領域信号と、前記矩形補正
回路6からの領域信号は、出力切替回路7に入力し、シ
ステム制御回路8からの選択信号により選択される。例
えば、前記画像処理部9(第1図参照)でマーキング部
を白黒反転あるいは網点掛けの処理等を行う時には、出
力切替回路7は前記矩形補正回路6の出力を選択し、前
記信号SL +82の領域に対して前記白黒反転あるい
は網点掛けの処理を行う。この結果、この処理は矩形領
域に施されることになり、原稿に付けられたマーキング
の周辺にぎざぎざ等があっても、これが画像処理後の出
力には現れず、きれいに処理を施すことができる。The area signal from the image memory 3 and the area signal from the rectangle correction circuit 6 are input to an output switching circuit 7 and selected by a selection signal from a system control circuit 8. For example, when the image processing section 9 (see FIG. 1) performs black and white inversion or halftone dot processing on the marking section, the output switching circuit 7 selects the output of the rectangle correction circuit 6 and outputs the signal SL +82. The black and white inversion or halftone dot processing is performed on the area. As a result, this processing is applied to a rectangular area, so even if there are burrs around the markings on the document, these will not appear in the output after image processing, and the processing can be performed cleanly. .
また、本実施例によれば、予めマーキングの形状がわか
るので、原稿情報に対して多様な処理を施すことができ
る。Further, according to this embodiment, since the shape of the marking is known in advance, it is possible to perform various processes on the document information.
なお、前記の実施例では、マーキングに外接する矩形領
域を検出する場合の動作について説明したが、マーキン
グに内接する矩形領域を検出し、該矩形領域内のみに前
記信号S2を出力するように動作させてもよいことは勿
論である。Incidentally, in the above embodiment, the operation was explained in the case of detecting a rectangular area circumscribed to a marking, but the operation is also performed to detect a rectangular area inscribed in a marking and output the signal S2 only within the rectangular area. Of course, you may do so.
(発明の効果)
以上の説明から明らかなように、本発明によれば、マー
キングに外接する矩形に白黒反転あるいは網点掛は等の
編集処理を施すことができるので、マーキングの外周部
にぎざぎざあるいは凹凸があっても、これを再現するこ
となく処理することができる。(Effects of the Invention) As is clear from the above description, according to the present invention, it is possible to perform editing processing such as inverting black and white or halftone dotting on the rectangle circumscribing the marking, so that the outer periphery of the marking can be jagged. Alternatively, even if there are irregularities, it can be processed without reproducing them.
また、このため、原稿へのマーキング作業に精度を要求
されず、マーキングを容易にかつ気軽に行えるという利
点がある。Further, for this reason, there is an advantage that accuracy is not required in the marking work on the document, and marking can be performed easily and casually.
また、予めマーキングの形状がわかるので、原稿情報に
対して多様な処理を施すことができる。Furthermore, since the shape of the marking is known in advance, various processes can be performed on the document information.
例えば、部分抽出したものを移動させたり、複数の領域
を別の位置に移して再編集する加工を加えたりすること
ができる。For example, it is possible to move a partially extracted image, or to move multiple regions to different positions and re-edit them.
第1図は本発明の一実施例の概略のブロック図、第2図
は該実施例の主要部の詳細ブロック図、第3図は濃度検
出回路の一興体例を示す回路図、第4図はノイズ除去回
路の一具体例を示す回路図、第5図は認識回路の一具体
例を示す回路図、第6図は該認識回路の主要部の信号の
タイムチャート、第7図は該認識回路の第1モードの動
作説明図、第8図は該第1モードの判定テーブルを示す
図、第9図は該認識回路の第2モードの動作説明図、第
10図は該第2モードの判定テーブルを示す図、第11
図は矩形座標アドレス検出回路の一具体例を示す回路図
、第12図はそのアドレスレジスタのメモリ割付は図、
第13図は該矩形座標アドレス検出回路の主要部の信号
のタイムチャート、第14図は該矩形座標アドレス検出
回路の動作の概念図、第15図は矩形エリア信号発生回
路の一具体例を示す回路図、第16図は矩形補正回路の
一具体例を示す回路図、第17図は該矩形補正回路の動
作の概念図、第18図は従来のマーキング部の処理例を
示す図である。
1・・・マーキング検出回路、2・・・領域認麿部、4
・・・矩形座標アドレス検出部、5・・・アドレスレジ
スタ、6・・・矩形補正回路、7・・・出力切替回路、
9・・・画像処理部、12・・・矩形エリア信号発生回
路、
代理人 弁理士 平木通人 外1名
第
図
第
図
(a)
第
図(第1モード)
第
図
第
図
第
図
第
図
第
図
第
図
づ
A容C(C)爬、ジ1FIG. 1 is a schematic block diagram of an embodiment of the present invention, FIG. 2 is a detailed block diagram of the main parts of the embodiment, FIG. 3 is a circuit diagram showing an example of a concentration detection circuit, and FIG. FIG. 5 is a circuit diagram showing a specific example of a noise removal circuit, FIG. 5 is a circuit diagram showing a specific example of a recognition circuit, FIG. 6 is a time chart of signals of the main part of the recognition circuit, and FIG. 7 is a circuit diagram showing a specific example of the recognition circuit. FIG. 8 is a diagram showing the determination table of the first mode, FIG. 9 is an explanatory diagram of the operation of the recognition circuit in the second mode, and FIG. 10 is the determination table of the second mode. Diagram showing the table, No. 11
The figure is a circuit diagram showing a specific example of a rectangular coordinate address detection circuit, and FIG. 12 is a diagram showing the memory allocation of the address register.
FIG. 13 is a time chart of signals of the main parts of the rectangular coordinate address detection circuit, FIG. 14 is a conceptual diagram of the operation of the rectangular coordinate address detection circuit, and FIG. 15 is a specific example of the rectangular area signal generation circuit. FIG. 16 is a circuit diagram showing a specific example of a rectangle correction circuit, FIG. 17 is a conceptual diagram of the operation of the rectangle correction circuit, and FIG. 18 is a diagram showing an example of processing of a conventional marking section. DESCRIPTION OF SYMBOLS 1... Marking detection circuit, 2... Area recognition part, 4
... rectangular coordinate address detection section, 5 ... address register, 6 ... rectangle correction circuit, 7 ... output switching circuit,
9... Image processing unit, 12... Rectangular area signal generation circuit, Agent Patent attorney Michito Hiraki and one other person (a) (a) (1st mode) (1st mode) (1st mode) (1st mode) (1st mode) (1st mode) fig. fig. zu Ayo C (C) rep, ji 1
Claims (1)
ーキングを検出する回路と、 注目画素が属するラインおよびの前のラインの隣接画素
の判定結果に基づいて、該注目画素がマーキングによっ
て形成される閉領域の外、上および内のいずれに属する
かを判定する閉領域認識回路と、 該マーキングの閉領域に外接または内接する矩形領域を
検出する手段と、 マーキングの閉領域外でかつ矩形領域内の領域にマーキ
ングの閉領域内と同じ内容の信号を出力する手段と、 を具備し、 マーキングの閉領域に外接または内接する矩形領域を認
識できるようにしたことを特徴とする画像処理装置の領
域認識方式。(1) A circuit that detects markings from image data read by an image input unit; a closed area recognition circuit that determines whether the area belongs outside, above, or inside the area; means for detecting a rectangular area that is circumscribed or inscribed in the closed area of the marking; Area recognition for an image processing device, characterized in that it is capable of recognizing a rectangular area that is circumscribed or inscribed in the closed area of the marking, comprising: means for outputting a signal having the same content as in the closed area of the marking to the area; method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2154077A JPH0446462A (en) | 1990-06-14 | 1990-06-14 | Area recognizing system for picture processor |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2154077A JPH0446462A (en) | 1990-06-14 | 1990-06-14 | Area recognizing system for picture processor |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH0446462A true JPH0446462A (en) | 1992-02-17 |
Family
ID=15576389
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2154077A Pending JPH0446462A (en) | 1990-06-14 | 1990-06-14 | Area recognizing system for picture processor |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0446462A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6009195A (en) * | 1995-06-14 | 1999-12-28 | Minolta Co., Ltd. | Image processor with marker edition mode |
| JP2013172246A (en) * | 2012-02-20 | 2013-09-02 | Murata Mach Ltd | Copying unit |
-
1990
- 1990-06-14 JP JP2154077A patent/JPH0446462A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6009195A (en) * | 1995-06-14 | 1999-12-28 | Minolta Co., Ltd. | Image processor with marker edition mode |
| JP2013172246A (en) * | 2012-02-20 | 2013-09-02 | Murata Mach Ltd | Copying unit |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS6110360A (en) | Picture processing device | |
| US4528692A (en) | Character segmenting apparatus for optical character recognition | |
| US4887163A (en) | Image processing apparatus | |
| JPH0446462A (en) | Area recognizing system for picture processor | |
| US6356656B1 (en) | Contour-information extraction apparatus and method | |
| JP3084726B2 (en) | Image processing area recognition device | |
| US4364023A (en) | Optical character reading system | |
| JP2570815B2 (en) | Optical character recognition device | |
| JPH02267678A (en) | Image area identifying device and structure information extracting device usable in the same | |
| JP2903214B2 (en) | Area designation device | |
| JP2966448B2 (en) | Image processing device | |
| JPS6346872A (en) | Image processing device | |
| JP2861435B2 (en) | Pipeline type arithmetic unit | |
| JPH0750512B2 (en) | Image processing device | |
| JPS61117676A (en) | Binary pattern change point detection and retention method and its circuit | |
| JPH0685557B2 (en) | Image processing method | |
| JPS6359264A (en) | image input device | |
| JPH02277174A (en) | Picture processing method | |
| JPH03161879A (en) | Image input device | |
| JPS638512B2 (en) | ||
| JPS62219188A (en) | Processor for thinning line of binary image | |
| JPH03233787A (en) | Character image extracting device | |
| JPS6249482A (en) | Image preprocessing device | |
| JPS62108380A (en) | Binarization processing device | |
| JPS61131084A (en) | Picture processor |