JPH05292311A - Original reader - Google Patents

Original reader

Info

Publication number
JPH05292311A
JPH05292311A JP4094604A JP9460492A JPH05292311A JP H05292311 A JPH05292311 A JP H05292311A JP 4094604 A JP4094604 A JP 4094604A JP 9460492 A JP9460492 A JP 9460492A JP H05292311 A JPH05292311 A JP H05292311A
Authority
JP
Japan
Prior art keywords
photograph
mark
binarization
binarization threshold
output
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
JP4094604A
Other languages
Japanese (ja)
Inventor
Shinsuke Funaki
信介 舟木
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.)
Konica Minolta Inc
Original Assignee
Konica Minolta 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 Konica Minolta Inc filed Critical Konica Minolta Inc
Priority to JP4094604A priority Critical patent/JPH05292311A/en
Publication of JPH05292311A publication Critical patent/JPH05292311A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To set automatically a binarization threshold level for binarization processing with an assumption for reading the objects of plural kinds of originals having a photograph or a mark attached on a part of the original in which the position of the photograph or the mark corresponds to the color of a character part when the original is read and the read signal is subjected to the binarization processing. CONSTITUTION:The position of a photograph or a mark is detected by a photograph position detection means 12 or a mark position detection means 12' based on picture data from a photoelectric conversion means 10. Then the binarization threshold level setting means 13 sets a binarization threshold level based on the position information. Moreover, the picture data obtained till the binarization threshold level is set are once stored in a picture storage means 14 and after the binarization threshold level is set, a binarization processing means 15 applies the binarization processing to the data.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、原稿を読取って2値化
処理する原稿読取装置に関し、特に、一部に写真又はマ
ークが付され、かつその写真位置又はマーク位置と文字
部の色とが対応する複数種類の原稿を読取対象とするも
のに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a document reading apparatus for reading a document and binarizing it, and particularly to a document or a part of which a photograph or a mark is attached, and the photograph position or the mark position and the color of a character portion Relates to a target of reading a plurality of types of documents.

【0002】[0002]

【従来の技術】従来の原稿読取装置においては、図15に
その読取走査原理の一例を示すように、横書きに記録さ
れた帳票等の原稿Pが縦方向 (図示黒矢印方向) に搬送
されると、所定位置で照明灯101 により照明された横方
向1列分の画像がレンズ102 を介して光電変換手段とし
ての横長のCCD103 に受光され、光電変換される。こ
の光電変換された横方向1列分の画像データは水平同期
信号に同期して横方向に主走査されてA/D変換され
る。その間に原稿Pが縦方向に搬送 (副走査) され、新
たな位置で横方向1列分の画像が光電変換及びA/D変
換される。かかる主走査と副走査との繰り返しで原稿P
の全ての画像が光電変換及びA/D変換される。
2. Description of the Related Art In a conventional document reading apparatus, a document P such as a form recorded horizontally is conveyed in a vertical direction (in the direction of a black arrow in the figure) as shown in FIG. Then, the image of one row in the horizontal direction illuminated by the illumination lamp 101 at a predetermined position is received by the horizontally long CCD 103 as the photoelectric conversion means through the lens 102 and photoelectrically converted. The photoelectrically converted image data for one column in the horizontal direction is subjected to main scanning in the horizontal direction and A / D converted in synchronization with the horizontal synchronizing signal. In the meantime, the original P is conveyed in the vertical direction (sub-scanning), and the image for one row in the horizontal direction is photoelectrically converted and A / D converted at a new position. By repeating such main scanning and sub scanning, the document P
Are all photoelectrically converted and A / D converted.

【0003】そして、A/D変換によりデジタル化され
た画像データは、各画素毎に、所定の2値化しきい値と
比較されて2値化処理され、これにより白黒の画像デー
タとして読取られる。かかる従来の原稿読取装置におい
ては、CCDの画素の感度バラツキや照明光の不均一性
を補正する目的で、シェーディング補正が行われてい
た。これは、標準(一定濃度)の白色板を読取らせ、そ
のA/D変換データが一定値となるように、各画素毎に
補正係数を算出し、記憶する。そして、実際に原稿を読
取るときに、A/D変換データにその補正係数を掛けて
補正するのである。
The image data digitized by A / D conversion is binarized for each pixel by comparison with a predetermined binarization threshold value, and is read as black and white image data. In such a conventional document reading apparatus, shading correction is performed for the purpose of correcting sensitivity variations of CCD pixels and nonuniformity of illumination light. For this, a standard (constant density) white plate is read, and a correction coefficient is calculated and stored for each pixel so that the A / D conversion data has a constant value. Then, when the document is actually read, the A / D conversion data is multiplied by the correction coefficient to correct it.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の原稿読取装置にあっては、2値化処理のため
の2値化しきい値については、固定、又は外部より人手
により入力して設定する方式となっていたため、種々の
色のインク等で書かれた複数種類の原稿を一定の2値化
しきい値で2値化処理(白黒化)するとき、色の種類
で、文字がかすれたり、或いはつぶれたりするという問
題点があった。
However, in such a conventional document reading apparatus, the binarization threshold value for the binarization process is fixed or manually input from the outside and set. However, when a plurality of types of originals written with inks of various colors are binarized (black-and-white) with a constant binarization threshold, characters may be blurred depending on the color type. Or, there was a problem of being crushed.

【0005】すなわち、使用されるインク等の色に対
し、光電変換手段としてのCCDより出力されるデータ
が一定でないため、一定の2値化しきい値でこれを2値
化処理すると、CCD出力が小さいとうすく、大きいと
こくなってしまう。そこで、本発明は、一部に写真又は
マークが付され、かつその写真位置又はマーク位置と文
字部の色とが対応する複数種類の原稿を読取対象として
いることを前提として、2値化処理のための2値化しき
い値を最適に自動設定できるようにした原稿読取装置を
提供することを目的とする。
That is, since the data output from the CCD as the photoelectric conversion means is not constant with respect to the color of the ink or the like used, if this is binarized with a constant binarization threshold value, the CCD output is If it is small, it becomes light, and if it is large, it becomes dark. Therefore, the present invention is premised on that a plurality of types of originals, to which a photograph or a mark is attached, and whose photograph position or mark position and the color of the character portion correspond, are to be read. It is an object of the present invention to provide a document reading device capable of optimally and automatically setting a binarization threshold for.

【0006】[0006]

【課題を解決するための手段】このため、本発明は、一
部に写真が貼付され、かつその写真位置と文字部(文字
の他、記号、図形、罫線等を含む)の色とが対応する複
数種類の原稿を読取対象とする場合に、写真位置を検出
する手段と、検出された写真位置に基づいて2値化しき
い値を設定する手段とを設ける構成とする。
Therefore, in the present invention, a photograph is partly attached, and the photograph position corresponds to the color of the character portion (including characters, symbols, figures, ruled lines, etc.). When a plurality of types of originals to be read are to be read, a means for detecting a photograph position and a means for setting a binarization threshold value based on the detected photograph position are provided.

【0007】また、特定エリア内にマーク(バーコード
や孔等も含む)が付され、かつその特定エリア内のマー
ク位置と文字部の色とが対応する複数種類の原稿を読取
対象とする場合は、マーク位置を検出する手段と、検出
されたマーク位置に基づいて2値化しきい値を設定する
手段とを設ける構成とする。
In addition, when a mark (including a bar code, a hole, etc.) is provided in a specific area, and a plurality of types of originals in which the mark position in the specific area and the color of the character part correspond to each other are to be read. Is provided with a means for detecting the mark position and a means for setting a binarization threshold value based on the detected mark position.

【0008】[0008]

【作用】上記の構成においては、写真位置(又は特定エ
リア内のマーク位置)と原稿の文字部の色とが1対1に
対応している原稿の読取りに際して、写真位置(又はマ
ーク位置)の検出結果に応じて、2値化処理のための2
値化しきい値を変更し、各色に適した2値化処理を行
う。
In the above arrangement, when reading a document in which the photograph position (or the mark position in the specific area) and the color of the character portion of the document have a one-to-one correspondence, the photograph position (or mark position) is changed. 2 for the binarization processing according to the detection result
The binarization processing suitable for each color is performed by changing the binarization threshold value.

【0009】尚、写真位置(又はマーク位置)を検出す
るまでに得た画像データは、一旦画像メモリ等の画像蓄
積手段に蓄えておき、写真位置(又はマーク位置)の検
出による2値化しきい値の最適化後に、2値化処理を行
えばよい。或いは、画像蓄積手段を用いる代わりに、本
スキャンに先立ってプリスキャンを行い、このプリスキ
ャンにて写真位置(又はマーク位置)を検出して2値化
しきい値を設定し、この後の本スキャンにより2値化処
理を行ってもよい。
The image data obtained until the photograph position (or mark position) is detected is temporarily stored in an image storage means such as an image memory, and is binarized by detecting the photograph position (or mark position). Binarization processing may be performed after the optimization of the values. Alternatively, instead of using the image storage means, a pre-scan is performed prior to the main scan, a photo position (or mark position) is detected by this pre-scan, a binarization threshold value is set, and a main scan thereafter The binarization process may be performed by.

【0010】[0010]

【実施例】以下に本発明の実施例を図面に基づいて説明
する。図1は本発明に係る原稿読取装置(スキャナー)
の構造例を示している。ボックス1の上端には帳票等の
原稿Pの挿入口2が形成され、下端には原稿Pの排出口
3が形成されている。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 shows a document reading device (scanner) according to the present invention.
The structural example of is shown. An insertion port 2 for a document P such as a document is formed at the upper end of the box 1, and a discharge port 3 for the document P is formed at the lower end.

【0011】ボックス1の内部には、挿入口2から排出
口3への下向きの搬送路4に沿って原稿Pを挟持しつつ
下方に搬送する複数対の搬送ローラ5と、原稿Pの表裏
両面を夫々照明する2個のランプ6と、原稿Pの表裏両
面からの光を夫々反射する2個のミラー7と、該反射光
を夫々集光する2個のレンズ8と、該集光された光を夫
々受光して光電変換する光電変換手段としての2個のC
CD10とが設けられている。
Inside the box 1, there are a plurality of pairs of conveying rollers 5 for nipping and conveying the original P downward along a downward conveying path 4 from the insertion opening 2 to the ejection opening 3, and both front and back surfaces of the original P. , Two lamps 6 for illuminating the original P, two mirrors 7 for reflecting light from both front and back surfaces of the document P, two lenses 8 for condensing the reflected light, and the condensing light. Two Cs as photoelectric conversion means for receiving light and converting photoelectrically
CD10 and is provided.

【0012】従って、挿入口2から原稿Pを挿入する
と、搬送ローラ5によって搬送されつつ、所定位置で原
稿Pからの反射光がCCD10に受光されて、主走査方向
(搬送方向と直交する方向)の1ライン分ずつ、光電変
換される。そして、搬送方向を副走査方向としてこれが
繰り返され、原稿Pの全ての画像が光電変換される。次
に本発明に係る原稿読取装置の読取対象となる原稿につ
いて説明する。
Therefore, when the document P is inserted through the insertion slot 2, the CCD 10 receives the reflected light from the document P at a predetermined position while being transported by the transport roller 5, and the main scanning direction (direction orthogonal to the transport direction). Photoelectric conversion is performed for each line. Then, this is repeated with the carrying direction as the sub-scanning direction, and all the images of the document P are photoelectrically converted. Next, a document to be read by the document reading apparatus according to the present invention will be described.

【0013】図2の(1)のA,B,Cは、一部に写真
(顔写真)が貼付された原稿の例で、写真位置と文字の
色(赤、青、緑)とが1対1に対応している。図2の
(2)のA’,B’,C’は、特定エリア内(上端部付
近)にマークが付された原稿の例で、特定エリア内のマ
ーク位置(横方向位置)と文字の色(赤、青、緑)とが
1対1に対応している。
Reference numerals A, B and C in (1) of FIG. 2 are examples of an original in which a photograph (face photograph) is partly attached, and the photograph position and the character color (red, blue, green) are 1. Corresponds to one-to-one. A ', B', and C'in (2) of FIG. 2 are examples of documents with marks in the specific area (near the upper end), and the mark position (horizontal position) and the character position in the specific area are shown. The colors (red, blue, green) have a one-to-one correspondence.

【0014】このように写真位置又はマーク位置と文字
部の色とが1対1に対応している複数種類の原稿であれ
ばよい。もちろん、同系色の色(例えば緑と黄緑)の場
合は、同じ位置に写真又はマークがあってもよい。ま
た、異なる色でも光電変換後の値が近似していれば、同
じ位置に写真又はマークがあってもよい。
As described above, a plurality of types of originals in which the photograph position or mark position and the color of the character portion have a one-to-one correspondence may be used. Of course, in the case of colors of similar colors (for example, green and yellowish green), the photograph or mark may be at the same position. Further, even if different colors have similar values after photoelectric conversion, a photograph or a mark may be present at the same position.

【0015】次に本発明に係る原稿読取装置における信
号処理回路の構成例を図3により説明する。光電変換手
段10により光電変換された画像データは、A/Dコンバ
ータ11にてデジタル化される。このデジタル画像データ
に基づいて、後述する写真位置検出手段12又はマーク位
置検出手段12’により、写真位置又はマーク位置が検出
される。そして、この位置情報に基づいて、2値化しき
い値設定手段13により、2値化しきい値が設定される。
Next, a configuration example of the signal processing circuit in the document reading apparatus according to the present invention will be described with reference to FIG. The image data photoelectrically converted by the photoelectric conversion means 10 is digitized by the A / D converter 11. Based on this digital image data, the photographic position or mark position is detected by the photographic position detecting means 12 or mark position detecting means 12 'which will be described later. Then, based on this position information, the binarization threshold value setting means 13 sets the binarization threshold value.

【0016】一方、写真位置又はマーク位置までのデジ
タル画像データを蓄える画像メモリ等の画像蓄積手段14
が設けられており、この画像蓄積手段14は、FIFO方
式で、2値化しきい値確定後、最新の画像データを記憶
しつつ、最も古い画像データから順次、2値化処理手段
15へ画像データを出力する。これにより、2値化処理手
段15は、画像データを2値化しきい値と比較して、2値
化処理を行う。
On the other hand, an image storage means 14 such as an image memory for storing digital image data up to the photograph position or the mark position.
The image accumulating means 14 is provided with a FIFO method, and after the binarization threshold value is determined, the latest image data is stored and the binarization processing means is sequentially executed from the oldest image data.
Output image data to 15. Thereby, the binarization processing means 15 compares the image data with the binarization threshold value and performs the binarization process.

【0017】尚、画像蓄積手段14を用いず、本スキャン
に先立つプリスキャンにより、写真位置又はマーク位置
を検出して、最適な2値化しきい値を設定し、その後の
本スキャンにより、その2値化しきい値を用いて2値化
処理を行ってもよい。このプリスキャンにおいては、粗
く(すなわち、解像度を落として)スキャンして、スピ
ードをかせいでもよい。
It should be noted that, without using the image accumulating means 14, the photograph position or the mark position is detected by the pre-scan prior to the main scan, the optimum binarization threshold value is set, and then the second scan is performed. Binarization processing may be performed using a threshold value. In this pre-scan, scanning may be performed coarsely (that is, resolution may be reduced) to increase the speed.

【0018】(1)写真位置による場合の具体例 写真位置検出手段12の具体例を説明する。一部に写真の
貼付された原稿の画像を、図4に示すようなウインドウ
3×3のエリアで見た場合、文字の部分は2値領域であ
るため輝度に大きな変化があるのに対し、写真の部分は
階調領域であるため輝度に大きな変化がない。
(1) Specific example in case of photograph position A concrete example of the photograph position detecting means 12 will be described. When the image of the original with a part of the photograph attached is viewed in the window 3 × 3 area as shown in FIG. 4, the character portion is a binary area, so that the luminance changes greatly. Since the portion of the photograph is a gradation area, there is no great change in luminance.

【0019】この特性を利用し、3×3のエリア内の最
大輝度Lmax と最小輝度Lmin とを検出し、下記の1)〜
3)の条件を全て満たす場合に写真と判別し、これに基づ
いて最終的に写真位置を検出する。 1) Lmax −Lmin <L1 (輝度差なし) 2) Lmin <L2 (エリアが全白でない) 3) Lmax >L3 (エリアが全黒でない) 尚、L1,L2,L3は定数で、図5に示すような関係
にある。
Utilizing this characteristic, the maximum luminance Lmax and the minimum luminance Lmin in the 3 × 3 area are detected, and the following 1) to
If all the conditions of 3) are satisfied, it is determined to be a photograph, and the photograph position is finally detected based on this. 1) Lmax-Lmin <L1 (no brightness difference) 2) Lmin <L2 (area is not all white) 3) Lmax> L3 (area is not all black) L1, L2 and L3 are constants and are shown in FIG. There is a relationship as shown.

【0020】具体的には、図6の回路により、Lmax ,
Lmin の検出を行う。3個のFIFO方式のラインメモ
リ21〜23が直列に設けられており、それぞれデジタル画
像データを1ライン分記憶可能である。従って、画像デ
ータが1画素ずつラインメモリ21に入力される毎に、ラ
インメモリ21〜23上で画像データが順送りされる。こう
して、常に3ライン分の画像データが記憶される。
Specifically, with the circuit of FIG. 6, Lmax,
Lmin is detected. Three FIFO type line memories 21 to 23 are provided in series and each can store one line of digital image data. Therefore, every time the image data is input to the line memory 21 pixel by pixel, the image data is sequentially fed on the line memories 21 to 23. In this way, image data for 3 lines is always stored.

【0021】また、各ラインメモリ21〜23の出力側に対
し直列に3つずつつながった形で9個のラッチ回路24a
〜24c,25a〜25c,26a〜26cが設けられている。従
って、画素クロック毎に、各ラインメモリ21〜23の出力
側から1画素ずつのデータが読出されて第1ラッチ回路
24a,25a,26aにラッチされ、該第1ラッチ回路の前
回データが第2ラッチ回路24b,25b,26bに送られて
ラッチされ、また、該第2ラッチ回路の前回データが第
3ラッチ回路24c,25c,26cに送られてラッチされ
る。こうして、9個のラッチ回路24a〜24c,25a〜25
c,26a〜26cにより、3×3のエリア内のデータが保
持される。
Further, nine latch circuits 24a are connected in series to the output sides of the line memories 21 to 23, three in series.
-24c, 25a-25c, 26a-26c are provided. Therefore, the data for each pixel is read from the output side of each of the line memories 21 to 23 every pixel clock and the first latch circuit is read.
The previous data of the first latch circuit is sent to the second latch circuits 24b, 25b, 26b to be latched, and the previous data of the second latch circuit is latched by the third latch circuit 24c. , 25c, 26c and are latched. Thus, the nine latch circuits 24a to 24c and 25a to 25
The data in the 3 × 3 area is held by c and 26a to 26c.

【0022】ここにおいて、横3個(同一走査ライン)
の画素の大小比較を3ライン独立に行って、横3個での
最大値及び最小値を検出し、結果をもう1度大小比較し
て、Lmax ,Lmin を得る。すなわち、横並びの3つず
つのラッチ回路24a〜24c,25a〜25c,26a〜26cの
各出力をそれぞれ最大値・最小値検出回路27〜29に入力
し、横3個での最大値及び最小値を検出して出力させ
る。そして、3つの最大値・最小値検出回路27〜29の出
力を別の最大値・最小値検出回路30に入力し、3×3の
エリア内における最大値及び最小値を検出して、Lmax
,Lmin を得る。
Here, three horizontal lines (same scanning line)
The pixels are compared in size independently for three lines to detect the maximum and minimum values in the three horizontal pixels, and the results are compared again in magnitude to obtain Lmax and Lmin. That is, the outputs of the three latch circuits 24a to 24c, 25a to 25c, and 26a to 26c arranged side by side are input to the maximum value / minimum value detection circuits 27 to 29, respectively, and the maximum value and the minimum value of the three horizontal circuits are input. Is detected and output. Then, the outputs of the three maximum value / minimum value detection circuits 27 to 29 are input to another maximum value / minimum value detection circuit 30, and the maximum value and the minimum value in the 3 × 3 area are detected to obtain Lmax.
, Lmin.

【0023】最大値・最小値検出回路27の具体例を図7
に示す。第1ラッチ回路24aの出力aと第2ラッチ回路
24bの出力bとを比較器31及びセレクタ32に入力する。
そして、比較器31によるaとbとの比較結果に応じて、
セレクタ32を制御し、最大値MAXを検出する場合は、
a>bのとき、セレクタ32よりaを出力させ、また、a
≦bのとき、bを出力させる。すなわち、大きい方の値
を出力させる。
A concrete example of the maximum / minimum value detection circuit 27 is shown in FIG.
Shown in. Output a of the first latch circuit 24a and the second latch circuit
The output b of 24b is input to the comparator 31 and the selector 32.
Then, according to the comparison result of a and b by the comparator 31,
When controlling the selector 32 and detecting the maximum value MAX,
When a> b, the selector 32 outputs a, and a
When ≤b, b is output. That is, the larger value is output.

【0024】次に、aとbとの大きい方であるセレクタ
32の出力dと第3ラッチ回路24cの出力cとを比較器33
及びセレクタ34に入力する。そして、比較器33によるd
とcとの比較結果に応じて、セレクタ34を制御し、最大
値MAXを検出する場合は、d>cのとき、セレクタ34
よりdを出力させ、また、d≦cのとき、cを出力させ
る。すなわち、大きい方の値を出力させる。これが最大
値MAXとなる。
Next, the selector which is the larger of a and b
The comparator 33 compares the output d of 32 and the output c of the third latch circuit 24c.
And to the selector 34. Then, d by the comparator 33
When the maximum value MAX is detected by controlling the selector 34 in accordance with the result of comparison between c and c, when d> c, the selector 34
Output d, and when d ≦ c, output c. That is, the larger value is output. This becomes the maximum value MAX.

【0025】最小値MINを検出する場合は、比較器31
の比較結果がa>bのときにセレクタ32よりbを出力さ
せ、また、a≦bのときにaを出力させる。そして、比
較器33の比較結果がd>cのときにセレクタ34よりcを
出力させ、また、d≦cのときにセレクタ34よりdを出
力させればよい。他の最大値・最小値検出回路28〜30に
ついても同様である。
When the minimum value MIN is detected, the comparator 31
When the comparison result of is a> b, the selector 32 outputs b, and when a ≦ b, a is output. Then, when the comparison result of the comparator 33 is d> c, the selector 34 may output c, and when d ≦ c, the selector 34 may output d. The same applies to the other maximum / minimum value detection circuits 28 to 30.

【0026】Lmax ,Lmin に基づく写真の判別は、図
8の回路により行う。引算回路35は、Lmax 及びLmin
を入力して、Lmax −Lmin を出力する。比較回路36
は、Lmax −Lmin と定数L1とを比較し、Lmax −L
min <L1のとき、Hレベルの信号を出力する。比較回
路37は、Lmin と定数L2とを比較し、Lmin <L2の
とき、Hレベルの信号を出力する。
The determination of the photograph based on Lmax and Lmin is performed by the circuit of FIG. The subtraction circuit 35 has Lmax and Lmin.
Is input and Lmax-Lmin is output. Comparison circuit 36
Compares Lmax-Lmin with a constant L1, and obtains Lmax-L
When min <L1, an H level signal is output. The comparison circuit 37 compares Lmin with a constant L2, and outputs an H level signal when Lmin <L2.

【0027】比較回路38は、Lmax と定数L3とを比較
し、Lmax >L3のとき、Hレベルの信号を出力する。
これらの比較回路36〜38の出力はアンド回路39に入力さ
れ、全てHレベルであるときに、アンド回路39からHレ
ベルの信号が出力される。これが写真判別信号となる。
The comparison circuit 38 compares Lmax with a constant L3, and outputs an H level signal when Lmax> L3.
The outputs of these comparison circuits 36 to 38 are input to the AND circuit 39, and when all are at the H level, the AND circuit 39 outputs an H level signal. This becomes the photo discrimination signal.

【0028】最終的な写真位置の検出は、図9の回路に
より行われる。ライン数カウンタ40は、読取スタート信
号でクリアされた後、水平同期信号SHをカウントし、
そのカウント値(主走査ライン数)をラッチ回路42に出
力している。画素カウンタ41は、水平同期信号SHでク
リアされた後、画素クロックをカウントし、そのカウン
ト値(画素数)をラッチ回路42に出力している。
The final photo position detection is performed by the circuit shown in FIG. The line number counter 40 counts the horizontal synchronizing signal SH after being cleared by the reading start signal,
The count value (the number of main scanning lines) is output to the latch circuit 42. The pixel counter 41 counts the pixel clock after being cleared by the horizontal synchronizing signal SH, and outputs the count value (the number of pixels) to the latch circuit 42.

【0029】ラッチ回路42には、ラッチ信号として、図
8の写真判別部のアンド回路39の出力信号(写真判別信
号)が入力されており、この信号がHレベルのとき、主
走査ライン数及び画素数がラッチされる。これが、写真
位置として、2値化しきい値設定手段13(図3参照)へ
出力される。
An output signal (photograph discrimination signal) of the AND circuit 39 of the photograph discrimination unit of FIG. 8 is input to the latch circuit 42 as a latch signal. When this signal is at H level, the number of main scanning lines and The number of pixels is latched. This is output to the binarization threshold value setting means 13 (see FIG. 3) as a photograph position.

【0030】次に、2値化しきい値設定手段13の具体例
を図10により説明する。この2値化しきい値設定手段13
は、ルックアップテーブル(ROM)43とD/Aコンバ
ータ44とから構成される。ルックアップテーブル(RO
M)43は、そのアドレス側に検出された写真位置(写真
位置までのライン数及び画素数)が入力されるようにな
っており、このアドレス側入力に対応して、下記のごと
く予め記憶された2値化しきい値のデータを8ビットD
/Aコンバータ44に出力する。尚、ルックアップテーブ
ル(ROM)43の代わりに比較器を用いてもよい。
Next, a concrete example of the binarization threshold value setting means 13 will be described with reference to FIG. This binary threshold setting means 13
Is composed of a look-up table (ROM) 43 and a D / A converter 44. Look-up table (RO
M) 43 is adapted to be input with the detected photograph position (the number of lines and the number of pixels up to the photograph position) at the address side, and is stored in advance in the following manner in response to the address side input. 8-bit D of binary threshold data
Output to the / A converter 44. A comparator may be used instead of the look-up table (ROM) 43.

【0031】 〔アドレス〕 〔データ〕 A±α …赤いインクのしきい値データ B±α …青いインクのしきい値データ C±α …緑のインクのしきい値データ これ以外のエリアには中間レベル(例えば7FH)を入
れる。
[Address] [Data] A ± α ... Threshold data for red ink B ± α ... Threshold data for blue ink C ± α ... Threshold data for green ink Enter a level (eg 7FH).

【0032】8ビットD/Aコンバータ44は、2値化し
きい値発生用で、前記データを8ビットの電圧信号に変
換して、2値化処理手段15としてのコンパレータ45に入
力する。2値化処理手段15としてのコンパレータ45は、
画像データを8ビットD/Aコンバータ44の出力(2値
化しきい値)と比較して、2値化処理を行う。
The 8-bit D / A converter 44 is for generating a binarization threshold value, converts the data into an 8-bit voltage signal, and inputs it to the comparator 45 as the binarization processing means 15. The comparator 45 as the binarization processing means 15
The image data is compared with the output (binarization threshold value) of the 8-bit D / A converter 44, and binarization processing is performed.

【0033】(2)マーク位置による場合の具体例 マーク位置検出手段12’の具体例を説明する。マーク
は、原稿の特定エリア内、例えば図11に示すように、縦
方向に主走査ライン数でL〜L+Mのエリア内にあり、
そのエリア内での横方向の位置が原稿の種類により異な
るものとする。
(2) Specific Example of Mark Position Detection A specific example of the mark position detection means 12 'will be described. The mark exists in a specific area of the document, for example, in the area of L to L + M in the number of main scanning lines in the vertical direction, as shown in FIG.
The horizontal position in the area differs depending on the type of document.

【0034】従って、図12の回路により、主走査ライン
数をカウントして、マークエリア(L〜L+M)を切出
し、その中でのマーク位置を画素クロック数をカウント
して検出する。図12の回路について、図13のタイミング
チャートを参照しつつ説明する。ライン数カウンタ51
は、読取スタート信号でクリアされた後、水平同期信号
SHをカウントし、そのカウント値(主走査ライン数)
を比較器52に出力する。
Therefore, the circuit of FIG. 12 counts the number of main scanning lines, cuts out the mark area (L to L + M), and detects the mark position in it by counting the number of pixel clocks. The circuit of FIG. 12 will be described with reference to the timing chart of FIG. Line number counter 51
Is counted by the horizontal start signal SH after being cleared by the reading start signal, and the count value (the number of main scanning lines)
Is output to the comparator 52.

【0035】比較器52は、そのカウント値をL及びL+
Mと比較し、L≦カウント値≦L+MのときにHレベル
の信号を出力する。従って、このHレベルの信号がマー
クエリア検出信号となる。画素カウンタ53は、水平同期
信号SHでクリアされた後、画素クロックをカウント
し、そのカウント値(画素数)をラッチ回路54に出力し
ている。
The comparator 52 outputs the count value to L and L +.
Compared with M, when L ≦ count value ≦ L + M, an H level signal is output. Therefore, this H level signal becomes the mark area detection signal. The pixel counter 53 counts the pixel clock after being cleared by the horizontal synchronizing signal SH, and outputs the count value (the number of pixels) to the latch circuit 54.

【0036】一方、画像データはコンパレータ55に入力
され、所定値と比較されてマークの有無が検出され、マ
ーク有りのときにコンパレータ55からHレベルの信号が
出力される。このコンパレータ55の出力はアンド回路56
に入力され、このアンド回路56の他方の入力端子にマー
クエリア検出信号が入力されるようになっている。
On the other hand, the image data is input to the comparator 55 and compared with a predetermined value to detect the presence / absence of a mark. When the mark is present, the comparator 55 outputs an H level signal. The output of this comparator 55 is the AND circuit 56.
The mark area detection signal is input to the other input terminal of the AND circuit 56.

【0037】従って、マークエリアにおいてマークを検
出したときのみアンド回路56からHレベルの信号が出力
され、このHレベルの信号はラッチ信号として、ラッチ
回路24のラッチ端子に入力される。従って、ラッチ回路
54においてはマーク位置の立上がり時の画素数がラッチ
される。
Therefore, an H level signal is output from the AND circuit 56 only when a mark is detected in the mark area, and this H level signal is input to the latch terminal of the latch circuit 24 as a latch signal. Therefore, the latch circuit
At 54, the number of pixels when the mark position rises is latched.

【0038】これがマーク位置として、2値化しきい値
設定手段13(図3参照)へ出力される。次にこの場合の
2値化しきい値設定手段13の具体例を図14により説明す
る。この2値化しきい値設定手段13は、ルックアップテ
ーブル(ROM)57とD/Aコンバータ58とから構成さ
れる。
This is output to the binarization threshold value setting means 13 (see FIG. 3) as a mark position. Next, a concrete example of the binarized threshold value setting means 13 in this case will be described with reference to FIG. The binarization threshold value setting means 13 comprises a look-up table (ROM) 57 and a D / A converter 58.

【0039】ルックアップテーブル(ROM)57は、そ
のアドレス側に検出されたマーク位置(マーク位置まで
の画素数)が入力されるようになっており、このアドレ
ス側入力に対応して、下記のごとく予め記憶された2値
化しきい値のデータを8ビットD/Aコンバータ58に出
力する。 〔アドレス〕 〔データ〕 A’±α …赤いインクのしきい値データ B’±α …青いインクのしきい値データ C’±α …緑のインクのしきい値データ これ以外のエリアには中間レベル(例えば7FH)を入
れる。
The look-up table (ROM) 57 is adapted to input the detected mark position (the number of pixels up to the mark position) on the address side thereof. The binary threshold data stored in advance is output to the 8-bit D / A converter 58. [Address] [Data] A '± α ... Red ink threshold data B' ± α ... Blue ink threshold data C '± α ... Green ink threshold data Other areas are intermediate Enter a level (eg 7FH).

【0040】8ビットD/Aコンバータ58は、2値化し
きい値発生用で、前記データを8ビットの電圧信号に変
換して、2値化処理手段15としてのコンパレータ59に入
力する。2値化処理手段15としてのコンパレータ59は、
画像データを8ビットD/Aコンバータ58の出力(2値
化しきい値)と比較して、2値化処理を行う。
The 8-bit D / A converter 58 is for generating a binarization threshold value, converts the data into an 8-bit voltage signal, and inputs it to the comparator 59 as the binarization processing means 15. The comparator 59 as the binarization processing means 15
The image data is compared with the output (binarization threshold value) of the 8-bit D / A converter 58 to perform binarization processing.

【0041】[0041]

【発明の効果】以上説明したように本発明によれば、読
取対象となる複数種類の原稿の写真位置又はマーク位置
を利用して、2値化処理のための2値化しきい値を自動
的に最適値に設定することにより、文字部の色が異なっ
ても、最適なレベルで2値化処理を行うことができ、こ
れにより文字のかすれやつぶれを防止することができる
という効果が得られる。
As described above, according to the present invention, the binarization threshold value for the binarization process is automatically used by utilizing the photograph positions or mark positions of a plurality of types of originals to be read. By setting the optimum value to, even if the color of the character part is different, the binarization process can be performed at the optimum level, and thus it is possible to prevent the character from being blurred or crushed. ..

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

【図1】 本発明の一実施例を示す原稿読取装置の構造
FIG. 1 is a structural diagram of a document reading apparatus showing an embodiment of the present invention.

【図2】 読取対象となる原稿を示す図FIG. 2 is a diagram showing a document to be read.

【図3】 信号処理回路の構成例を示すブロック図FIG. 3 is a block diagram showing a configuration example of a signal processing circuit.

【図4】 写真の判別方法について説明する図FIG. 4 is a diagram illustrating a method of discriminating between photographs.

【図5】 同じく写真の判別方法について説明する図FIG. 5 is a diagram for explaining a method of discriminating between photographs as well.

【図6】 写真位置検出手段の一部であるLmax ,Lmi
n 検出部の回路図
FIG. 6 shows Lmax and Lmi which are part of the photograph position detecting means.
Circuit diagram of n detector

【図7】 図6中の最大値・最小値検出回路の具体例を
示す図
7 is a diagram showing a specific example of the maximum value / minimum value detection circuit in FIG.

【図8】 写真位置検出手段の一部である写真判別部の
回路図
FIG. 8 is a circuit diagram of a photograph discriminating unit which is a part of photograph position detecting means.

【図9】 写真位置検出手段の一部である最終検出部の
回路図
FIG. 9 is a circuit diagram of a final detection unit which is a part of the photograph position detection means.

【図10】 2値化しきい値設定手段の具体例を示す回路
FIG. 10 is a circuit diagram showing a specific example of binarization threshold value setting means.

【図11】 マークについて説明する図FIG. 11 is a diagram explaining marks.

【図12】 マーク位置検出手段の具体例を示す回路図FIG. 12 is a circuit diagram showing a specific example of mark position detection means.

【図13】 図12のタイミングチャートFIG. 13 is a timing chart of FIG.

【図14】 マーク検出の場合の2値化しきい値設定手段
の具体例を示す回路図
FIG. 14 is a circuit diagram showing a specific example of a binarization threshold value setting means for mark detection.

【図15】 従来例として読取走査原理を示す図FIG. 15 is a diagram showing a reading scanning principle as a conventional example.

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

10 光電変換手段(CCD) 12 写真位置検出手段 12’マーク位置検出手段 13 2値化しきい値設定手段 14 画像蓄積手段(画像メモリ) 15 2値化処理手段 10 Photoelectric conversion means (CCD) 12 Photo position detection means 12 'Mark position detection means 13 Binarization threshold value setting means 14 Image storage means (image memory) 15 Binarization processing means

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】原稿を読取って2値化処理する原稿読取装
置であって、一部に写真が貼付され、かつその写真位置
と文字部の色とが対応する複数種類の原稿を読取対象と
するものにおいて、 写真位置を検出する手段と、検出された写真位置に基づ
いて2値化しきい値を設定する手段とを設けたことを特
徴とする原稿読取装置。
1. An original reading device for reading an original and performing binarization processing, wherein a plurality of kinds of originals having a photograph attached to a part thereof and the photograph position and the color of a character portion correspond to each other are to be read. The document reading apparatus, further comprising means for detecting a photograph position and means for setting a binarization threshold value based on the detected photograph position.
【請求項2】原稿を読取って2値化処理する原稿読取装
置であって、特定エリア内にマークが付され、かつその
特定エリア内のマーク位置と文字部の色とが対応する複
数種類の原稿を読取対象とするものにおいて、 マーク位置を検出する手段と、検出されたマーク位置に
基づいて2値化しきい値を設定する手段とを設けたこと
を特徴とする原稿読取装置。
2. A document reading apparatus for reading a document and performing binarization processing, wherein a plurality of types of marks are provided in a specific area, and a mark position in the specific area and a color of a character portion correspond to each other. An original reading apparatus, comprising: an object to be read, including means for detecting a mark position and means for setting a binarization threshold value based on the detected mark position.
JP4094604A 1992-04-15 1992-04-15 Original reader Pending JPH05292311A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4094604A JPH05292311A (en) 1992-04-15 1992-04-15 Original reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4094604A JPH05292311A (en) 1992-04-15 1992-04-15 Original reader

Publications (1)

Publication Number Publication Date
JPH05292311A true JPH05292311A (en) 1993-11-05

Family

ID=14114860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4094604A Pending JPH05292311A (en) 1992-04-15 1992-04-15 Original reader

Country Status (1)

Country Link
JP (1) JPH05292311A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106525184A (en) * 2016-11-04 2017-03-22 湖南威铭能源科技有限公司 Accurate reading method of photoelectric direct reading water meter

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106525184A (en) * 2016-11-04 2017-03-22 湖南威铭能源科技有限公司 Accurate reading method of photoelectric direct reading water meter
CN106525184B (en) * 2016-11-04 2019-10-15 湖南威铭能源科技有限公司 The pin-point reading method of photoelectric direct-reading water meter

Similar Documents

Publication Publication Date Title
US4996603A (en) Image processing system
US8068260B2 (en) Original document size detection using a line sensor for reading the original document
US7903302B2 (en) Image reading apparatus and image reading method
JP4272366B2 (en) Document reading apparatus and image forming apparatus
GB2405045A (en) Improving digital images
US20080218800A1 (en) Image processing apparatus, image processing method, and computer program product
JPH08172532A (en) Image reader and read method
JP3262326B2 (en) Image processing apparatus and image processing method
JPH05292311A (en) Original reader
JP2001358914A (en) Image reader
JPH1188669A (en) Image reader, image-reading method, computer-readable storage medium and light-emitting substance detecting device
JP3257826B2 (en) Image processing device
JPH08251355A (en) Image reader
JP2541937B2 (en) Image processing device
JPS60148280A (en) Device for reading color original
JP2900343B2 (en) Image processing device
JPH0678100A (en) Original size detector
JPH04162866A (en) Facsimile equipment
JP2001111821A (en) Image reader
US20040017589A1 (en) Method for selecting a shading correcting line
JPH05219370A (en) Picture processing unit
JPS63132258A (en) Digital image recording device
JPH1188676A (en) Image-reading method and system thereof
JPS63132567A (en) Digital image recorder
JPS6378665A (en) Image reader