JPS5914792B2 - Analog signal binary signal conversion circuit - Google Patents

Analog signal binary signal conversion circuit

Info

Publication number
JPS5914792B2
JPS5914792B2 JP51016823A JP1682376A JPS5914792B2 JP S5914792 B2 JPS5914792 B2 JP S5914792B2 JP 51016823 A JP51016823 A JP 51016823A JP 1682376 A JP1682376 A JP 1682376A JP S5914792 B2 JPS5914792 B2 JP S5914792B2
Authority
JP
Japan
Prior art keywords
signal
maximum value
photoelectric conversion
conversion device
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.)
Expired
Application number
JP51016823A
Other languages
Japanese (ja)
Other versions
JPS5299722A (en
Inventor
功雄 一色
浩二 佐藤
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.)
Sumitomo Electric Industries Ltd
Original Assignee
Sumitomo Electric Industries 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 Sumitomo Electric Industries Ltd filed Critical Sumitomo Electric Industries Ltd
Priority to JP51016823A priority Critical patent/JPS5914792B2/en
Priority to US05/763,759 priority patent/US4104616A/en
Publication of JPS5299722A publication Critical patent/JPS5299722A/en
Publication of JPS5914792B2 publication Critical patent/JPS5914792B2/en
Expired legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は、アナログ信号の二値化回路、特に光学的文字
読取あるいは符号読取装置等において、光電変換装置よ
り得られたアナログ電気信号を、背景領域と文字、符号
領域に対応する二値信号に10量子化する二値信号化回
路に関するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention provides an analog electrical signal obtained from a photoelectric conversion device in an analog signal binarization circuit, particularly in an optical character reading or code reading device. The present invention relates to a binary signal conversion circuit that quantizes a binary signal corresponding to 10 by 10.

光学的文字読取装置あるいは符号読取装置等において、
文字あるいは符号を走査して、そのパターンの存在によ
り反射光の強弱が検出されると、光電変換装置から光の
強弱に比例したアナログ15電気信号が得られる。その
アナログ電気信号を背景領域と文字あるいは符号領域に
対応する二値の信号に変換する場合、差動増幅器の一つ
の入力端子には二値化しようとするアナログ電気信号を
、他の入力端子には二値化のための基準電圧をそれ20
ぞれ入力し、両者を差動的に作用させて、これらの電圧
を比較し、アナログ信号電圧が文字、符号領域からの反
射光に相当するレベルであれば、あらかじめ設定された
第一の電圧を出力し、これを論理上の“1”とする。ま
た、背景領域からの反25射光に相当するレベルであれ
ば、あらかじめ設定された第二の電圧を出力し、これを
論理上の“0”とする。このように、反射光を光電変換
装置で受光し、その出力信号を基準電圧と比較して、ア
ナログ信30号電圧の絶対値の大小関係により 値化す
るような従来の方法では、文字あるいは符号等が記載さ
れた用紙の反射率あるいは光源の光量変動等による受光
レベルの変動により、文字等のパターンを忠実に再現し
うる二値信号パターンを得ることは石 容易ではなかつ
た。
In optical character reading devices or code reading devices, etc.
When a character or code is scanned and the intensity of reflected light is detected based on the presence of the pattern, an analog 15 electrical signal proportional to the intensity of the light is obtained from the photoelectric conversion device. When converting that analog electrical signal into a binary signal corresponding to a background area and a character or code area, one input terminal of the differential amplifier is connected to the analog electrical signal to be binarized to the other input terminal. is the reference voltage for binarization, which is 20
If the analog signal voltage is at a level corresponding to the reflected light from the character or code area, the preset first voltage is applied. is output, and this is set as a logical "1". Further, if the level corresponds to the reflected light from the background area, a preset second voltage is output, and this is set to logical "0". In this way, in the conventional method of receiving the reflected light with a photoelectric conversion device, comparing the output signal with a reference voltage, and converting it into a value based on the magnitude relationship of the absolute value of the analog signal No. 30 voltage, It has not been easy to obtain a binary signal pattern that can faithfully reproduce the pattern of characters, etc. due to fluctuations in the level of light received due to changes in the reflectance of the paper on which characters are printed or changes in the light intensity of the light source.

本発明は、上記のように従来の問題点を解決するため、
光源の光量変動、あるいは走査装置と用)ハη−紙との
間の距離変動等によつて生ずる光電変換装置の受光レベ
ル変動に対しても、文字、符号パターンを忠実に二値信
号パターンに再現しうるような回路の実現を目的とする
ものである。
The present invention solves the conventional problems as described above.
Characters and code patterns can be faithfully converted into binary signal patterns even in response to fluctuations in the light reception level of the photoelectric conversion device caused by fluctuations in the light intensity of the light source or fluctuations in the distance between the scanning device and the paper. The purpose is to realize a circuit that can be reproduced.

以下、図面により、本発明を詳細に説明する。Hereinafter, the present invention will be explained in detail with reference to the drawings.

第1図は、本発明の一実施例を示す二値信号化回路のプ
ロツク図である。図において、1はAD変換装置であり
、光学的文字あるいは符号読取装置において、文字ある
いは符号を走査して光電変換装置から得られるアナログ
信号SIを受け、これをデイジタル信号に変換して、変
換出力1を取出す。2および3はバツフア・レジスタで
あつて、いずれもA−D変換装置1の出力信号1を記憶
するものであるが、このうちバツフア・レジスタ2は直
前のA−D変換信号T.iを記憶し、バツフア・レジス
タ3は前々回のA−D変換信号1t.i−1を記憶する
FIG. 1 is a block diagram of a binary signal conversion circuit showing one embodiment of the present invention. In the figure, 1 is an AD conversion device, which receives an analog signal SI obtained from a photoelectric conversion device by scanning a character or code in an optical character or code reading device, converts it into a digital signal, and outputs the converted signal. Take out 1. 2 and 3 are buffer registers, both of which store the output signal 1 of the A/D converter 1. Of these, buffer register 2 stores the immediately preceding A/D converted signal T. i, and the buffer register 3 stores the A-D conversion signal 1t.i from the previous time. Store i-1.

4は加算器であつて、バツフア・レジスタ2の内容1t
.iとバツフア・レジスタ3の内容It.i−1を加え
合せた値を出力信号Jt.iとしている。
4 is an adder, and the content 1t of buffer register 2
.. i and the contents of buffer register 3 It. i-1 is added to the output signal Jt. It is set as i.

5は最大値検出レジスタであつて、論理積回路7の出力
信号Aが出現するタイミングで、そのときのJt.iを
最大値検出レジスタ5の内容とし、次に信号Aが生じる
までその内容を保持する。
5 is a maximum value detection register which detects the current Jt. Let i be the content of the maximum value detection register 5, and hold that content until the next signal A occurs.

6は比較回路であり、Jt.iとレジスタ5の出力Dと
を比較し、Jt.i>Dの関係を満足したとき、出力B
を発生する。
6 is a comparison circuit, and Jt. i and the output D of register 5, and Jt. When the relationship i>D is satisfied, the output B
occurs.

7は論理積回路であつて、比較回路6の出力信号Bと、
タイミング信号CKを入力とし、両者の論理積信号Aを
発生する。
7 is an AND circuit, which outputs the output signal B of the comparator circuit 6;
The timing signal CK is input, and the AND signal A of both is generated.

レジスタ5、比較回路6および論理積回路7の動作でJ
t.iの最大値を求め、その最大値をレジスタ5に記憶
することができる。したがつて、後述のタイミングで最
大値検出レジスタ5をクリアした後、前記の動作を行わ
せることにより、一垂直走査終了時点で最大値検出レジ
スタ5の内容は一垂直走査内のJt.iの最大値を示す
こととなる。8はシフト・レジスタであつて、一列走査
分のA−D変換信号1tを記憶するだけの容量を有して
おり、バツフア・レジスタ2にA−D変換信号1が新し
くセツトされる度ごとにバツフア・レジスタ2の出力信
号1t,.iをシフト・レジスタ8に取込む0したがつ
て、現在の垂直走査のi番目のA−D変換信号1t.i
をシフト・レジスタ8に取込む直前のシフト・レジスタ
8の出力信号は、直前の垂直走査によつて得られたi番
目のA−D変換信号1t−1、iとなる。
J by the operation of register 5, comparator circuit 6 and AND circuit 7
t. The maximum value of i can be determined and stored in the register 5. Therefore, by performing the above operation after clearing the maximum value detection register 5 at the timing described later, the contents of the maximum value detection register 5 at the end of one vertical scan become Jt. This indicates the maximum value of i. Reference numeral 8 denotes a shift register, which has a capacity sufficient to store the A-D conversion signal 1t for one row of scanning. Output signals 1t, . i is taken into the shift register 8. Therefore, the i-th A-D conversion signal 1t. i
The output signal of the shift register 8 immediately before it is taken into the shift register 8 becomes the i-th AD conversion signal 1t-1,i obtained by the previous vertical scan.

It.iをシフト・レジスタ8に取込むと、シフト・レ
ジスタ8の出力信号はIt−1、i+!となる。9は演
算回路であつて、最大値検出レジスタ5の出力信号Dか
ら閾値THtを求め、出力信号とするものである。
It. When i is taken into shift register 8, the output signals of shift register 8 are It-1, i+! becomes. Reference numeral 9 denotes an arithmetic circuit which calculates a threshold value THt from the output signal D of the maximum value detection register 5 and outputs it as an output signal.

演算回路9はの演算を行う。ここで、A,bは定数であ
る。10は閾値を記憶するための閾値レジスタであつて
、演算回路9の出力信号THtを後述のタイミングで取
込み、その値を保持する。
The arithmetic circuit 9 performs the following calculations. Here, A and b are constants. Reference numeral 10 denotes a threshold value register for storing a threshold value, which takes in the output signal THt of the arithmetic circuit 9 at a timing described later and holds the value.

11は比較回路であつて、閾値レジスタ10の出力信号
THt..lとシフト・レジスタ8の出力信号1t−1
、1を比較し、THt−1〉It−1、i
・・・・・・・・・・・・・・・(Ii)のとき、出力
信号Eを論理“11とする。
Reference numeral 11 denotes a comparison circuit which receives the output signal THt. of the threshold value register 10. .. l and the output signal 1t-1 of shift register 8
, 1, THt-1〉It-1,i
When (Ii), the output signal E is set to logic "11".

THt−1くIt−1、i ・・・・・・・・・
・・・・・・(1ii)のとき、出力信号Fを論理″1
″とする。
THt-1kuIt-1,i ・・・・・・・・・
...... (1ii), the output signal F is set to logic "1"
”.

したがつて、THt−1=It−1、iのときは、出力
信号E,Fはともに論理″01となる。12は黒白フリ
ツプ・フロツプであり、比較回路11の出力信号E−“
1”のときセツトし、出力信号F=“ビのときりセツト
して、二値化判定結果Bwt−1、iを出力する。
Therefore, when THt-1=It-1, i, both the output signals E and F become logic "01." 12 is a black and white flip-flop, and the output signal E-" of the comparator circuit 11 is
It is set when the output signal F="1", and is set when the output signal F="B" to output the binarization determination result Bwt-1,i.

したがつて、比較回路11の出力信号E,Fともに論理
″0″のときは、直前の二値化判定結果Bwt−1、l
−,を持続し、Bwt−1、1とする。次に、第2図、
第3図を用いて、第1図における各部の動作を説明する
Therefore, when the output signals E and F of the comparator circuit 11 are both logic "0", the previous binarization determination result Bwt-1, l
-, is maintained and set to Bwt-1, 1. Next, Figure 2,
The operation of each part in FIG. 1 will be explained using FIG. 3.

第2図に示すように、文字あるいは符号パターンを光電
変換装置上に結像させ、光電変換装置内の各受光エレメ
ントをCO,Cl,C2・・・・・・C29として、各
受光エレメントの出力信号を順次走査した場合に得られ
た各受光エレメントのアナログ出力信号を、第3図のS
Iに示す。
As shown in Figure 2, a character or code pattern is imaged on the photoelectric conversion device, each light receiving element in the photoelectric conversion device is designated as CO, Cl, C2...C29, and the output of each light receiving element is The analog output signals of each light-receiving element obtained when the signals are sequentially scanned are shown in S in Fig.
Shown in I.

第3図におけるPt.lの間の信号は、光電変換装置が
第2図の文字像のPt−1の位置にあつたときの各受光
エレメントCiの出力信号を示し、また第3図における
Ptの間の信号は、光電変換装置が第2図の文字像のP
tの位置にあつたときの各受光エレメントCiの出力信
号を示している〇第3図の例では、Pt−1の位置で走
査して得られた信号SIと、Ptの位置で走査して得ら
れた信号のレベルが何らかの原因で大幅に変化した場合
を示している。
Pt. The signal between 1 and 1 indicates the output signal of each light-receiving element Ci when the photoelectric conversion device is at the position Pt-1 of the character image in FIG. 2, and the signal between Pt in FIG. The photoelectric conversion device converts the character image P in Figure 2.
In the example in Figure 3, which shows the output signal of each light-receiving element Ci when it is at position t, the signal SI obtained by scanning at position Pt-1 and the signal SI obtained by scanning at position Pt are shown. This shows a case where the level of the obtained signal has changed significantly for some reason.

垂直走査Ptの開始直前の各部の状態を説明すると、バ
ツフア・レジスタ2には直前の垂直走査Pt−1の最後
の受光エレメントC29の出力信号をデイジタル化した
値が記憶されており、バツフア・レジスタ3にはPt−
1垂直走査時の受光エレメントC28の出力信号をデイ
ジタル化した値(以下出力信号という)が記憶されてい
る。
To explain the state of each part immediately before the start of vertical scanning Pt, the buffer register 2 stores a value obtained by digitizing the output signal of the last light receiving element C29 of the immediately preceding vertical scanning Pt-1, and the buffer register 3 has Pt-
A value obtained by digitizing the output signal of the light receiving element C28 during one vertical scan (hereinafter referred to as an output signal) is stored.

また、シフト・レジスタ8にはPt−1垂直走査時のす
べての受光エレメントの出力信号が記憶されており、シ
フト・レジスタ8の出力信号はPt−1垂直走査時の最
上端の受光エレメントCOの出力信号を示している。閾
値レジスタ10には、Pt−1垂直走査中の最上端と最
下端の受光エレメントCO,C29の出力信号を除いた
Mt−,の間の連続する2エレメントの出力信号の和の
最大値によつて決定された閾値THt−1が記憶されて
いる。この状態から、Ptの垂直走査時には、次の動作
を行う。1)黒白フリツプ・フロツプ12をりセツト(
イニシヤライズ)する。
In addition, the shift register 8 stores the output signals of all the light receiving elements during Pt-1 vertical scanning, and the output signal of the shift register 8 is the output signal of the topmost light receiving element CO during Pt-1 vertical scanning. Shows the output signal. The threshold value register 10 is set according to the maximum value of the sum of the output signals of two consecutive elements between the top and bottom light-receiving elements CO and Mt-, excluding the output signal of C29, during vertical scanning of Pt-1. The threshold value THt-1 thus determined is stored. From this state, the following operation is performed during vertical scanning of Pt. 1) Reset black and white flip-flop 12 (
initialize).

2)比較回路11の出力信号E,Fによつて、黒白フリ
ツプ・フロツプ12をセツト、クリアあるいは保持する
(It−1、oの二値化)。
2) The black and white flip-flop 12 is set, cleared or held by the output signals E and F of the comparison circuit 11 (binarization of It-1 and o).

3)受光エレメントCOの出力信号を走査し、A一D変
換装置1でデイジタル信号化した後、バツフア・レジス
タ2に格納するとともに、バツフア・レジスタ2の内容
をバツフア・レジスタ3に転送する。
3) After scanning the output signal of the light receiving element CO and converting it into a digital signal by the A/D converter 1, it is stored in the buffer register 2, and the contents of the buffer register 2 are transferred to the buffer register 3.

4)バツフア・レジスタ2の内容(COの出力信号)を
シフト・レジスタ8に取込む。
4) Load the contents of buffer register 2 (CO output signal) into shift register 8.

シフト・レジスタ8の出力信号はPt−1垂直走査時の
受光エレメントC1の出力出力1し,、1となる。5)
最大値検出バツフア・レジスタ5の内容Dと、バツフア
・レジスタ2,3の内容の加算値Jt.Oを比較し、J
t,.O>Dのとき、Jt.Oをレジスタ5に記憶する
The output signal of the shift register 8 becomes 1, which is the output of the light receiving element C1 during Pt-1 vertical scanning. 5)
The sum Jt. of the contents D of the maximum value detection buffer register 5 and the contents of buffer registers 2 and 3. Compare O and J
t,. When O>D, Jt. Store O in register 5.

6)比較回路11の出力信号E,Fによつて、黒白フリ
ツプ・フロツプ12をセツト、クリアあるいは保持する
(It−1、1の二値化)。
6) Set, clear or hold the black and white flip-flop 12 using the output signals E and F of the comparator circuit 11 (binarization of It-1, 1).

7)受光エレメントC1の出力信号を走査し、A−D変
換装置1でデイジタル信号化した後、バツフア・レジス
タ2に格納するとともに、バツフア・レジスタ2の内容
をバツフア・レジスタ3に転送する。
7) After scanning the output signal of the light receiving element C1 and converting it into a digital signal by the A/D converter 1, it is stored in the buffer register 2, and the contents of the buffer register 2 are transferred to the buffer register 3.

8)バツフア・レジスタ2の内容(C1の出力信号1t
、1)をシフト・レジスタ8に取込む。
8) Contents of buffer register 2 (C1 output signal 1t
, 1) into the shift register 8.

シフトレジスタ8の出力信号はPt−1垂直走査時の受
光エレメントC2の出力信号1t−1、2となる。9)
最大値検出レジスタ5をクリアする。
The output signal of the shift register 8 becomes the output signal 1t-1, 1t-2 of the light receiving element C2 during Pt-1 vertical scanning. 9)
Clear maximum value detection register 5.

10)比較回路11の出力信号E,Fによつて、黒白フ
リツプ・フロツプをセツト、クリアあるいは保持する(
t−1,2の二値化)。
10) Set, clear, or hold the black and white flip-flop using the output signals E and F of the comparator circuit 11 (
Binarization of t-1, 2).

10次の受光エレメントCiの出力信号を走査し、A−
D変換装置1でデイジタル信号化(It.i)した後、
バツフア・レジスタ2に格納するとともに、バツフア・
レジスタ2の内容(It,.i−1)をバツフア・レジ
スタ3に転送する。
The output signal of the 10th order light receiving element Ci is scanned, and A-
After converting it into a digital signal (It.i) with the D converter 1,
At the same time as storing in buffer register 2,
Transfer the contents of register 2 (It, .i-1) to buffer register 3.

(支)バツフア・レジスタ2の内容1t.iをシフトレ
ジスタ8に取込む。
(branch) Contents of buffer register 2 1t. Take i into shift register 8.

シフト・レジスタ8の出力信号はIt−1、i+1とな
る。1壕 最大値検出レジスタ5の内容Dと、Jt.l
(=It.i−1+It,.i)を比較し、Jt.i>
Dのときは、CKのタイミングで最大値検出レジスタ5
を更新し、Jt.iを記憶する。
The output signals of the shift register 8 are It-1 and i+1. 1 The contents D of the maximum value detection register 5 and the Jt. l
(=It.i-1+It,.i), Jt. i>
When D, the maximum value detection register 5 is detected at the timing of CK.
and updated Jt. Remember i.

Jt.i≦Dのときは、内容を変更しない。Jt. When i≦D, the contents are not changed.

14) C28の走査を終了するまで、上記10)〜1
4)を繰返す。
14) Repeat steps 10) to 1 above until the C28 scan is completed.
Repeat 4).

C28の走査が終了すると、次の15)に移る。15)
比較回路11の出力信号E,Fによつて黒白フリツプ・
フロツプ12をセツト、クリアあるいは保持する(It
−1,29の二値化)。
When the scanning of C28 is completed, the process moves to the next step 15). 15)
The output signals E and F of the comparator circuit 11 cause a black and white flip.
Set, clear or hold flop 12 (It
-1,29 binarization).

16)受光エレメントC29の出力信号を走査し、A−
D変換装置1でデイジタル信号化(It、29)した後
、バツフア・レジスタ2に格納するとともに、バツフア
・レジスタ2の内容1t、28をバツフア・レジスタ3
に転送する。
16) Scan the output signal of the light receiving element C29, and
After converting it into a digital signal (It, 29) in the D converter 1, it is stored in the buffer register 2, and the contents 1t, 28 of the buffer register 2 are transferred to the buffer register 3.
Transfer to.

17)バツフア・レジスタ2の内容Tl29をシフトレ
ジスタ8に取込む。
17) Take the contents Tl29 of buffer register 2 into shift register 8.

シフト・レジスタ8の出力信号はIt,.Oとなる。1
8)最大値検出レジスタ5の内容Dから閾イ釘HtD−
AD+bを、THt−? として求め、閾値 レジスタ10に格納する。
The output signals of shift register 8 are It, . It becomes O. 1
8) From the content D of the maximum value detection register 5, the threshold value HtD-
AD+b, THt-? and stores it in the threshold register 10.

以上で、一垂直走査のアナログ信号の二値化が終了する
This completes the binarization of analog signals for one vertical scan.

したがつて、範1図の回路で上記1)〜接の動作を順次
遂行することにより、アナログ信号を二値信号に量子化
することができる。前記説明から明らかなように、本発
明の二値化回路は、一垂直走査内の各受光エレメントC
lの走査出力信号SIiの最上端と最下端の受光エレメ
ントCO,C29の出力信号1t.0.It、2,以外
のIt、!〜It、28の連続する二つの受光エレメン
ト分の信号を加えてJt.iとし、このJt.iの一垂
直走査内の最大値MAXt(第3図参照)を求MAXt
−AMAXt+bめ、この値から閾値THt(=?) を求め、このTHtと受光エレメントCO,Cl,C2
・・・・・・C29の出力信号1t,.0,.It、1
、1t、2・・・・・・It、29の大小を比較して、
二値信号化している。
Therefore, by sequentially performing the operations 1) to 1) in the circuit shown in Figure 1, an analog signal can be quantized into a binary signal. As is clear from the above description, the binarization circuit of the present invention has the advantage that each light-receiving element C within one vertical scan
1 of the scanning output signal SIi of the uppermost end and the lowermost end of the light receiving element CO, C29 output signal 1t. 0. It, other than It, 2,! ~It, by adding the signals for two consecutive light receiving elements of 28, Jt. i, and this Jt. Find the maximum value MAXt (see Figure 3) of i within one vertical scan MAXt
-AMAXt+b, calculate the threshold value THt (=?) from this value, and combine this THt with the light receiving elements CO, Cl, C2.
. . . Output signal 1t of C29, . 0,. It, 1
, 1t, 2...It, comparing the sizes of 29,
It is converted into a binary signal.

このように、走査して得られたデータを一垂直走査分蓄
えるとともに、その最大値を求め、得られた最大値によ
つて蓄えられているデータを二値化することにより、用
紙のヨゴレ、あるいは光源の光量変動等による受光レベ
ル変動を吸収し、忠実に原文字、符号パターンを二値化
電気信号パターンとして取出すことが可能となる〇上記
説明中のJt.iの最大値を求めるとき、連続する二つ
の受光エレメント分の信号を加え合せるのは、イメージ
・センサの各受光セルを走査して、ビデオ信号を取出す
ときに、2相クロツク信号を使用すると、クロツタによ
る雑音がビデオ信号に入るので、クロツクの相数分のビ
デオ信号を力uえ合せて最大値を求めることにより、ク
ロツク信号による雑音の影響を少くするためであつて、
半導体集積回路のイメージ・センサを光電変換装置とし
て使用する場合に有効である〇また、最上端の受光エレ
メントの最下端の受光エレメントの出力信号を最大値検
出の対象から外しているのは、例えば半導体集積回路イ
メージ・センサ等の場合のように、光電変換装置内の条
件が両端の受光エレメントのみ若干異なつており、両端
の受光エレメントの出力信号の信頼性が低いためであり
、両端の受光エレメントの出力信号以外の部分から最大
値を検出すれば、高精度の最大値(背景領域の最も光量
の大きい部分)を求めることができる。
In this way, the data obtained by scanning is stored for one vertical scan, the maximum value is determined, and the stored data is binarized using the obtained maximum value. Alternatively, it is possible to absorb the fluctuations in the received light level due to fluctuations in the light intensity of the light source, etc., and faithfully extract the original character or code pattern as a binary electric signal pattern.〇Jt. When finding the maximum value of i, adding the signals of two consecutive light-receiving elements is possible if a two-phase clock signal is used when scanning each light-receiving cell of the image sensor and extracting the video signal. Since the noise caused by the clock signal enters the video signal, the effect of the noise caused by the clock signal is reduced by combining the video signals for the number of clock phases to find the maximum value.
This is effective when using a semiconductor integrated circuit image sensor as a photoelectric conversion device. Also, excluding the output signal of the uppermost light receiving element and the lowermost light receiving element from the maximum value detection is, for example, This is because, as in the case of semiconductor integrated circuit image sensors, the conditions inside the photoelectric conversion device are slightly different only for the light-receiving elements at both ends, and the reliability of the output signals of the light-receiving elements at both ends is low. By detecting the maximum value from a portion other than the output signal of , it is possible to obtain a highly accurate maximum value (the portion of the background area with the largest amount of light).

最大値から閾値を求めるとき、前記の例では、なる演算
を行つているが、ここで分母の2は、連続する二受光エ
レメントの出力を加え合せて、最大値MAXを求めたた
めに除算されるものである。
When calculating the threshold value from the maximum value, in the above example, the following calculation is performed, where the denominator 2 is divided because the maximum value MAX is calculated by adding the outputs of two consecutive light receiving elements. It is something.

したがつて、4相クロツクのイメージ・センサを使用し
、連続する4受光エレメントの出力を加え合せて最大値
MAXを求める場合には、上式の分母は4となる。なお
、白黒レベルを逆にして処理することもでき、この場合
には最小値MINを求める。このように、本発明によれ
ば、用紙のヨゴレ、光源の光量変動、あるいは走査装置
と用紙間の距離変動等によつて生ずる光電変換装置の受
光レベルの変動を効率よく吸収するので、文字または符
号パターンを忠実に二値信号パターンに再現することが
できる。
Therefore, when using a four-phase clock image sensor and calculating the maximum value MAX by adding up the outputs of four consecutive light receiving elements, the denominator in the above equation is 4. Note that processing can also be performed with the black and white levels reversed, and in this case, the minimum value MIN is found. As described above, according to the present invention, fluctuations in the light reception level of the photoelectric conversion device caused by dirt on the paper, fluctuations in the light intensity of the light source, fluctuations in the distance between the scanning device and the paper, etc. are efficiently absorbed. Code patterns can be faithfully reproduced into binary signal patterns.

また、光電変換装置の各受光エレメントの出力信号がN
相のクロツク信号で走査されるとき連続するN個分の受
光エレメント出力信号を加算して加算値の最大値或は最
小値を各垂直走査内で求めているので、クロツク信号に
よる雑音の影響を少なくすることが可能となる。
Also, the output signal of each light receiving element of the photoelectric conversion device is N
When scanning with a phase clock signal, N consecutive light-receiving element output signals are added and the maximum or minimum value of the added value is determined within each vertical scan, so the influence of noise due to the clock signal is eliminated. It becomes possible to reduce the amount.

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

第1図は本発明の一実施例を示す二値信号化回路のプロ
ツク図、第2図は第1図における光電変換装置の受光エ
レメントと文字パターンの説明図、第3図は第1図にお
ける動作タイム・チヤートである。 1:A−D変換装置、2,3:バツフア・レジスタ、4
:加算器、5:最大値検出レジスタ、6:比較回路、7
:論理積回路、8:シフト・レジスタ、9:演算回路、
10:閾値レジスタ、11:比較回路、12:黒白フリ
ツブ・フロツプ、CO〜C29:受光エレメント、Pt
−1、Pt:垂直走査時刻。
FIG. 1 is a block diagram of a binary signal conversion circuit showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of the light receiving element and character pattern of the photoelectric conversion device in FIG. 1, and FIG. This is an operation time chart. 1: A-D converter, 2, 3: buffer register, 4
: Adder, 5: Maximum value detection register, 6: Comparison circuit, 7
: AND circuit, 8: Shift register, 9: Arithmetic circuit,
10: Threshold register, 11: Comparison circuit, 12: Black and white flip-flop, CO to C29: Light receiving element, Pt
-1, Pt: Vertical scanning time.

Claims (1)

【特許請求の範囲】 1 光学的文字読取り或は符号読取り装置等の光電変換
装置の出力信号を、背景領域と文字或は符号領域とに対
応する二値化信号に量子化する回路において、一垂直走
査分の光電変換装置の出力信号を記憶する手段、前記光
電変換装置の各受光エレメントの出力信号がN相のクロ
ック信号で走査されるとき連続するN個分の受光エレメ
ント出力信号を加算して加算値の最大値或は最小値を各
垂直走査内で求める手段、該最大値或は最小値の函数と
して閾値を算出し該閾値と前記記憶された一垂直走査分
の光電変換装置の出力信号データとを比較する手段とを
有することを特徴とするアナログ信号の二値信号化回路
。 2 光電変換装置の一垂直走査分の出力信号の最大値或
は最小値を求める手段は、一垂直走査分の信号データの
中央部近傍のデータの最大値或は最小値を検出すること
を特徴とする特許請求の範囲第1項記載のアナログ信号
の二値信号化回路。 5
[Scope of Claims] 1. In a circuit that quantizes an output signal of a photoelectric conversion device such as an optical character reading or code reading device into a binary signal corresponding to a background area and a character or code area, means for storing output signals of a photoelectric conversion device for vertical scanning; when the output signals of each light receiving element of the photoelectric conversion device are scanned by N-phase clock signals, the output signals of consecutive N light receiving elements are added; means for calculating the maximum value or minimum value of the added value within each vertical scan, calculating a threshold value as a function of the maximum value or minimum value, and calculating the threshold value and the stored output of the photoelectric conversion device for one vertical scan. 1. A circuit for converting an analog signal into a binary signal, comprising means for comparing the signal data with the signal data. 2. The means for determining the maximum value or minimum value of the output signal for one vertical scan of the photoelectric conversion device is characterized by detecting the maximum value or minimum value of data near the center of the signal data for one vertical scan. A circuit for converting an analog signal into a binary signal according to claim 1. 5
JP51016823A 1976-01-28 1976-02-17 Analog signal binary signal conversion circuit Expired JPS5914792B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP51016823A JPS5914792B2 (en) 1976-02-17 1976-02-17 Analog signal binary signal conversion circuit
US05/763,759 US4104616A (en) 1976-01-28 1977-01-28 Hand operated optical character recognition system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP51016823A JPS5914792B2 (en) 1976-02-17 1976-02-17 Analog signal binary signal conversion circuit

Publications (2)

Publication Number Publication Date
JPS5299722A JPS5299722A (en) 1977-08-22
JPS5914792B2 true JPS5914792B2 (en) 1984-04-06

Family

ID=11926886

Family Applications (1)

Application Number Title Priority Date Filing Date
JP51016823A Expired JPS5914792B2 (en) 1976-01-28 1976-02-17 Analog signal binary signal conversion circuit

Country Status (1)

Country Link
JP (1) JPS5914792B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57169840A (en) * 1981-04-10 1982-10-19 Nippon Telegr & Teleph Corp <Ntt> Tablet for input of information
JPS61281673A (en) * 1985-06-06 1986-12-12 Sumitomo Electric Ind Ltd Image sensor output normalizing circuit
JPS62168288A (en) * 1986-01-21 1987-07-24 Nachi Fujikoshi Corp Automatic setting method for binarization slice value

Also Published As

Publication number Publication date
JPS5299722A (en) 1977-08-22

Similar Documents

Publication Publication Date Title
JP4232078B2 (en) Sensor device for detecting and correcting defective pixels
US4817174A (en) Image processing apparatus
JPS5896458A (en) Binary system
JPS5914793B2 (en) Analog signal binary signal conversion circuit
JPS5914792B2 (en) Analog signal binary signal conversion circuit
US7359099B2 (en) Image reading device and image forming apparatus
JPS5819183B2 (en) Binary sampling method for analog facsimile signals
JP2797957B2 (en) Flatbed scanner with document size detection function
JPH065883B2 (en) Signal processor
JPS5964917A (en) Binary coding system
JP2576370B2 (en) ID mark reading device
JP2590099B2 (en) Character reading method
JPH0758943A (en) Scanner
JPH0423303B2 (en)
JP3143502B2 (en) Area discriminating apparatus and method
JPS60163574A (en) Binary coding device of picture signal
JPS5935065B2 (en) How to read pattern information
JP3027400B2 (en) Image binarization circuit
JPH058474B2 (en)
JPS6019708B2 (en) Image signal binarization circuit
JPH05290216A (en) Optical character reader
JPS631162A (en) Circuit for converting analog picture signal into binary signal
JPH0548896A (en) Picture reader
JPH01177278A (en) Picture reader
JPH06303424A (en) Dot area discrimination device