JPH07320046A - Image processor - Google Patents

Image processor

Info

Publication number
JPH07320046A
JPH07320046A JP6129947A JP12994794A JPH07320046A JP H07320046 A JPH07320046 A JP H07320046A JP 6129947 A JP6129947 A JP 6129947A JP 12994794 A JP12994794 A JP 12994794A JP H07320046 A JPH07320046 A JP H07320046A
Authority
JP
Japan
Prior art keywords
signal
circuit
output
threshold value
comparator
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
JP6129947A
Other languages
Japanese (ja)
Inventor
Takashi Ishida
孝 石田
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.)
Nippon Avionics Co Ltd
Original Assignee
Nippon Avionics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nippon Avionics Co Ltd filed Critical Nippon Avionics Co Ltd
Priority to JP6129947A priority Critical patent/JPH07320046A/en
Publication of JPH07320046A publication Critical patent/JPH07320046A/en
Pending legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To obtain binarized data with a simple configuration by binarizing a video signal by a comparator and converting the output of the comparator into sampling data by a flip-flop circuit. CONSTITUTION:The comparator 2 compares the video signal Va with threshold value Vth from a threshold value generating circuit 1. A flip-flop circuit 3 latches the output Vb of the comparator 2 each time a clock signal CLK is inputted. A synchronous separating circuit 5 extracts a vertical and a horizontal synchronizing signal from the signal Va. An acknowledgement signal generating circuit 6 generates write acknowledgement signals VEN and HEN on the basis of those signals. A one-bit memory 4 stores the output of the flip-flop circuit 3 when a write acknowledgement signal is outputted from an AND circuit 7. Thus, the binarized data are stored in a memory 4 and character patterns, etc., are recognized with the data.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、撮像装置から得られた
ビデオ信号を2値化データに変換し、この2値化データ
に基づいて画像認識を行う画像処理装置に関するもので
ある。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing device for converting a video signal obtained from an image pickup device into binary data and performing image recognition based on the binary data.

【0002】[0002]

【従来の技術】従来より郵便物等の対象物体を撮像装置
で撮影し、撮像装置から出力されたビデオ信号を2値化
データに変換して画像認識を行う画像処理装置がある
が、このような画像処理装置では、ビデオ信号をA/D
変換器で8ビットのディジタルデータに変換してこれを
8ビットメモリに記憶させ、メモリに記憶されたデータ
を2値化回路で2値化した後に、文字パターン等の認識
処理を行っていた。上記のようにA/D変換器によって
8ビットのディジタルデータに変換するのは、対象物体
を照らす照明光源の光量や対象物体の色等によりビデオ
信号に濃淡の階調があるためで、これをいったん8ビッ
ト(256階調)のディジタルデータに変換すること
で、このような濃淡の階調に対応している。
2. Description of the Related Art Conventionally, there is an image processing apparatus for photographing a target object such as a mail with an image pickup device and converting a video signal output from the image pickup device into binary data for image recognition. Image processing device, the video signal is A / D
A converter converts the data into 8-bit digital data, stores the data in an 8-bit memory, binarizes the data stored in the memory with a binarizing circuit, and then recognizes a character pattern or the like. As described above, the reason why the A / D converter converts into 8-bit digital data is that the video signal has a gray scale depending on the light amount of the illumination light source that illuminates the target object, the color of the target object, and the like. By once converting into 8-bit (256 gradations) digital data, it is possible to deal with such gradation of light and shade.

【0003】[0003]

【発明が解決しようとする課題】従来の画像処理装置は
以上のようにして対象物体を認識しているので、2値化
データを得るためにA/D変換器、8ビットメモリ、及
び2値化回路を必要とし、コストが高くなるという問題
点があった。本発明は、上記課題を解決するために、簡
単な構成で2値化データを得ることができる画像処理装
置を提供することを目的とする。
Since the conventional image processing apparatus recognizes the target object as described above, the A / D converter, the 8-bit memory, and the binary value are obtained in order to obtain the binary data. However, there is a problem in that the cost is increased due to the need for a digitizing circuit. SUMMARY OF THE INVENTION It is an object of the present invention to provide an image processing device that can obtain binarized data with a simple configuration in order to solve the above problems.

【0004】[0004]

【課題を解決するための手段】本発明は、対象物体に応
じた設定変更の可能なしきい値を発生するしきい値発生
回路と、入力されたビデオ信号をしきい値に基づいて2
値化する比較器と、この比較器の出力信号をクロック信
号の入力ごとにラッチしてサンプリングを行うフリップ
フロップ回路と、ビデオ信号の垂直及び水平同期タイミ
ングに基づいて書き込み許可信号を生成する書き込み制
御回路と、認識処理部へデータを出力するために設けら
れ、書き込み許可信号が出力されたときにフリップフロ
ップ回路の出力を記憶するメモリとを有するものであ
る。
According to the present invention, there is provided a threshold value generating circuit for generating a threshold value whose setting can be changed according to a target object, and an input video signal based on the threshold value.
A comparator that digitizes, a flip-flop circuit that latches the output signal of this comparator for each clock signal input and performs sampling, and a write control that generates a write enable signal based on the vertical and horizontal synchronization timing of the video signal. It has a circuit and a memory which is provided to output data to the recognition processing unit and which stores the output of the flip-flop circuit when the write enable signal is output.

【0005】[0005]

【作用】本発明によれば、しきい値発生回路からのしき
い値に基づいて比較器がビデオ信号を2値化し、フリッ
プフロップ回路が比較器出力のサンプリングを行う。そ
して、書き込み制御回路から書き込み許可信号が出力さ
れたときにフリップフロップ回路の出力がメモリに記憶
される。
According to the present invention, the comparator binarizes the video signal based on the threshold value from the threshold value generating circuit, and the flip-flop circuit samples the output of the comparator. Then, when the write enable signal is output from the write control circuit, the output of the flip-flop circuit is stored in the memory.

【0006】[0006]

【実施例】図1は本発明の1実施例を示す画像処理装置
のブロック図、図2はこの画像処理装置の動作を説明す
るためのタイミングチャート図である。1は2値化のた
めのしきい値Vthを発生するしきい値発生回路、2は
図示しない撮像装置から出力されたビデオ信号Vaとし
きい値Vthとを比較する比較器、3はこの比較器2の
出力信号Vbをクロック信号CLKの入力ごとにラッチ
するフリップフロップ回路、4は後述する書き込み許可
信号が出力されたときにフリップフロップ回路3の出力
を記憶する1ビットメモリである。
1 is a block diagram of an image processing apparatus showing an embodiment of the present invention, and FIG. 2 is a timing chart for explaining the operation of the image processing apparatus. Reference numeral 1 is a threshold value generating circuit for generating a threshold value Vth for binarization, 2 is a comparator for comparing the video signal Va output from an image pickup device (not shown) with the threshold value Vth, and 3 is this comparator. A flip-flop circuit 4 that latches the output signal Vb of 2 for each input of the clock signal CLK is a 1-bit memory that stores the output of the flip-flop circuit 3 when a write enable signal described later is output.

【0007】また、5はビデオ信号Vaから垂直同期信
号及び水平同期信号を取り出す同期分離回路、6はこれ
らの同期信号に基づいて垂直同期タイミングに関する書
き込み許可信号VEN、水平同期タイミングに関する書
き込み許可信号HENを生成する許可信号生成回路、7
は論理積回路である。また、同期分離回路5、許可信号
生成回路6、論理積回路7が書き込み制御回路を構成し
ている。
Reference numeral 5 denotes a sync separation circuit for extracting a vertical sync signal and a horizontal sync signal from the video signal Va, and 6 denotes a write enable signal VEN for the vertical sync timing and a write enable signal HEN for the horizontal sync timing based on these sync signals. Signal generating circuit for generating
Is an AND circuit. Further, the sync separation circuit 5, the permission signal generation circuit 6, and the AND circuit 7 constitute a write control circuit.

【0008】図2においてHSYNCは水平同期信号、
VSYNCは垂直同期信号である。なお、図2(a)〜
(c)は2水平走査期間にわたる水平同期タイミングで
見た信号を示しており、図2(d)〜(f)は垂直同期
信号VSYNCを中心とする垂直同期タイミングで見た
信号を示している。
In FIG. 2, HSYNC is a horizontal synchronizing signal,
VSYNC is a vertical synchronizing signal. In addition, FIG.
FIG. 2C shows a signal viewed at the horizontal sync timing over two horizontal scanning periods, and FIGS. 2D to 2F show signals viewed at the vertical sync timing centered on the vertical sync signal VSYNC. .

【0009】次に、このような画像処理装置の動作を説
明する。撮像装置が対象物体として郵便物の郵便番号が
記入された箇所を撮影すると、例えば図2(a)、
(d)に示すようなビデオ信号Vaが撮像装置から出力
される。図2(a)のLのようにレベルが低下している
部分は、濃淡の濃いところ、すなわち文字に相当する部
分である。
Next, the operation of such an image processing apparatus will be described. When the image capturing device captures an image of the place where the postal code of the mail is written as the target object, for example, as shown in FIG.
A video signal Va as shown in (d) is output from the imaging device. A portion where the level is lowered as indicated by L in FIG. 2A is a portion where the shade is high, that is, a portion corresponding to a character.

【0010】比較器2は、このビデオ信号Vaとしきい
値発生回路1から出力されたしきい値Vthとを比較す
る。この結果、比較器2の出力信号Vbは、図2(b)
に示すようにビデオ信号Vaがしきい値Vth以上とな
る期間で「L」レベル、以下の期間で「H」レベルとな
る。
The comparator 2 compares the video signal Va with the threshold value Vth output from the threshold value generating circuit 1. As a result, the output signal Vb of the comparator 2 is as shown in FIG.
As shown in, the level becomes "L" level during the period when the video signal Va is equal to or higher than the threshold value Vth, and becomes "H" level during the period below.

【0011】しきい値発生回路1は、図示しない電圧源
とこの電圧源に接続された可変抵抗器からなっており、
これによりしきい値Vthを生成すると共に、可変抵抗
器を操作することでしきい値Vthの設定を変更できる
ようになっている。これは、ビデオ信号Vaに含まれる
対象物体の情報が照明光源の光量や対象物体の色等によ
って変化するので、上記のような比較器2による2値化
を行うためには対象物体に応じてしきい値Vthを変更
する必要があるからである。
The threshold generation circuit 1 comprises a voltage source (not shown) and a variable resistor connected to this voltage source,
As a result, the threshold value Vth is generated, and the setting of the threshold value Vth can be changed by operating the variable resistor. This is because the information of the target object included in the video signal Va changes depending on the light amount of the illumination light source, the color of the target object, and the like. Therefore, in order to perform the binarization by the comparator 2 as described above, This is because it is necessary to change the threshold value Vth.

【0012】次いで、フリップフロップ回路3はクロッ
ク信号CLKの入力ごとに比較器2の出力信号Vbをラ
ッチして端子Qからこれを出力する。クロック信号CL
Kは、その周期が例えば82nsecで、垂直同期信号
VSYNC及び水平同期信号HSYNCに同期した信号
である。
Then, the flip-flop circuit 3 latches the output signal Vb of the comparator 2 for each input of the clock signal CLK and outputs it from the terminal Q. Clock signal CL
K is a signal whose cycle is, for example, 82 nsec and which is synchronized with the vertical synchronizing signal VSYNC and the horizontal synchronizing signal HSYNC.

【0013】比較器2の出力がサンプリングされた結
果、図示しない認識処理部で処理することが可能な2値
化データが得られ、この2値化データが1ビットメモリ
4に記憶される。このとき、フリップフロップ回路3か
ら出力されるデータには画像認識に不要な情報も含まれ
るので、メモリ容量の節約を図るために以下のような書
き込み制御が行われる。
As a result of sampling the output of the comparator 2, binarized data that can be processed by a recognition processing unit (not shown) is obtained, and the binarized data is stored in the 1-bit memory 4. At this time, since the data output from the flip-flop circuit 3 includes information unnecessary for image recognition, the following write control is performed in order to save the memory capacity.

【0014】まず、同期分離回路5はビデオ信号Vaか
ら垂直同期信号VSYNC、水平同期信号HSYNCを
取り出し、許可信号生成回路6はこれらの同期信号に基
づいて図2(e)に示すような垂直同期タイミングに関
する書き込み許可信号VEN、図2(c)、(f)に示
すような水平同期タイミングに関する書き込み許可信号
HENを生成する。次に、論理積回路7は、書き込み許
可信号VEN、HENの論理積をとって最終的な書き込
み許可信号を出力する。
First, the sync separation circuit 5 takes out the vertical sync signal VSYNC and the horizontal sync signal HSYNC from the video signal Va, and the permission signal generation circuit 6 performs vertical sync as shown in FIG. 2E based on these sync signals. A write permission signal VEN relating to timing and a write permission signal HEN relating to horizontal synchronization timing as shown in FIGS. 2C and 2F are generated. Next, the logical product circuit 7 takes the logical product of the write enable signals VEN and HEN and outputs the final write enable signal.

【0015】そして、1ビットメモリ4は、この書き込
み許可信号が出力されたとき、すなわち論理積回路7の
出力が「H」レベルのときにフリップフロップ回路3の
出力を記憶する。したがって、水平走査タイミングで見
ると、図2(b)の信号Vbのうち期間tのデータが1
ビットメモリ4に記憶されることになる。これで、2値
化データが1ビットメモリ4に記憶され、このデータが
認識処理部に出力されて文字パターン等の認識処理が行
われる。
The 1-bit memory 4 stores the output of the flip-flop circuit 3 when the write enable signal is output, that is, when the output of the AND circuit 7 is at "H" level. Therefore, when viewed at the horizontal scanning timing, the data of the period t in the signal Vb of FIG.
It will be stored in the bit memory 4. Then, the binarized data is stored in the 1-bit memory 4, and this data is output to the recognition processing unit to perform the recognition processing of the character pattern and the like.

【0016】1ビットメモリ4、同期分離回路5、許可
信号生成回路6、論理積回路7は従来の画像処理装置に
おいても同様に設けられているものであり、本実施例で
は従来の画像処理装置におけるA/D変換器、8ビット
メモリ、2値化回路をしきい値発生回路1、比較器2、
フリップフロップ回路3に置き換えることにより、簡単
な構成で2値化データを得ることができる。また、照明
光源の光量や対象物体の色等によって対象物体の情報が
変化する場合でも、しきい値Vthを変更することで容
易に対応できる。
The 1-bit memory 4, the sync separation circuit 5, the permission signal generation circuit 6, and the AND circuit 7 are also provided in the conventional image processing apparatus. In this embodiment, the conventional image processing apparatus is used. , A / D converter, 8-bit memory, binarization circuit, threshold value generation circuit 1, comparator 2,
By replacing with the flip-flop circuit 3, it is possible to obtain binary data with a simple configuration. Further, even when the information of the target object changes due to the light amount of the illumination light source, the color of the target object, etc., it can be easily dealt with by changing the threshold value Vth.

【0017】なお、本実施例では同期分離回路5によっ
て垂直同期信号VSYNC及び水平同期信号HSYNC
を取り出しているが、撮像装置によっては垂直、水平同
期タイミングをVD信号、HD信号として出力するもの
もあるので、これらの信号から直接書き込み許可信号を
生成してもよい。
In the present embodiment, the vertical separation signal VSYNC and the horizontal synchronization signal HSYNC are generated by the synchronization separation circuit 5.
However, some of the image pickup devices output the vertical and horizontal synchronization timings as VD signals and HD signals, so that the write enable signal may be generated directly from these signals.

【0018】図3は本発明の他の実施例を示す画像処理
装置のブロック図であり、しきい値発生回路を除く構成
は図1の例と同じなので、構成が同じ部分は省略してあ
る。1aはしきい値発生回路、10は演算増幅器、Vc
はしきい値Vthを決定するための制御電圧である。図
1の例のしきい値発生回路1は可変抵抗器の操作により
しきい値Vthを変化させることができるが、本実施例
では外部から入力される制御電圧Vcに基づいてしきい
値Vthが決定される。
FIG. 3 is a block diagram of an image processing apparatus showing another embodiment of the present invention. Since the configuration excluding the threshold value generating circuit is the same as the example of FIG. 1, the portions having the same configuration are omitted. . 1a is a threshold value generating circuit, 10 is an operational amplifier, Vc
Is a control voltage for determining the threshold value Vth. The threshold value generating circuit 1 in the example of FIG. 1 can change the threshold value Vth by operating the variable resistor. However, in the present embodiment, the threshold value Vth is changed based on the control voltage Vc input from the outside. It is determined.

【0019】このとき、制御電圧Vcを送るケーブル等
が長くなると、制御電圧Vcにノイズがのることがあ
る。しきい値発生回路1aは、演算増幅器10を中心と
したローパスフィルタを構成しており、制御電圧Vcに
含まれるノイズを除去する。こうして、画像処理装置か
ら離れた所より対象物体に応じたしきい値Vthの設定
を行うことができる。
At this time, if the cable or the like for transmitting the control voltage Vc becomes long, noise may occur on the control voltage Vc. The threshold value generating circuit 1a constitutes a low-pass filter centered on the operational amplifier 10, and removes noise included in the control voltage Vc. In this way, the threshold value Vth can be set according to the target object from a distance from the image processing apparatus.

【0020】[0020]

【発明の効果】本発明によれば、比較器がビデオ信号を
直接2値化し、フリップフロップ回路が比較器出力をサ
ンプリングデータに変換するので、簡単な構成で2値化
データを得ることができ、画像処理装置のコストを削減
することができる。また、照明光源の光量や対象物体の
色等によって対象物体の情報が変化する場合でも、しき
い値の設定を変更することで容易に対応できる。
According to the present invention, since the comparator directly binarizes the video signal and the flip-flop circuit converts the output of the comparator into sampling data, the binarized data can be obtained with a simple structure. Therefore, the cost of the image processing apparatus can be reduced. Further, even when the information of the target object changes depending on the light amount of the illumination light source, the color of the target object, etc., it can be easily dealt with by changing the setting of the threshold value.

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

【図1】 本発明の1実施例を示す画像処理装置のブロ
ック図である。
FIG. 1 is a block diagram of an image processing apparatus showing an embodiment of the present invention.

【図2】 図1の画像処理装置の動作を説明するための
タイミングチャート図である。
FIG. 2 is a timing chart diagram for explaining the operation of the image processing apparatus in FIG.

【図3】 本発明の他の実施例を示す画像処理装置のブ
ロック図である。
FIG. 3 is a block diagram of an image processing apparatus showing another embodiment of the present invention.

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

1、1a…しきい値発生回路、2…比較器、3…フリッ
プフロップ回路、4…1ビットメモリ、5…同期分離回
路、6…許可信号生成回路、7…論理積回路。
1, 1a ... Threshold value generation circuit, 2 ... Comparator, 3 ... Flip-flop circuit, 4 ... 1-bit memory, 5 ... Sync separation circuit, 6 ... Permission signal generation circuit, 7 ... AND circuit.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 H04N 1/40 103 A ─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Office reference number FI technical display location H04N 1/40 103 A

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 対象物体を撮影して得られたビデオ信号
を2値化データに変換し、このデータを基に認識処理部
にて画像認識を行う画像処理装置において、 対象物体に応じた設定変更の可能なしきい値を発生する
しきい値発生回路と、 入力されたビデオ信号を前記しきい値に基づいて2値化
する比較器と、 この比較器の出力信号をクロック信号の入力ごとにラッ
チしてサンプリングを行うフリップフロップ回路と、 前記ビデオ信号の垂直及び水平同期タイミングに基づい
て書き込み許可信号を生成する書き込み制御回路と、 前記認識処理部へデータを出力するために設けられ、前
記書き込み許可信号が出力されたときに前記フリップフ
ロップ回路の出力を記憶するメモリとを有することを特
徴とする画像処理装置。
1. An image processing apparatus for converting a video signal obtained by photographing a target object into binarized data, and performing image recognition in a recognition processing unit based on this data, in a setting according to the target object. A threshold value generation circuit for generating a variable threshold value, a comparator for binarizing an input video signal based on the threshold value, and an output signal of the comparator for each clock signal input. A flip-flop circuit that performs latching and sampling, a write control circuit that generates a write enable signal based on vertical and horizontal synchronization timings of the video signal, and a write control circuit that is provided to output data to the recognition processing unit. An image processing apparatus comprising: a memory that stores the output of the flip-flop circuit when a permission signal is output.
JP6129947A 1994-05-20 1994-05-20 Image processor Pending JPH07320046A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6129947A JPH07320046A (en) 1994-05-20 1994-05-20 Image processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6129947A JPH07320046A (en) 1994-05-20 1994-05-20 Image processor

Publications (1)

Publication Number Publication Date
JPH07320046A true JPH07320046A (en) 1995-12-08

Family

ID=15022378

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6129947A Pending JPH07320046A (en) 1994-05-20 1994-05-20 Image processor

Country Status (1)

Country Link
JP (1) JPH07320046A (en)

Similar Documents

Publication Publication Date Title
JP3523705B2 (en) Information reproduction system
JPS5896458A (en) Binary system
US4158856A (en) Apparatus and method for generating digital words representative of video information
KR910005685A (en) Signal waveform display device
JPH088647B2 (en) Run-length coding method and apparatus
JPH07320046A (en) Image processor
JPH08251355A (en) Image reader
JPS62219754A (en) Picture reader
JPH09167227A (en) Image processor
JP2748860B2 (en) Digital converter
JPH10240856A (en) Code reader
JPH02204879A (en) Method and device for identifying color
KR100187209B1 (en) Circuit for extracting brightness distribution of the object
JP3154395B2 (en) Data signal multiplexer
KR960011214B1 (en) Image signal processing method
JP2725286B2 (en) Facsimile signal processing circuit
KR960015307A (en) Black and White Digital Camera Module for PC
JPH0129643Y2 (en)
JP2002342703A (en) Information reproduction system
JPH01208081A (en) Plural-pictures displaying processor
JP2000236487A (en) Image processor
JPH0831980B2 (en) Video signal processing device
JP2002358480A (en) Information reproduction system
JPS6145690A (en) Processor of binary picture
JP2002366885A (en) Information reproduction system