JPS6148191B2 - - Google Patents

Info

Publication number
JPS6148191B2
JPS6148191B2 JP54054630A JP5463079A JPS6148191B2 JP S6148191 B2 JPS6148191 B2 JP S6148191B2 JP 54054630 A JP54054630 A JP 54054630A JP 5463079 A JP5463079 A JP 5463079A JP S6148191 B2 JPS6148191 B2 JP S6148191B2
Authority
JP
Japan
Prior art keywords
signal
circuit
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
JP54054630A
Other languages
Japanese (ja)
Other versions
JPS55146573A (en
Inventor
Masatoshi Tanaka
Fukuma Sakamoto
Koji Sato
Akihiro Oooka
Norio Itsushiki
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 JP5463079A priority Critical patent/JPS55146573A/en
Publication of JPS55146573A publication Critical patent/JPS55146573A/en
Publication of JPS6148191B2 publication Critical patent/JPS6148191B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Manipulation Of Pulses (AREA)

Description

【発明の詳細な説明】 本発明は、光電変換装置から出力されたアナロ
グ電気信号を2値化する2値化回路に関するもの
である。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a binarization circuit that binarizes an analog electrical signal output from a photoelectric conversion device.

一般の光学的文字読取装置に於いては、文字或
は記号等が記載されている用紙を光電変換装置で
走査することにより得られたアナログ電気信号を
2値化回路で文字領域と背景領域とに対応した2
値信号に変換し、この2値信号を基にして文字或
は記号等の識別を行なつている。従つて、文字、
或は記号等の識別を正確に行なう為には、バツク
グランドの変動によつて光電変換装置から出力さ
れるアナログ電気信号のレベルが変動した場合で
も、2値化回路に於いて正確に文字領域と背景領
域とに対応した2値信号を出力する必要がある。
In a general optical character reading device, an analog electrical signal obtained by scanning paper on which characters or symbols are written with a photoelectric conversion device is converted into a character area and a background area using a binarization circuit. 2 corresponding to
This is converted into a value signal, and characters, symbols, etc. are identified based on this binary signal. Therefore, characters,
In order to accurately identify symbols, etc., even if the level of the analog electrical signal output from the photoelectric conversion device fluctuates due to fluctuations in the background, the binarization circuit must accurately identify the character area. It is necessary to output a binary signal corresponding to the background area and the background area.

従来の2値化回路は、光電変換装置から加えら
れるアナログ電気信号と固定された基準電圧とを
比較することにより2値化を行なつていた。しか
し、用紙を照明する光源の変動、或は用紙毎の反
射率の相違等により、光電変換装置から加えられ
るアナログ電気信号のレベルが変動した場合に
は、固定した基準電圧を用いているので、誤つた
2値信号を出力してしまう惧れがあつた。
Conventional binarization circuits perform binarization by comparing an analog electrical signal applied from a photoelectric conversion device with a fixed reference voltage. However, if the level of the analog electrical signal applied from the photoelectric conversion device fluctuates due to fluctuations in the light source that illuminates the paper or differences in reflectance between sheets, a fixed reference voltage is used. There was a risk that an incorrect binary signal would be output.

又、このような欠点を改善する為に、光電変換
装置の出力のうち、1行走査分、或は1列走査分
の出力に於ける最大値或は最小値、又はこの両者
を検出する手段を設け、この検出手段により得ら
れた最大値或は最小値、又はこの両者を基にして
得られた値を前記した1行走査分、或は1列走査
分の閾値として2値化を行なう2値化回路も提案
されている。このように、1行或は1列走査する
毎に閾値を変えるようにしておくことにより、光
源の光量の変動、或は文字の記載されている用紙
の反射率が用紙毎に異なつていることにより生じ
る誤りは防止することができる。
In addition, in order to improve such drawbacks, means for detecting the maximum value or minimum value, or both of the output for one row scanning or one column scanning among the outputs of the photoelectric conversion device is provided. The maximum value or the minimum value obtained by this detection means, or the value obtained based on both, is used as the threshold value for one row scanning or one column scanning, and binarization is performed. Binarization circuits have also been proposed. In this way, by changing the threshold value every time one row or one column is scanned, it is possible to prevent fluctuations in the light intensity of the light source or differences in the reflectance of the paper on which characters are written depending on the paper. Errors caused by this can be prevented.

しかし、1行或は1列走査毎に閾値を変えるよ
うにしても、用紙の一部分の反射率が他の部分の
反射率と異なつている場合、光源に照射むらがあ
る場合、或は用紙が光電変換装置の受光面に対し
て傾いている場合等は、光電変換素子から出力さ
れるアナログ電気信号を文字領域と背景領域とに
正確に対応した2値信号に変換できないと言う惧
れがあつた。
However, even if the threshold value is changed for each row or column scan, if the reflectance of one part of the paper is different from the reflectance of another part, if the light source has uneven irradiation, or if the paper is If the photoelectric conversion device is tilted with respect to the light-receiving surface, there is a risk that the analog electrical signal output from the photoelectric conversion element may not be converted into a binary signal that accurately corresponds to the character area and background area. Ta.

本発明は前述の如き欠点を改善したものであ
り、バツクグランドの変動に対しても正確な2値
信号を得ることができる2値化回路を提供するこ
とを目的とするものである。以下実施例について
詳細に説明する。
The present invention has been made to improve the above-mentioned drawbacks, and it is an object of the present invention to provide a binarization circuit that can obtain accurate binary signals even with background fluctuations. Examples will be described in detail below.

第1図は本発明の実施例のブロツク線図であ
り、文字の記載されている用紙1を照明する光源
2、用紙1からの反射光を集光して光電変換装置
4に入射させるレンズ3、光電変換装置4からの
出力信号をサンプルホールドするサンプルホール
ド回路51〜59、サンプルホールド回路51〜
59からの出力信号を2値化する平均レベル検出
回路61〜63、基準電圧発生回路71〜73、
比較回路81〜83から成る2値化回路9、及び
2値化回路9からの出力信号を基にして文字の識
別を行なう識別回路10から構成されている。
FIG. 1 is a block diagram of an embodiment of the present invention, in which a light source 2 illuminates a paper 1 on which characters are written, a lens 3 condenses reflected light from the paper 1 and makes it enter a photoelectric conversion device 4. , sample and hold circuits 51 to 59 that sample and hold the output signal from the photoelectric conversion device 4, and sample and hold circuits 51 to 59
average level detection circuits 61 to 63 that binarize the output signal from 59; reference voltage generation circuits 71 to 73;
It is comprised of a binarization circuit 9 made up of comparison circuits 81 to 83, and an identification circuit 10 that identifies characters based on the output signal from the binarization circuit 9.

光電変換装置4は、自己走査回路を有している
ものであり、受光面は第2図に示すように例えば
光電変換素子が9×12ビツト二次元的に配列され
ているものであり、印加されるクロツク信号に従
つて9本のビデオ信号I1〜I9を12回出力する。例
えば、光電変換装置4に第3図(CK)に示すク
ロツク信号Kを印加すると、1番目のクロツクが
加えられた時点に於いては行に配列されてい
る光電変換素子からビデオ信号I1〜I9を出力し、
2番目のクロツクが加えられた時点に於いては、
行に配列されている光電変換素子からビデオ
信号I1〜I9を出力する。以下3番目、4番目、…
…12番目のクロツクが印加されると、順次
行、行、……行に配置されている光電変
換素子からビデオ信号I1〜I9を出力する。従つて
1番目から12番目までのクロツクが印加されてい
る間に一画面の走査が終了する。尚、13番目、14
番目のクロツクが印加されている期間はフライバ
ツク期間であり、この期間に光電変換装置4から
出力されるビデオ信号I1〜I9のレベルは通常背景
領域に対応する信号のレベルより高いものとな
る。又光電変換装置4は14番目のパルスが加えら
れた時点に於いて同期信号SYNを出力する。
The photoelectric conversion device 4 has a self-scanning circuit, and the light receiving surface has, for example, a 9×12 bit two-dimensional array of photoelectric conversion elements as shown in FIG. Nine video signals I 1 to I 9 are output 12 times in accordance with the clock signal given. For example, when a clock signal K shown in FIG. 3 (CK) is applied to the photoelectric conversion device 4, at the time when the first clock is applied, a video signal I 1 is output from the photoelectric conversion elements arranged in one row. ~I prints 9 ,
At the point when the second clock is added,
Video signals I 1 to I 9 are output from the photoelectric conversion elements arranged in two rows. 3rd, 4th,...
…When the 12th clock is applied, 3
Video signals I 1 to I 9 are output from the photoelectric conversion elements arranged in rows, 4 rows, . . . 9 rows. Therefore, scanning of one screen is completed while the 1st to 12th clocks are being applied. Furthermore, 13th and 14th
The period during which the th clock is applied is a flyback period, and the level of the video signals I 1 to I 9 output from the photoelectric conversion device 4 during this period is normally higher than the level of the signal corresponding to the background area. . Further, the photoelectric conversion device 4 outputs a synchronizing signal SYN at the time when the 14th pulse is applied.

このように、クロツク信号CKに従つてビデオ
信号I1〜I9と同期信号SYNを出力する光電変換装
置4の受光面に例えば第2図に示すように数字
「2」が結像された場合に光電変換装置4から出
力されるビデオ信号I1〜I9は第3図I1〜I9に示すよ
うに、入射光量に対応したものとなり、又同期信
号SYNは同図SYNに示すものとなる。
In this way, for example, when the number "2" is imaged on the light receiving surface of the photoelectric conversion device 4, which outputs the video signals I 1 to I 9 and the synchronization signal SYN according to the clock signal CK, as shown in FIG. The video signals I 1 to I 9 outputted from the photoelectric conversion device 4 correspond to the amount of incident light as shown in FIG. Become.

クロツク信号CKに従つて出力されるビデオ信
号I1〜I9はサンプルホールド回路51〜59に加
えられる。サンプルホールド回路51〜59は、
光電変換装置4から出力されたビデオ信号I1〜I9
を第3図に示す時刻t1〜t14に於いてサンプルホー
ルドし、ビデオ信号I1〜I9の各時刻t1〜t14に於け
る信号J1〜J9を出力し、2値化回路9を構成して
いる平均レベル検出回路61〜63、及び比較回
路81〜83に加える。この場合、平均レベル検
出回路61、比較回路81には信号J1〜J3が、平
均レベル検出回路62、比較回路82には信号J4
〜J6が、平均レベル検出回路63、比較回路83
には信号J7〜J9が加わるようにする。
Video signals I1 - I9 output in accordance with clock signal CK are applied to sample-and-hold circuits 51-59. The sample and hold circuits 51 to 59 are
Video signals I 1 to I 9 output from the photoelectric conversion device 4
is sampled and held at times t 1 to t 14 shown in FIG. 3, outputs signals J 1 to J 9 at each time t 1 to t 14 of video signals I 1 to I 9 , and binarizes them. It is added to average level detection circuits 61 to 63 and comparison circuits 81 to 83 that constitute circuit 9. In this case, the average level detection circuit 61 and the comparison circuit 81 receive the signals J 1 to J 3 , and the average level detection circuit 62 and the comparison circuit 82 receive the signal J 4 .
~ J6 is the average level detection circuit 63 and the comparison circuit 83
The signals J 7 to J 9 are applied to the signals J 7 to J 9 .

平均レベル検出回路61は信号J1〜J3の平均レ
ベルに対応した信号K1を出力して基準電圧発生
回路71に加え、平均レベル検出回路62は信号
J4〜J6の平均レベルに対応した信号K2を出力して
基準電圧発生回路72に加え、平均レベル検出回
路63は信号J7〜J9の平均レベルに対応した信号
K3を出力して基準電圧発生回路75に加える。
基準電圧発生回路71は信号K1を基にして閾値
として用いる信号L1のレベルを設定し、比較回
路81に加える。又基準電圧発生回路72,73
も同様に、信号K2,K3を基にして閾値として用
いる信号L2,L3のレベルを設定し、比較回路8
2,83に加える。
The average level detection circuit 61 outputs a signal K1 corresponding to the average level of the signals J1 to J3 and adds it to the reference voltage generation circuit 71, and the average level detection circuit 62 outputs the signal K1 corresponding to the average level of the signals J1 to J3.
A signal K 2 corresponding to the average level of signals J 4 to J 6 is outputted and added to the reference voltage generation circuit 72, and an average level detection circuit 63 outputs a signal K 2 corresponding to the average level of signals J 7 to J 9 .
K 3 is output and applied to the reference voltage generation circuit 75.
The reference voltage generation circuit 71 sets the level of the signal L 1 used as a threshold value based on the signal K 1 and applies it to the comparison circuit 81 . Also, reference voltage generation circuits 72, 73
Similarly, the levels of the signals L 2 and L 3 used as thresholds are set based on the signals K 2 and K 3 , and the comparator circuit 8
Add to 2,83.

比較回路81は、サンプルホールド回路51〜
53から加えられる信号J1〜J3を基準電圧発生回
路71から閾値としそ加えられる信号L1と比較
して2値信号M1〜M3を出力し、比較回路82
は、サンプルホールド回路54〜56から加えら
れる信号J4〜J6を基準電圧発生回路72から加え
られる信号L2と比較して2値信号M4〜M6を出力
し、比較回路83はサンプルホールド回路57〜
59から加えられる信号J7〜J9と基準電圧発生回
路73から加えられる信号L3とを比較して2値
信号M7〜M9を出力する。識別回路10は、比較
回路81〜83から加えられる2値化信号M1
M9を基にして文字を識別し、文字コードを出力
する。尚、光電変換装置4からは、常時ビデオ信
号I1〜I9がクロツク信号CKに従つて出力されてい
るので、識別回路10では2値化信号M1〜M9
基にして、文字の切出しが成功したか否か、文字
が光電変換装置4の視野内のどの位置にあるかを
判断し、文字の切出しが成功し、且つ文字が光電
変換装置4の視野内の所定の位置に来たことを判
断した時のみ文字コードを出力する。
Comparison circuit 81 includes sample and hold circuits 51 to
The signals J 1 to J 3 applied from the reference voltage generation circuit 71 are compared with the signal L 1 applied as a threshold value from the reference voltage generation circuit 71 to output binary signals M 1 to M 3 , and the comparison circuit 82
compares the signals J4 to J6 applied from the sample and hold circuits 54 to 56 with the signal L2 applied from the reference voltage generation circuit 72 and outputs binary signals M4 to M6 , and the comparison circuit 83 outputs binary signals M4 to M6. Hold circuit 57~
The signals J 7 to J 9 applied from the reference voltage generation circuit 73 are compared with the signal L 3 applied from the reference voltage generation circuit 73, and binary signals M 7 to M 9 are output. The identification circuit 10 receives binary signals M 1 - M 1 - applied from comparison circuits 81 - 83.
Identifies characters based on M9 and outputs character codes. Note that since the photoelectric conversion device 4 always outputs the video signals I 1 to I 9 in accordance with the clock signal CK, the identification circuit 10 identifies the characters based on the binary signals M 1 to M 9 . It is determined whether the extraction is successful and the position of the character within the field of view of the photoelectric conversion device 4. Outputs the character code only when it is determined that the

前述したように、クロツク信号CKに従つて光
電変換装置4から出力されるビデオ信号I1〜I9
時刻t1〜t14に於いてサンプルホールドした信号J1
〜J9を2値化する2値化回路9は平均レベル検出
回路61〜63、基準電圧発生回路71〜73、
比較回路81〜83によつて構成されており、信
号J1〜J9を3つの局部的領域に分割し、この3つ
に分割した領域毎の平均レベルに対応した信号
K1〜K3を平均レベル検出回路61〜63で求
め、この信号K1〜K3を基にして基準電圧発生回
路71〜73で閾値としそて用いる信号L1〜L3
のレベルを設定し、比較回路81〜83で信号J1
〜J9と基準電圧発生回路71〜73から閾値とし
て加えられる信号L1〜L3とを各領域毎に比較し
て2値信号M1〜M9を出力している。従つて以下
に述べる欠点を改善することができる。
As mentioned above, the signal J 1 is obtained by sampling and holding the video signals I 1 to I 9 outputted from the photoelectric conversion device 4 in accordance with the clock signal CK at times t 1 to t 14 .
The binarization circuit 9 that binarizes ~J 9 includes average level detection circuits 61 to 63, reference voltage generation circuits 71 to 73,
Comparing circuits 81 to 83 divide the signals J 1 to J 9 into three local regions, and generate a signal corresponding to the average level of each of the three divided regions.
K1 to K3 are determined by average level detection circuits 61 to 63, and based on these signals K1 to K3 , signals L1 to L3 are used as threshold values in reference voltage generation circuits 71 to 73.
and set the level of signal J 1 in comparison circuits 81 to 83.
~ J9 and signals L1 - L3 added as thresholds from reference voltage generation circuits 71-73 are compared for each region to output binary signals M1 - M9 . Therefore, the following drawbacks can be improved.

例えば光源2の照度むらの為に光電変換装置4
の視野内に於いて、左側の部分の照度が右側の部
分の照度に比較して高い場合、或は用紙1の左側
が右側に比較して光電変換装置4の受光面に近づ
いている場合は、視野内が全て背景領域であつた
としても、C1,C2列付近に配列されている光電
変換素子から出力されるビデオ信号I1,I2のレベ
ルは第4図に示すようにC8,C9列付近に配置さ
れている光電変換素子から出力されるビデオ信号
I8,I9のレベルより高いものとなる。このような
場合に、1行走査する毎に閾値を変えるようにし
たとしても、1行走査する範囲全体に亘つて同一
の閾値を用いたのでは、C8,C9列付近に配列さ
れている光電変換素子からのビデオ信号I8,I9
文字領域に対応する2値信号に変換してしまう惧
れがある。
For example, due to uneven illuminance of the light source 2, the photoelectric conversion device 4
In the field of view, if the illuminance on the left side is higher than the illuminance on the right side, or if the left side of the paper 1 is closer to the light receiving surface of the photoelectric conversion device 4 than the right side, , even if the entire field of view is the background area, the levels of the video signals I 1 and I 2 output from the photoelectric conversion elements arranged near the C 1 and C 2 columns are C as shown in Fig. 4. Video signal output from photoelectric conversion elements placed near columns 8 and C9
It will be higher than the level of I 8 and I 9 . In such a case, even if the threshold value is changed every time one row is scanned, if the same threshold value is used for the entire range scanned by one row, the data will be arranged near columns C 8 and C 9 . There is a risk that the video signals I 8 and I 9 from the photoelectric conversion elements included in the image will be converted into binary signals corresponding to the character area.

又逆に、光電変換装置4の視野内が全て文字領
域であつたとしても、C1,C2列付近に配置され
ている光電変換素子からのビデオ信号I1,I2を背
景領域に対応した2値信号に変換してしまう惧れ
がある。
Conversely, even if the entire visual field of the photoelectric conversion device 4 is a character area, the video signals I 1 and I 2 from the photoelectric conversion elements arranged near the C 1 and C 2 columns correspond to the background area. There is a risk that the signal will be converted into a binary signal.

しかし本発明に於いては、ビデオ信号I1〜I9
時刻t1〜t14に於いてサンプルホールドした信号J1
〜J9を3つに分割し、この分割した領域毎に閾値
を求めて各領域毎に2値化を行なつており、第4
図に示すように、各領域に於いては信号のレベル
はほぼ等しいものとなるので、前述したような誤
りはなくなる。従つて文字領域と背景領域とに正
確に対応した2値信号を得ることができる。
However, in the present invention, the signal J 1 is obtained by sample-holding the video signals I 1 to I 9 at times t 1 to t 14.
~ J9 is divided into three parts, a threshold value is determined for each divided area, and binarization is performed for each area.
As shown in the figure, the signal levels are approximately equal in each region, so the above-mentioned error is eliminated. Therefore, it is possible to obtain binary signals that accurately correspond to the character area and the background area.

第5図は2値化回路9を構成している平均レベ
ル検出回路61、基準電圧発生回路71、及び上
記の記載では説明の都合上省略した同期信号除去
回路11の具体的な回路構成を示した回路図であ
り、平均レベル検出回路62,63、基準電圧発
生回路72,73も同一の構成を有しているもの
である。また同期信号除去回路11はこれらにも
接続されている。
FIG. 5 shows the specific circuit configuration of the average level detection circuit 61, the reference voltage generation circuit 71, and the synchronization signal removal circuit 11, which are omitted in the above description for convenience of explanation, which constitute the binarization circuit 9. This is a circuit diagram in which average level detection circuits 62 and 63 and reference voltage generation circuits 72 and 73 have the same configuration. The synchronization signal removal circuit 11 is also connected to these.

平均レベル検出回路61は演算増幅器OP1、抵
抗R1〜R5によつて構成され、基準電圧発生回路
71は演算増幅器OP2、ダイオードD1、コンデン
サC1、抵抗R6〜R9によつて構成され、又同期信
号除去回路11はトランジスタTr1、抵抗R10
R12によつて構成されている。
The average level detection circuit 61 is composed of an operational amplifier OP1 and resistors R1 to R5 , and the reference voltage generation circuit 71 is composed of an operational amplifier OP2 , a diode D1 , a capacitor C1 , and resistors R6 to R9 . The synchronizing signal removal circuit 11 includes a transistor Tr 1 and a resistor R 10 .
Consists of R 12 .

平均レベル検出回路61は、サンプルホールド
回路51〜53から加えられる信号J1〜J3の平均
レベルに対応した信号K1を出力して基準電圧発
生回路71に加える。基準電圧発生回路71では
信号K1の電位に対応した電荷をコンデンサC1
抵抗R6とコンデンサC1の積で表わされる立上り
時定数Tr=R6・C1で充電し、信号K1の電圧がコ
ンデンサC1の両端の電圧より低くなつたなら
ば、コンデンサC1の蓄えられている電荷を抵抗
R7とコンデンサC1の積で定まる立下り時定数T
=R7・C1に従つて抵抗R7を介して放電し、コ
ンデンサC1の両端の電圧を演算増幅器OP2で適当
な増幅率で増幅して閾値とし用いる信号L1を出
力するものである。この場合、立上り時定数Tr
は信号K1の変動に従つて、コンデンサC1に充電
される電荷が忠実に追随するように設定してお
き、立下り時定数Tは文字線巾が最大となる部
分を走査するのに要する時間に設定しておく。
The average level detection circuit 61 outputs a signal K 1 corresponding to the average level of the signals J 1 to J 3 applied from the sample and hold circuits 51 to 53, and applies it to the reference voltage generation circuit 71. The reference voltage generation circuit 71 charges the capacitor C 1 with a charge corresponding to the potential of the signal K 1 with a rise time constant Tr = R 6 · C 1 expressed as the product of the resistor R 6 and the capacitor C 1 , and When the voltage becomes lower than the voltage across capacitor C1 , the charge stored in capacitor C1 is transferred to the resistor.
Falling time constant T determined by the product of R 7 and capacitor C 1
= R7C1 , the voltage across the capacitor C1 is amplified by an appropriate amplification factor using an operational amplifier OP2 , and a signal L1 is output, which is used as a threshold value. be. In this case, the rise time constant Tr
is set so that the charge charged in the capacitor C1 faithfully follows the fluctuation of the signal K1 , and the falling time constant T is the time required to scan the part where the character line width is maximum. Set it to the time.

このように、立上り時定数Tr、立下り時定数
Tを設定しておくと、平均レベル設定回路61
に加えられる第6図A〜Cに示す信号J1〜J3が期
間T1に於いて全て文字領域に対応するレベルの
信号となつた場合に平均レベル検出回路61から
出力れる信号K1は第6図Dの期間T1に示すもの
となるが、基準電圧発生回路71のコンデンサ
C1に蓄えられている電荷は立下り時定数Tに
従つて徐々に放電されるので、基準電圧発生回路
71の出力信号L1は第6図A〜Dの点線で示す
ものとなる。従つて、1行走査分を複数に分割し
た領域から出力される信号J1〜J3が全て文字領域
に対応するレベルの信号であつても正確に2値化
することができる。
By setting the rise time constant Tr and fall time constant T in this way, the average level setting circuit 61
When the signals J 1 to J 3 shown in FIG. 6 A to C added to the area are all at the level corresponding to the character area in the period T 1 , the signal K 1 outputted from the average level detection circuit 61 is as follows. As shown in period T1 in FIG. 6D, the capacitor of the reference voltage generation circuit 71
Since the charge stored in C1 is gradually discharged according to the falling time constant T, the output signal L1 of the reference voltage generating circuit 71 becomes as shown by the dotted lines in FIGS. 6A to 6D. Therefore, even if the signals J 1 to J 3 output from regions obtained by dividing one line scan into a plurality of regions are all signals at a level corresponding to a character region, they can be accurately binarized.

しかし、コンデンサC1に蓄えられた電荷が
徐々に放電されるように立下り時定数Tを定め
てあるので、フライバツク期間中に光電変換装置
4から出力されたビデオ信号I1〜I9の電位に対応
した電荷で充電されたコンデンサC1の両端の電
圧は、すぐには下らないことになる。即ち、フラ
イバツク期間中に出力されたビデオ信号の影響が
次のフレームにまで及ぶことになつてしまうの
で、トランジスタTr1、抵抗R10,〜R12によつて
構成されている同期信号除去回路11を基準電圧
発生回路71に接続し、フライバツク期間中に出
力されるビデオ信号が次のフレームに影響を及ぼ
すことを防いでいる。
However, since the falling time constant T is set so that the charge stored in the capacitor C1 is gradually discharged, the potential of the video signals I1 to I9 output from the photoelectric conversion device 4 during the flyback period The voltage across capacitor C1 , which is charged with a charge corresponding to , will not drop immediately. That is, since the influence of the video signal output during the flyback period will extend to the next frame, the synchronization signal removal circuit 11 constituted by the transistor Tr 1 and the resistors R 10 to R 12 is connected to the reference voltage generation circuit 71 to prevent the video signal output during the flyback period from affecting the next frame.

例えば、平均レベル検出回路61に加えられる
信号J1〜J3が第7図A〜Cに示すものとすると、
平均レベル検出回路61からの出力信号K1は同
図Dに示すようになり、フライバツク期間T1
出力される信号のレベルは他の期間に出力される
信号のレベルと比較して高いものとなる。前述し
たように、コンデンサC1に蓄えられた電荷は
徐々に放電されるものであるから、フライバツク
期間T1に出力された信号の影響が次のフレーム
にまで及ぶことになつてしまう。このフライバツ
ク期間T1に、光電変換装置4からは、第7図E
に示す同期信号SYNが出力されている。この同
期信号SYNを同期信号除去回路11のトランジ
スタTr1のベースに加え、同期信号SYNがハイレ
ベルの時トランジスタTr1がオンとなるようにし
ておく。このようにしておくと、コンデンサC1
に蓄えられた電荷は、トランジスタTr1がオンと
なると、抵抗R10、トランジスタTr1を介して放
電される。従つて、基準レベル発生回路71から
の出力信号L1は、第7図Fに示すようになるの
で、フライバツク期間に出力された信号の影響が
次のフレームまで及ぶことはなくなる。またこの
ように、各フレーム毎にコンデンサC1に蓄えら
れている電荷を放電するようにしているので、ゆ
るやかな光源の光量の変動、用紙の反射率の変動
等により生じるビデオ信号I1〜I9の変動を吸収す
ることができる。
For example, assuming that the signals J 1 to J 3 applied to the average level detection circuit 61 are shown in FIGS. 7A to C,
The output signal K1 from the average level detection circuit 61 is as shown in Figure D, and the level of the signal output during the flyback period T1 is higher than the level of the signal output during other periods. Become. As described above, since the charge stored in the capacitor C1 is gradually discharged, the influence of the signal output during the flyback period T1 will extend to the next frame. During this flyback period T1 , from the photoelectric conversion device 4,
The synchronization signal SYN shown in is output. This synchronization signal SYN is applied to the base of the transistor Tr 1 of the synchronization signal removal circuit 11 so that the transistor Tr 1 is turned on when the synchronization signal SYN is at a high level. This way, capacitor C 1
When the transistor Tr 1 is turned on, the charges stored in the transistor Tr 1 are discharged through the resistor R 10 and the transistor Tr 1 . Therefore, the output signal L1 from the reference level generating circuit 71 becomes as shown in FIG. 7F, so that the influence of the signal output during the flyback period does not extend to the next frame. In addition, since the charge stored in the capacitor C 1 is discharged every frame, video signals I 1 to I caused by gradual fluctuations in the light intensity of the light source, fluctuations in the reflectance of the paper, etc. 9 fluctuations can be absorbed.

以上説明したように、本発明は、光電変換装置
から出力される信号のうち、1行走査分、或は1
列走査分を複数の局部的領域に分割して各領域毎
に平均レベルを検出する平均レベル検出回路、該
平均レベル検出回路で求めた平均レベルを基にし
て閾値として用いる信号のレベルを設定する基準
電圧発生回路、該基準電圧発生回路から閾値とし
て出力される信号のレベルと前記光電変換装置か
ら出力された信号とを各領域毎に比較する比較回
路を備えているので、局部的な用紙の反射率の変
化、局部的な照射むら、或は用紙面と光電変換装
置の受光面との傾き等により生じる、光電変換装
置から出力されるビデオ信号のレベルの変動があ
つた場合にも、文字領域、或は背景領域に正確に
対応した2値化信号を得ることができる。
As explained above, the present invention provides a signal for one line scanning or one line of the signal output from the photoelectric conversion device.
An average level detection circuit that divides column scanning into a plurality of local areas and detects the average level for each area, and sets the level of a signal used as a threshold based on the average level determined by the average level detection circuit. Since it is equipped with a reference voltage generation circuit and a comparison circuit that compares the level of the signal output as a threshold value from the reference voltage generation circuit and the signal output from the photoelectric conversion device for each region, local paper Even if there is a fluctuation in the level of the video signal output from the photoelectric conversion device caused by changes in reflectance, local irradiation unevenness, or an inclination between the paper surface and the light-receiving surface of the photoelectric conversion device, characters A binarized signal that accurately corresponds to the region or background region can be obtained.

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

第1図は本発明の実施例のブツク図、第2図は
光電変換装置の説明図、第3図、第4図は光電変
換装置から出力される信号の説明図、第5図は本
発明の実施例の細部の回路図、第6図、第7図は
その動作説明図である。 1は用紙、2は光源、3はレンズ、4は光電変
換装置、51〜59はサンプルホールド回路、6
1〜63は平均レベル検出回路、71〜73は基
準電圧発生回路、81〜83は比較回路、9は2
値化回路、10は識別回路、11は同期信号除去
回路、R1〜R12は抵抗、OP1,OP2は演算増幅
器、D1はダイオード、C1はコンデンサ、Tr1はト
ランジスタである。
FIG. 1 is a book diagram of an embodiment of the present invention, FIG. 2 is an explanatory diagram of a photoelectric conversion device, FIGS. 3 and 4 are explanatory diagrams of signals output from the photoelectric conversion device, and FIG. 5 is an explanatory diagram of the present invention. 6 and 7 are detailed circuit diagrams of the embodiment, and are explanatory diagrams of its operation. 1 is paper, 2 is a light source, 3 is a lens, 4 is a photoelectric conversion device, 51 to 59 are sample and hold circuits, 6
1 to 63 are average level detection circuits, 71 to 73 are reference voltage generation circuits, 81 to 83 are comparison circuits, and 9 is 2.
10 is an identification circuit, 11 is a synchronization signal removal circuit, R 1 to R 12 are resistors, OP 1 and OP 2 are operational amplifiers, D 1 is a diode, C 1 is a capacitor, and Tr 1 is a transistor.

Claims (1)

【特許請求の範囲】[Claims] 1 光電変換素子が2次元的に配列されている光
電変換装置からの出力信号を2値信号に変換する
2値化回路に於いて、前記光電変換装置から出力
される信号のうち、1行走査分、或は1列走査分
を複数の局部的領域に分割して各領域毎に平均レ
ベルを求める平均レベル検出回路、該平均レベル
検出回路からの出力信号を基にして閾値として用
いる信号のレベルを設定する基準電圧発生回路、
該基準電圧発生回路からの出力信号と前記光電変
換装置からの出力信号とを各領域毎に比較して2
値信号を出力する比較回路を備えたことを特徴と
する2値化回路。
1. In a binarization circuit that converts an output signal from a photoelectric conversion device in which photoelectric conversion elements are arranged two-dimensionally into a binary signal, one line scanning of the signal output from the photoelectric conversion device is performed. An average level detection circuit that divides one line of scanning into a plurality of local areas and calculates the average level for each area, and the level of a signal used as a threshold based on the output signal from the average level detection circuit. A reference voltage generation circuit that sets
The output signal from the reference voltage generation circuit and the output signal from the photoelectric conversion device are compared for each region.
A binarization circuit characterized by comprising a comparison circuit that outputs a value signal.
JP5463079A 1979-05-03 1979-05-03 Binary circuit Granted JPS55146573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5463079A JPS55146573A (en) 1979-05-03 1979-05-03 Binary circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5463079A JPS55146573A (en) 1979-05-03 1979-05-03 Binary circuit

Publications (2)

Publication Number Publication Date
JPS55146573A JPS55146573A (en) 1980-11-14
JPS6148191B2 true JPS6148191B2 (en) 1986-10-23

Family

ID=12976069

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5463079A Granted JPS55146573A (en) 1979-05-03 1979-05-03 Binary circuit

Country Status (1)

Country Link
JP (1) JPS55146573A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5827278A (en) * 1981-08-10 1983-02-17 Toshiba Corp Line searching system
JPS5827275A (en) * 1981-08-10 1983-02-17 Toshiba Corp Address controlling system for pattern memory
JPS61180382A (en) * 1985-02-05 1986-08-13 Nichiden Mach Ltd Picture recognizer
CN1860501A (en) * 2004-03-24 2006-11-08 三菱电机株式会社 System for estimating attitude at specific part, methode for estimating attitude at specific part, and program for estimating attitude at specific part

Also Published As

Publication number Publication date
JPS55146573A (en) 1980-11-14

Similar Documents

Publication Publication Date Title
US4523229A (en) Shading correction device
US4096992A (en) System for recognizing bar code information
JPH0355873B2 (en)
CA1131346A (en) Background light intensity compensation circuit for a line scan camera system
US4045816A (en) Automatic corrector for fixed pattern odd/even video noise
JPS6148191B2 (en)
US4402087A (en) Binary coding circuit
JPS6340071B2 (en)
US4251800A (en) Tilt compensating AGC
JPS5925267B2 (en) optical character reader
US3539777A (en) Data sensing system
JPH0222424B2 (en)
US4078227A (en) Threshold detector for optical character recognition system
KR950015213B1 (en) White level detection grant for an optical image reader
JPH0130341B2 (en)
EP0066719B1 (en) Measuring apparatus with response adjustment
US4742214A (en) Optical card reader
JPS6224989B2 (en)
JPS61168130A (en) Reader for optical card
JP2849311B2 (en) Optical reader
JPH0740718B2 (en) Image processing device
JPS61251363A (en) Image reader
JPH0666885B2 (en) Image reader
JPS61175943A (en) Optical card
JP3130558B2 (en) Image reading method