JPH0441389B2 - - Google Patents

Info

Publication number
JPH0441389B2
JPH0441389B2 JP59171338A JP17133884A JPH0441389B2 JP H0441389 B2 JPH0441389 B2 JP H0441389B2 JP 59171338 A JP59171338 A JP 59171338A JP 17133884 A JP17133884 A JP 17133884A JP H0441389 B2 JPH0441389 B2 JP H0441389B2
Authority
JP
Japan
Prior art keywords
output
signal
reference value
value
digital
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
JP59171338A
Other languages
Japanese (ja)
Other versions
JPS6149286A (en
Inventor
Mamoru Shinoda
Keiichi Anahara
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.)
Tokyo Keiki Inc
Original Assignee
Tokimec 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 Tokimec Inc filed Critical Tokimec Inc
Priority to JP59171338A priority Critical patent/JPS6149286A/en
Publication of JPS6149286A publication Critical patent/JPS6149286A/en
Publication of JPH0441389B2 publication Critical patent/JPH0441389B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】[Detailed description of the invention]

(産業上の利用分野) 本発明は、光学式文字読取り装置等のスキヤニ
ングにより得られたアナログビデオ信号を白レベ
ルと黒レベルに対応した2値化信号に変換するビ
デオ信号処理装置に関する。 (従来技術) 従来、光学式文字読取り装置等においては、例
えば第5図に示すように、用紙20に描かれた文
字を光源22によつて照明し、この照明による反
射光をレンズ23を介してイメージスキヤナ24
に入射し、イメージスキヤナ24によるライン走
査で光電変換されたアナログビデオ信号を作り出
し、信号処理回路25においてデジタルビデオ信
号を白レベルと黒レベルに対応して2値化する信
号処理を行ない、この2値化データに基づいて光
学的に読取られた文字を認識するようにしてい
る。 ところで、イメージスキヤナ24から得られる
アナログビデオ信号は、第6図aに示すように、
光源やレンズの影響で中央が明るい信号として得
られ、通常この現象はシエーデングとして知られ
ており、このシエーデングを補正しても第6図b
に示すようにアナログビデオ信号には明るさのバ
ラ付きが残り、固定的に定めた基準レベルとの比
較による2値化では正確な信号処理ができない。 そこで、アナログビデオ信号の変化に追従した
基準信号を作成するため、第7図に示すピークホ
ールド回路が信号処理に使用されている。 第7図のピークホールド回路は、バツフアアン
プ26と27の間に信号保持用のコンデンサC1
を設け、コンデンサC1の充電はダイオードD1
より急速充電とし、一方、コンデンサC1の放電
は抵抗R1を介しておこなうことで緩やかな放電
としている。即ち、ピークホールド回路は、背景
となる白部分には早い時定数による充電で追従
し、文字に対応した黒部分には遅い時定数による
放電で追従する特性をもち、第8図に破線で示し
たピークホールド出力を得る。 このピークホールド回路の出力は、抵抗R2
R3で規定の信号レベルに分圧され、コンパレー
タ28にアナログビデオ信号の変化に追従した基
準レベルVrを設定し、コンパレータ28でアナ
ログビデオ信号との比較で例えば白部分でLレベ
ル、黒部分でHレベルとなる2値化出力V0を得
ている。 (発明が解決しようとする問題点) しかしながら、このような従来のアナログ信号
処理にあつては、基準値を作成するピークホール
ド回路の充放電特性がダイオード、コンデンサ、
抵抗で決められていたため、各素子のバラツキを
補正するためにバリユーム等の調整手段を多数使
用して電圧調整を行なわなければならず、また温
度変化等のアナログ特有の補償も施さなければな
らなかつた。更に、紙面ノイズ、イメージスキヤ
ナの感度バラツキ、光源光量の分布変動などの理
由で白部分に追従させるためにはピークホールド
回路の充電時定数を速くしなければならないが、
高速化には限界があり、またビデオ周波数を変更
する必要が生じた場合には、ピークホールド回路
の時定数再調整が必要になるという問題があつ
た。 (問題を解決するための手段) 本発明は、このような従来の問題点に鑑みてな
されたもので、回路調整を一切必要とすることな
くアナログビデオ信号に追従した適正な2値化の
基準信号を発生できるようにするため、アナログ
ビデオ信号をA/D変換器でデジタル信号に変換
し、基準信号発生手段に予め複数の基準値を記憶
しておき、A/D変換器のデジタル出力値と前回
出力された基準値とを比較し、デジタル値が前回
の基準値以上のときにはデジタル値に対応した記
憶基準値を新たな基準値として出力し、一方、デ
ジタル値が前回の基準値より小さいときには前回
基準値の記憶出力を保持すると共に、一定の時間
が経過する毎に基準値を順次ステツプ的に減少さ
せ、このような基準値発生手段からの基準値と
A/D変換器のデジタル出力とを比較手段で比較
してデジタルビデオ信号を2値化以上の多値化信
号に変換するようにしたものである。 (実施例) 第1図は本発明の一実施例を示した回路ブロツ
ク図である。 まず、構成を説明すると、1はイメージスキヤ
ナで得られたアナログビデオ信号をデジタルビデ
オViに変換するA/D変換器であり、A/D変
換器1から出力されたデジタルビデオ信号Viは
基準信号発生部2と基準信号と、デジタルビデオ
信号との比較により多値化信号V0を出力する比
較手段としてのROM3に供給されている。 基準信号発生部2はデジタルビデオ信号Viに
追従して変化する基準信号Vrを発生する機能を
有し、ROM4,7,10、ラツチ5、アンドゲ
ート6、カウンタ8及びインバータ9で構成され
ている。 この基準信号発生部2における各回路要素を説
明すると、次の通りである。 ROM4にはデジタルビデオ信号Viと後の説明
で明らかにするROM7の出力信号Vr1が与えら
れ、デジタルビデオ信号Viと出力信号Vr1の大小
関係に基づいて次の関係式の下に基準信号Vrを
ROM3に出力する。 Vi≧Vr1のときVr=Vi Vi<Vr1のときVr=Vr1 ……(1) 即ち、デジタルビデオ信号Vi1ROM7の出力信
号Vr1以上の時、デジタルビデオ信号Viを基準信
号Vrとして出力し、一方、デジタルビデオ信号
ViがROM7の出力信号Vr1より小さい時、基準
信号Vrを出力信号Vr1として出力する。 この様なROM4におけるデジタルビデオ信号
Viと出力信号Vr1との比較に基づいた基準信号Vr
の出力は、デジタルビデオ信号Viと出力信号Vr1
をテーブルアドレスデータとしたテーブルメモリ
をROM4に記憶しておくことで実現することが
できる。即ち、信号ViとVr1の各デジタルビツト
をアドレスとしたメモリテーブルを作成し、特定
のViとVr1の値で定まるテーブル位置のデータエ
リアに前記(1)式の大小関係から定まるViまたは
Vr1の値を書き込んでおき、Vi及びVr1をアドレ
スデータとしてテーブルメモリのデータ位置を指
定することで、両者の大小関係に基づいたViま
たはVr1を基準信号Vrとして読出すことができ
る。換言すれば、ROM4ではデジタルビデオ信
号Viとの比較に使用する複数の基準信号Vrが予
め記憶されていることになる。また、ROM4は
MSBビツトの出力端子を備え、このMSBビツト
はデジタルビデオ信号ViとROM7の出力信号
Vr1との大小関係から次の様にMSBビツトの出力
を生ずる。 Vi≧Vr1のとき MSB=1 Vi<Vr1のときMSB=0 ……(2) 次にラツチ5はROM4のMSBビツト出力のも
とにROM3へ与えられた前回の基準信号Vrを次
の基準信号を発生させるためにラツチする機能を
有する。即ち、ラツチ5のラツチ制御はアンドゲ
ート6の出力で行われ、アンドゲート6には
ROM4のMSBビツト出力とA/D変換器1で使
用したA/D変換用のクロツクパルスと同じクロ
ツクパルスCKが与えられており、MSBビツトが
“1”となつた時のHレベル出力、即ちVi≧Vr1
時にROM3に対する基準信号Vrをラツチし、ラ
ツチ信号Vr2として出力する。一方、MSBビツト
が“0”となる。Vi<Vr1ときには、アンドゲー
ト6の出力がLレベルにあることから基準信号
Vrのラツチは行わず、前回までにラツチしてい
る基準信号をそのままラツチ信号Vr2として出力
する。尚、ラツチ5は水平同期信号が得られるご
とにクリアされる。 次にROM7はラツチ信号Vrにカウンタ8と
ROM10で定まる係数βをかけ合せ Vr1=β・Vr2 ……(3) で定まる信号Vr1を発生する。ここで前記第(3)式
による係数βの値はカウンタ8によるROM10
の出力で定まる。 まずカウンタ8にはインバータ9を介して
ROM4のMSBビツト出力分が与えられており、
MSB=0、即ちVI<Vr1時、インバータ9のH
レベル出力でカウンタ8がクロツクパルスCKの
計数動作を行うROM10にカウント出力を与え
る。ROM10はカウンタ8の出力が所定値に達
するごとに出力00、01、10、11、…となる記憶出
力を生じ、このROM10の記憶出力に応じて
ROM7における前記第(3)式の係数βの値が定ま
る。例えばROM10の出力に対するROM7の
係数βの値は次表−1のように予め定められてい
る。
(Industrial Application Field) The present invention relates to a video signal processing device that converts an analog video signal obtained by scanning with an optical character reader or the like into a binary signal corresponding to a white level and a black level. (Prior Art) Conventionally, in optical character reading devices and the like, as shown in FIG. Image Scanner 24
The image scanner 24 performs line scanning to create an analog video signal that is photoelectrically converted, and the signal processing circuit 25 performs signal processing to binarize the digital video signal corresponding to the white level and black level. Characters read optically are recognized based on binary data. By the way, the analog video signal obtained from the image scanner 24 is as shown in FIG.
Due to the influence of the light source and lens, a signal with a bright center is obtained, and this phenomenon is usually known as shading. Even if this shading is corrected, the signal shown in Figure 6b
As shown in the figure, variations in brightness remain in the analog video signal, and accurate signal processing cannot be performed by binarizing it by comparing it with a fixed reference level. Therefore, in order to create a reference signal that follows changes in the analog video signal, a peak hold circuit shown in FIG. 7 is used for signal processing. The peak hold circuit shown in FIG. 7 includes a signal holding capacitor C 1 between buffer amplifiers 26 and 27.
The capacitor C 1 is charged quickly by the diode D 1 , while the capacitor C 1 is discharged slowly by passing through the resistor R 1 . In other words, the peak hold circuit has the characteristic of following the white part of the background by charging with a fast time constant, and following the black part corresponding to the characters by discharging with a slow time constant, as shown by the broken line in Figure 8. Obtain the peak hold output. The output of this peak hold circuit is connected to resistor R2
R3 divides the voltage to a specified signal level, sets a reference level Vr that follows changes in the analog video signal in the comparator 28, and compares it with the analog video signal using the comparator 28, for example, the white part is L level, and the black part is L level. A binary output V 0 of H level is obtained. (Problem to be Solved by the Invention) However, in such conventional analog signal processing, the charging/discharging characteristics of the peak hold circuit that creates the reference value are different from those of diodes, capacitors,
Since the voltage was determined by a resistor, voltage adjustment had to be performed using a number of adjustment means such as variums to compensate for variations in each element, and analog-specific compensation such as temperature changes had to be made. Ta. Furthermore, the charging time constant of the peak hold circuit must be made faster in order to track the white area due to paper surface noise, variations in image scanner sensitivity, variations in the distribution of light source light intensity, etc.
There is a limit to how high the speed can be increased, and when it becomes necessary to change the video frequency, there is a problem in that the time constant of the peak hold circuit must be readjusted. (Means for Solving the Problems) The present invention has been made in view of these conventional problems, and provides a standard for proper binarization that follows analog video signals without requiring any circuit adjustment. In order to generate a signal, an analog video signal is converted into a digital signal by an A/D converter, a plurality of reference values are stored in advance in the reference signal generating means, and the digital output value of the A/D converter is stored in advance. and the previously output reference value, and if the digital value is greater than or equal to the previous reference value, the stored reference value corresponding to the digital value is output as a new reference value, while on the other hand, the digital value is smaller than the previous reference value. Sometimes, the memory output of the previous reference value is held, and the reference value is sequentially decreased stepwise every time a certain period of time elapses, and the reference value from such a reference value generation means and the digital output of the A/D converter are stored. The digital video signal is converted into a multivalued signal, which is higher than a binary signal, by comparing the two values with a comparison means. (Embodiment) FIG. 1 is a circuit block diagram showing an embodiment of the present invention. First, to explain the configuration, 1 is an A/D converter that converts an analog video signal obtained by an image scanner into a digital video Vi, and the digital video signal Vi output from the A/D converter 1 is a reference The signal generator 2 and the reference signal are supplied to a ROM 3 which serves as a comparison means for outputting a multi-level signal V 0 by comparing the reference signal and the digital video signal. The reference signal generator 2 has a function of generating a reference signal Vr that changes in accordance with the digital video signal Vi, and is composed of ROMs 4, 7, 10, a latch 5, an AND gate 6, a counter 8, and an inverter 9. . Each circuit element in this reference signal generating section 2 will be explained as follows. The ROM 4 is given the digital video signal Vi and the output signal V r1 of the ROM 7, which will be explained later. Based on the magnitude relationship between the digital video signal Vi and the output signal V r1 , the reference signal V r is determined based on the following relational expression. of
Output to ROM3. When Vi≧V r1 , Vr=Vi When Vi<V r1 , Vr=V r1 (1) That is, when the digital video signal Vi1 is greater than or equal to the output signal V r1 of the ROM7, the digital video signal Vi is used as the reference signal Vr. output, while digital video signal
When Vi is smaller than the output signal V r1 of the ROM 7, the reference signal Vr is output as the output signal V r1 . Digital video signal in ROM4 like this
Reference signal Vr based on comparison of Vi and output signal V r1
The output of is the digital video signal Vi and the output signal V r1
This can be realized by storing in the ROM 4 a table memory with table address data. That is, a memory table is created with each digital bit of the signals Vi and V r1 as addresses, and the data area of the table position determined by the specific values of Vi and V r1 is populated with Vi or
By writing the value of V r1 in advance and specifying the data position in the table memory using Vi and V r1 as address data, Vi or V r1 based on the magnitude relationship between the two can be read out as the reference signal Vr. In other words, the ROM 4 stores in advance a plurality of reference signals V r used for comparison with the digital video signal Vi. Also, ROM4 is
It is equipped with an output terminal for the MSB bit, and this MSB bit is used to output the digital video signal Vi and the output signal of ROM7.
Based on the magnitude relationship with Vr1 , the MSB bit output is generated as follows. When Vi≧V r1 , MSB=1 When Vi<V r1 , MSB=0 (2) Next, latch 5 converts the previous reference signal Vr given to ROM3 based on the MSB bit output of ROM4 to the next one. It has a latch function to generate a reference signal. That is, the latch control of the latch 5 is performed by the output of the AND gate 6;
The same clock pulse CK as the clock pulse for A/D conversion used in the MSB bit output of ROM 4 and A/D converter 1 is given, and the H level output when the MSB bit becomes "1", that is, Vi≧ V r1
At the same time, the reference signal Vr for the ROM 3 is latched and outputted as a latched signal V r2 . On the other hand, the MSB bit becomes "0". When Vi<V r1 , the output of AND gate 6 is at L level, so the reference signal
Vr is not latched, and the previously latched reference signal is output as is as the latched signal V r2 . Note that the latch 5 is cleared each time a horizontal synchronization signal is obtained. Next, ROM7 outputs counter 8 to latch signal Vr.
A signal V r1 determined by multiplying by a coefficient β determined by the ROM 10 is generated as follows: V r1 =β·V r2 (3). Here, the value of the coefficient β according to the above equation (3) is determined by the ROM 10 obtained by the counter 8.
It is determined by the output of First, the counter 8 is connected to the inverter 9.
The MSB bit output of ROM4 is given,
When MSB=0, that is, VI<V r1 , the H of inverter 9
At the level output, the counter 8 provides a count output to the ROM 10 which performs a counting operation of the clock pulse CK. The ROM 10 generates memory outputs such as 00, 01, 10, 11, etc. every time the output of the counter 8 reaches a predetermined value, and according to the memory outputs of the ROM 10.
The value of the coefficient β of the equation (3) in the ROM 7 is determined. For example, the value of the coefficient β of the ROM7 with respect to the output of the ROM10 is predetermined as shown in Table 1 below.

【表】 …【table】 …

Claims (1)

【特許請求の範囲】 1 アナログビデオ信号をデジタル信号に変換す
るA/D変換器と、 複数の基準値を予め記憶し、前記A/D変換器
のデジタル出力値と前回出力された基準値とを比
較し、該デジタル出力値が基準値以上のとき該デ
ジタル値に対応した記憶基準値を新たな基準値と
して出力し、該デジタル値が前回基準値より小さ
いとき前回基準値の記憶出力を保持すると共に一
定の出力時間が経過する毎に該基準値を順次減少
させる基準値発生手段と、 前記A/D変換器のデジタル出力と前記基準値
発生手段の基準出力とを比較し、ビデオレベルに
応じた多値信号を出力する比較手段とを設けたこ
とを特徴とするビデオ信号処理装置。
[Scope of Claims] 1. An A/D converter that converts an analog video signal into a digital signal; and a plurality of reference values that are stored in advance, and a digital output value of the A/D converter and a previously output reference value. When the digital output value is greater than or equal to the reference value, the memory reference value corresponding to the digital value is output as a new reference value, and when the digital value is smaller than the previous reference value, the memory output of the previous reference value is retained. and a reference value generating means that sequentially decreases the reference value every time a certain output time elapses, and compares the digital output of the A/D converter with the reference output of the reference value generating means and determines the video level. 1. A video signal processing device, comprising: comparison means for outputting a corresponding multi-level signal.
JP59171338A 1984-08-17 1984-08-17 Video signal processing device Granted JPS6149286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59171338A JPS6149286A (en) 1984-08-17 1984-08-17 Video signal processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59171338A JPS6149286A (en) 1984-08-17 1984-08-17 Video signal processing device

Publications (2)

Publication Number Publication Date
JPS6149286A JPS6149286A (en) 1986-03-11
JPH0441389B2 true JPH0441389B2 (en) 1992-07-08

Family

ID=15921369

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59171338A Granted JPS6149286A (en) 1984-08-17 1984-08-17 Video signal processing device

Country Status (1)

Country Link
JP (1) JPS6149286A (en)

Also Published As

Publication number Publication date
JPS6149286A (en) 1986-03-11

Similar Documents

Publication Publication Date Title
US4420742A (en) Scan signal processing system
US4133008A (en) Automatic illumination compensation circuit
US4903143A (en) Image processing apparatus
US5027117A (en) Conversion using a variable reference based on image density
US4578711A (en) Video data signal digitization and correction system
US4876605A (en) Image reading device
US4402087A (en) Binary coding circuit
JPS58172061A (en) Signal processor
JPS6339142B2 (en)
US5115327A (en) Gain control circuit for use in shading compensation circuit
US4003021A (en) Level determination for optical character reader
JPS5925267B2 (en) optical character reader
JPH0441389B2 (en)
JPS60182870A (en) Picture processing device
JPH0130341B2 (en)
JPS6156673B2 (en)
EP0158409A2 (en) Improved threshold detector
JPH03143012A (en) Binarizing circuit, intermediate level detection circuit and peak envelope detection circuit
JPS633502B2 (en)
JPH05122519A (en) Peak hold circuit
JP2513630B2 (en) Image processing device
JPS60157376A (en) Video signal processing circuit
JP2670075B2 (en) Image full scale determination device
JPS5953593B2 (en) A/D converter
JPH0628377B2 (en) Image signal binarization circuit