JPH01258558A - Method for deciding threshold density for original reader - Google Patents

Method for deciding threshold density for original reader

Info

Publication number
JPH01258558A
JPH01258558A JP63085358A JP8535888A JPH01258558A JP H01258558 A JPH01258558 A JP H01258558A JP 63085358 A JP63085358 A JP 63085358A JP 8535888 A JP8535888 A JP 8535888A JP H01258558 A JPH01258558 A JP H01258558A
Authority
JP
Japan
Prior art keywords
density
threshold
binarization
document
memory
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
JP63085358A
Other languages
Japanese (ja)
Inventor
Junichi Ota
太田 準一
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.)
Ricoh Co Ltd
Original Assignee
Ricoh 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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP63085358A priority Critical patent/JPH01258558A/en
Publication of JPH01258558A publication Critical patent/JPH01258558A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain a good binary picture which does not have the scratchiness of a line, etc., by fixing the threshold concentration of binarization based on the density distribution of a signal after shading correcting. CONSTITUTION:At a first original scanning, a density distribution measuring circuit 11 to which a multilevel digital signal is supplied from a shading correcting circuit 10 counts the number at every density value and stores it to a memory provided in the density distribution measuring circuit 11. When a first original scanning ends, density histogram data stored in the memory in the density distribution measuring circuit 11 are referred to from a CPU 13, and the upper limit value of the distribution area of the density of a background part is stored in a memory 14 as the threshold density of binarization. Picture data obtained at a second original scanning are compared with the threshold density stored in the memory 14 and binarized.

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、文字認識装置、図形・図面認識装置等の入力
装置として使用される原稿読取装置に用いられ、特に多
値画像を2値化する際のしきい値濃度の決定方法に関す
る。
[Detailed Description of the Invention] [Technical Field] The present invention is used in a document reading device used as an input device for a character recognition device, a figure/drawing recognition device, etc. Concerning a method for determining threshold concentration.

〔従来技術〕[Prior art]

原稿台上の原稿の画像を露光走査する光学系と、その反
射光を結像するレンズと、結像を光電変換するラインイ
メージセンサと、このアナログ信号をデジタル信号に変
換するA/D変換回路と、この多値のデジタル信号に対
してシェーディング補正を行うシェーディング補正回路
と、シェーディング補正後の信号をしきい値濃度と比較
して2値化し、外部機器に対して出力する2値化回路と
を有する原稿読取装置において、従来、多値画像を2値
化する際の自動的なしきい値濃度の決定方法として、 ■濃度値の最大と最小の平均の濃度値をしきい値とする
、 ■濃度ヒストグラムにおける背景部分と文字・図形部分
の2つの山の間の谷の部分の濃度値をしきい値とする、 という方法が知られているが、■の方法では文字・図形
部分の線画がかすれる場合があり、■の方法では、例え
ば機械図面のような、文字・図形部分の画素数が全画素
数に比べてかなり少ない場合、つまり濃度ヒストグラム
において文字・図形部分の山が顕著でない場合、しきい
値が決められないといった不具合があった。
An optical system that exposes and scans the image of the document on the document table, a lens that forms an image of the reflected light, a line image sensor that photoelectrically converts the image, and an A/D conversion circuit that converts this analog signal into a digital signal. , a shading correction circuit that performs shading correction on this multivalued digital signal, and a binarization circuit that compares the signal after shading correction with a threshold density, binarizes it, and outputs it to an external device. Conventionally, in a document reading device having a multi-level image, the automatic threshold density determination method when binarizing a multivalued image is as follows. A method is known in which the density value of the valley between the two peaks of the background part and the text/figure part in the density histogram is used as the threshold value. However, using method (■), for example, when the number of pixels in the text/figure parts is considerably smaller than the total number of pixels, such as in mechanical drawings, that is, when the mountains in the text/figure part are not noticeable in the density histogram, There was a problem that the threshold value could not be determined.

第7図(al、 (blはその様子を示す図であり、図
において■、■は上述した■、■の方法によるしきい値
濃度を表している。すなわち、同図(b)に示すように
、文字・図形部分の山が顕著でないと、しきい値■を決
めることが出来ない。
Figure 7 (al, (bl) is a diagram showing the situation, and in the figure, ■ and ■ represent the threshold concentration according to the methods of ■ and ■ mentioned above. That is, as shown in the same figure (b) In addition, the threshold value ■ cannot be determined unless the mountains in the text/figure parts are noticeable.

〔目的〕〔the purpose〕

本発明は、上述した従来例の欠点を解消し、線画原稿等
の、全体の画素数に比べて文字・図形部分の画素数が比
較的少ない原稿であっても、線のかすれ等のない良好な
2値画像を得ることの出来る原稿読取装置のしきい値決
定方法を提供することを目的とする。
The present invention solves the above-mentioned drawbacks of the conventional example, and even when the number of pixels in the character/graphic portion is relatively small compared to the overall number of pixels, such as a line drawing original, the quality of the original is good without blurring of the lines. It is an object of the present invention to provide a threshold value determination method for a document reading device that can obtain a binary image.

〔構成〕〔composition〕

この目的を達成するために、本発明は、シェーディング
補正後の信号の濃度分布を測定し、測定された濃度分布
より背景部分の上限濃度値を求めてそれを2値化のしき
い値濃度とすることを特徴とする。
In order to achieve this objective, the present invention measures the density distribution of a signal after shading correction, determines the upper limit density value of the background part from the measured density distribution, and uses it as the threshold density for binarization. It is characterized by

以下、本発明の実施例を図面に基づいて説明する。第1
図は、本発明が適用される原稿読取装置のブロック図で
あり、この装置は、第1回目の原稿走査で2値化のしき
い値濃度を決定し、そのしきい値を用いて第2回目の原
稿走査で2値化を行い、外部機器に出力する構成になっ
ている。
Embodiments of the present invention will be described below based on the drawings. 1st
The figure is a block diagram of a document reading device to which the present invention is applied. This device determines a threshold density for binarization in the first scan of the document, and uses that threshold value in the second scan. The configuration is such that the document is binarized during the first scan and output to an external device.

その構成について説明すると、本体(図示しない)の上
面には原稿0を支承する原稿台(透明ガラス)1が固定
されている。この原稿台1に載置された原稿Oは、露光
ランプ2、ミラー3.4゜5からなる光学系が原稿台1
の下面に沿って矢印eの方向に往復運動することにより
、その往動時に露光走査されるようになっている。この
場合、ミラー4.5は光路長を保持するように、ミラー
3の1/2の速度にて移動する。上記光学系の走査によ
る原稿Oからの反射光、つまり露光ランプ2の光照射に
よる原稿0からの反射光は、上記ミラー3,4.5によ
って反射されたのち、レンズ6を通り、ラインイメージ
センサ(COD)7に導かれ、原稿Oの像がラインイメ
ージセンサ7上に結像されるようになっている。
To explain its structure, a document table (transparent glass) 1 that supports a document 0 is fixed to the upper surface of the main body (not shown). An optical system consisting of an exposure lamp 2 and a mirror 3.4°5 is placed on the document table 1.
By reciprocating in the direction of arrow e along the lower surface of the lens, exposure scanning is performed during the forward movement. In this case, mirror 4.5 moves at half the speed of mirror 3 so as to maintain the optical path length. The light reflected from the original O by the scanning of the optical system, that is, the light reflected from the original 0 by the light irradiation of the exposure lamp 2, is reflected by the mirrors 3, 4.5, passes through the lens 6, and passes through the line image sensor. (COD) 7, and an image of the original O is formed on the line image sensor 7.

このラインイメージセンサ7は、その結像された光像を
これに対応する電気信号に変換し、増幅器8を介して^
/D変換回路9に出力する。このA/D変換回路9は、
増幅器8を介してラインイメージセンサ7から供給され
る信号を多値のデジタル信号に変換し、シェーディング
補正回路10へ出力する。このシェーディング補正回路
10はA/D変換器9より供給される多値のデジタル信
号に対してシェーディング補正を行い、第1回目の原稿
走査では濃度分布測定回路11へ、第2回目の原稿走査
では2値化回路12へ多値デジタル信号を供給する。
This line image sensor 7 converts the formed optical image into a corresponding electrical signal and sends it via an amplifier 8 ^
/D conversion circuit 9. This A/D conversion circuit 9 is
The signal supplied from the line image sensor 7 via the amplifier 8 is converted into a multivalued digital signal and output to the shading correction circuit 10. This shading correction circuit 10 performs shading correction on the multivalued digital signal supplied from the A/D converter 9, and sends it to the density distribution measurement circuit 11 during the first original scanning, and to the density distribution measurement circuit 11 during the second original scanning. A multivalued digital signal is supplied to the binarization circuit 12.

第1回目の原稿走査では、シェーディング補正回路10
より多値のデジタル信号を供給された濃度分布測定回路
11は、その濃度値ごとにその数をカウントし、濃度分
布測定回路11内に設けられたメモリに格納する。第1
回目の原稿走査が終了した時点で濃度分布測定回路11
内のメモリに格納された濃度ヒストグラム・データをC
PUl3から参照し、背景部分の濃度の分布領域を検出
し、その領域の上限値を2値化のしきい値濃度として、
メモリ14内にその値を格納する。
In the first document scanning, the shading correction circuit 10
The density distribution measuring circuit 11 supplied with the more multivalued digital signal counts the number of each density value and stores it in a memory provided within the density distribution measuring circuit 11. 1st
At the time when the first document scan is completed, the density distribution measurement circuit 11
The density histogram data stored in the memory of C
Referring from PUl3, detect the density distribution area of the background part, and use the upper limit of the area as the threshold density for binarization,
The value is stored in memory 14.

第2回目の原稿走査では、シェーディング補正回路10
より多値のデジタル信号を供給された2値化回路12は
、CPU13を経由してメモリ14内の、第1回目の原
稿走査時に得た2値化のしきい値濃度と比較して2値化
し、得られた2値のデジタル信号をインターフェース1
5に供給する。
In the second document scanning, the shading correction circuit 10
The binarization circuit 12 that has been supplied with the more multivalued digital signal passes through the CPU 13 and compares it with the threshold density for binarization obtained during the first scan of the document in the memory 14 to generate a binary signal. interface 1 and send the resulting binary digital signal to interface 1.
Supply to 5.

インターフェース15はこの2値データを外部機器に対
して出力する。第2回目の原稿走査終了で、1回のスキ
ャン・サイクルを終了する。
The interface 15 outputs this binary data to an external device. One scan cycle ends when the second document scan is completed.

また、図中のドライバ16は露光ランプの点灯制御装置
、ドライバ17は露光ランプ2、ミラー3、’4.5か
らなる光学系を往復移動させるパルスモータ18の制御
装置を表している。
Further, a driver 16 in the figure represents a lighting control device for an exposure lamp, and a driver 17 represents a control device for a pulse motor 18 that reciprocates an optical system consisting of an exposure lamp 2, a mirror 3, and a '4.5.

本発明では、第2図に示すように、濃度値の最小から最
大に向かって濃度ヒストグラムを見た場合の、背景部分
の濃度の上限値を検出して、それをしきい値濃度として
いる。
In the present invention, as shown in FIG. 2, when a density histogram is viewed from the minimum density value to the maximum density value, the upper limit value of the density of the background portion is detected and used as the threshold density.

このようなしきい値濃度決定方法を採用することにより
、線画のかすれ等のない、良好な2値画像を得ることが
出来た。また、このしきい値決定方法は、文字・図形部
分の画素数の、全画素数に対する比率が少ない場合だけ
でなく、多い場合にも有効である(第3図参照)。
By employing such a threshold density determination method, it was possible to obtain a good binary image without blurred line drawings. Furthermore, this threshold value determining method is effective not only when the ratio of the number of pixels in a text/graphic portion to the total number of pixels is small, but also when the ratio is large (see FIG. 3).

具体的に検出方法の一例を示すと、第4図のように、測
定した濃度ヒストグラムを、濃度の最小から最大に向か
って、ある濃度値における画素数を参照し、その数があ
る値に1を越えるとヒストグラムの山が始まり、その後
、画素数かに2より小さくなるとヒストグラムの山が終
わりとし、このときの濃度値を2値化のしきい値濃度と
する。
To give a specific example of a detection method, as shown in FIG. When the number of pixels exceeds 2, the histogram peak begins, and when the number of pixels becomes less than 2, the histogram peak ends, and the density value at this time is taken as the threshold density for binarization.

また、第5図に示すように、濃度ヒストグラムより差分
ヒストグラムを作成し、濃度値の最小がら最大に向かっ
て差分ヒストグラムを見た場合の、正の山、負の山の終
わりを検出して背景部分の終わりと判断する方法も考え
られる。
In addition, as shown in Figure 5, a difference histogram is created from the density histogram, and when the difference histogram is viewed from the minimum to the maximum density value, the ends of the positive and negative peaks are detected and the background A method of determining the end of a portion may also be considered.

具体的に検出方法の一例を示すと、第7図のように、差
分ヒストグラムを濃度値の最小がら最大に向かって差分
値を見ていき、それがある値し1以上になった場合を正
の山の始まり、その後L2以下になった場合を正の山の
終わり、それからL3になった場合を負の山の始まり、
その後54以上になった場合を負の山の終わりとし、こ
のときの濃度値を2値化のしきい値濃度とする。
To give a concrete example of the detection method, as shown in Fig. 7, the difference value is looked at from the minimum density value to the maximum density value in the difference histogram, and when it reaches a certain value and becomes 1 or more, it is corrected. The beginning of the mountain, if it becomes L2 or less, the end of the positive mountain, and then the beginning of the negative mountain, if it becomes L3.
After that, when the value becomes 54 or more, it is considered as the end of the negative mountain, and the density value at this time is taken as the threshold density for binarization.

上記2つの方法は、単独でも有効であるが、これらを併
せて使用することにより、しきい値の精度の向上が図れ
た。
Although the above two methods are effective when used alone, by using them together, the accuracy of the threshold value was improved.

また、実施例では、2回の原稿走査で1回のスキャン・
サイクルとなる例を示したが、■往時の光学系移動時に
しきい値を決定し、復時に2値化して出力する、 ■原稿1枚分の画像メモリを用意し、走査した画像デー
タをその中に蓄えておき、しきい値決定後にそこから取
り出し、2値化して出力する、等の方法により、1回の
原稿走査を1回のスキャン・サイクルとすることも可能
である。
In addition, in the embodiment, one scan/scan is performed by scanning the document twice.
An example of a cycle was shown, but the following examples are: 1. Determine the threshold value when moving the optical system in the past, and output it as a binary value when returning. 2. Prepare an image memory for one document and store the scanned image data in it. It is also possible to make one document scan into one scan cycle by storing the information in the memory, taking it out after determining the threshold value, converting it into a binary value, and outputting it.

〔効果〕〔effect〕

以上のように、本発明の2値化しきい値濃度決定方法に
よれば、文字・図形部分の画素数の全画素数に対する比
率の大小にかかわらず、線画原稿に忠実な、線のかすれ
等の少ない、良好な2値画像を得ることが出来る。
As described above, according to the method for determining the binarization threshold density of the present invention, regardless of the ratio of the number of pixels in text/figure parts to the total number of pixels, it is possible to prevent blurring of lines, etc., faithful to the line drawing original. It is possible to obtain a good binary image with a small number of images.

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

第1図は本発明に係るしきい値濃度設定方法が適用され
る原稿読取装置のブロック図、第2図。 第3図は本発明の一実施例に係るしきい値濃度決定方法
を説明するための図、第4図はその具体例を示す図、第
5図は他の実施例に係るしきい値濃度決定方法を説明す
るための図、第6図はその具体例を示す図、第7図(a
)、 (b)は従来例に係るしきい値濃度決定方法を説
明するための図である。 0・・・原稿、1・・・原稿台、2. 3. 4. 5
・・・光学系、6・・・レンズ、7・・・ラインイメー
ジセンサ、9・・・A/D変換器、10・・・シェーデ
ィング補正回路、12・・・2値化回路。
FIG. 1 is a block diagram of a document reading device to which a threshold density setting method according to the present invention is applied, and FIG. FIG. 3 is a diagram for explaining a threshold concentration determination method according to an embodiment of the present invention, FIG. 4 is a diagram showing a specific example thereof, and FIG. 5 is a diagram for explaining a threshold concentration determination method according to another embodiment. A diagram for explaining the determination method, FIG. 6 is a diagram showing a specific example, and FIG. 7 (a
) and (b) are diagrams for explaining a threshold concentration determination method according to a conventional example. 0...Original, 1...Original table, 2. 3. 4. 5
... Optical system, 6... Lens, 7... Line image sensor, 9... A/D converter, 10... Shading correction circuit, 12... Binarization circuit.

Claims (1)

【特許請求の範囲】[Claims] 原稿台上の原稿の画像を露光走査する光学系と、その反
射光を結像するレンズと、結像を光電変換するラインイ
メージセンサと、このアナログ信号をデジタル信号に変
換するA/D変換回路と、この多値のデジタル信号に対
してシェーディング補正を行うシェーディング補正回路
と、シェーディング補正後の信号をしきい値濃度と比較
して2値化し、外部機器に対して出力する2値化回路と
を有する原稿読取装置のしきい値濃度の決定方法におい
て、シェーディング補正後の信号の濃度分布を測定し、
測定された濃度分布より背景部分の上限濃度値を求めて
それを2値化のしきい値濃度とすることを特徴とする原
稿読取装置のしきい値濃決定方法。
An optical system that exposes and scans the image of the document on the document table, a lens that forms an image of the reflected light, a line image sensor that photoelectrically converts the image, and an A/D conversion circuit that converts this analog signal into a digital signal. , a shading correction circuit that performs shading correction on this multivalued digital signal, and a binarization circuit that compares the signal after shading correction with a threshold density, binarizes it, and outputs it to an external device. In the method for determining the threshold density of a document reading device having
A method for determining a threshold density for a document reading device, characterized in that an upper limit density value of a background portion is determined from a measured density distribution and is used as a threshold density for binarization.
JP63085358A 1988-04-08 1988-04-08 Method for deciding threshold density for original reader Pending JPH01258558A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63085358A JPH01258558A (en) 1988-04-08 1988-04-08 Method for deciding threshold density for original reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63085358A JPH01258558A (en) 1988-04-08 1988-04-08 Method for deciding threshold density for original reader

Publications (1)

Publication Number Publication Date
JPH01258558A true JPH01258558A (en) 1989-10-16

Family

ID=13856484

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63085358A Pending JPH01258558A (en) 1988-04-08 1988-04-08 Method for deciding threshold density for original reader

Country Status (1)

Country Link
JP (1) JPH01258558A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017098826A (en) * 2015-11-26 2017-06-01 株式会社リコー Image processing apparatus, image forming apparatus, image processing method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017098826A (en) * 2015-11-26 2017-06-01 株式会社リコー Image processing apparatus, image forming apparatus, image processing method, and program

Similar Documents

Publication Publication Date Title
US4554583A (en) Shading correction device
JP2721334B2 (en) Image binarization processing device
EP0719032B1 (en) Apparatus for reading image and method therefor
JPH0670097A (en) Picture reader
JPH01258558A (en) Method for deciding threshold density for original reader
US5228099A (en) Apparatus for reading a document and processing the image
JPH0380668A (en) High quality of image scanner
JP2541937B2 (en) Image processing device
JPS61224781A (en) Shading correcting control system
JPH0326591B2 (en)
JPS6263382A (en) Picture reading device
JPS62105571A (en) Film reader
JP2608264B2 (en) Image reading device
JP2888627B2 (en) Image reading device
JPS59223060A (en) Original reader
JPH078005B2 (en) Image processing device
JPS6160475B2 (en)
JPH06121177A (en) Red black reader
JPH069374B2 (en) Image signal binarization circuit
JPH084311B2 (en) Image processing device
JPS60220661A (en) Image signal processing method
JPH01177278A (en) Picture reader
JPH1198339A (en) Picture reader
JPH04320157A (en) Picture data processor
JPS6318776A (en) Picture processor