JPS6378670A - Image reader - Google Patents

Image reader

Info

Publication number
JPS6378670A
JPS6378670A JP61222098A JP22209886A JPS6378670A JP S6378670 A JPS6378670 A JP S6378670A JP 61222098 A JP61222098 A JP 61222098A JP 22209886 A JP22209886 A JP 22209886A JP S6378670 A JPS6378670 A JP S6378670A
Authority
JP
Japan
Prior art keywords
peak value
image
black
value
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.)
Pending
Application number
JP61222098A
Other languages
Japanese (ja)
Inventor
Tsuyoshi Honma
本間 強
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
Priority to JP61222098A priority Critical patent/JPS6378670A/en
Publication of JPS6378670A publication Critical patent/JPS6378670A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Input (AREA)
  • Facsimile Image Signal Circuits (AREA)

Abstract

PURPOSE:To attain a stable binarization without fail by changing a threshold only when the black and white peak values of a picture signal lie within a prescribed range. CONSTITUTION:A data W-PK about the white peak values of eight lines including a current line is stored in a memory. Data lying eight line before is updated for the unit of the line. Next, data obtained from a black peak detection circuit 111 is stored as a black peak value B-PK in the memory. Density data obtained from a white peak detection circuit 110 is read in a CPU. Only if the read-in data is lower a prescribed value, a slice level is updated. Thus, the threshold does not follow an image at an abnormal density, thereby executing a precise binarization.

Description

【発明の詳細な説明】 (産業上の利用分野〕 本発明は、原稿画像を走査して各画素に光電変換するこ
とにより得られた画像情報信号を2値化する画像読取装
置に関するものである。
[Detailed Description of the Invention] (Industrial Application Field) The present invention relates to an image reading device that binarizes an image information signal obtained by scanning a document image and photoelectrically converting it into each pixel. .

(従来の技術) 従来、この種の画像読取装置においては、一般に、光電
変換素子としてのCCD (電荷結合デバイス)イメー
ジセンサ等から得られる電気的な画像(情報)信号を、
コンパレータの一方に印加し、コンデンサを含む積分回
路により、画像信号をh1分しした電圧を閾値として、
前記コンパレータの他方の入力に印加して2値化を行っ
ていた。
(Prior Art) Conventionally, in this type of image reading device, an electrical image (information) signal obtained from a CCD (charge-coupled device) image sensor or the like as a photoelectric conversion element is generally
Applied to one side of the comparator, the voltage obtained by dividing the image signal into h1 by an integrating circuit including a capacitor is set as a threshold.
Binarization was performed by applying it to the other input of the comparator.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかしながら、以上のような従来の2値化方式にあって
は、画槁の画像情報信号が長時間にわたって変化しない
ような場合、前期間値が人力画像信号のレベルに限りな
く近付くため、2値化動作が不安定になるという欠点が
あった。
However, in the conventional binarization method as described above, when the image information signal of the image does not change for a long time, the value of the previous period approaches the level of the human image signal, so the binary value is The drawback was that the conversion operation became unstable.

また、前記積分用の積分回路の時定数の関係から、例え
ば原稿の地肌や文字部分等の濃度変化に対する追従性は
良好でなく、地肌濃度が動的に変化した場合、正しい2
値化処理が行われなくなるという問題点があった。
Furthermore, due to the time constant of the integrating circuit for integration, the ability to follow changes in the density of the background or character parts of a document, for example, is not good, and if the background density changes dynamically, the correct 2
There was a problem that the value conversion process was not performed.

本発明は、以上のような問題点にかノνがみてなされた
もので、上述欠点を除去するとともに、常に安定した2
値化処理を行うことができる画像読取装置の提供を目的
としている。
The present invention has been made in view of the above-mentioned problems, and eliminates the above-mentioned drawbacks, as well as providing a stable dual
The object of the present invention is to provide an image reading device that can perform value conversion processing.

(問題点を解決するための手段) このため5本発明においては、この種の画像読取装置に
おける2値化のための閾値決定手段として、光電変換さ
れた画像信号の白ピーク値と黒ピーク値とが、所定範囲
内にあるときにのみ、閾値の変更を可能となるよう構成
することにより、前記目的を達成しようとするものであ
る。
(Means for Solving the Problem) Therefore, in the present invention, the white peak value and the black peak value of the photoelectrically converted image signal are used as threshold value determining means for binarization in this type of image reading device. This is intended to achieve the above object by configuring the threshold value to be changeable only when the value is within a predetermined range.

〔作用〕[Effect]

以上のような構成により、本発明においては、オリジナ
ル原稿の画像/文字および地肌濃度の動的な変動に対し
ても閾値は常に適正に追従し、また、次、常濃度画像に
対しては、閾値は追随しないので、正確な2値化処理が
可能となる。
With the above-described configuration, in the present invention, the threshold always properly follows dynamic fluctuations in the image/character and background density of the original document. Since the threshold value does not follow, accurate binarization processing becomes possible.

〔実施例〕〔Example〕

以下に1本発明を実施例に基づいて説明する。 The present invention will be explained below based on examples.

第1図は、本発明に係る2値化処理回路構成の一実施例
のブロック図である。
FIG. 1 is a block diagram of an embodiment of a binarization processing circuit configuration according to the present invention.

(構成)(第1図) 101は光学レンズ、102は、光電変換素子であるC
ODラインイメージセンサ、106はCCD駆動回路で
ある。CCDラインイメージセンサ102に結像された
画像(情報)信号は、増幅器103により増幅されて、
5ビツトのアナログ/ディジタル(A/D)変換器10
4に入力される。5ビツトのディジタル信号に変換され
た画像信号は、タイミング信号発生回路107より得ら
れる各画素毎に発生されるクロックによって、Dフリッ
プフロップ105にラッチされ、ディジタルコンパレー
タ108および主走査ライン毎にピーク値を検出する白
ピーク検出回路110および黒ピーク検出回路111に
入力される。
(Structure) (Fig. 1) 101 is an optical lens, 102 is a photoelectric conversion element C
OD line image sensor 106 is a CCD drive circuit. The image (information) signal imaged on the CCD line image sensor 102 is amplified by the amplifier 103,
5-bit analog/digital (A/D) converter 10
4 is input. The image signal converted into a 5-bit digital signal is latched into a D flip-flop 105 by a clock generated for each pixel obtained from a timing signal generation circuit 107, and then output to a digital comparator 108 and a peak value for each main scanning line. The signal is input to a white peak detection circuit 110 and a black peak detection circuit 111, which detect the signal.

各ピーク検出回路110.111より得られたデータは
、cpu (中央処理ユニット)に入力され、CPUに
おいては、n「記データを用いて、主走査ライン毎にス
ライスレベルを決定し、Dフリップフロップ109に出
力される。ディジタルコンパレータ108においては、
前記Dフリップフロックブ105より得られる画像信号
と、このDフリップフロップ109より得られる、主走
査ライン毎にラッチされたスライスレベルとを比較して
、2値化信号THOUTを出力する。
The data obtained from each peak detection circuit 110, 111 is input to a CPU (Central Processing Unit), and the CPU determines a slice level for each main scanning line using the n' data, and 109. In the digital comparator 108,
The image signal obtained from the D flip-flop block 105 is compared with the slice level obtained from the D flip-flop 109 and latched for each main scanning line, and a binary signal THOUT is output.

(動作)(第2図) つぎに、第2図に基づいて、スライスレベル決定方法を
説明する。第2図は、スライスレベル決定動作のシーケ
ンスフローチャートである。入力されるの濃度データの
範囲はθ〜31とし、Oが真白、31が真黒を表わす。
(Operation) (Fig. 2) Next, the slice level determination method will be explained based on Fig. 2. FIG. 2 is a sequence flowchart of the slice level determination operation. The range of the input density data is θ to 31, where 0 represents pure white and 31 represents pure black.

さらに、第2図のプログラムは、主走査ライン毎に、次
のラインにおけるスライスレベルを決定するために起動
される。
Further, the program shown in FIG. 2 is activated for each main scanning line to determine the slice level for the next line.

以下、各ステップ順に説明する。ステップS21におい
ては、前記白ピーク検出回路110(第1図)より得ら
れた濃度データをCPUに読込み、ステップSP2にお
いて、この読み込まれたデータが10より小さい場合の
みステップSP3に進み、それ以外の場合は、スライス
レベルを更新せずにプログラムを終了させる。これは、
原稿画像が異常の場合に、スライスレベルを追従させな
いためである。
Each step will be explained in order below. In step S21, the density data obtained from the white peak detection circuit 110 (FIG. 1) is read into the CPU, and in step SP2, the process proceeds to step SP3 only if the read data is smaller than 10; If so, terminate the program without updating the slice level. this is,
This is to prevent the slice level from following when the original image is abnormal.

ステップSP3においては、現在のラインを含めた以前
8ライン分の白ピーク値のデータW−PKをメモリに格
納しており、ライン毎に8ライン前のデータの更新を行
っている。つぎに、ステップSP4においては、Oir
記黒レーク検出回路111より得られたデータを黒ピー
ク値B−PKとしてメモリへの格納を行っている。ステ
ップSP5では、この黒ピーク値B−PKが10より大
きい場合のみステップSP6へ進み、それ以外の場合は
、スライスレベルを更新せずにプログラム終了させる。
In step SP3, the white peak value data W-PK for eight previous lines including the current line is stored in the memory, and the data for eight lines before is updated for each line. Next, in step SP4, Oir
The data obtained from the black rake detection circuit 111 is stored in the memory as a black peak value B-PK. In step SP5, the process proceeds to step SP6 only when this black peak value B-PK is greater than 10, and in other cases, the program is terminated without updating the slice level.

これは、+W記ステップSP2におけと同様に、異常原
稿画像に対しては、スライスレベルを追従させないため
である。
This is because the slice level is not made to follow an abnormal original image, as in step SP2 described in +W.

ステップSP6は、現在のラインの白ピーク値W−AV
Dの算出を行っており、次式により決定する。
Step SP6 is the white peak value W-AV of the current line.
D is being calculated and determined by the following formula.

(W −A V D ) n−1) == (1)上式
において、(W−AVD)nは、nライン目の白ピーク
くメ、であり、n−7ラインからnライン目までの平均
値、すなわち、現在ラインの近傍、いわば短区間の平均
白ピーク値と、1ライン前のW−AVD、すなわち、走
査開始時点からの長区間での平均白ピーク値の、2つの
値を平均されたものとして求められる。
(W-AVD) n-1) == (1) In the above equation, (W-AVD)n is the white peak sum of the n-th line, and from the n-7th line to the n-th line. The average value, that is, the average white peak value in the vicinity of the current line, so to speak, in a short section, and the W-AVD one line before, that is, the average white peak value in a long section from the start of scanning, are averaged. It is required as something that has been done.

これは1例えば、青焼原稿のような、地肌濃度が一定で
なく短区間で変動しやすいものに対してスライスレベル
が影ツを受けないように、白ピーク値、すなわち、地肌
の濃度レベルに対しては、8ライン分の平均値を用い、
かつ、長区間の地肌平均濃度も考慮してスライスレベル
の安定化を計るためである。
1. For example, when the background density is not constant and tends to fluctuate over a short period of time, such as a blue-printed original, the white peak value, that is, the density level of the background, is set so that the slice level is not affected. For that, using the average value of 8 lines,
This is also to stabilize the slice level by taking into consideration the background average density over a long period.

ステップSP7においては、上述方法によって求められ
た白ピーク値W−AVDと、現在ラインでの黒ビークイ
直B−PKとの中間値を求めてスライスレベルSを決定
している。また、ステップSP8においては、設定され
た前記スライスレベルSを、ηη記Dフリップフロップ
10109(7図)に書込み、プログラムを終了する。
In step SP7, the slice level S is determined by finding the intermediate value between the white peak value W-AVD found by the above method and the black peak value B-PK on the current line. Further, in step SP8, the set slice level S is written into the D flip-flop 10109 (FIG. 7), and the program is ended.

ここにおいて、各ステップSP2.3P5で設定されて
いる比較値10は、本実施例において実験的に求められ
たものであり、個々の応用例において異なることはもち
ろんである。
Here, the comparison value 10 set in each step SP2.3P5 is obtained experimentally in this example, and it goes without saying that it differs depending on each application example.

(発明の効果〕 以上、詳述したように、本発明によねば、オリジナル原
稿の画431(文字を含む)および地肌濃度に動的な変
化が存在しても、2値化処理の閾値を適正に追従させる
ことができ、また、画像の以上濃度に対しては追従しな
いようにしたため、2値化処理を正確に行い得る画像読
取装置を提供することができた。
(Effects of the Invention) As described in detail above, according to the present invention, even if there are dynamic changes in the image 431 (including characters) and the background density of the original document, the threshold value for the binarization process can be maintained. Since it is possible to properly follow the image and not to follow the higher density of the image, it is possible to provide an image reading device that can accurately perform the binarization process.

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

第1図は、本発明に係る2値化処理回路の一実施例の構
成ブロック図、第2図は、第1図によるスライスレベル
決定動作シーケンスフローチャートである。
FIG. 1 is a block diagram of a configuration of an embodiment of a binarization processing circuit according to the present invention, and FIG. 2 is a flowchart of a slice level determination operation sequence according to FIG.

Claims (1)

【特許請求の範囲】[Claims] 原稿画像を走査して光電変換された画像信号を2値化す
る画像読取装置であって、該画像信号の白ピーク値と黒
ピーク値とを前記主走査ライン毎に保持する保持手段と
、前記白ピーク値と黒ピーク値とを用いて前記2値化の
ための閾値を前記主走査ライン毎に決定するための閾値
決定手段とを備え、前記2値化のための決定手段は、前
記白ピーク値および黒ピーク値が所定の範囲内にある場
合にのみ、閾値の変更を可能とするよう構成したことを
特徴とする画像読取装置。
An image reading device that scans an original image and binarizes a photoelectrically converted image signal, comprising: a holding means for holding a white peak value and a black peak value of the image signal for each main scanning line; threshold determining means for determining a threshold for binarization for each main scanning line using a white peak value and a black peak value; An image reading device characterized in that a threshold value can be changed only when a peak value and a black peak value are within a predetermined range.
JP61222098A 1986-09-22 1986-09-22 Image reader Pending JPS6378670A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61222098A JPS6378670A (en) 1986-09-22 1986-09-22 Image reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61222098A JPS6378670A (en) 1986-09-22 1986-09-22 Image reader

Publications (1)

Publication Number Publication Date
JPS6378670A true JPS6378670A (en) 1988-04-08

Family

ID=16777103

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61222098A Pending JPS6378670A (en) 1986-09-22 1986-09-22 Image reader

Country Status (1)

Country Link
JP (1) JPS6378670A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5263346A (en) * 1991-10-15 1993-11-23 Kato Hatsujo Kaisha, Ltd. Locking device for lid

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5263346A (en) * 1991-10-15 1993-11-23 Kato Hatsujo Kaisha, Ltd. Locking device for lid

Similar Documents

Publication Publication Date Title
JPS58172061A (en) Signal processor
JPS6378670A (en) Image reader
JPS6378669A (en) Image reader
JPS6378668A (en) Image reader
JPS62219754A (en) Picture reader
JPH10327321A (en) Picture reader and its method
JPS59218077A (en) Picture reader
JPH01265786A (en) Picture reader
JPH0345081A (en) Drift correction circuit
JPH01276877A (en) Picture reader
JPH065883B2 (en) Signal processor
JPH0396171A (en) Picture read method
JPH01177278A (en) Picture reader
JPS631252A (en) Binarization system for picture
JP2506643B2 (en) History correction reader
JPS6339141B2 (en)
JPS61177069A (en) Scanner device
JPS6019708B2 (en) Image signal binarization circuit
JPH0436503B2 (en)
JPH01265784A (en) Picture reader
JPH01158878A (en) Picture reader
JPH0377474A (en) Picture input device
JPS58142674A (en) Data processing device for facsimile
JPS63180267A (en) Photoelectric converter
JPS63186387A (en) Binarizing circuit