JPS62115973A - Picture processing method and its device - Google Patents

Picture processing method and its device

Info

Publication number
JPS62115973A
JPS62115973A JP61213321A JP21332186A JPS62115973A JP S62115973 A JPS62115973 A JP S62115973A JP 61213321 A JP61213321 A JP 61213321A JP 21332186 A JP21332186 A JP 21332186A JP S62115973 A JPS62115973 A JP S62115973A
Authority
JP
Japan
Prior art keywords
original
latch
document
image
data
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.)
Granted
Application number
JP61213321A
Other languages
Japanese (ja)
Other versions
JP2541937B2 (en
Inventor
Masanori Yamada
山田 昌敬
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Publication of JPS62115973A publication Critical patent/JPS62115973A/en
Application granted granted Critical
Publication of JP2541937B2 publication Critical patent/JP2541937B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To obtain a picture with the suitable picture quality by recording the desired area of an original, recognizing the occurrence frequency of a prescribed picture data in the area and generating a special signal based upon the occurrence frequency. CONSTITUTION:To read the picture information of the original 102 placed on an original platen 101, a line image pickup element 103 such as a CCD is used, the illuminating light from a light source 104 is reflected on the original 102 surface and image-formed on the image pickup element by a lens 108 through mirrors 105-107. The light source 104, the mirror 105 and mirrors 106 and 107 are shifted at the relative speed of 2:1. After the optical unit is reciprocated from the left edge to the right edge while the main scanning line perpendicular to a sub-scanning direction A in which the optical unit is shifted is read by the resolution of 16pel/mm by the image pickup element, the unit is returned to the left edge again and the scanning of one time is completed. Thus, since the original can be recognized based upon the effective picture, the original with the high accuracy can be discriminated.

Description

【発明の詳細な説明】 (技術分野) 本発明は画像処理、特に原稿画像の処理方法及び装置に
関する。
DETAILED DESCRIPTION OF THE INVENTION (Technical Field) The present invention relates to image processing, and particularly to a method and apparatus for processing original images.

(従来技術の説明) 画信号の2値化処理方式として原稿を予備走査して原稿
濃度を検知したり、2値化のためのスライスレベルを決
定しそれに基づいて読取画信号の2値化をする方式が知
られている。従来のこの方式は原稿台上の原稿領域以外
の不要な情報を含めた情報をもとにスライスレベルを決
定するために必ずしも最適な2値化は行なえなかった。
(Description of Prior Art) As a method of binarizing image signals, the original is pre-scanned to detect the density of the original, the slice level for binarization is determined, and the read image signal is binarized based on the slice level. A method to do this is known. This conventional method cannot necessarily perform optimal binarization because the slice level is determined based on information including unnecessary information other than the document area on the document table.

又スライスレベルの決定を原稿レベルの平均値や地肌レ
ベルに基づいて行っていたため、必ずしも最適な2値化
ではなかった。
Furthermore, since the slice level was determined based on the average value of the document level or the background level, binarization was not necessarily optimal.

(目的) 本発明の目的は、適正画質の画像を得るための画像処理
方式にあり、 又本発明の目的は、原稿領域内の必要にして有効な画像
情報に基づいて処理を実行する画像処理方式にある。
(Objective) The object of the present invention is to provide an image processing method for obtaining an image of appropriate image quality. It's in the method.

又本発明の他の目的は、読取データの所定レベルを認識
し、その発生頻度に基づいて処理を実行する画像処理方
式にある。
Another object of the present invention is an image processing method that recognizes a predetermined level of read data and executes processing based on the frequency of occurrence.

又本発明の他の目的は、読取画像処理に要する予備時間
を短縮できる画像処理方式にある。
Another object of the present invention is to provide an image processing method that can shorten the preliminary time required for read image processing.

又本発明は、原稿の大きさと原稿濃度の所定レベルの発
生頻度とを自動認識する原稿画像処理装置にある。
The present invention also resides in a document image processing apparatus that automatically recognizes the size of the document and the frequency of occurrence of a predetermined level of document density.

(実施例) 以下本発明の実施例を図面を参照して詳細に説明する。(Example) Embodiments of the present invention will be described in detail below with reference to the drawings.

第1図は本発明が適用できる原稿読取装置の概略図であ
る。原稿カバー110により押えられ、原稿台101上
に置かれた原稿102の画像情報を読取る為に、CCD
等のライン撮像素子103が使、用され、光源104か
らの照明光が原稿102面上で反射されて、ミラー10
5,106,107を介してレンズ108により撮像素
子103上に結像される。光源104゜ミラー105と
ミラー1.06. 10.7は2:1の相対速度で移動
するようになっている。この光学ユニットはDCサーボ
モータ109によってPLL制御をかけながら一定速度
で左から右へ移動する。この移動速度は往路では倍率に
応じて90 m m / s e cから360mm/
secまで可変であり、復路では常に630 m m/
secである。この光学ユニットの移動する副走査方向
Aに直交する主走査ラインを撮像素子により16 p 
e l / m mの解像度で読取りながら光学ユニッ
トを左端から右端まで往動させた後、再び左端まで復動
させて1回の走査を終える。尚原稿を移動させつつ読取
ることも可能で、それにより読取に要する総時間を短縮
できる。
FIG. 1 is a schematic diagram of a document reading device to which the present invention can be applied. In order to read the image information of the original 102 held by the original cover 110 and placed on the original table 101, a CCD is used.
A line image pickup device 103 such as
An image is formed on the image sensor 103 by the lens 108 through the lenses 5, 106, and 107. Light source 104° mirror 105 and mirror 1.06. 10.7 is adapted to move at a relative speed of 2:1. This optical unit moves from left to right at a constant speed while being subjected to PLL control by a DC servo motor 109. The moving speed varies from 90 mm/sec to 360 mm/sec depending on the magnification on the outward journey.
It is variable up to sec, and always 630 mm/m/m on the return trip.
sec. The main scanning line perpendicular to the sub-scanning direction A in which this optical unit moves is scanned by an image sensor at 16 p.
The optical unit is moved forward from the left end to the right end while reading at a resolution of el/mm, and then moved back to the left end to complete one scan. Note that it is also possible to read the original while moving it, thereby reducing the total time required for reading.

第2図に撮像素子103からの画信号を処理する回路の
概略のブロック図を示す。撮像素子103で読取られた
画信号VDはA/Dコンバータ201で6ビツトのデジ
タル信号に変換され、ラッチ202を介してサンプリン
グクロックSCLに同期してラッチ203.コンパレー
タ204・207.ラッチ205・208に送られる。
FIG. 2 shows a schematic block diagram of a circuit that processes image signals from the image sensor 103. The image signal VD read by the image sensor 103 is converted into a 6-bit digital signal by the A/D converter 201, and sent through the latch 202 to the latch 203. Comparators 204 and 207. It is sent to latches 205 and 208.

コンパレーク204ではラッチ202から送られてきた
6ビツトの画信号とラッチ203から送られてきたlク
ロック前の6ビツトの画信号を比較して、もしラッチ2
02から送られてきた新しい画信号の方が小さければ、
アンドゲート206ヘコンパレート出力を出す。アンド
ゲート206はコンパレータ204からのコンパレート
出力をサンプリングクロックSCLと同期させてラッチ
205へ送る。
The comparator 204 compares the 6-bit image signal sent from the latch 202 with the 6-bit image signal sent from the latch 203 l clock ago, and if the latch 202
If the new image signal sent from 02 is smaller,
A comparison output is output to the AND gate 206. AND gate 206 sends the comparison output from comparator 204 to latch 205 in synchronization with sampling clock SCL.

コンパレータ207ではラッチ202から送られてきた
6ビツトの画信号とラッチ203から送られてきたlク
ロック前の6ビツトの画信号を比較して、もしラッチ2
02から送られてきた新しい画信号の方が大きければア
ンドゲート209ヘコンパレート出力を出す。アンドゲ
ート209はコンパレータ207からのコンパレート出
力をサンプリングクロックSCLと同期させてラッチ2
08へ送る。
The comparator 207 compares the 6-bit image signal sent from the latch 202 with the 6-bit image signal sent from the latch 203 l clock ago, and if the latch 202
If the new image signal sent from 02 is larger, a comparison output is output to AND gate 209. The AND gate 209 synchronizes the comparison output from the comparator 207 with the sampling clock SCL and latches the latch 2.
Send to 08.

ラッチ205,208はコンパレート出力を受けると、
ラッチ202から送られてきた画信号をCPU21.1
へ送る。又、ラッチ205の画信号を再びコンパレータ
204.207に送り次の画信号と比較する。次の画信
号がより小であれば、ラッチ202はそのレベルに変更
され、ラッチ208は前のレベルを保持する。
When the latches 205 and 208 receive the comparator output,
The image signal sent from the latch 202 is sent to the CPU 21.1.
send to Also, the image signal from the latch 205 is sent to the comparators 204 and 207 again and compared with the next image signal. If the next picture signal is smaller, latch 202 is changed to that level and latch 208 holds the previous level.

又、アンドゲート206. 209にはコンパレート出
力とサンプリングクロックSCLの他に撮像素子103
からの画信号の有効区間を示すイネーブル信号ENが入
り、主走査ライン毎の所定区間の画信号のコンパレート
結果をラッチ205.208からCPU211に送るよ
うになっている。CPU21]は、主走査ライン同期信
号MSに同期してラッチ205,208からの画信号を
とりこむことで、ラッチ205からは主走査ラインの最
も低い濃度レベル(以下白ピークと呼ぶ)ラッチ206
からは最も高い濃度レベル(以下黒ピークと呼ぶ)を検
出できる。CPU211は各ライン毎に検出した白ピー
クと黒ピークをもとに後述するアルゴリズムでスライス
レベルを決・定し、コンパレータ210に送る。コンパ
レータ210ではラッチ203からの画信号とCPU2
11からのスライスレベルを比較し2値化信号VIDE
Oを生成する。尚コンパレータ210の代りに2値化出
力デ一タROMを設け、ラッチ205,208による認
識に基づいてROMのパターンをCPU211により選
択し、そのパターンをラッチ203からのデータにより
アドレスして対応する2値化データを出力させることも
できる。この場合ディザパターンを格納したROMによ
って中間調を2値で再現することが可能となる。信号V
IDEOは不図示のプリンタのラインメモリに記憶され
、レーザビーム等を変調してプリント像を得ることがで
き、又、MODEM変調して回線送信することができる
Also, and gate 206. In addition to the comparator output and the sampling clock SCL, the image sensor 103 is connected to the image sensor 209.
An enable signal EN indicating a valid section of the image signal is input, and the comparison result of the image signal in a predetermined section for each main scanning line is sent from the latch 205, 208 to the CPU 211. CPU 21] takes in the image signals from latches 205 and 208 in synchronization with the main scanning line synchronization signal MS, and from the latch 205 the lowest density level (hereinafter referred to as white peak) of the main scanning line is output to the latch 206.
From this point, the highest density level (hereinafter referred to as black peak) can be detected. The CPU 211 determines a slice level based on the white peak and black peak detected for each line using an algorithm described later, and sends the slice level to the comparator 210. In the comparator 210, the image signal from the latch 203 and the CPU 2
Compare the slice levels from 11 and generate a binary signal VIDE
Generate O. Note that a binarized output data ROM is provided in place of the comparator 210, and a pattern in the ROM is selected by the CPU 211 based on recognition by the latches 205 and 208, and the pattern is addressed by data from the latch 203 and the corresponding 2 Valued data can also be output. In this case, the ROM storing the dither pattern makes it possible to reproduce halftones in two values. signal V
The IDEO is stored in a line memory of a printer (not shown), and can obtain a printed image by modulating a laser beam or the like, or can be modulated by MODEM and transmitted over a line.

第3図は原稿読取装置(第1図)の原稿台101上に原
稿が置かれている状態を示す。この場合原稿台101上
の基準座標SPから主走査方向をX。
FIG. 3 shows a state in which a document is placed on the document table 101 of the document reading device (FIG. 1). In this case, the main scanning direction is X from the reference coordinates SP on the document table 101.

副走査方向をYとした時の4点の座標(X、、y+)。Coordinates (X,, y+) of four points when the sub-scanning direction is Y.

(X2.Y2)、(X3.Y3)、(X4.Y4)を光
学系を前走査して検出する。原稿の置かれている領域外
の画像データは必ず黒データになる様に、原稿カバー1
10(第1図)が鏡面処理されている。
(X2.Y2), (X3.Y3), and (X4.Y4) are detected by pre-scanning the optical system. Place the document cover 1 so that the image data outside the area where the document is placed will always be black data.
10 (FIG. 1) is mirror-finished.

前走査はガラス面全域を行うべく、主走査、副走査を行
う。
The pre-scanning includes main scanning and sub-scanning to cover the entire glass surface.

第4図の回路図に前記座標を検出する論理を示す。The circuit diagram of FIG. 4 shows the logic for detecting the coordinates.

前走査により2値化された画像データVIDEOはシフ
ト・レジスタ301に8ビット単位で入力される。8ビ
ツト入力が完了した時点で、ゲート回路302は8ビツ
トデータの全てが白画像かのチェックを行い、Yesな
らば信号ライン303に1を出力する。原稿走査開始後
、最初の8ビツト白が現われた時F/F304がセット
する。こ(7)F/FはVSYNC(画像先端信号で原
稿を走査開始する位置検知により発生する)によって予
めリセットされている。
The image data VIDEO that has been binarized by the previous scan is input to the shift register 301 in units of 8 bits. When the 8-bit input is completed, the gate circuit 302 checks whether all of the 8-bit data is a white image, and if YES, outputs 1 to the signal line 303. After starting scanning the original, the F/F 304 is set when the first 8-bit white appears. (7) F/F is reset in advance by VSYNC (generated by detecting the position at which scanning of the original starts using the image leading edge signal).

以後、次のVSYNCの来るまでセットし放しである。After that, it is left set until the next VSYNC comes.

F/F304がセットした時点でラッチF/F305に
その時の主走査カウンタ351(サンプルクロックをダ
ウンカウントし、H3YNCでリセットされる)の値が
ロードされる。これがXI座標値になる。又ラッチ30
6にその時の副走査カウンタ350の値がロードされる
。これがY1座標値になる。
At the time when the F/F 304 is set, the value of the main scanning counter 351 (counts down the sample clock and is reset at H3YNC) at that time is loaded into the latch F/F 305. This becomes the XI coordinate value. Also latch 30
6 is loaded with the value of the sub-scanning counter 350 at that time. This becomes the Y1 coordinate value.

従ってP+ (X+ 、Y+)が求まる。Therefore, P+ (X+, Y+) is found.

又信号303に1が出力する度に主走査からの値をラッ
チ307にロードする。この値は直ちに次の8ビツトが
シフト・レジスタ301に入る迄にラッチ308に記憶
される。最初の8ビツトの白が現われた時の主走査から
の値がラッチ308にロードされると、ラッチ31O(
これはVSYNC時点で“0”にされている)のデータ
とコンパレータ309で大小比較される。もしラッチ3
08のデータの方が大ならばラッチ308のデータすな
わちラッチ307のデータがラッチ310にロードされ
る。又、この時副走査カウンタの値がラッチ311にロ
ードされる。この動作は次の8ビツトがシフト・レジス
タ301に入る迄に処理される。この様にラッチ308
とラッチ310のデータを全画像領域について行なえば
、ラッチ310には原稿領域X方向の最大値が残り、こ
の時のY方向の座標がラッチ311に残ることになる。
Also, each time 1 is output to the signal 303, the value from the main scanning is loaded into the latch 307. This value is immediately stored in latch 308 until the next 8 bits enter shift register 301. When the value from the main scan when the first 8-bit white appears is loaded into latch 308, latch 31O(
This is compared in magnitude with the data (which is set to "0" at the time of VSYNC) by a comparator 309. If latch 3
If the data in latch 308 is larger, the data in latch 308, that is, the data in latch 307, is loaded into latch 310. Also, at this time, the value of the sub-scanning counter is loaded into the latch 311. This operation is processed until the next 8 bits enter shift register 301. Latch 308 like this
If the data of the latch 310 is applied to the entire image area, the maximum value of the document area in the X direction remains in the latch 310, and the coordinate in the Y direction at this time remains in the latch 311.

これがP2 (X2.  Y2)座標である。This is the P2 (X2. Y2) coordinate.

F/F312は各主走査ライン毎に最初に8ビツト白が
現われた時点でセットするF/Fで水平同期信号H3Y
NC(原稿1ライン走査毎に発生)でリセットされ最初
の8ビツト白でセットし、次のH3¥NCまで保持する
。このF/F312がセットする時点で主走査カウンタ
の値をラッチ313にセットし、次のH3YNC迄の間
にラッチ314にロードする。そしてラッチ315とコ
ンパレータ316で大小比較される。ラッチ315には
VSYNC発生時点でX方向のmax値がリセットされ
ている。
F/F312 is an F/F that is set when 8-bit white appears for the first time in each main scanning line, and horizontal synchronization signal H3Y is set.
It is reset by NC (occurs every time one line of the original is scanned), and the first 8 bits are set to white, and are held until the next H3\NC. When the F/F 312 is set, the value of the main scanning counter is set in the latch 313, and is loaded into the latch 314 until the next H3YNC. Then, the latch 315 and the comparator 316 compare the magnitude. The maximum value in the X direction is reset in the latch 315 at the time VSYNC occurs.

もしラッチ315のデータの方がラッチ314のデータ
より大きいならば信号317がアクティブになりラッチ
314すなわちラッチ313のデータがラッチ315に
ロードされる。この動作はH3YNC−H3YNC間で
行われる。以」二の比較動作を全画像領域について行う
とラッチ315には原稿座標のX方向の最小値が残るこ
とになる。これがX3である。又、信号ライン317が
出力する時、副走査からの値がラッチ318にロードさ
れる。これがY3になる。
If the data in latch 315 is greater than the data in latch 314, signal 317 becomes active and the data in latch 314 or latch 313 is loaded into latch 315. This operation is performed between H3YNC and H3YNC. If the following comparison operation is performed for the entire image area, the minimum value of the document coordinates in the X direction remains in the latch 315. This is X3. Also, when signal line 317 outputs, the value from the sub-scan is loaded into latch 318. This will be Y3.

ラッチ319と320は全画像領域において8ヒツト白
が現われる度にその時の主走査カウンタの値と副走査カ
ウンタの値がロードされる。従って、原稿前走査完了時
では最後に8ビツト白が現われた時点でのカウント値が
カウンタに残っていることになる。これが(X4.  
Y4)である。
The latches 319 and 320 are loaded with the main scanning counter value and the sub-scanning counter value at that time every time 8 hits of white appear in the entire image area. Therefore, when the document pre-scanning is completed, the count value at the time when 8-bit white appears last remains on the counter. This is (X4.
Y4).

以上の8つのラッチ(6,11,20,18,5゜10
、 15. 19)のデータラインは第2図のCPUの
パスラインBUSに接続され、CPUは前走査終了時に
このデータを読み込むことになる。
The above 8 latches (6, 11, 20, 18, 5゜10
, 15. The data line 19) is connected to the pass line BUS of the CPU shown in FIG. 2, and the CPU reads this data at the end of the previous scan.

第5図は原稿読取りシーケンスのフローチャートで、第
2図ROMにそのプログラムが格納されCPUにより実
行される。
FIG. 5 is a flow chart of the document reading sequence, and the program is stored in the ROM and executed by the CPU in FIG.

まずステップ501において光学系は第1図の左端から
右端まで往動走査を行なって第4図で述べたように原稿
台上の原稿の座標を検出する。
First, in step 501, the optical system performs forward scanning from the left end to the right end in FIG. 1, and detects the coordinates of the document on the document table as described in FIG. 4.

次にステップ502において2値化のためのスライスレ
ベル決定のためのピーク値をサンプルすべきエリアを、
ステップ501で検出した座標データから算出する。例
えば第3図の斜線部のような原稿について検出した座標
からこの原稿のピーク値サンプリングエリアとしてY3
.Y2及びX、、X4で。囲まれる長方形エリアを選択
することをさせている。それは通常原稿は原稿台に極力
平行に載置されるものであり、またたとえ第3図のよう
に傾いて載置されても原稿外の不要な情報をひろう可能
性がないからである。尚他の方法でサンプリングエリア
を決定することも可能である。
Next, in step 502, the area where the peak value for determining the slice level for binarization should be sampled is
It is calculated from the coordinate data detected in step 501. For example, from the coordinates detected for a document such as the shaded area in Figure 3, the peak value sampling area of this document is Y3.
.. At Y2 and X,,X4. Allows you to select a rectangular area to be enclosed. This is because the original is normally placed as parallel as possible on the original table, and even if the original is placed at an angle as shown in FIG. 3, there is no possibility of reading unnecessary information from outside the original. It is also possible to determine the sampling area using other methods.

第6図は走査系路を示すもので、原稿座標検出を終える
と光学系は副走査方向Y m a xの点にありピーク
値サブリング開始点Y2と終了点Y3が分っているので
、ステップ504と505及び506を実行するスケジ
ュールをたてることができる。すなわちステップ503
において復動を開始したらCPU211は距離(Yma
x−Y2)相当分だけ主走査ライン同期信号を数えた後
、前述した白ピーク値/黒ピーク値の検出を開始し、さ
らにその点から距離(Y2  Y3)相当分だけ主走査
ライン同期信号をカウントした後、ピーク値の検出を終
了し、さらに距離Y3相当分だけ主走査ライン同期信号
をカウントした後復動を停止する。
FIG. 6 shows the scanning system path. When the document coordinate detection is completed, the optical system is at a point in the sub-scanning direction Ymax, and the peak value sub-ring start point Y2 and end point Y3 are known, so A schedule can be established to perform steps 504, 505, and 506. That is, step 503
When the return movement starts at , the CPU 211 calculates the distance (Yma
x-Y2) After counting the main scanning line synchronization signals for a distance equivalent to (Y2 Y3), start detecting the white peak value/black peak value described above, and then counting the main scanning line synchronization signals for a distance equivalent to (Y2 Y3) from that point. After counting, the detection of the peak value is finished, and after counting the main scanning line synchronization signal for the distance Y3, the backward movement is stopped.

またステップ504においてピーク値検出開始時には、
先(こ述べたイネーブル信号ENを第6図のように検出
座標X、、X4に対応して設定しておく。
Furthermore, when starting peak value detection in step 504,
The enable signal EN mentioned above is set corresponding to the detection coordinates X, . . . X4 as shown in FIG.

以上の動作で原稿台上の任意の位置にある原稿内の主走
査ライン毎の画像濃度の白ピークと黒ピークを検出でき
る。
With the above operations, the white peak and black peak of the image density can be detected for each main scanning line in the document located at any position on the document table.

次に2値化のためのスライスレベル決定のアルゴリズム
について説明する。前述した手段によりCPU211は
原稿領域内から各主走査ライン毎に黒ピーク値と白ピー
ク値をとりこむ。そしてRAMに格納する。
Next, an algorithm for determining slice levels for binarization will be explained. Using the above-described means, the CPU 211 takes in the black peak value and white peak value for each main scanning line from within the document area. Then, it is stored in RAM.

今、第i主走査ライン上の黒ピークをBPi、白ピーク
をW P iとすると画像データは6ビツト値であるか
ら、各々00 (HEX)から3F(HEX)までのい
ずれかの値をとり、かつBPi≧W P iである。
Now, if the black peak on the i-th main scanning line is BPi, and the white peak is WPi, the image data is a 6-bit value, so each takes a value from 00 (HEX) to 3F (HEX). , and BPi≧WPi.

RAM内に用意された64×2バイトの黒ピークヒスト
グラム用エリアと64×2バイトの白ピークヒストグラ
ム用エリアがある。これは64階調レベルで示されるピ
ークレベルB P i 、  W P iの頻度数を6
4階調レベルの各々に対応したエリアに記憶する。
There is a 64×2 byte black peak histogram area and a 64×2 byte white peak histogram area prepared in the RAM. This means that the frequency number of peak levels B P i and W P i shown in 64 gradation levels is 6
It is stored in areas corresponding to each of the four gradation levels.

CPUは、検出したデータBPiとW P iに対応し
た2バイトエリアの内容(頻度数)を、各々1つずつカ
ウントアツプして、次の主走査ライン同期信号MSを待
ち、第i+1ラインからのデータBPi+1とWPi+
1をとりこんで、再びヒストグラムの対応エリアの頻度
数をカウントアツプして以下ステップ505のサンプル
終了まで続ける。但しこの時、検出したBPiとW P
 iを必らずしもヒストグラムデータとして用いるとは
限らない。たとえば主走査ライン方向に一様な濃度の帯
があれば、たとえそれがまっ白であろうとまっ黒であろ
うとまた他の濃度でもそこからのサンプル値BPiとW
 P iはほとんど等しいものになり地肌と情報を区別
するデータを必要とする2値化のための情報としてはふ
されしくない。その為、CPUはB P i −W P
 i <αの時にはB P i 、  W P iはヒ
ストグラムデータとして用いず捨ててしまい、BPi+
1.WPi+1を待つことになる。このαは経験的に設
定される定数で例えば4とか3である。またステップ5
04によりサンプル開始する以前に全ヒストグラムエリ
ア64X2X2バイトを0クリアしておくのは当然のこ
とである。
The CPU counts up the contents (frequency number) of the 2-byte areas corresponding to the detected data BPi and WPi by one each, waits for the next main scanning line synchronization signal MS, and then counts up the contents (frequency number) of the 2-byte areas corresponding to the detected data BPi and WPi, waits for the next main scanning line synchronization signal MS, and then counts up the contents (frequency number) of the 2-byte areas corresponding to the detected data BPi and WPi, waits for the next main scanning line synchronization signal MS, and then counts up the contents (frequency number) of the 2-byte areas corresponding to the detected data BPi and WPi. Data BPi+1 and WPi+
1 is taken in, and the frequency number of the corresponding area of the histogram is counted up again until the end of the sample in step 505. However, at this time, the detected BPi and W P
i is not necessarily used as histogram data. For example, if there is a uniform density band in the main scanning line direction, sample values BPi and W from that band can be obtained even if it is pure white or black, or even if it is of other density.
P i is almost the same and is not suitable as information for binarization, which requires data that distinguishes background information from information. Therefore, the CPU is B P i −W P
When i < α, B P i and W P i are not used as histogram data and are discarded, and B Pi +
1. I will have to wait for WPi+1. This α is a constant set empirically, and is, for example, 4 or 3. Also step 5
It is a matter of course that the entire histogram area 64×2×2 bytes be cleared to 0 before sampling starts with 04.

この結果ステップ505でサンプル終了した時には、例
えば第7図に示すようなヒストグラムが黒ピーク/白ピ
ークの各々について構成されている。サンプルを終了し
た後、光学系がスタート地点に戻り、ステップ506で
復動を終了したら、次にステップ507でスライスレベ
ルを設定する。まず各ヒストグラムの度数のピークを示
す濃度レベルを各々の代表値と考える。これは、ヒスト
グラムの各レベルのカウント結果を各々比較し、最大カ
ウント結果を有する濃度レベルを最大頻度レベルとする
As a result, when the sample is completed in step 505, a histogram as shown in FIG. 7, for example, is constructed for each of the black peak and white peak. After completing the sample, the optical system returns to the starting point and completes the backward motion in step 506. Next, in step 507, the slice level is set. First, the density level showing the peak frequency of each histogram is considered to be the respective representative value. This compares the count results of each level of the histogram and sets the concentration level with the maximum count result as the maximum frequency level.

第7図によれば原稿情報部の濃度を36H1原稿地肌部
の濃度をOAHとし、例えばその中央値20 Hをスラ
イスレベルとする。尚このスライスレベルの決定方式と
して読取データの他の所定レベルの頻度に基づいて決定
することも可能である。又スライスレベルだけでなく 
ROMに格納したディザパターンや出カバターンを選択
決定することもできる。又階調補正のためのγ変換特性
を選択することもできるし、単に露光ランプの明るさを
補正して、適正の濃度のコピーが得られるようにできる
According to FIG. 7, the density of the document information part is 36H, the density of the background part of the document is OAH, and, for example, the median value of 20H is the slice level. Note that this slice level can also be determined based on the frequency of another predetermined level of read data. In addition to the slice level
It is also possible to select and determine dither patterns and output patterns stored in the ROM. It is also possible to select the γ conversion characteristic for gradation correction, or simply correct the brightness of the exposure lamp so that a copy with an appropriate density can be obtained.

即ち黒ピーク、白ピークがIF付近であれば中間の階調
が多いことが分かるので、カブリの少ない良質の中間調
を再現できるようγ等の選択できる。
That is, if the black peak and white peak are near IF, it can be seen that there are many intermediate gradations, so γ etc. can be selected so as to reproduce high quality intermediate gradations with less fog.

尚、単に検出したスライスレベルやピーク値又は第7図
の分布の表示をすることもできる。最後にステップ50
8で原稿読取スキャンを行なって動作を終了する。
It is also possible to simply display the detected slice level or peak value or the distribution shown in FIG. 7. Finally step 50
At step 8, the original is read and scanned, and the operation ends.

以上の様にして求めたスライスレベルROMパターンは
、同一の原稿から連続して複数回読取ってコピーする場
合は保持させ、所定数のコピー終了後、一定時間してキ
ャンセルする。又、新たな原稿を読取る場合に限りスラ
イスレベル、ROMバターをキャンセルするもので、そ
してその浸析たな予備走査を行なう。尚予備走査は必要
に応じて選択できるもので、予備走査なしで、コピー速
度を高めるようにすることも可能である。
The slice level ROM pattern obtained as described above is retained when the same document is read and copied multiple times in succession, and is canceled after a certain period of time after a predetermined number of copies have been completed. Also, only when reading a new document, the slice level and ROM butter are canceled and a thorough preliminary scan is performed. Note that preliminary scanning can be selected as necessary, and it is also possible to increase the copy speed without preliminary scanning.

第8図は原稿601をベルト600によりガラス101
に自動セットし読取終了後自動排出するものである。こ
の場合走査部200をAの点に予じめセットした状態で
、原稿601をベルトで、露光位置にセットする為に移
動させ、200の停止状態で原稿を移動しつつ読取るこ
とができる。そのときの読取データから原稿の巾、長さ
を認識させ必要な領域を認識する。そしてAの点から走
査移動部を左へ復動させて−、原稿のレベル判定を行な
う。左端に送ると往動を開始し、必要かつ有効な原稿領
域のレベル認識に基づく2値化を行なう。
In FIG. 8, a document 601 is transferred to a glass 101 by a belt 600.
The device is automatically set in the printer and automatically ejected after reading is completed. In this case, with the scanning unit 200 set in advance at point A, the original 601 is moved using a belt to set it at the exposure position, and the original can be read while being moved while the original 601 is in a stopped state. The width and length of the document are recognized from the read data at that time, and the necessary area is recognized. Then, the scanning movement unit is moved back to the left from point A, and the level of the original is determined. When it is sent to the left end, forward movement is started and binarization is performed based on level recognition of the necessary and effective document area.

尚、第8図の場合認識に基づく2値化を必要としない場
合、Aの点に走査部を停止した状態で移動する原稿の読
取ったデータをそのまま所定のスライスレベルにより2
値化して出力することに、より、読取に要する時間を短
縮することができる。
In the case of Fig. 8, if binarization based on recognition is not required, the data read from the document moving with the scanning unit stopped at point A is converted into 2 bits using a predetermined slice level.
By digitizing and outputting the data, the time required for reading can be shortened.

(効果) 有効画像に基づいて原稿認識できるので高精度の原稿判
別ができる。
(Effect) Since the original can be recognized based on the effective image, highly accurate original identification is possible.

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

第1図は原稿読取装置の概略図、 第2図は画像信号処理回路のブロック図、第3図は原稿
台上に置かれた原稿と位置座標の関係を示す図、 第4図は位置座標検出回路図、 第5図は画像読取シーケンスのフロー図、第6図は原稿
位置とシーケンスの関係を示す図、第7図は黒ピークヒ
ストグラムと白ピークヒストグラムの例を示す図、 第8図は原稿読取装置の他の概略図であり、図中104
はランプ、103は撮像素子、1’01は原稿台である
Figure 1 is a schematic diagram of the document reading device, Figure 2 is a block diagram of the image signal processing circuit, Figure 3 is a diagram showing the relationship between the document placed on the document table and the position coordinates, and Figure 4 is the position coordinates. Detection circuit diagram, Figure 5 is a flow diagram of the image reading sequence, Figure 6 is a diagram showing the relationship between document position and sequence, Figure 7 is a diagram showing an example of a black peak histogram and a white peak histogram, and Figure 8 is a diagram showing an example of a black peak histogram and a white peak histogram. 104 is another schematic diagram of the document reading device;
103 is a lamp, 103 is an image sensor, and 1'01 is a document table.

Claims (2)

【特許請求の範囲】[Claims] (1)原稿の所望領域を認識し、かつその領域内の所定
画像データの発生頻度を認識し、その発生頻度に基づい
て特定信号を発生せしめることを特徴とする画像処理方
法。
(1) An image processing method characterized by recognizing a desired area of a document, recognizing the frequency of occurrence of predetermined image data within the area, and generating a specific signal based on the frequency of occurrence.
(2)原稿の大きさを認識する第1手段、原稿の画像の
所定データの発生頻度を認識する第2手段、上記第1、
第2手段に基づいて画像処理する手段とを有する画像処
理装置。
(2) a first means for recognizing the size of the document; a second means for recognizing the frequency of occurrence of predetermined data of the image of the document;
an image processing device comprising means for performing image processing based on the second means.
JP61213321A 1985-09-11 1986-09-10 Image processing device Expired - Lifetime JP2541937B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US77501385A 1985-09-11 1985-09-11
US775013 2001-01-31

Publications (2)

Publication Number Publication Date
JPS62115973A true JPS62115973A (en) 1987-05-27
JP2541937B2 JP2541937B2 (en) 1996-10-09

Family

ID=25103051

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61213321A Expired - Lifetime JP2541937B2 (en) 1985-09-11 1986-09-10 Image processing device

Country Status (1)

Country Link
JP (1) JP2541937B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02228177A (en) * 1989-03-01 1990-09-11 Mitsubishi Electric Corp Binarizing circuit for image data
JPH0610841A (en) * 1992-06-26 1994-01-21 Uchida Yuatsu Kiki Kogyo Kk Horsepower control device for variable displacement oil hydraulic pump having two-step cut off function

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH02228177A (en) * 1989-03-01 1990-09-11 Mitsubishi Electric Corp Binarizing circuit for image data
JPH0610841A (en) * 1992-06-26 1994-01-21 Uchida Yuatsu Kiki Kogyo Kk Horsepower control device for variable displacement oil hydraulic pump having two-step cut off function

Also Published As

Publication number Publication date
JP2541937B2 (en) 1996-10-09

Similar Documents

Publication Publication Date Title
JP3254272B2 (en) Apparatus and method for determining background level of an image
JPS60124173A (en) Image processor
US5086486A (en) Apparatus for reading a document and processing the image
JP2721334B2 (en) Image binarization processing device
JP3262326B2 (en) Image processing apparatus and image processing method
US5228099A (en) Apparatus for reading a document and processing the image
JPS62115973A (en) Picture processing method and its device
JPH0582782B2 (en)
JPH0380668A (en) High quality of image scanner
JPH084311B2 (en) Image processing device
JPH078005B2 (en) Image processing device
JP2608264B2 (en) Image reading device
JPH0570975B2 (en)
JPH0326591B2 (en)
JP3086243B2 (en) Halftone dot area detection device
JPH0364268A (en) Color copying device
JPS63261960A (en) Binarization device
JPS62166649A (en) Original reader
JPH01258558A (en) Method for deciding threshold density for original reader
JPH0475703B2 (en)
JPH0865506A (en) Picture reader
JPS61214865A (en) Picture processing device
JPH0338782A (en) Detector for density of original
JPS625773A (en) Picture reader
JPS60220661A (en) Picture signal processing system

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term