JPH0430783B2 - - Google Patents
Info
- Publication number
- JPH0430783B2 JPH0430783B2 JP58043486A JP4348683A JPH0430783B2 JP H0430783 B2 JPH0430783 B2 JP H0430783B2 JP 58043486 A JP58043486 A JP 58043486A JP 4348683 A JP4348683 A JP 4348683A JP H0430783 B2 JPH0430783 B2 JP H0430783B2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- video signal
- output
- sample
- level
- 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 - Lifetime
Links
- 238000006243 chemical reaction Methods 0.000 claims description 3
- 230000004069 differentiation Effects 0.000 claims description 3
- 238000005286 illumination Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000000034 method Methods 0.000 description 3
- 241000255969 Pieris brassicae Species 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/40—Picture signal circuits
- H04N1/403—Discrimination between the two tones in the picture signal of a two-tone original
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Image Input (AREA)
- Facsimile Image Signal Circuits (AREA)
Description
【発明の詳細な説明】
本発明はITVカメラ、ドラムスキヤナ等のス
キヤナの光電変換信号(以下ビデオ信号という)
の2値化回路に関する。[Detailed Description of the Invention] The present invention provides photoelectric conversion signals (hereinafter referred to as video signals) of scanners such as ITV cameras and drum scanners.
This invention relates to a binarization circuit.
従来、この種の2値化回路は2値化のためのス
ライスレベルとして一定電圧を与える固定スライ
ス方式やビデオ信号中の低い周波数成分を固定ス
ライスレベルに重畳するフローテイングスライス
方式が一般的であつた。 Conventionally, this type of binarization circuit has generally used a fixed slice method that applies a constant voltage as a slice level for binarization, or a floating slice method that superimposes low frequency components in a video signal on a fixed slice level. Ta.
これらの方式は、被写体の白と黒の分布がおお
よそ一定の場合は有効な手段であるが、この白黒
の比率が安定しない場合は被写体自体からの照明
光の反射などの影響で、黒の比率が大きいところ
は暗く逆に白の比率が大きいところは明るくなる
現像のため、問題があつた。この現像を手書き図
面の読取で、第2図を例にして説明する。 These methods are effective when the distribution of white and black in the subject is approximately constant, but if this black and white ratio is not stable, the black ratio may change due to effects such as reflection of illumination light from the subject itself. There was a problem because areas with a large white ratio were developed to be dark and areas with a large white ratio to be bright. This development will be explained by reading a handwritten drawing using FIG. 2 as an example.
第2図は手書きプリントパターン図を示すもの
である。白い用紙に黒い鉛筆書きされた図面は、
当然ながら、電気的な接続を示す配線(以下ライ
ンという。)の本数が図中Aのごとく密な部分と、
Bのごとく疎な部分が存在する。 FIG. 2 shows a handwritten print pattern diagram. A drawing drawn in black pencil on white paper,
Naturally, there are areas where the number of wiring (hereinafter referred to as lines) indicating electrical connections is dense as shown in A in the figure.
There are sparse parts like B.
固定スライスによる2値化では、密な部分では
ラインが太めに、疎な部分では細めに検出される
ため、正確に線巾を検出する場合には問題で、照
明関係の改善だけでは解決するのが難しかつた。 With binarization using fixed slices, lines are detected thicker in dense areas and thinner in sparse areas, which poses a problem when accurately detecting line widths, and cannot be resolved by simply improving the lighting. It was difficult.
本発明の目的はかかる欠点を解決するための2
値化回路を提供するものである。 The purpose of the present invention is to solve the following two problems.
This provides a value conversion circuit.
すなわち、本発明によればビデオ信号の2値化
において、被写体の照明ムラによるビデオ信号レ
ベルの変動を補正するために、ビデオ信号の白レ
ベルのピークを検出するための微分回路と、前記
微分回路の出力から、ビデオ信号の白レベルのピ
ークをサンプルホールドするためのサンプルホー
ルド回路と、前記サンプルホールド回路へ供給す
るタイミング信号を発生するタイミング発生回路
と、前記サンプルホールド回路と、2値化時の基
準電圧を与えるリフアレンス回路と、前記リフア
レンス回路から発生される基準電圧から前記サン
プルホールド回路の出力を減算する減算回路と、
前記減算回路の出力をスライスレベルとしてビデ
オ信号を2値化するコンパレータとから構成した
ことを特徴とする2値化回路が得られる。 That is, according to the present invention, in binarizing a video signal, in order to correct fluctuations in the video signal level due to uneven illumination of a subject, a differentiating circuit for detecting the peak of the white level of the video signal, and the differentiating circuit are provided. a sample-and-hold circuit for sampling and holding the white level peak of the video signal from the output of the video signal; a timing generation circuit for generating a timing signal to be supplied to the sample-and-hold circuit; a reference circuit that provides a reference voltage; a subtraction circuit that subtracts the output of the sample and hold circuit from the reference voltage generated from the reference circuit;
A binarization circuit is obtained, comprising a comparator that binarizes a video signal by using the output of the subtraction circuit as a slice level.
以下本発明の実施例を図を参照にして詳細に説
明する。 Embodiments of the present invention will be described in detail below with reference to the drawings.
第1図は本発明の実施例を示す構成図、第2図
は手書きプリントパターン図の説明図、第3図は
実施例中の各部の出力波形を示す。 FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory diagram of a handwritten print pattern diagram, and FIG. 3 shows output waveforms of various parts in the embodiment.
第2図の手書きプリントパターン図は白い用紙
に黒い鉛筆でプリントパターンの配線を描いたも
のであるが、図中に示したように走査線C,Dの
ごとく順に、スキヤナにより光電変換され、第1
図中の入力端子1に入力される。 The handwritten print pattern diagram in Figure 2 is a drawing of the print pattern wiring on white paper with a black pencil. 1
It is input to input terminal 1 in the figure.
ところが、ビデオ信号は第3図中のaで示した
ように第2図中のA,Bの場所により白レベルの
出力に差が生じてくる。先にも説明したように、
白い用紙に黒いラインが書かれているため白黒の
判別のためだけの2値化は容易であることは、本
発明の理解のために述べておく。 However, as shown by a in FIG. 3, the white level output of the video signal differs depending on the locations A and B in FIG. 2. As explained earlier,
For the sake of understanding the present invention, it will be mentioned that since black lines are written on white paper, it is easy to perform binarization just to distinguish between black and white.
入力信号1は、遅延回路2で後に説明するコン
パレータ3で2値化するときの補正されたスライ
ス信号との位相を一致させる。同時に入力信号1
はローパスフイルタ4で不必要なノイズを除去し
たあと、入力信号の白レベルのピークを検出する
ために微分回路5で微分される。 The input signal 1 is matched in phase with a corrected slice signal when binarized by a comparator 3, which will be described later, in a delay circuit 2. At the same time input signal 1
After unnecessary noise is removed by a low-pass filter 4, the signal is differentiated by a differentiating circuit 5 in order to detect the peak of the white level of the input signal.
微分した信号は、ビデオ信号の白レベルのピー
クをサンプルホールドするサンプルホールド回路
7に、白レベルのピークを検出してサンプルホー
ルドのタイミング信号を与えるタイミング発生回
路6に入力される。白レベルのピークの検出方法
は、微分回路5の出力波形である第3図のbの電
圧レベルが+から−へ変化する途中の0Vを検出
することで行う。 The differentiated signal is input to a sample and hold circuit 7 that samples and holds the peak of the white level of the video signal, and to a timing generation circuit 6 that detects the peak of the white level and provides a sample and hold timing signal. The peak of the white level is detected by detecting 0V in the middle of the voltage level b in FIG. 3, which is the output waveform of the differentiating circuit 5, changing from + to -.
このようにしてサンプルホールドされた出力は
一定の比率で2値化時の基準電圧を与えるリフア
レンス回路9からの出力電圧から減算回路8で減
算されて、第3図中に示すcのごとき波形にな
る。 The output sampled and held in this manner is subtracted by a subtraction circuit 8 from the output voltage from the reference circuit 9 which provides a reference voltage for binarization at a constant ratio, resulting in a waveform such as c shown in Fig. 3. Become.
この出力をスライスレベルとして、先に説明し
た遅延回路2で元のビデオ信号と同期をとつたあ
と、コンパレータ3で2値化し、2値化出力は出
力端子10へ出力される。 This output is used as a slice level and synchronized with the original video signal by the delay circuit 2 described above, and then binarized by the comparator 3, and the binarized output is output to the output terminal 10.
したがつてラインの密に書かれてあつても、疎
であつても2値化時のスライスレベルが自動的に
補正されて、正確な2値化が可能となる。 Therefore, even if lines are written densely or sparsely, the slice level at the time of binarization is automatically corrected, and accurate binarization is possible.
以上説明したように本発明によれば、簡単な回
路構成で非常に有効な2値化回路を得ることがで
きる。 As explained above, according to the present invention, a highly effective binarization circuit can be obtained with a simple circuit configuration.
第1図は本発明の一実施例を示す構成図であ
り、第2図は手書プリントパターン図の説明図、
第3図a,b,cは実施例中の各部の信号波形を
示す図である。
図において、1は入力端子、2は遅延回路、3
はコンパレータ、4はローパスフイルタ、5は微
分回路、6はタイミング発生回路、7はサンプル
ホールド回路、8は減算回路、9はリフアレンス
回路、10は出力端子である。Aはラインの密な
部分、Bはラインの疎な部分、C,Dはスキヤナ
の走査線、第3図aは入力信号1の信号波形、b
は微分回路5の出力波形、cは減算回路8の出力
波形を示す。
FIG. 1 is a configuration diagram showing an embodiment of the present invention, and FIG. 2 is an explanatory diagram of a handwritten print pattern diagram.
FIGS. 3a, 3b, and 3c are diagrams showing signal waveforms at various parts in the embodiment. In the figure, 1 is an input terminal, 2 is a delay circuit, and 3
4 is a comparator, 4 is a low-pass filter, 5 is a differentiation circuit, 6 is a timing generation circuit, 7 is a sample hold circuit, 8 is a subtraction circuit, 9 is a reference circuit, and 10 is an output terminal. A is the dense part of the line, B is the sparse part of the line, C and D are the scanning lines of the scanner, Figure 3 a is the signal waveform of input signal 1, b
indicates the output waveform of the differentiating circuit 5, and c indicates the output waveform of the subtraction circuit 8.
Claims (1)
変動を補正するために、ビデオ信号の白レベルの
ピークを検出するための微分回路と、前記微分回
路の出力から、ビデオ信号の白レベルのピークを
サンプルホールドするためのサンプルホールド回
路と、前記サンプルホールド回路へ供給するタイ
ミング信号を発生するタイミング発生回路と、2
値化時の基準電圧を与えるリフアレンス回路と、
前記リフアレンス回路から発生される基準電圧か
ら前記サンプルホールド回路の出力を減算する減
算回路と、前記減算回路の出力をスライスレベル
としてビデオ信号を2値化するコンパレータとか
ら構成したことを特徴とする2値化回路。1. In order to correct fluctuations in the video signal level due to uneven illumination of the subject, a differentiation circuit is provided to detect the peak of the white level of the video signal, and the peak of the white level of the video signal is sampled and held from the output of the differentiation circuit. 2. A sample and hold circuit for generating a sample and hold circuit, and a timing generation circuit for generating a timing signal to be supplied to the sample and hold circuit.
a reference circuit that provides a reference voltage during value conversion;
2. It is characterized by comprising a subtraction circuit that subtracts the output of the sample and hold circuit from the reference voltage generated from the reference circuit, and a comparator that binarizes the video signal by using the output of the subtraction circuit as a slice level. Value circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58043486A JPS59169274A (en) | 1983-03-16 | 1983-03-16 | Binary coding circuit |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP58043486A JPS59169274A (en) | 1983-03-16 | 1983-03-16 | Binary coding circuit |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS59169274A JPS59169274A (en) | 1984-09-25 |
| JPH0430783B2 true JPH0430783B2 (en) | 1992-05-22 |
Family
ID=12665045
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP58043486A Granted JPS59169274A (en) | 1983-03-16 | 1983-03-16 | Binary coding circuit |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS59169274A (en) |
-
1983
- 1983-03-16 JP JP58043486A patent/JPS59169274A/en active Granted
Also Published As
| Publication number | Publication date |
|---|---|
| JPS59169274A (en) | 1984-09-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPS58177071A (en) | Shading compensation device | |
| CA1242032A (en) | Method of and apparatus for discriminating sharp edge transitions produced during optical scanning of differently reflective regions | |
| JPH0430783B2 (en) | ||
| US4408232A (en) | Image reading device | |
| JPS6019709B2 (en) | Signal binarization device | |
| JPS60145852A (en) | Inspection apparatus of printed matter | |
| JPS63314071A (en) | Binarization processing method for image reader | |
| JPS58134370A (en) | Method and apparatus for converting analog scanning signal into binary square signal | |
| JP2675079B2 (en) | Binarization processing circuit | |
| JPS5964917A (en) | Binary coding system | |
| JP3144067B2 (en) | Inspection equipment for printed wiring boards | |
| JPH0417586B2 (en) | ||
| JPS6176903A (en) | Parts inspecting instrument | |
| JPH0540098A (en) | Appearance inspecting apparatus | |
| JPS58153328A (en) | Image sensor non-uniform light receiving sensitivity correction method | |
| JPH0443784A (en) | Magnetic recording signal measurement method and device | |
| JPS61251363A (en) | Image reader | |
| JPS6354272B2 (en) | ||
| JPS6027064B2 (en) | Label front and back inspection device | |
| JPS6027925B2 (en) | Print inspection method | |
| JPS5858404A (en) | Floating binary system for signal | |
| JP2674320B2 (en) | Minimum pattern interval inspection device | |
| JPH05268476A (en) | Document reader | |
| JPH01202984A (en) | Binarizing processor | |
| JPH0191571A (en) | Picture processor |