JPH04356867A - Area recognizing system for recorder - Google Patents

Area recognizing system for recorder

Info

Publication number
JPH04356867A
JPH04356867A JP3008675A JP867591A JPH04356867A JP H04356867 A JPH04356867 A JP H04356867A JP 3008675 A JP3008675 A JP 3008675A JP 867591 A JP867591 A JP 867591A JP H04356867 A JPH04356867 A JP H04356867A
Authority
JP
Japan
Prior art keywords
area
color
scan
data
determination
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
Application number
JP3008675A
Other languages
Japanese (ja)
Inventor
Arinori Fujita
藤田有紀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Fuji Xerox Co Ltd filed Critical Fuji Xerox Co Ltd
Priority to JP3008675A priority Critical patent/JPH04356867A/en
Publication of JPH04356867A publication Critical patent/JPH04356867A/en
Pending legal-status Critical Current

Links

Landscapes

  • Control Or Security For Electrophotography (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)
  • Facsimile Scanning Arrangements (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Image Analysis (AREA)

Abstract

PURPOSE:To recognize a rectangular area and to reduce cost by recognizing the rectangular area with the forward scan of prescan, further recognizing the area again by back scan and deciding the inside/outside of the area. CONSTITUTION:Input/output processing parts 70-1 and 70-3 store AR color data separated by a color separation circuit 50 in a line buffer 60. Judgement processing parts 70-2 and 70-4 execute the forward scan of the prescan to the data in the buffer 60, judge the inside/outside of the area and store the result in a line memory 61. The memory 61 is read out, and the data in the preceding line and the data at the adjacent picture element are referred to and stored in a page buffer memory 62 after the judgement processing. Next, the back scan is executed, the memory 62 is read out and the judgement is executed again. Further, the AR color data in the buffer 60 are fetched by copy scan, and the judged result of the prescan is corrected. Thus, the rectangular area can be recognized, and the cost is reduced.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明はデジタル複写機、ファク
シミリ等の記録装置における領域認識方式に関するもの
である。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an area recognition system for recording devices such as digital copying machines and facsimiles.

【0002】0002

【従来の技術】デジタル複写機、ファクス々の画像処理
装置における画像読取り系の特に走査部の具体的な構造
は例えば、図24(a)に示すようになっている。
2. Description of the Related Art The specific structure of an image reading system, particularly a scanning section, in an image processing apparatus such as a digital copying machine or a facsimile machine is shown in FIG. 24(a), for example.

【0003】これは、原稿13が載置されるプラテン1
2の下方部に光源15とロッドレンズアレイ等を含む光
導部材16とCCD等の一次元のイメージセンサ10が
配置され、これらが一体となって走査部が構成されてい
る。そして、原稿13の上部からプラテンカバー14を
載せた状態で走査部が平行移動(図中矢印方向)して原
稿の光学的走査を行なう過程で、イメージセンサ10か
ら出力される受光光量に対応したセル単位の検出信号に
基づいて原稿13に描かれた濃淡像、線図、文字等に対
応した所定画素単位の画像情報が生成される。このよう
に、原稿を光学的に走査して読取って得られた画素情報
は画素単位に補正処理、各種の画素編集処理等を順次経
て、例えば、プリント、ディスプレイ装置等での画像再
現される。
[0003] This is a platen 1 on which a document 13 is placed.
A light source 15, a light guide member 16 including a rod lens array, etc., and a one-dimensional image sensor 10 such as a CCD are disposed below the image sensor 2, and together constitute a scanning section. Then, in the process of optically scanning the document by moving parallelly (in the direction of the arrow in the figure) with the platen cover 14 placed on top of the document 13, the scanner 13 is scanned in parallel with the amount of received light output from the image sensor 10. Based on the detection signals in units of cells, image information in units of predetermined pixels is generated corresponding to a gray scale image, line diagram, characters, etc. drawn on the document 13. In this way, the pixel information obtained by optically scanning and reading the original is sequentially subjected to correction processing, various pixel editing processing, etc. on a pixel-by-pixel basis, and then, for example, is printed or reproduced as an image on a display device.

【0004】この種の画像処理装置では、図24(b)
に示すように、原稿13内に描かれた画像のうち、例え
ばその内側の一点を指定した閉ループ画像Lの当該内側
領域Ei(斜線部分)だけについて特別の処理、例えば
網かけ、着色等の処理を行うものがあるが、これには、
画素情報を読取った画素が今指定された閉ループLの内
側か外側かを判定するための画像閉ループ領域の認識機
能が必要となる。このため、例えば内側の一点を指定し
ただけて閉ループL領域全体を認識する機能は、閉ルー
プをマーカにより描き、その閉ループ領域を認識する機
能(AR機能:Area  Recognition)
との比較でのより進んだ機能として、例えばADAR機
能(Advanced  Area  Recogni
tion)と呼ばれ、従来次のようにして実現されてい
る。
[0004] In this type of image processing device, as shown in FIG.
As shown in , special processing, such as shading, coloring, etc., is performed only on the inner area Ei (shaded area) of the closed-loop image L that specifies one point inside the image drawn in the original document 13, as shown in FIG. There is a method that does this, but this includes:
An image closed loop area recognition function is required to determine whether the pixel whose pixel information has been read is inside or outside the currently specified closed loop L. Therefore, for example, the function to recognize the entire closed loop L area by specifying one point inside is the function to draw the closed loop with a marker and recognize the closed loop area (AR function: Area Recognition).
For example, as a more advanced function compared to the ADAR function (Advanced Area Recogni
tion), and has conventionally been realized as follows.

【0005】図25に示すように、プラテン12の原稿
載置許容領域の各位置に対応した板状入力パッドを有し
て座標入力装置18(エディタパッド)のレジスト位置
(プラテン12上のレジスト位置に対応)に原稿13を
セットし、この状態で原稿13の閉ループ画像Lの内側
領域に対応した入力パッドの適当な位置をエディタペン
19でのペンタッチにて指定入力する。すると、この座
標入力装置18から入力パッド上での指定入力位置の情
報が画像処理装置に伝送され、画像処理装置は対応する
プラテン12の原稿載置許容領域での指定位置を認識す
る。この状態で、原稿13を座標入力装置18からプラ
テン12上に移し換え、上記走査系が当該原稿走査を行
なって得られた画像情報(例えば、ドットデータ)をペ
ージメモリに格納する。そして、その画像ドットデータ
を展開したページメモリ上の上記指定位置を起点として
順次各ドット毎に領域判定を行うと共に、閉ループL内
と判定されたドットについては特別の処理、例えば、着
色処理(白ドットを黒ドットに変換する)をページメモ
リ上の処理として行なう。具体的には、例えは、CRT
C−LSI(例えば、日立社製品  HD  6348
4)等によって行なわれる。
As shown in FIG. 25, the coordinate input device 18 (editor pad) has a plate-shaped input pad corresponding to each position in the document placement area of the platen 12, and register positions (registration positions on the platen 12) are provided. The original 13 is set on the paper (corresponding to 1), and in this state, an appropriate position on the input pad corresponding to the inner region of the closed-loop image L of the original 13 is specified and input by a pen touch with the editor pen 19. Then, information on the designated input position on the input pad is transmitted from the coordinate input device 18 to the image processing device, and the image processing device recognizes the designated position in the corresponding document placement permissible area of the platen 12. In this state, the original 13 is transferred from the coordinate input device 18 onto the platen 12, and the scanning system scans the original and stores the obtained image information (eg, dot data) in the page memory. Then, area determination is performed for each dot sequentially starting from the specified position on the page memory where the image dot data has been developed, and dots determined to be within the closed loop L are subjected to special processing, such as coloring processing (white color processing). (converting dots to black dots) is performed as processing on the page memory. Specifically, for example, CRT
C-LSI (for example, Hitachi product HD 6348
4) etc.

【0006】[0006]

【発明が解決しようとする課題】ところで、CRTC−
LSIのようなCRTコントローラを使用するものは、
CPUでVRAMにデータを書き、CRTコントローラ
にコマンドを送って、例えばVRAMのマーカ色で囲ま
れた中を塗りつぶすように指示し、その指示に基づきC
RTコントローラがVRAMにアクセスしてデータを個
々に見ながら演算することにより、閉ループ内を塗りつ
ぶすようにしており、CPUがCRTコントローラにコ
マンドを送った場合、その処理が終わるまでは何もでき
ず、結果的に処理時間が多くかかってしまうという問題
があり、さらに汎用性の高い高価なCRTコントローラ
を用いるため、コストアップになってしまうという問題
があった。
[Problem to be solved by the invention] By the way, CRTC-
Those that use a CRT controller such as LSI,
The CPU writes data to the VRAM, sends a command to the CRT controller, and instructs it to fill in the area surrounded by the marker color in the VRAM.Based on that instruction, the CRT controller
The RT controller accesses the VRAM and performs calculations while viewing the data individually to fill in the closed loop.When the CPU sends a command to the CRT controller, it cannot do anything until the processing is completed. As a result, there is a problem that a lot of processing time is required, and there is also a problem that the cost increases because a highly versatile and expensive CRT controller is used.

【0007】また、従来の矩形認識方式では原稿検知と
同様にハード的に矩形領域の頂点の座標Xmin、Xm
ax、Ymin、Ymaxをラッチして領域データとし
て取り込み、領域を認識するようにしているが、この方
法では領域の個数限定され、またY方向(主走査方向)
に複数並んだ領域は別々に認識できない等の欠点があっ
た。
[0007] In the conventional rectangle recognition method, the coordinates Xmin and Xm of the vertices of the rectangular area are also
The area is recognized by latching ax, Ymin, and Ymax and importing it as area data, but this method is limited in the number of areas, and also in the Y direction (main scanning direction).
There were drawbacks such as the inability to recognize separate areas in which multiple areas were lined up.

【0008】本発明は上記課題を解決するためのもので
、認識すべき矩形の領域の個数は無制限になり、Y方向
に複数並んだものを別々に認識でき、ハード構成のラッ
チ回路を不用とし、従来の閉ループ認識の回路の大部分
を兼用し、アルゴリズムを矩形認識用に切り換えるたと
で矩形領域認識を可能にし、コストを低減化することが
できる記録装置の領域認識装置を提供することを目的と
する。
The present invention is intended to solve the above problems.The number of rectangular areas to be recognized is unlimited, a plurality of rectangular areas lined up in the Y direction can be recognized separately, and a hardware latch circuit is not required. An object of the present invention is to provide an area recognition device for a recording device that can realize rectangular area recognition and reduce costs by using most of the conventional closed-loop recognition circuit and switching the algorithm to rectangular recognition. shall be.

【0009】[0009]

【課題を解決するための手段】本発明は、図1に示すよ
うに、制御手段1に制御され、プリスキャンのフォワー
ドスキャンとバックスキャン、およびコピースキャンの
各走査タイミングを発生する走査タイミング発生手段2
と、走査タイミングに同期して判定処理を実行する矩形
領域認識手段3とを備え、前記矩形領域認識手段は、プ
リスキャンのフォワードスキャンで領域認識色データを
取り込んで領域判定しながら、結果をメモリ4にセーブ
し、プリスキャンのバックスキャンでメモリ4を再度逆
方向から読み出して領域判定しながら結果をセーブして
閉ループのマーカに外接する四角形の領域を認識するこ
とを特徴とし、また、コピースキャン時に再度領域認識
色データを取り込み、取り込んだデータでプリスキャン
時の判定結果を補正して閉ループのマーカに外接する四
角形の領域を認識するようにしたことを特徴とする。
[Means for Solving the Problems] As shown in FIG. 1, the present invention is a scan timing generating means which is controlled by a control means 1 and generates each scan timing of a forward scan, a back scan of a prescan, and a copy scan. 2
and rectangular area recognition means 3 that executes determination processing in synchronization with the scanning timing, and the rectangular area recognition means captures area recognition color data in a forward scan of pre-scan and performs area determination while storing the results in memory. 4, the memory 4 is read from the reverse direction again in the backscan of the pre-scan, and while determining the area, the result is saved and the rectangular area circumscribed to the closed-loop marker is recognized. The present invention is characterized in that the area recognition color data is read in again at the time, and the judgment result at the time of pre-scanning is corrected using the read data, so that a rectangular area circumscribing the closed-loop marker is recognized.

【0010】0010

【作用】本発明はプリスキャンのフォワードスキャンで
矩形領域を認識し、さらにバックスキャンによって同様
に矩形領域を認識して領域の内部/外部を決定するもの
であり、さらにコピースキャンのフォワードスキャン時
の判定の中でプリスキャンの判定結果を補正するように
すれば、より精細な領域認識を行うことが可能となる。
[Operation] The present invention recognizes a rectangular area by the forward scan of the pre-scan, and also recognizes the rectangular area by the back scan to determine the inside/outside of the area. If the pre-scan determination result is corrected during the determination, it becomes possible to perform more precise area recognition.

【0011】[0011]

【実施例】以下本発明の実施例を説明する。[Examples] Examples of the present invention will be described below.

【0012】図2は本発明が適用される全体の構成を示
すブロック図である。
FIG. 2 is a block diagram showing the overall configuration to which the present invention is applied.

【0013】図2において、10は原稿走査部の一次元
フルカラーセンサ、20はフルカラーセンサ10からセ
ル単位に時分割にて出力される読取り信号を所定画素単
位の色成分データ(緑:G、青:B、赤:R)に変換し
てそれらを効率的に出力するセンサインタフェース回路
であり、このフルカラーセンサ10及びセンサインタフ
ェース回路20にて画像入力部が構成されている。50
は上記センサインタフェース回路20からの各色成分デ
ータ(GBR)から画素単位に濃度情報と色情報、更に
閉ループ指定のマーカ色情報を生成するカラー分離回路
であり、256階調の濃度情報Dと色情報としてサブカ
ラー”赤”に対応したサブカラーフラグSCFとメイン
カラー”黒”に対応したメインカラーフラグMCFが生
成される。70は領域認識回路であり、この領域認識回
路70はカラー分離回路50から出力されるマーク色情
報(ARCF1、ARCF2)に基づいて、読取り画素
が当該マーカにて指定された原稿上の閉ループ画像の内
か外を判定し、その結果を当該画素単位に出力するよう
になっている。ここでの判定結果は、第1AR色マーカ
にて指定された閉ループ領域の内側を示す第1AR領域
内のARDT1、第2AR色のマーカにて指定された閉
ループ領域の内側を示す第2AR領域内ARDT2、第
1AR領域及び第2AR領域双方の外側を示す領域外A
ROUTの3種類となる。150はカラー分離回路50
からの濃度情報D及び色情報(SCF、MCF)に対し
て各種の補正及びフィルタ処理を行なう補正・フィルタ
回路、160は補正・フィルタ回路150を経た濃度情
報及び色情報(SCF、MCF)に対して拡大、縮少、
色反転等の編集、加工処理を行なう編集・加工回路であ
り、この補正・フィルタ回路150及び編集・加工回路
160においては、特に、CPU(図示略)からの領域
指定により、上記領域認識回路70からの判定情報(A
RDFT1、ARDT2、AROUT)に基づいて当該
指定領域についてのみ所定の編集、加工処理を行なう機
能を有している。
In FIG. 2, reference numeral 10 denotes a one-dimensional full color sensor of the document scanning section, and reference numeral 20 converts the read signal output from the full color sensor 10 in a time-division manner cell by cell into color component data (green: G, blue) for each predetermined pixel. :B, red:R) and outputs them efficiently, and this full color sensor 10 and sensor interface circuit 20 constitute an image input section. 50
is a color separation circuit that generates density information and color information for each pixel from each color component data (GBR) from the sensor interface circuit 20, as well as marker color information for closed-loop designation. As a result, a sub color flag SCF corresponding to the sub color "red" and a main color flag MCF corresponding to the main color "black" are generated. Reference numeral 70 denotes an area recognition circuit, and this area recognition circuit 70 detects the closed-loop image on the document whose read pixels are specified by the marker based on the mark color information (ARCF1, ARCF2) output from the color separation circuit 50. It determines whether it is inside or outside and outputs the result for each pixel. The determination result here is ARDT1 in the first AR area indicating the inside of the closed loop area specified by the first AR color marker, and ARDT2 in the second AR area indicating the inside of the closed loop area specified by the second AR color marker. , outside area A indicating the outside of both the first AR area and the second AR area
There are three types of ROUT. 150 is a color separation circuit 50
A correction/filter circuit 160 performs various corrections and filter processes on the density information D and color information (SCF, MCF) from the correction/filter circuit 150; to enlarge, reduce,
This is an editing/processing circuit that performs editing and processing such as color inversion, and in this correction/filter circuit 150 and editing/processing circuit 160, the above-mentioned area recognition circuit 70 Judgment information from (A
It has a function of performing predetermined editing and processing processing only on the specified area based on RDFT1, ARDT2, AROUT).

【0014】上記のようにして、補正・フィルタ回路1
50及び編集・加工回路160にて各種の処理を経た濃
度情報D及び色情報(SCF、MCF)はインタフェー
ス回路230を介して具体的な画像形成機器に供される
ようになっている。この画像形成機器としては、2色再
現を行なうレーザプリンタ240、画像送受信機270
等があり、更に、濃度情報D及び色情報はコンピュータ
280に供され、当該コンピュータ280の補助記憶装
置(磁気ディスク装置等)内に蓄えて、各種の端未装置
にて当該情報を利用するシステム態様も可能である。上
記レーザプリンタ150を接続する場合には全体として
2色複写機が構成され、画像送受信機270を接続する
場合には全体としてファクシミリが構成される。
As described above, the correction/filter circuit 1
The density information D and color information (SCF, MCF) that have undergone various processing in the image forming apparatus 50 and the editing/processing circuit 160 are provided to a specific image forming device via an interface circuit 230. The image forming equipment includes a laser printer 240 that reproduces two colors, and an image transmitter/receiver 270.
In addition, the density information D and color information are provided to the computer 280, stored in an auxiliary storage device (magnetic disk device, etc.) of the computer 280, and the information is used in various end devices. Aspects are also possible. When the laser printer 150 is connected, the entire system constitutes a two-color copying machine, and when the image transceiver 270 is connected, the entire system constitutes a facsimile machine.

【0015】編集・加工回路160との具体的な構成は
、例えば図3に示すようになっている。この例は編集・
加工回路160がメインカラー(黒)とサブカラー(赤
)の変換等の処理を行う色反転回路161、黒文字を白
抜き文字に変換等する白抜き回路190、網かけ処理を
行う網かけ回路200、メインカラー(黒)あるいはサ
ブカラー(赤)と白とを反転するネガ・ポジ反転回路2
10により構成されており、この編集・加工回路160
に対して画素単位に供給される濃度データD、サブカラ
ーフラグSCF、メインカラーフラグMCFが各回路で
直列的に処理されるようになっている。なお、特にその
処理が必要ない場合には濃度データDに対する該当する
回路での処理は行われずそのままデータパスとなる。
A specific configuration of the editing/processing circuit 160 is shown in FIG. 3, for example. This example can be edited
The processing circuit 160 includes a color inversion circuit 161 that performs processing such as conversion between a main color (black) and a sub color (red), a whiteout circuit 190 that converts black characters into white characters, and a shading circuit 200 that performs shading processing. , negative/positive inversion circuit 2 that inverts the main color (black) or sub color (red) and white.
10, this editing/processing circuit 160
The density data D, sub color flag SCF, and main color flag MCF supplied pixel by pixel are serially processed in each circuit. Note that if the processing is not particularly necessary, the density data D is not processed in the corresponding circuit and becomes the data path as it is.

【0016】また、編集・加工に対する他の処理回路を
編集・加工回路160に含めることも当然可能である。 このような編集・加工回路160の各処理回路(色反転
回路161、白抜き回路190、網かけ回路200、ネ
ガ・ポジ反転回路210)に対してCPU(図示せず)
から第1領域設定信号(第1AR色のマーカで指定され
た閉ループ領域)AR1、第2領域設定信号(第2AR
色のマーカで指定された閉ループ領域)AR2、および
領域外設定信号(第1AR領域および第2AR領域双方
の外側領域)AROUTが与えられている。また、領域
認識回路70からは第1領域データARDT1、第2領
域データARDT2および領域外データAROUTが各
処理回路に対して送られている。なお、領域外データA
ROUTは第1領域データARDT1および第2領域デ
ータARDT2が共に0となる時にアクティブとなる信
号として作られるものである。各処理回路ではCPUか
ら領域設定信号が入力すると、領域認識回路70からの
領域データに基づいて設定された領域のみの設定を行っ
て他の領域についてはデータをパスするようにしている
It is also possible, of course, to include other processing circuits for editing/processing in the editing/processing circuit 160. A CPU (not shown) is connected to each processing circuit (color inversion circuit 161, outline circuit 190, shaded circuit 200, negative/positive inversion circuit 210) of the editing/processing circuit 160.
, the first area setting signal (closed loop area specified by the marker of the first AR color) AR1, the second area setting signal (the second AR
A closed loop area designated by a color marker) AR2, and an outside area setting signal (outside area of both the first AR area and the second AR area) AROUT are given. Further, from the area recognition circuit 70, first area data ARDT1, second area data ARDT2, and out-of-area data AROUT are sent to each processing circuit. In addition, out-of-area data A
ROUT is generated as a signal that becomes active when both the first area data ARDT1 and the second area data ARDT2 become 0. In each processing circuit, when a region setting signal is input from the CPU, only the region set based on the region data from the region recognition circuit 70 is set, and data is passed for other regions.

【0017】図4は領域認識回路70の構成を示す図で
ある。領域認識回路70はカラー分離回路50を通して
得られる第1AR色データの入出力処理を行う入出力処
理部70−1、領域判定を行う判定処理部70−2、第
2AR色データの入出力処理を行う入出力処理部70−
3、判定処理部70−4を有し、2色のマーカを認識で
きるようになっている。また、領域認識回路70はCP
Uインタフェース75を介してCPU30で制御され、
後述するARイネーブル回路71、ラインタイミングコ
ントロール回路72、クロックタイミングコントロール
回路73、ラインカウンタ76、判定用アドレスカウン
タ74、ページバッファアドレスカウンタ77を備えて
いる。
FIG. 4 is a diagram showing the configuration of the area recognition circuit 70. The area recognition circuit 70 includes an input/output processing section 70-1 that performs input/output processing of first AR color data obtained through the color separation circuit 50, a determination processing section 70-2 that performs area determination, and an input/output processing of second AR color data. Input/output processing unit 70-
3. It has a determination processing section 70-4, and is capable of recognizing two-color markers. In addition, the area recognition circuit 70
Controlled by the CPU 30 via the U interface 75,
It includes an AR enable circuit 71, a line timing control circuit 72, a clock timing control circuit 73, a line counter 76, a determination address counter 74, and a page buffer address counter 77, which will be described later.

【0018】入出力処理部70−1,70−3はカラー
分離回路50で分離されたAR色データをラインバッフ
ァ60に格納し、後述する入力補正を行う。また、判定
処理部70−2,70−4はラインバッファ60に書き
込まれたデータにつき、プリスキャン、フォワードスキ
ャンにおいて領域の内外を判定し、判定結果を判定用メ
モリアドレスカウンタ74で指定されたアドレスで判定
用ラインメモリ61に格納する。すなわち、フォワード
スキャンにおいて、順次判定用ラインメモリ61の内容
を読み出しつつ、1ライン前のデータ、1画素隣のデー
タを参照して判定画素についての判定処理を行ってその
結果をページバッファメモリ62に格納する。次にプリ
スキャンのバックスキャン時にページバッファメモリ6
2の内容を読み出して再度判定する。そしてコピースキ
ャン時にカラー分離回路50を通して得られたAR色デ
ータでページバッファメモリ62の内容を再度判定し、
プリスキャンで粗く判定した結果をコピースキャンで細
かく補正し、精細な領域認識を行う。
The input/output processing units 70-1 and 70-3 store the AR color data separated by the color separation circuit 50 in the line buffer 60, and perform input correction to be described later. Further, the determination processing units 70 - 2 and 70 - 4 determine whether the data written in the line buffer 60 is inside or outside the area in prescan and forward scan, and send the determination result to the address specified by the determination memory address counter 74. is stored in the judgment line memory 61. That is, in forward scanning, while sequentially reading out the contents of the judgment line memory 61, performing judgment processing on the judgment pixel by referring to the data one line before and the data one pixel adjacent, and storing the results in the page buffer memory 62. Store. Next, during the back scan of the pre-scan, the page buffer memory 6
Read the contents of 2 and judge again. Then, the content of the page buffer memory 62 is determined again using the AR color data obtained through the color separation circuit 50 during copy scanning,
The rough judgment results obtained during pre-scanning are finely corrected using copy scanning to perform precise area recognition.

【0019】図5は図4のARイネーブル回路のブロッ
ク図である。本発明ではプリスキャンで粗く判定して結
果を記憶し、コピースキャン時に細かい間隔で読み取っ
たデータによりプリスキャンでの判定結果を補正するよ
うにしているので、プリスキャンとコピースキャンとで
読み取るデータの位置が変わっては補正することが出来
ない。しかし、コピースキャンの際、アドレスとしてラ
イン数を数えたのでは、倍率によって位置が変わってし
まうことになる。そこで本発明では縮小倍率の時は速く
、拡大倍率の時は遅く、1クロック当たりの距離を変え
、倍率によってはトータルのモータクロック数は変わら
ないことを利用し、モータクロックを領域認識のメモリ
の副走査アドレスにするようにしている。そこで、1/
16mm毎のモータクロックをインバータ80を通し、
分周器88で16分周し、1mm単位のアドレス信号を
得るようにする。そしてページ同期信号(ページシンク
、PS)でスキャン1(プリスキャンのフォワードスキ
ャン)、スキャン3(コピースキャン)をセレクタ81
,82によってセレクトし、OR回路90を通して得た
信号でモータクロック信号をラッチし、副走査アドレス
を得るようにする。また、スキャン2(プリスキャンの
バックスキャン)の信号をデータの有効範囲を示すVV
AD信号によってラッチ回路91でラッチしてスキャン
2の信号を得ている。
FIG. 5 is a block diagram of the AR enable circuit of FIG. 4. In the present invention, the pre-scan makes a rough judgment and stores the result, and the pre-scan judgment result is corrected using the data read at fine intervals during the copy scan, so the data read during the pre-scan and copy scan is Correction cannot be made if the position changes. However, if the number of lines is counted as an address during copy scanning, the position will change depending on the magnification. Therefore, in the present invention, the speed is fast when the magnification is reduced, and it is slow when the magnification is enlarged, and the distance per clock is changed, and the total number of motor clocks does not change depending on the magnification. I am trying to use the sub-scanning address. Therefore, 1/
Pass the motor clock every 16 mm through the inverter 80,
The frequency is divided by 16 by a frequency divider 88 to obtain an address signal in units of 1 mm. Then, selector 81 selects scan 1 (forward scan of prescan) and scan 3 (copy scan) using a page synchronization signal (page sync, PS).
, 82, and the motor clock signal is latched with the signal obtained through the OR circuit 90 to obtain the sub-scanning address. In addition, the signal of scan 2 (backscan of prescan) is set to VV, which indicates the effective range of data.
The AD signal is latched by a latch circuit 91 to obtain a scan 2 signal.

【0020】次に領域認識アルゴリズムの概略について
説明する。本発明においては、第1AR色と第2AR色
の2色について領域判定を行うことが可能であり、プリ
スキャンが始まる前にCPUからARモードを設定する
。本発明におけるARモードは図6に示すように、指定
された色画像データ上およびその色画像データによる閉
ループ領域を認識する自由型モード、指定された色画像
データ上およびその色画像データに囲まれる画像データ
領域を認識する塗りつぶしモード、指定された色画像デ
ータの外接四角形領域を認識する矩形モード、指定され
た色を内包する画像閉ルーブ領域を認識する1点指示モ
ードの4つのARモードを有しており、2ビットデータ
で自由型モードは(00)、塗りつぶしモードは(01
)、矩形モードは(10)、1点指示モードは(11)
で設定され、デフォルトは(00)とし、第1AR色と
第2AR色の2色について異なるARモードが設定可能
である。
Next, the outline of the area recognition algorithm will be explained. In the present invention, it is possible to perform area determination for two colors, the first AR color and the second AR color, and the AR mode is set by the CPU before prescanning starts. As shown in FIG. 6, the AR mode in the present invention is a free type mode that recognizes a closed loop area on the specified color image data and by the color image data, and a free type mode that recognizes the closed loop area on the specified color image data and surrounded by the color image data. It has four AR modes: a fill mode that recognizes the image data area, a rectangle mode that recognizes the circumscribed rectangular area of the specified color image data, and a one-point pointing mode that recognizes the image closed loop area that includes the specified color. The 2-bit data is (00) for free type mode and (01) for filled mode.
), rectangle mode is (10), one point instruction mode is (11)
The default is (00), and different AR modes can be set for the two colors, the first AR color and the second AR color.

【0021】図7はプリスキャンのフォワードスキャン
時における処理を説明するためのものである。コピーサ
イクルはプリスキャンのフォワードスキャンから始まり
、プラテンガラスの先端の位置までキャリッジが進んだ
時点でAR色データおよび画像データの取り込みを開始
し、領域認識回路に入力されるページシンク信号はこの
データ取り込み開始時点(図7の■)で立ち上がる。 それ以降は一定の距離をキャリッジが進む毎にAR色デ
ータおよび画像データから後述するアルゴリズムで1ラ
イン分の領域の内部/外部の判定を行い、結果をページ
メモリにセーブしていく(図7の■の領域)。以上の処
理はキャリッジがプラテンガラスの先端からデータを取
り込むとき最後端(例えばA3原稿用のプラテンガラス
なら432mm)の位置に達するかページシンク信号が
LOWになるまで行う(図7の■)。なお、キャリッジ
の位置検出は図5で説明したように、ページシンク信号
が立ち上がってからキャリッジモータのクロックをカウ
ントすることにより行い、本複写機ではページメモリの
副走査方向の精度を1mmとし、キャリッジモータクロ
ックカウント数が1mm相当になる毎に主走査方向1ラ
イン分の領域の内部/外部の判定を行うようにしている
FIG. 7 is a diagram for explaining the processing at the time of forward scan of pre-scan. The copy cycle starts with a forward scan of pre-scan, and when the carriage advances to the tip of the platen glass, it starts capturing AR color data and image data, and the page sync signal input to the area recognition circuit is based on this data capture. It starts up at the starting point (■ in Figure 7). From then on, each time the carriage advances a certain distance, the algorithm described below uses the AR color data and image data to determine whether the area for one line is inside or outside, and the results are saved in the page memory (see Figure 7). ■ area). The above processing is performed until the carriage reaches the rearmost position (for example, 432 mm for an A3 document platen glass) when data is taken in from the front end of the platen glass, or the page sync signal becomes LOW (■ in FIG. 7). As explained in Fig. 5, the carriage position is detected by counting the carriage motor clock after the page sync signal rises.In this copier, the accuracy of the page memory in the sub-scanning direction is 1 mm, and the carriage position is Every time the motor clock count reaches 1 mm, it is determined whether an area corresponding to one line in the main scanning direction is inside or outside.

【0022】図8はプリスキャンのバックスキャン時の
処理を説明するためのものである。プリスキャンのバッ
クスキャン時は画像データが入ってこないで、ページメ
モリにセーブしてあるフォワードスキャン時の判定結果
をプラテンガラスの後端側から読み出し、フォワードス
キャン時とは逆方向からみた判定を行い、結果を再度ペ
ージメモリにセーブする。この場合、AR色データ等の
入力データは入ってこないので、バックスキャンが始ま
ってバックスキャン信号が立ち上がると、すぐに最終ラ
イン(431)からの判定を開始することになる(図8
の■)。それ以降はフォワードスキャン時とは異なり、
キャリッジの位置とは無関係に内部的な処理タイミング
に従って各ラインの判定処理を行う(図8の■)。この
処理は全ラインの処理が終了するまで行われる(図8の
■)。バックスキャン時はキャリッジの位置とは無関係
に判定処理が進められるため、図示のように実際の判定
処理はキャリッジがプラテンガラスの先端位置に戻るよ
りも早く終了することになる。
FIG. 8 is a diagram for explaining processing at the time of backscan of prescan. During the backscan of the prescan, no image data is input, and the judgment results from the forward scan saved in the page memory are read from the rear edge of the platen glass, and the judgment is performed from the opposite direction from the forward scan. , save the result to page memory again. In this case, input data such as AR color data is not input, so when backscanning starts and the backscan signal rises, judgment starts immediately from the last line (431) (Fig. 8
■). After that, unlike the forward scan,
Judgment processing for each line is performed according to internal processing timing regardless of the position of the carriage (■ in FIG. 8). This process is continued until all lines have been processed (■ in FIG. 8). During backscanning, the determination process proceeds regardless of the position of the carriage, so as shown in the figure, the actual determination process ends earlier than the carriage returns to the tip position of the platen glass.

【0023】図9はコピースキャンのフォワードスキャ
ン時の処理を説明するためのものである。コピースキャ
ン時は原稿の先端(ページシンク信号の立ち上がり)か
らAR色データおよび画像データの取り込みを開始し、
入力データの2ライン(VVAD)毎にAR色データお
よび黒画像データと、ページメモリから読み出された判
定結果から領域の内部/外部の判定を行い結果を出力す
る。なお、VVADは副走査方向における画像データと
して有効な範囲を示す信号である。このような処理によ
りバックスキャン時の判定結果は精度が1mmと粗いが
、コピースキャン時の読み取りは細かいので、領域の輪
郭を滑らかにする補正が行われる。この場合、ベージメ
モリの読み出しラインアドレスは入力データのライン数
とは別のものであり、ベージシンク信号の立ち上がりか
らキャリッジモータのクロックをカウントし1mm毎に
ラインアドレスをプラス1していく必要がある。
FIG. 9 is a diagram for explaining processing at the time of forward scan of copy scan. During copy scanning, capture of AR color data and image data starts from the leading edge of the document (the rising edge of the page sync signal).
For every two lines (VVAD) of input data, the inside/outside of the area is determined based on the AR color data and black image data and the determination result read from the page memory, and the result is output. Note that VVAD is a signal indicating an effective range as image data in the sub-scanning direction. Through such processing, the accuracy of the determination result during backscanning is as low as 1 mm, but since the reading during copy scanning is fine, correction is performed to smooth the contour of the area. In this case, the read line address of the page memory is different from the number of lines of input data, and it is necessary to count the carriage motor clock from the rise of the page sync signal and add 1 to the line address every 1 mm.

【0024】また、原稿を任意の位置に置いてもレジ位
置を原稿の先端に合わせる「フリーレジ」、指定した位
置にレジを移動させる「移動」、あるいは「センタリン
グ」といった機能が選ばれている場合は、ベージシンク
信号の立ち上がりがプラテンガラスの先端であるライン
アドレス=0の位置であるとは限らないので、プリスキ
ャンのバックスキャンが終了してからコピースキャンの
フォワードスキャンが開始するまで(ページシンク信号
の立ち上がるまでの間)にページシンク信号の立ち上が
りの位置のページメモリの読み出しラインアドレス(A
RSLA)をCPUから設定しておく。従ってページメ
モリの読み出しラインアドレスはページシンク信号の立
ち上がりからキャリッジが1mm進む毎にARSLA,
ARSLA+1,ARSLA+2……と増加して行くこ
とになり、このようなラインアドレスは432に達する
かページシンク信号がLOWになるまで行う。
[0024]Furthermore, functions such as ``free registration'' which aligns the registration position with the leading edge of the original even when the original is placed in any position, ``movement'' which moves the registration to a specified position, and ``centering'' are selected. In this case, the rising edge of the page sync signal is not necessarily at the tip of the platen glass, which is the line address = 0, so the page sync The read line address of the page memory at the rising edge of the page sync signal (A
RSLA) from the CPU. Therefore, the read line address of the page memory is ARSLA,
The line addresses increase as ARSLA+1, ARSLA+2, etc., and such line addressing is continued until 432 is reached or the page sync signal becomes LOW.

【0025】次に基本的な判定アルゴリズムについて説
明する。基本的なアルゴリズムは自由型モード、ぬりつ
ぶしモード、矩形モード、1点指示モードの全ての場合
に共通であり、まずプリスキャンのフォワードスキャン
時に主走査方向、反主走査方向、副走査方向の3方向か
ら入力データを判定し、ページメモリに判定結果をセー
ブする。プリスキャンのバックスキャン時にはページメ
モリにセーブしてある判定結果を読み出し、主走査方向
、反主走査方向、反副走査方向の3方向から再度判定し
、ページメモリに判定結果をセーブする。最後にコピー
スキャンのフォワードスキャン時に入力データとページ
メモリにセーブしてある判定結果を主走査方向、反主走
査方向、副走査方向の3方向から最終判定を行い、領域
の内部/外部を決定する。このようにどのスキャンの場
合でも3方向からの判定が基本になり、この3方向から
の判定を以下のように1次判定と2次判定の2度の判定
で行う。
Next, a basic determination algorithm will be explained. The basic algorithm is common to all modes: free type mode, fill-in mode, rectangle mode, and one-point pointing mode. The input data is judged from , and the judgment result is saved in the page memory. During backscanning of pre-scanning, the judgment results saved in the page memory are read out, judgments are made again from three directions: the main scanning direction, the anti-main scanning direction, and the anti-sub-scanning direction, and the judgment results are saved in the page memory. Finally, during the forward scan of the copy scan, final judgment is performed on the input data and the judgment results saved in the page memory from three directions: main scanning direction, anti-main scanning direction, and sub-scanning direction, and determines the inside/outside of the area. . In this way, in any scan, determination is basically made from three directions, and the determination from these three directions is performed in two determinations: a primary determination and a secondary determination, as described below.

【0026】図10は1次判定を説明するためのもので
ある。まず、主走査方向と副走査方向(または反副走査
方向)の2方向から1次判定を行う。すなわち、図10
(a)に示すように、1次判定結果をラッチして得られ
た1画素隣の1次判定結果と、判定用ラインメモリ61
から読み込んだ1ライン前の判定結果と、入力データと
から判定画素についての判定を行い、図10(b)に示
すように斜線で示す判定画素は1ライン前の判定結果お
よび1画素隣の1次判定結果を参照して領域の内部/外
部が決定され、その結果は判定用ラインメモリ61に書
き込まれる。
FIG. 10 is for explaining the primary determination. First, primary determination is performed from two directions: the main scanning direction and the sub-scanning direction (or the anti-sub-scanning direction). That is, FIG.
As shown in (a), the primary determination result of one pixel adjacent obtained by latching the primary determination result and the determination line memory 61
Judgment is made for the judgment pixel based on the judgment result of the previous line read from the input data and the input data, and as shown in FIG. The inside/outside of the area is determined with reference to the next determination result, and the result is written into the determination line memory 61.

【0027】図11は2次判定を説明するためのもので
ある。2次判定は1次判定の結果に反主走査方向からの
情報を付加して1ラインの判定結果を決定するものであ
る。この場合、反主走査方向からの入力データはないの
で、1次判定の結果をセーブした判定用ラインメモリ6
1を、セーブした時とは逆に反主走査方向から再度読み
出していくことによって反主走査方向からの情報を付加
する。すなわち図11(b)に示すように、判定画素の
1画素隣の2次判定結果から判定していくために、図1
1(a)に示すように、判定用ラインメモリ61から読
み込んだ1次判定結果と、2次判定結果をラッチした1
画素隣の2次判定結果とから判定し、結果を判定用ライ
ンメモリに書き込む。
FIG. 11 is for explaining the secondary determination. The secondary determination adds information from the opposite main scanning direction to the result of the primary determination to determine the determination result for one line. In this case, there is no input data from the anti-main scanning direction, so the judgment line memory 6 saves the results of the primary judgment.
1 is read out again from the anti-main scanning direction in the opposite direction from when it was saved, thereby adding information from the anti-main scanning direction. In other words, as shown in FIG. 11(b), in order to make a determination based on the secondary determination result of one pixel adjacent to the determined pixel,
1(a), the primary judgment result read from the judgment line memory 61 and the latched secondary judgment result
Judgment is made based on the secondary judgment result of the adjacent pixel, and the result is written into the line memory for judgment.

【0028】このような判定アルゴリズムから少なくと
も主走査方向についてはラインメモリのリード、判定、
ラインメモリのライトで3VCLK(VCLK:1画像
のデータの確定している期間を示す信号)分、副走査方
向については1次判定、2次判定の2VVADの処理時
間が必要であり、そのため回路の簡略化やメモリコスト
を考え、判定/出力の精度は主走査方向=4VCLK、
副走査方向=2VVADとしている。従って、判定のた
めのデータは1色あたり2ビットとして必要な判定用ラ
インメモリ61の容量は4672/4×2×2=116
8ワード×4ビットとなるので、2Kワード×8ビット
のSRAMを使用する。一方プリスキャンの判定結果を
セーブするページメモリ62の精度はコストを下げるた
めに主走査方向=8VCLK、副走査方向=1mm相当
とする。その結果必要なページメモリ62の容量は46
72/8×432×2×2=246Kワード×4ビット
となるので、256Kワード×4ビットのDRAMを使
用する。
Based on such a determination algorithm, at least in the main scanning direction, line memory reading, determination,
Writing to the line memory requires 3 VCLK (VCLK: a signal indicating the period in which data for one image is fixed) and 2 VVAD processing time for the primary judgment and secondary judgment in the sub-scanning direction. Considering simplification and memory cost, the accuracy of judgment/output is set to main scanning direction = 4VCLK,
The sub-scanning direction is set to 2VVAD. Therefore, assuming that the data for determination is 2 bits per color, the required capacity of the determination line memory 61 is 4672/4×2×2=116
Since it is 8 words x 4 bits, a 2K word x 8 bit SRAM is used. On the other hand, the precision of the page memory 62 for saving the prescan determination results is set to be equivalent to 8 VCLK in the main scanning direction and 1 mm in the sub-scanning direction in order to reduce costs. As a result, the required capacity of the page memory 62 is 46
Since 72/8 x 432 x 2 x 2 = 246K words x 4 bits, a 256K words x 4 bits DRAM is used.

【0029】前述した1次判定、および2次判定の各ア
ルゴリズムは基本的に「マーカ色画素とマーカ色画素に
隣接する濃度なし画素(白画素)は閉ループ内とする」
というものであるが、その具体的な判定結果は「O」…
画像閉ループの外、「M」…マーカを含む領域、「I」
…画像閉ループの内となる。この判定結果はステータス
情報としてシステム内で取り扱われ、最終的にステータ
ス「I」の付された画素がマーカで指定された画像閉ル
ープの内側となり、それ以外の画素は画像閉ループの外
側となる。
The above-mentioned algorithms for primary determination and secondary determination basically include ``marker color pixels and non-density pixels (white pixels) adjacent to marker color pixels within a closed loop.''
However, the specific judgment result is "O"...
Outside the image closed loop, “M”…area containing the marker, “I”
...becomes inside the image closed loop. This determination result is handled within the system as status information, and finally pixels with status "I" are inside the image closed loop specified by the marker, and other pixels are outside the image closed loop.

【0030】次に、図12により副走査方向がMライン
で、主走査方向がN番目の画素(対象画素)の判定を行
う場合について説明する。例えば、プリスキャンのフォ
ワードスキャン時における判定は、まず主走査方向につ
いて、図12(a)に示すように、対象画素の画像デー
タ(濃度データ)とマーカ色情報とさらに隣接する画素
の判定結果、すなわち同一ライン(Mライン)の前画素
(N−1番目)の主走査方向判定結果(仮ステータス)
と前のライン(M−1)の同一1画素(N番目)の判定
結果とに基づいて、当該対象画素(図の斜線部)を判定
する。この主走査方向の判定結果は1次判定結果となっ
て仮ステータス(KS)として、メモリに格納される。 このようにして主走査方向についての各画素の判定が終
了した後に逆側からの判定、すなわち反主走査方向の判
定を行う。それは図12(b)に示すように、対象画素
の同一ラインで前の画素(N+1番目)の判定結果に基
づいて当該対象画素(斜線部)の判定を行い、その判定
結果が2次判定結果となってメモリ内に格納された当該
対象画素の上記仮ステータス(KS)がステータス(S
)情報に書換えられる。このようにして主走査方向、反
主走査方向の双方向からの判定が各ライン毎に順次行わ
れ、0ラインから431ラインでの判定で、バックスキ
ャン時の判定が終了する。
Next, referring to FIG. 12, a case will be described in which the sub-scanning direction is M lines and the main scanning direction is determining the Nth pixel (target pixel). For example, in the forward scan of the prescan, the determination is made based on the image data (density data) of the target pixel, the marker color information, and the determination results of the adjacent pixels, as shown in FIG. In other words, the main scanning direction determination result (temporary status) of the previous pixel (N-1st) on the same line (M line)
The target pixel (shaded area in the figure) is determined based on the determination result of the same pixel (Nth) of the previous line (M-1). The determination result in the main scanning direction becomes the primary determination result and is stored in the memory as a temporary status (KS). After the determination of each pixel in the main scanning direction is completed in this manner, determination is made from the opposite side, that is, determination in the opposite main scanning direction. As shown in FIG. 12(b), the target pixel (shaded area) is determined based on the determination result of the previous pixel (N+1st) on the same line as the target pixel, and the determination result is the secondary determination result. The temporary status (KS) of the target pixel stored in the memory becomes the status (S
) can be rewritten into information. In this way, determinations from both the main scanning direction and the anti-main scanning direction are performed sequentially for each line, and the determination during backscanning is completed with determinations from line 0 to line 431.

【0031】プリスキャンのバックスキャン時における
判定は、主走査方向について、図12(c)に示すよう
に、同一ライン(Mライン)の前の画素(N−1番目)
の主走査方向判定結果(仮ステータス)と前のライン(
M+1ライン)の同一位置画素(N番目)の判定結果と
に基づいて、当該対象画素を判定する。この主走査方向
の判定結果は仮ステータス(KS)となり、メモリ内に
格納された判定結果がこの仮ステータス(KS)に書換
えられる。主走査方向での各画素の判定が終了した後に
反主走査方向の判定を行う。それは上記フォワードスキ
ャン時と同様、図12(d)に示すように、対象画素の
同一ラインが前の画素(N+1番目)の判定結果に基づ
いて当該対象画素(斜線部)の判定を行い、その判定結
果が2次判定結果となって最終なステータス(S)情報
となる。
[0031] At the time of backscanning of pre-scanning, determination is made regarding the previous pixel (N-1st) on the same line (M line) in the main scanning direction, as shown in FIG.
The main scanning direction judgment result (temporary status) and the previous line (
The target pixel is determined based on the determination result of the same position pixel (Nth) of M+1 line). The determination result in the main scanning direction becomes a temporary status (KS), and the determination result stored in the memory is rewritten to this temporary status (KS). After the determination of each pixel in the main scanning direction is completed, determination in the opposite main scanning direction is performed. As in the case of the forward scan described above, as shown in FIG. 12(d), the target pixel (shaded area) is determined based on the determination result of the previous pixel (N+1st) on the same line as the target pixel, and The determination result becomes the secondary determination result and becomes the final status (S) information.

【0032】このような判定手法により、フォワードス
キャン時およびバックスキャン時にそれぞれ主走査方向
および反主走査方向の判定を行うので、1つの画素につ
いて上下左右の4方向からの判断がなされることになり
、精度のよい判定結果が得られる。
With this determination method, the main scanning direction and anti-main scanning direction are determined during forward scanning and back scanning, respectively, so that one pixel is determined from four directions: top, bottom, left, and right. , accurate judgment results can be obtained.

【0033】以上のような判定により、例えば図13(
a)に示すような閉ループに対して、マーカ上の画素に
対してはステータス「M」が、領域内はステータス「I
」が、領域外はステータス「O」が付与されることにな
る。なお、図13(b)に示すように、主走査方向にお
いては、例えば斜線部の画素は1ライン前の同一位置の
画素および1画素前の画素が共にステータス「M」であ
るので、領域内であると判定し、ステータス「I」が付
与され、それに続く画素に対して順次ステータス「I」
が付与される場合があり得る。この場合図13(c)に
示すように、反主走査方向で最初の画素からステータス
「I」がつくということはあり得ないので、これをステ
ータス「O」に書換え、正しい判定が保証されることに
なる。
As a result of the above determination, for example, FIG.
For the closed loop shown in a), the pixels on the marker have the status "M", and the pixels inside the area have the status "I".
”, but if it is outside the area, the status “O” will be given. As shown in FIG. 13(b), in the main scanning direction, for example, the pixel in the shaded area has the status "M" for both the pixel at the same position one line before and the pixel one pixel before. It is determined that the status is "I", and the status "I" is assigned to the subsequent pixels.
may be granted. In this case, as shown in FIG. 13(c), it is impossible for the first pixel in the anti-main scanning direction to be given the status "I", so this is rewritten to the status "O" to ensure a correct determination. It turns out.

【0034】次にノイズ除去と連結補正について説明す
る。例えば、1点指示モードのような場合にはゴミのよ
うに小さな点までも認識してしまうのは好ましくない。 それで、一定の大きさ以上のもののみをマーカとして認
識するために、例えば図14(a)に示すように、主走
査方向に対してはラッチ回路101,102で1ドット
ずつ遅延させ、3ドット連続した時にAND回路100
で検出し、ノイズ除去する。もちろん3ドットに限定さ
れるものでなく、2ドット連続した場合でもよく、ある
いはそれ以上のドットが連続した場合に検出するように
してもよい。このような処理により、例えば1mm以下
のものはマーカとして認識しないようにすることができ
る。また、図14(b)に示すように、副走査方向に対
しても、FIFO105,106で1ラインづつずらし
、複数ライン連続した時に出力がとれるようにする。 このようにすることにより、例えば副走査方向1mm以
下のマーカは拾わないようにすることができる。
Next, noise removal and connection correction will be explained. For example, in a single point instruction mode, it is undesirable to recognize even small points such as dust. Therefore, in order to recognize only those larger than a certain size as markers, for example, as shown in FIG. AND circuit 100 when continuous
Detect and remove noise. Of course, the number of dots is not limited to three, and it may be possible to detect two or more consecutive dots. Through such processing, it is possible to prevent objects with a diameter of 1 mm or less from being recognized as markers, for example. Furthermore, as shown in FIG. 14(b), the FIFOs 105 and 106 are also shifted one line at a time in the sub-scanning direction so that an output can be obtained when a plurality of consecutive lines occur. By doing this, it is possible to avoid picking up markers that are 1 mm or less in the sub-scanning direction, for example.

【0035】また、自由型モード、塗りつぶしモード、
矩形モードの場合には1mm以下のマーカを認めないと
すると、太いマーカを用意しなければならない。そこで
、図14(c)に示すように、主走査方向に対してはラ
ッチ回路111,112で1画素づつずらし、OR回路
110で、例えば3画素のORをとるようにし、また、
副走査方向については図14(d)に示すようにFIF
O115,116で1ラインづつずらし、数ラインのO
Rをとることにより、1mm以下の細いマーカも認識さ
せることが可能となる。このように本発明においては、
領域認識回路の入出力部でARモードに応じて補正方法
を変え、モードに適した入力補正を行うようにする。
[0035] Also, free type mode, fill mode,
In the case of rectangular mode, if markers smaller than 1 mm are not allowed, thick markers must be prepared. Therefore, as shown in FIG. 14(c), in the main scanning direction, the latch circuits 111 and 112 shift one pixel at a time, and the OR circuit 110 performs the OR of three pixels, for example.
Regarding the sub-scanning direction, as shown in FIG. 14(d), the FIF
Shift one line at a time with O115 and 116, and move several lines of O
By taking R, it becomes possible to recognize even a thin marker of 1 mm or less. In this way, in the present invention,
The correction method is changed depending on the AR mode at the input/output section of the area recognition circuit, so that input correction suitable for the mode is performed.

【0036】ところで、図15(a)に示すように、マ
ーカで閉ループ領域を指定したつもりでも、マーカの下
に黒画像データがある場合、黒画像データ上はAR色が
検出できず、その結果図15(b)に示すように、マー
カがとぎれてしまい不完全な閉ループとなって領域の検
出ができない場合が生ずる。そのため、自由型モード、
塗りつぶしモード、矩形モードの場合に図14(c),
(d)のOR回路を用い、単純に1mm分のORをとる
ことにより、AR色データの断線を補正するようにする
By the way, as shown in FIG. 15(a), even if you intend to specify a closed loop area with a marker, if there is black image data under the marker, the AR color cannot be detected on the black image data, and as a result, As shown in FIG. 15(b), there are cases in which the marker is broken and an incomplete closed loop is formed, making it impossible to detect the region. Therefore, free type mode,
Figure 14(c) in case of fill mode and rectangle mode,
The disconnection of the AR color data is corrected by simply calculating the OR for 1 mm using the OR circuit in (d).

【0037】次に自由型モードの判定アルゴリズムにつ
いて説明する。自由型モードはAR色は入力された領域
およびAR色による閉ループ領域を検出するもので、複
数のAR色が隣接、交差する場合には最も外側のAR色
データで閉ループを検出する。例えば、図16(a)の
ようなAR色データがあった場合、まずプリスキャンの
フォワードスキャンで、図16(b)に示すように、粗
く領域を認識しページメモリに格納する。この場合、主
走査方向、反主走査方向、副走査方向の3方向から見て
AR色に囲まれている領域を検出するが、3方向から見
てAR色の陰になる所は領域の内部と誤判定してしまう
。しかし、プリスキャンのバックスキャン時に、前述し
たようにフォワード時の判定結果をページメモリから読
み出し、反副走査方向から見た判定を再度行い領域の内
部/外部を決定することにより、AR色の陰の部分の誤
判定が解消される。しかし、プリスキャンの判定精度は
1mm単位の粗いものであるので、そのまま出力せず、
コピースキャン時の細かな間隔の読み取りデータと突き
合わせ、これで判定することにより図16(d)に示す
ような精細な領域認識を行うことができる。
Next, the free type mode determination algorithm will be explained. In the free type mode, the input AR color and the closed loop region of the AR color are detected. When a plurality of AR colors are adjacent or intersect, the closed loop is detected using the outermost AR color data. For example, if there is AR color data as shown in FIG. 16(a), first, in a forward scan of the pre-scan, the area is roughly recognized and stored in the page memory as shown in FIG. 16(b). In this case, an area surrounded by AR color is detected when viewed from three directions: main scanning direction, anti-main scanning direction, and sub-scanning direction, but the area that is shaded by AR color when viewed from three directions is inside the area. I made a wrong judgment. However, during the backscan of the pre-scan, the judgment result at the forward time is read out from the page memory as described above, and the judgment as seen from the anti-sub-scanning direction is performed again to determine the inside/outside of the area. The misjudgment in the part is eliminated. However, since the judgment accuracy of prescan is rough on the order of 1 mm, it is not output as is,
By comparing this with the read data at fine intervals during the copy scan and making a determination based on this, it is possible to perform fine area recognition as shown in FIG. 16(d).

【0038】自由型モードの判定の演算則は、図17(
a)に示すように、1ライン前の2次判定結果のステー
タス「O」(閉ループ外)、「M」(AR色上)、「I
」(AR色上を除く閉ループ内)と1画素左の1次判定
結果のステータス「O」、「M」、「I」の組合せで、
図17(b)に示すように、1画素隣の1次判定結果が
「O」、1ライン前の同一位置の判定結果が「M」の場
合には判定画素は「O」とし、図17(c)に示すよう
に1ライン前の判定結果が「M」、1画素隣の1次判定
結果が「M」の場合には判定画素は「I」、また1ライ
ン前の判定結果が「I」、1画素隣の1次判定結果が「
I」の場合には判定画素は「I」、1ライン前の判定結
果が「O」、1画素隣の1次判定結果が「O」または「
M」の場合には判定画素は「O」というようにして、判
定画素のステータスを順次決定していく。
The operation rule for determining the free type mode is shown in FIG. 17 (
As shown in a), the status of the secondary judgment result one line before is “O” (outside the closed loop), “M” (on AR color), “I
” (in a closed loop excluding the top of the AR color) and the status “O”, “M”, and “I” of the primary judgment result of one pixel to the left,
As shown in FIG. 17(b), if the primary judgment result of one pixel adjacent is "O" and the judgment result of the same position one line before is "M", the judgment pixel is set as "O". As shown in (c), if the judgment result of one line before is "M" and the primary judgment result of one pixel next to it is "M", the judgment pixel is "I", and the judgment result of one line before is " I”, the primary judgment result of one pixel adjacent is “
In the case of “I”, the judgment pixel is “I”, the judgment result of one line before is “O”, and the primary judgment result of the next pixel is “O” or “
In the case of "M", the determination pixel is set to "O", and the status of the determination pixel is determined one by one.

【0039】この自由型モードの判定演算は図18(a
)〜(e)に示すような表を用いる。
The determination calculation for this free type mode is shown in FIG. 18(a).
) to (e) are used.

【0040】・プリスキャンのフォワードスキャン時1
次判定の場合にはAR色データ=1、すなわちマーカ上
のデータが入ってきた時には図18(a)の演算表を用
い、1ライン前の2次判定結果のステータス、1画素左
の1次判定結果のステータスが「O」、「M」、「I」
の何れであろうとも、判定画素のステータスを「M」と
する演算が行われる。またAR色データ=0の場合、す
なわちマーカ色が検出されなかった場合には図18(b
)の演算表により1ライン前の2次判定結果が「O」、
または1画素左の1次判定結果のステータスが「O」の
場合には判定画素は「O」とし、それ以外の1ライン前
の2次判定結果のステータス、1画素左の1次判定結果
のステータスが「M」または「I」の場合には判定画素
は「I」と判定する。従って1ライン前あるいは1画素
左が閉ループの外である場合には判定画素は必ず外とい
うことになる。
- At the time of forward scan of pre-scan 1
In the case of the next judgment, the AR color data = 1, that is, when the data on the marker comes in, the calculation table of Fig. 18(a) is used, and the status of the secondary judgment result one line before, the primary one pixel left The status of the judgment result is "O", "M", "I"
In either case, an operation is performed to set the status of the determined pixel to "M". In addition, when AR color data = 0, that is, when no marker color is detected, Fig. 18(b)
), the secondary judgment result of one line before is “O”,
Or, if the status of the primary judgment result one pixel to the left is “O”, the judgment pixel is set to “O”, and the status of the secondary judgment result one line before, and the primary judgment result one pixel left When the status is "M" or "I", the determination pixel is determined to be "I". Therefore, if one line before or one pixel to the left is outside the closed loop, the determination pixel is always outside.

【0041】また、2次判定の場合には図18(e)の
演算表が用いられる。2次判定は反主走査方向に判定を
行うので、1画素右の2次判定結果のステータスと判定
画素の1次判定結果のステータスとから判定し、判定画
素の1次判定結果のステータスが「O」であれば、1画
素右の2次判定結果のステータスのいかんにかかわらず
、判定画素は「O」とし、また判定画素の1次判定結果
のステータスが「M」である場合には1画素右の2次判
定結果のステータスにかかわらず「M」としている。 ただし、1画素右の2次判定結果のステータスが「O」
である場合には、判定画素の1次判定結果のステータス
が「I」であっても「O」と書換える。
Further, in the case of secondary determination, the calculation table shown in FIG. 18(e) is used. Since the secondary judgment is performed in the anti-main scanning direction, it is determined based on the status of the secondary judgment result of one pixel to the right and the status of the primary judgment result of the judgment pixel, and the status of the primary judgment result of the judgment pixel is " If it is "O", the judgment pixel is set as "O" regardless of the status of the secondary judgment result one pixel to the right, and if the status of the primary judgment result of the judgment pixel is "M", it is set as 1. It is set as "M" regardless of the status of the secondary determination result on the right side of the pixel. However, the status of the secondary judgment result of one pixel to the right is "O"
In this case, even if the status of the primary determination result of the determined pixel is "I", it is rewritten as "O".

【0042】・プリスキャンのバックスキャン時ページ
メモリに格納された判定結果を読み出して1次判定、2
次判定を行うことになる。まず1次判定ではページメモ
リの内容が「M」の場合には、図18(a)の演算表を
用い、ページメモリの内容が「I」の場合には図18(
b)の演算表を用い、ページメモリの内容が「O」の場
合には図18(c)の演算表を用いる。図18(a),
(b)についてはプリスキャンのフォワードスキャンの
場合と同じであるが、図18(c)の演算表では、ペー
ジメモリの内容が「O」である場合には1ライン前の2
次判定結果のステータス、1画素左の1次判定結果のス
テータスにかかわらず「O」にすることになる。従って
、プリスキャンのフォワードスキャンで「O」と判定さ
れた画素はプリスキャンのバックスキャンでも必ず「O
」と判定されることになる。2次判定はフォワードスキ
ャンの場合と同じように図18(e)の演算表を用いる
- At the time of backscan of pre-scan, the judgment result stored in the page memory is read and the first judgment is carried out;
The next decision will be made. First, in the first judgment, if the content of the page memory is "M", the operation table shown in FIG. 18(a) is used, and if the content of the page memory is "I",
The calculation table b) is used, and if the page memory content is "O", the calculation table shown in FIG. 18(c) is used. Figure 18(a),
Regarding (b), it is the same as the case of forward scan of pre-scan, but in the calculation table of FIG. 18(c), when the content of page memory is "O", the
Regardless of the status of the next determination result and the status of the primary determination result one pixel to the left, it is set to "O". Therefore, pixels that are determined to be "O" in the forward scan of the prescan are always "O" even in the back scan of the prescan.
”. The secondary determination uses the calculation table shown in FIG. 18(e) as in the case of forward scan.

【0043】・コピースキャンのフォワードスキャン時
1次判定ではAR色データが1、すなわちマーカ上のデ
ータが入ってきた時には、図18(a)の演算表を用い
てステータスを必ず「M」とし、AR色データが0、す
なわちマーカ色がなく、かつページメモリの内容が「M
」で画像データが1の場合には図18(d)の演算表を
用い、1ライン前の2次判定結果のステータス、1画素
左の1次判定結果のステータスがともに「O」の場合の
み「O」とし、それ以外は「M」とする。また、AR色
データが0でページメモリの内容が「M」、かつ画像デ
ータ=0の場合には図18(b)の演算表を用い、1ラ
イン前の2次判定結果が「O」、または1画素左の1次
判定結果のステータスが「O」の場合のみ判定画素は「
O」とし、それ以外の1ライン前の2次判定結果のステ
ータス、1画素左の1次判定結果のステータスが「M」
または「I」の場合には判定画素は「I」と判定する。 AR色データ=0でページメモリの内容が「I」の場合
にも図18(b)の演算表を用い、AR色データ=0で
ページメモリの内容が「O」の場合には図18(c)の
演算表を用いて全て「O」とする。2次判定の場合には
プリスキャンの場合と同様図18(e)の演算表を用い
る。
- In the primary judgment during forward scanning of copy scanning, when the AR color data is 1, that is, when data on the marker is received, the status is always set to "M" using the calculation table of FIG. 18(a), The AR color data is 0, that is, there is no marker color, and the page memory contents are “M
'' and the image data is 1, use the calculation table in Figure 18(d), and only when the status of the secondary judgment result one line before and the status of the primary judgment result one pixel to the left are both "O". "O", otherwise "M". In addition, if the AR color data is 0, the page memory content is "M", and the image data is 0, using the calculation table in FIG. 18(b), the secondary judgment result of one line before is "O", Or, only when the status of the primary judgment result of one pixel to the left is “O”, the judgment pixel is “
"O", and the status of the other secondary judgment results one line before and the status of the primary judgment results one pixel to the left are "M".
Alternatively, in the case of "I", the determination pixel is determined to be "I". The calculation table in FIG. 18(b) is also used when the AR color data = 0 and the content of the page memory is "I", and when the AR color data = 0 and the content of the page memory is "O", the calculation table in FIG. Set all to "O" using the calculation table in c). In the case of secondary determination, the calculation table shown in FIG. 18(e) is used as in the case of prescan.

【0044】図19は塗りつぶしモードの判定アルゴリ
ズムを説明するためのものである。塗りつぶしモードで
はAR色データ領域およびAR色データによって囲まれ
た黒または赤画像データ領域をAR色によって塗りつぶ
された領域とし、例えば図19(a)に示すように、画
像データをAR色データで塗りつぶすと、図19(b)
に示すような領域が認識される。この場合マーカによっ
て塗りつぶされた領域というのはマーカ色を検出した領
域とは異なり、例えば黒画像の上を青マーカで塗りつぶ
したつもりでもやはり黒画像上は黒としか検出されず、
色画像の上を青マーカで塗りつぶした場合に検出される
色は青なのか、元の原稿画像の色なのかマーカと原稿画
像の合成色なのか分からない。そのため、塗りつぶしモ
ード時はAR色データ領域およびAR色データによって
囲まれた黒または赤画像データ領域をAR色によって塗
りつぶされた領域としている。この場合自由型モードで
検出すると図19(c)のように認識され、これと画像
データとのANDをとると図19(d)のようになるが
、塗りつぶしモードはこのような検出とは異なっている
ことが分かる。
FIG. 19 is for explaining the filling mode determination algorithm. In fill mode, the AR color data area and the black or red image data area surrounded by the AR color data are filled with AR color, and the image data is filled with AR color data, for example, as shown in FIG. 19(a). and Figure 19(b)
The area shown in is recognized. In this case, the area filled in by the marker is different from the area where the marker color was detected. For example, even if you intend to fill in a black image with a blue marker, only black will be detected on the black image,
When a color image is filled with a blue marker, it is unclear whether the detected color is blue, the color of the original document image, or the composite color of the marker and document image. Therefore, in the fill mode, the AR color data area and the black or red image data area surrounded by the AR color data are filled with the AR color. In this case, if detected in free type mode, it will be recognized as shown in Figure 19(c), and if this is ANDed with the image data, it will be recognized as shown in Figure 19(d), but fill mode is different from such detection. I can see that

【0045】塗りつぶしモードの判定の演算則ではAR
色上を「M」、塗りつぶし領域内(AR色上を除く)を
「I」、塗りつぶし領域外を「O」としてステータスを
定義し、自由型モードと同様に図18の演算表を用いて
判定を行う。
In the calculation rule for determining the fill mode, AR
Define the status as "M" for the top of the color, "I" for inside the filled area (excluding the top of the AR color), and "O" for outside the filled area, and use the calculation table in Figure 18 to determine the status as in the free type mode. I do.

【0046】・プリスキャンのフォワードスキャン時1
次判定においてはAR色データ=1の場合、図18(a
)の演算表、AR色データ=0で画像データ=1の場合
、図18(b)の演算表、AR色データ=0で画像デー
タ=0の場合、図18(c)の演算表を用いる。2次判
定は図18(e)の演算表を用いる。
- At the time of forward scan of pre-scan 1
In the next determination, if AR color data = 1, FIG. 18 (a
), if AR color data = 0 and image data = 1, use the calculation table in Figure 18(b); if AR color data = 0 and image data = 0, use the calculation table in Figure 18(c) . The calculation table shown in FIG. 18(e) is used for the secondary determination.

【0047】・プリスキャンのバックスキャン時1次判
定ではページメモリの内容が「M」の場合、図18(a
)の演算表、ページメモリの内容が「I」の場合図18
(b)の演算表、ページメモリの内容が「O」の場合図
18(c)の演算表を用いる。2次判定は図18(e)
の演算表を用いる。
・If the content of the page memory is "M" in the primary determination during backscan of prescan, then FIG. 18(a)
) operation table, when the page memory content is “I” Figure 18
When the content of the page memory is "O", the calculation table shown in FIG. 18(c) is used. The secondary judgment is shown in Fig. 18(e).
Use the calculation table.

【0048】・コピースキャンのフォワードスキャン時
1次判定ではAR色データ=1の場合図18(a)の演
算表、AR色データ=0で画像データ=1、ページメモ
リの内容が「M」の場合、図18(d)の演算表を用い
、AR色データ=0で画像データ=1、かつページメモ
リの内容が「I」の場合、図18(b)の演算表、AR
色データ=0で画像データ=1、ページメモリの内容が
「O」の場合は図18(c)の演算表、AR色データ=
0で画像データ=0の場合は図18(c)の演算表用い
る。2次判定は図18(e)の演算表を用いる。
- In the primary judgment during forward scanning of copy scanning, when AR color data = 1, the operation table in Figure 18 (a), AR color data = 0, image data = 1, and the page memory contents are "M". If the AR color data = 0, the image data = 1, and the content of the page memory is "I", use the calculation table of FIG. 18(d), and use the calculation table of FIG. 18(b).
If color data = 0, image data = 1, and the page memory content is "O", the calculation table in Figure 18(c), AR color data =
If the image data is 0, the calculation table shown in FIG. 18(c) is used. The calculation table shown in FIG. 18(e) is used for the secondary determination.

【0049】図20は矩形モードの判定アルゴリズムを
説明するためのものである。矩形モードの場合は、フォ
ワードスキャンによってのみ検出できる矩形領域と、バ
ックスキャンによってのみ検出できる矩形領域が異なる
ため、ページメモリが必ず必要となる。すなわち、図2
0(a)のようなAR色データが検出された場合、プリ
スキャンのフォワードスキャンで図20(b)の斜線で
示すような領域が認識され、その判定結果をさらにバッ
クスキャン方向から再度領域の内部/外部を決定するこ
とにより、図20(d)のような斜線の領域が決定され
る。しかし、この領域は前述したように、プリスキャン
の判定精度は粗いのでそのまま出力せず、コピースキャ
ンのフォワードスキャン時の取り込んだデータで、図2
0(d)の判定結果を補正し、図20(c)に示すよう
な精細な領域判定が行われる。
FIG. 20 is for explaining the rectangular mode determination algorithm. In the case of rectangular mode, a page memory is always required because rectangular areas that can be detected only by forward scanning and rectangular areas that can only be detected by back scanning are different. That is, Figure 2
When AR color data such as 0(a) is detected, the area shown by diagonal lines in Figure 20(b) is recognized in the forward scan of the pre-scan, and the determination result is further applied to the area from the backscan direction. By determining the inside/outside, the shaded area as shown in FIG. 20(d) is determined. However, as mentioned above, the judgment accuracy of pre-scanning is poor in this area, so it is not output as is, but the data captured during forward scanning of copy scanning is used as shown in Figure 2.
The determination result of 0(d) is corrected, and a fine region determination as shown in FIG. 20(c) is performed.

【0050】この矩形モードの判定アルゴリズムは、4
つのステータスが定義され、AR色上を「M」、矩形領
域内(AR色上を除く)を「I」、矩形領域外を「O」
、「I」になる可能性のある「O」(1次判定でのみ存
在し、2次判定で「O」か「I」に決定される)を「O
´」として定義し、図21に示すような演算表を用いて
判定を行う。
The rectangular mode determination algorithm is as follows:
Three statuses are defined: "M" for on the AR color, "I" for inside the rectangular area (excluding on the AR color), and "O" for outside the rectangular area.
, "O" that has the possibility of becoming "I" (exists only in the first judgment, and is determined as "O" or "I" in the second judgment) is changed to "O".
'' and the determination is made using an arithmetic table as shown in FIG.

【0051】・プリスキャンのフォワードスキャン時1
次判定では、AR色データ=1の場合は図21(a)の
演算表が用いられ、1ライン前の2次判定結果のステー
タス、1画素左の1次判定結果のステータスに拘わらず
、判定画素は「M」とされる。またAR色データ=0の
場合には、図21(b)に示す演算表が用いられ、1ラ
イン前の2次判定結果のステータスが「O」の場合には
1画素左の1次判定結果のステータスに拘わらず「O」
と判定され、1ライン前の2次判定結果のステータスが
「M」,「I」、1画素左の1次判定結果のステータス
が「O」、「O´」の場合には「O´」と判定され、1
ライン前の2次判定結果のステータスが「M」,「I」
、1画素左の1次判定結果のステータスが「M」,「I
」の場合には判定画素は「I」となる。
・Forward scan of prescan 1
In the next judgment, when AR color data = 1, the calculation table shown in Fig. 21(a) is used, and regardless of the status of the secondary judgment result one line before and the status of the primary judgment result one pixel to the left, the judgment The pixel is designated as "M". In addition, when AR color data = 0, the calculation table shown in FIG. “O” regardless of the status of
If the status of the secondary determination result one line before is "M", "I", and the status of the primary determination result one pixel to the left is "O", "O'", "O'" is determined. It was determined that 1
The status of the secondary judgment result before the line is "M", "I"
, the status of the primary judgment result of one pixel to the left is "M", "I"
”, the judgment pixel is “I”.

【0052】そして、2次判定では図21(e)の演算
表が使用され、「O´」と判定された領域が「O」又は
「I」と書換えられ、図20(b)のような領域が2次
判定で確定する。
[0052] Then, in the secondary judgment, the operation table shown in Fig. 21(e) is used, and the area judged as "O'" is rewritten as "O" or "I", and the area as shown in Fig. 20(b) is rewritten. The area is determined by secondary determination.

【0053】・プリスキャンのバックスキャン時1次判
定において、ページメモリの内容が「M」の場合、図2
1(a)の演算表が使用され、ページメモリの内容が「
I」の場合には図21(c)の演算表が使用される。図
21(c)の演算表では1画素左の1次判定結果のステ
ータスが「I」であれば、1ライン前の2次判定結果の
ステータスに拘わらず「I」となり、図20(b)で矩
形領域の欠けた部分(「O」)が「I」と書換えられる
。また、ページメモリの内容が「O」の場合には、図2
1(b)の演算表が用いられる。2次判定の場合には同
様に図21(e)の演算表が用いられる。
・If the content of the page memory is "M" in the primary determination during backscan of prescan, then FIG.
1(a) is used, and the contents of the page memory are
In the case of "I", the operation table shown in FIG. 21(c) is used. In the operation table of FIG. 21(c), if the status of the primary determination result one pixel to the left is "I", it becomes "I" regardless of the status of the secondary determination result one line before, and as shown in FIG. 20(b) The missing part ("O") of the rectangular area is rewritten as "I". In addition, if the content of the page memory is "O",
1(b) is used. In the case of secondary determination, the calculation table shown in FIG. 21(e) is similarly used.

【0054】・コピースキャンのフォワードスキャン時
1次判定ではAR色データ=1で、ページメモリの内容
が「M」または「I」の場合には、図21(a)の演算
表を用いて判定画素を全て「M」とし、AR色データ1
でページメモリの内容が「O」の場合には、図21(d
)の演算表が用いられ、1画素左の1次判定結果のステ
ータスに拘わらず1ライン前2次判定結果のステータス
に応じて「O」の場合は「O」、「M」の場合は「M」
、「I」の場合は「M」に置き換える判定を行う。また
AR色データ=0でページメモリが「M」または「I」
の場合は図21(c)の演算表が用いられ、また、AR
色データが0でページメモリ「O」の場合は図21(b
)の演算表が用いられる。2次判定の場合は同様に図2
1(e)の演算表が用いられる。
- In the primary judgment during forward scanning of copy scanning, if AR color data = 1 and the content of the page memory is "M" or "I", judgment is made using the calculation table shown in FIG. 21(a). All pixels are "M", AR color data 1
If the content of the page memory is "O" in Figure 21 (d
) calculation table is used, and regardless of the status of the primary determination result of one pixel to the left, if it is "O", it will be "O", if it is "M", it will be " M”
, in the case of "I", a determination is made to replace it with "M". Also, if AR color data = 0, the page memory is "M" or "I".
In the case of AR
If the color data is 0 and the page memory is “O”, the
) calculation table is used. Similarly, in the case of secondary judgment, see Figure 2.
1(e) is used.

【0055】図22は1点指示モードの判定アルゴリズ
ムを説明するためのものである。1点指示モードでは、
画像の2値化データで閉ループを検出し、その閉ループ
内においてAR色データと隣接する白画像領域と、AR
色領域とを領域内部として検出するものである。1点指
示モードの場合も矩形モードの場合と同様にフォワード
スキャンによってのみ検出できる領域と、バックスキャ
ンによってのみ検出できる領域が異なるため、ページメ
モリを必要とし、フォワードスキャンでの判定結果をバ
ックスキャン方向から再度判定することにより領域の内
/外を決定する。すなわち図22(a)に示すように閉
ループの画像データの中にAR色が存在する場合、フォ
ワードスキャンにより図22(b)に示すように画像デ
ータとAR色とで決められる斜線の領域をまず認識し、
次にバックスキャンの判定により図22(b)の白の領
域が領域内部として検出されて図22(d)に示すよう
な領域が決定される。そして、コピースキャンのフォワ
ードスキャンにおいて、プリスキャンの判定結果を補正
し、図22(c)に示すように精細な領域が決定される
FIG. 22 is for explaining the determination algorithm for the one-point instruction mode. In one point instruction mode,
A closed loop is detected in the binary data of the image, and within the closed loop, the white image area adjacent to the AR color data and the AR
The color area is detected as being inside the area. In the case of single-point indication mode, as in the case of rectangular mode, there are different areas that can be detected only by forward scan and areas that can only be detected by back scan, so a page memory is required, and the judgment result of forward scan is transferred in the back scan direction. The inside/outside of the area is determined by re-judging from the above. In other words, when an AR color exists in the closed-loop image data as shown in FIG. 22(a), the diagonal area determined by the image data and the AR color is first detected by forward scanning as shown in FIG. 22(b). Recognized,
Next, by backscan determination, the white area in FIG. 22(b) is detected as inside the area, and an area as shown in FIG. 22(d) is determined. Then, in the forward scan of the copy scan, the determination result of the pre-scan is corrected, and a fine area is determined as shown in FIG. 22(c).

【0056】1点指示モードの場合に定義されるステー
タスは、画像閉ループ内でAR色を含む領域を「I」、
画像領域を「M」、画像閉ループ外領域を「O」、画像
閉ループ内だがAR色は含まない領域を「O´」として
定義し、図23に示す演算表を用いて判定を行う。
[0056] The status defined in the case of the one-point instruction mode is "I" for the area containing the AR color within the image closed loop;
The image area is defined as "M", the area outside the image closed loop is defined as "O", and the area inside the image closed loop but not including the AR color is defined as "O'", and the determination is made using the calculation table shown in FIG. 23.

【0057】・プリスキャンのフォワードスキャン時1
次判定では画像データ=1の場合、図23(a)の換算
表が用いられ、全て判定画素が「M」とされる。画像デ
ータ=0で、AR色データ=1の場合には、図23(b
)の演算表が用いられ、1ライン前の2次判定結果のス
テータス、1画素左の1次判定結果のステータスのいず
れかが「O」でない限り判定画素は「I」とされる。画
像データ=0でAR色データ=0の場合は図23(c)
の演算表が用いられ、1ライン前の2次判定結果のステ
ータスが「I」の場合には1画素左の1次判定結果のス
テータスが「O」でない限り判定画素は「I」となり、
また1画素左の1次判定結果のステータスが「I」であ
れば1ライン前の2次判定結果のステータスが「O」で
ない限り「I」となる判定を行う。2次判定の場合には
図23(d)の演算表が用いられる。
・Forward scan of prescan 1
In the next determination, when image data=1, the conversion table shown in FIG. 23(a) is used, and all determination pixels are set to "M". When image data = 0 and AR color data = 1, the image data shown in Fig. 23 (b
) is used, and unless either the status of the secondary determination result one line before or the status of the primary determination result one pixel to the left is "O", the determined pixel is set to "I". When image data = 0 and AR color data = 0, the image is shown in Fig. 23(c).
When the status of the secondary judgment result one line before is "I", the judgment pixel becomes "I" unless the status of the primary judgment result one pixel to the left is "O",
Further, if the status of the primary determination result one pixel to the left is "I", the determination is made to be "I" unless the status of the secondary determination result one line before is "O". In the case of secondary determination, the calculation table shown in FIG. 23(d) is used.

【0058】・プリスキャンのバックスキャン時1次判
定においてはページメモリの内容が「M」の場合、図2
3(a)の演算表が用いられ、全て判定画素は「M」と
され、ページメモリが「I」の場合には図23(b)の
演算表が用いられ、ページメモリ「O」の場合には図2
3(c)の演算表が用いられる。2次判定は図23(d
)の演算表が同様に用いられる。2次判定の場合には図
23(d)の演算表が用いられる。
・If the content of the page memory is "M" in the primary determination during backscan of prescan, then FIG.
23(a) is used, and all judgment pixels are set to "M", and when the page memory is "I", the calculation table of FIG. 23(b) is used, and when the page memory is "O", the calculation table is used. Figure 2
3(c) is used. The secondary judgment is shown in Figure 23 (d
) calculation table is similarly used. In the case of secondary determination, the calculation table shown in FIG. 23(d) is used.

【0059】・コピースキャンのフォワードスキャン時
1次判定において、画像データ=1の場合には図23(
a)の演算表が用いられて全て判定画素は「M」とされ
、画像データ=0でページメモリの内容が「I」の場合
には図23(b)の演算表が用いられて、1ライン前の
2次判定結果のステータスが「O」、1画素左の1次判
定結果のステータスが「O」の場合以外は全て判定画素
は「I」とされる。また、画像データ=0でページメモ
リが「I」でない場合には図23(c)が用いられ、1
ライン前の2次判定結果のステータスが「I」であれば
、1画素左の1次判定結果のステータスが「O」でない
限り判定画素は「I」となり、1画素左の1次判定結果
のステータスが「I」であれば、1ライン前の2次判定
結果のステータスが「O」でない限り判定画素は「I」
とされる。2次判定の場合には図23(d)の演算表が
用いられる。
・In the primary judgment at the time of forward scan of copy scan, if image data = 1, the result shown in FIG. 23 (
The arithmetic table in a) is used and all the pixels to be determined are set to "M", and when the image data = 0 and the content of the page memory is "I", the arithmetic table in FIG. All determined pixels are set to "I" except when the status of the secondary determination result before the line is "O" and the status of the primary determination result one pixel to the left is "O". Furthermore, when the image data = 0 and the page memory is not "I", FIG. 23(c) is used, and 1
If the status of the secondary judgment result before the line is “I”, the judgment pixel becomes “I” unless the status of the primary judgment result one pixel to the left is “O”, and the status of the primary judgment result one pixel to the left is “I”. If the status is "I", the judgment pixel is "I" unless the status of the secondary judgment result one line before is "O".
It is said that In the case of secondary determination, the calculation table shown in FIG. 23(d) is used.

【0060】このように本発明においては複数のARモ
ードが備えられ、それらはアルゴリズムを変更(演算表
の選択)するだけで任意に選択でき、また2つの指定色
に対して独立に領域認識でき、それぞれの指定色に対し
て別々の領域認識モードを選択することができるので、
例えば第1AR色を青として自由型モードとし、第2A
R色を緑として矩形モードとすること等が可能である。
[0060] In this way, the present invention is provided with a plurality of AR modes, which can be arbitrarily selected by simply changing the algorithm (selecting the calculation table), and can independently recognize areas for two specified colors. , you can select a separate area recognition mode for each specified color, so
For example, if the 1st AR color is blue and the free type mode is selected, the 2nd AR color is set to blue.
It is possible to set the R color to green and set the rectangular mode.

【0061】[0061]

【発明の効果】以上のように本発明によれば、認識すべ
き矩形の領域の個数は無制限になり、Y方向に複数並ん
だものを別々に認識でき、ハード構成のラッチ回路を不
用とし、従来の閉ループ認識の回路の大部分を兼用し、
アルゴリズムを矩形認識用に切り換えるだけで矩形領域
認識を可能にし、コストを低減化することができる。
As described above, according to the present invention, the number of rectangular areas to be recognized is unlimited, a plurality of rectangular areas lined up in the Y direction can be recognized separately, and a hardware latch circuit is not required. Most of the conventional closed-loop recognition circuit is also used,
By simply switching the algorithm to one for rectangular recognition, rectangular area recognition is possible and costs can be reduced.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の領域認識回路の構成を示す図である。FIG. 1 is a diagram showing the configuration of an area recognition circuit according to the present invention.

【図2】本発明が適用される全体の構成を示すブロック
図である。
FIG. 2 is a block diagram showing the overall configuration to which the present invention is applied.

【図3】領域認識回路と編集・加工回路との具体的な構
成を示す図である。
FIG. 3 is a diagram showing a specific configuration of an area recognition circuit and an editing/processing circuit.

【図4】領域認識回路の構成を示す図である。FIG. 4 is a diagram showing the configuration of an area recognition circuit.

【図5】図4のARイネーブル回路のブロック図である
FIG. 5 is a block diagram of the AR enable circuit of FIG. 4;

【図6】ARモードを説明するための図である。FIG. 6 is a diagram for explaining an AR mode.

【図7】プリスキャンのフォワードスキャン時における
処理を説明する図である。
FIG. 7 is a diagram illustrating processing during forward scan of prescan.

【図8】プリスキャンのバックスキャン時における処理
を説明する図である。
FIG. 8 is a diagram illustrating processing during backscan of prescan.

【図9】コピースキャンのフォワードスキャン時の処理
を説明する図である。
FIG. 9 is a diagram illustrating processing during forward scan of copy scan.

【図10】1次判定を説明する図である。FIG. 10 is a diagram illustrating primary determination.

【図11】2次判定を説明する図である。FIG. 11 is a diagram illustrating secondary determination.

【図12】副走査方向Mライン、主走査方向N番目の画
素の判定を説明する図である。
FIG. 12 is a diagram illustrating determination of an N-th pixel in an M line in the sub-scanning direction and an N-th pixel in the main scanning direction.

【図13】領域認識方法を説明する図である。FIG. 13 is a diagram illustrating a region recognition method.

【図14】入力補正を説明する図である。FIG. 14 is a diagram illustrating input correction.

【図15】連結補正を説明する図である。FIG. 15 is a diagram illustrating connection correction.

【図16】自由型モードを説明する図である。FIG. 16 is a diagram illustrating a free type mode.

【図17】判定方法を説明する図である。FIG. 17 is a diagram illustrating a determination method.

【図18】自由型モードで使用する演算表を示す図であ
る。
FIG. 18 is a diagram showing an operation table used in free type mode.

【図19】ぬりつぶしモードを説明する図である。FIG. 19 is a diagram illustrating a fill-in mode.

【図20】矩形モードを説明する図である。FIG. 20 is a diagram illustrating rectangular mode.

【図21】矩形モードで使用する演算表を示す図である
FIG. 21 is a diagram showing an operation table used in rectangular mode.

【図22】1点指示モードを説明する図である。FIG. 22 is a diagram illustrating a one-point instruction mode.

【図23】1点指示モードで使用する演算表を示す図で
ある。
FIG. 23 is a diagram showing an arithmetic table used in the one-point instruction mode.

【図24】従来の走査光学系及び領域認識について説明
する図である。
FIG. 24 is a diagram illustrating a conventional scanning optical system and area recognition.

【図25】従来のエディタパッドを説明する図である。FIG. 25 is a diagram illustrating a conventional editor pad.

【符号の説明】[Explanation of symbols]

1…制御手段、2…走査タイミング発生手段、3…矩形
領域認識手段、4…メモリ。
DESCRIPTION OF SYMBOLS 1...control means, 2...scan timing generation means, 3...rectangular area recognition means, 4...memory.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  読み取った画像データから色分離して
領域認識色データを取込み、領域認識を行う記録装置に
おいて、プリスキャンのフォワードスキャンとバックス
キャン、およびコピースキャンの各走査タイミングを発
生する走査タイミング発生手段と、走査タイミング信号
に同期して判定処理を実行する矩形領域認識手段とを備
え、前記矩形領域認識手段は、プリスキャンのフォワー
ドスキャンで領域認識色データを取り込んで領域判定し
ながら結果をメモリにセーブし、プリスキャンのバック
スキャンでメモリを再度逆方向から読み出して領域判定
しながら結果をメモリにセーブし、プリスキャンのフォ
ワードスキャンとバックスキャンにおける判定結果によ
り閉ループのマーカに外接する四角形の領域を認識する
ようにしたことを特徴とする記録装置の領域認識方式。
[Claim 1] Scan timing that generates each scan timing of forward scan, back scan of prescan, and copy scan in a recording device that performs color separation from read image data, captures area recognition color data, and performs area recognition. and a rectangular area recognition unit that executes a determination process in synchronization with a scanning timing signal, and the rectangular area recognition unit captures area recognition color data in a forward scan of a pre-scan, and outputs the result while determining the area. Save it in memory, read the memory from the reverse direction again in the backscan of the prescan, and save the result in the memory while judging the area. An area recognition method for a recording device characterized by recognizing an area.
【請求項2】  前記矩形領域認識手段は、さらにコピ
ースキャン時に領域認識色データを取り込み、取り込ん
だデータでプリスキャン時の判定結果を補正することを
特徴とする請求項1記載の領域認識方式。
2. The area recognition method according to claim 1, wherein said rectangular area recognition means further captures area recognition color data during copy scanning, and corrects determination results during pre-scanning using the captured data.
JP3008675A 1991-01-28 1991-01-28 Area recognizing system for recorder Pending JPH04356867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3008675A JPH04356867A (en) 1991-01-28 1991-01-28 Area recognizing system for recorder

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3008675A JPH04356867A (en) 1991-01-28 1991-01-28 Area recognizing system for recorder

Publications (1)

Publication Number Publication Date
JPH04356867A true JPH04356867A (en) 1992-12-10

Family

ID=11699510

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3008675A Pending JPH04356867A (en) 1991-01-28 1991-01-28 Area recognizing system for recorder

Country Status (1)

Country Link
JP (1) JPH04356867A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7164510B1 (en) 1998-09-17 2007-01-16 Canon Kabushiki Kaisha Image scanning apparatus and method, and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7164510B1 (en) 1998-09-17 2007-01-16 Canon Kabushiki Kaisha Image scanning apparatus and method, and storage medium
US7167285B2 (en) 1998-09-17 2007-01-23 Canon Kabushiki Kaisha Image scanning apparatus and method, and storage medium
US7548355B2 (en) 1998-09-17 2009-06-16 Canon Kabushiki Kaisha Image scanning apparatus and method, and storage medium

Similar Documents

Publication Publication Date Title
US4899227A (en) Image processing apparatus detecting the size or position of an information portion of an original
US4924509A (en) Image processing apparatus
JP3221085B2 (en) Parallel processing unit
US4786976A (en) Image processing apparatus
US7483176B2 (en) Image processing apparatus and method
GB2183961A (en) Image reading and/or recording apparatus with enlarging and reducing function
US4686577A (en) Original reading apparatus with positioning check
US5444543A (en) Method and apparatus for detecting a closed-loop area of an image
US6243500B1 (en) Image processing apparatus and method for erasing dirty spots in reproducing systems
EP0350919B1 (en) Color image processing apparatus
US5420703A (en) Color image processing system having multi-image processing capabilities
JPH04356867A (en) Area recognizing system for recorder
JP2985303B2 (en) Recording device area recognition method
JPH04356868A (en) Area recognizing system for recorder
JPH04339467A (en) Area recognition system for recorder
US5563711A (en) Image processing system capable of processing different types of information
US8009912B2 (en) Image-processing apparatus which has an image region distinction processing capability, and an image region distinction processing method
US5303068A (en) Image data processing apparatus for difference scanning methods
JP3179456B2 (en) Image editing device
JPH05328092A (en) Area recognition system for recorder
JPS6174453A (en) Picture display device
JPH0622159A (en) Picture reader
JP2728645B2 (en) Image magnification device
JP2697860B2 (en) Image processing device
JPH09321989A (en) Edge area detector