JPS6230114Y2 - - Google Patents
Info
- Publication number
- JPS6230114Y2 JPS6230114Y2 JP2064980U JP2064980U JPS6230114Y2 JP S6230114 Y2 JPS6230114 Y2 JP S6230114Y2 JP 2064980 U JP2064980 U JP 2064980U JP 2064980 U JP2064980 U JP 2064980U JP S6230114 Y2 JPS6230114 Y2 JP S6230114Y2
- Authority
- JP
- Japan
- Prior art keywords
- circuit
- clock
- output
- binary signal
- signal
- 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
Links
- 238000001514 detection method Methods 0.000 claims description 2
- 230000000630 rising effect Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000003909 pattern recognition Methods 0.000 description 1
Landscapes
- Image Analysis (AREA)
- Image Input (AREA)
- Image Processing (AREA)
Description
【考案の詳細な説明】
この考案は、読取画像の線幅を正確に検出し得
る線幅検出回路に関するものである。[Detailed Description of the Invention] This invention relates to a line width detection circuit that can accurately detect the line width of a read image.
光学的読取装置等において、光電素子により読
み取られたビデオ信号を二値化してデイジタル信
号に変換し、計算機等に入力する方法は通常行わ
れる方法である。 In an optical reading device or the like, a method of binarizing a video signal read by a photoelectric element, converting it into a digital signal, and inputting the digital signal to a computer or the like is a commonly used method.
この場合、読取画像が示す対象図形等の線幅を
正確に知るには、ビデオ信号を忠実に二値化した
二値化信号の信号幅を正確に検出する必要があ
る。 In this case, in order to accurately know the line width of the target figure shown in the read image, it is necessary to accurately detect the signal width of a binarized signal obtained by faithfully binarizing the video signal.
通常、検知される線幅は、二値化信号の論理
“1”(信号のある部分を論理“1”として説明す
る)の間だけカウントクロツクでカウントした値
として得られる。この場合、カウントクロツク
は、例えば読取光電素子が自己走査型光電素子
(例:CCD素子)等の場合は読取装置の座標系の
基準となる素子の走査クロツクを使用する。何故
なら、走査クロツク1パルスが自己走査型光電素
子の1ビツト分であるので、光電素子の何ビツト
分にまたがつて線信号等があるかは、その間の走
査クロツクをカウントすることでリアルタイムで
得られることになり、この様にその走査クロツク
との対応で信号幅を得ることが、光電素子の何ビ
ツト分の線幅かを得るのに必要であるからであ
る。 Usually, the detected line width is obtained as a value counted by a count clock only during logic "1" of the binary signal (a certain portion of the signal is described as logic "1"). In this case, when the reading photoelectric element is a self-scanning photoelectric element (for example, a CCD element), the scanning clock of the element serving as the reference of the coordinate system of the reading device is used as the count clock. This is because one pulse of the scanning clock corresponds to one bit of the self-scanning photoelectric element, so it is possible to determine in real time how many bits of the photoelectric element there are line signals, etc. by counting the scanning clocks in between. This is because it is necessary to obtain the signal width in correspondence with the scanning clock in this way in order to obtain the line width for how many bits of the photoelectric element.
ところで、二値化信号とカウントクロツクの位
相関係は必ずしも一定でなく、そのため同じ幅の
二値化信号をカウントクロツクでカウントした場
合、その位相関係によつて違つた値を得ることに
なる。 By the way, the phase relationship between the binary signal and the count clock is not necessarily constant, so if you count a binary signal with the same width using the count clock, you will get different values depending on the phase relationship. .
例えば、第1図においてはカウントクロツク
であり、,は同じ幅の二値化信号であるが、
カウントクロツクとの位相関係が異なる為、信
号では3クロツク、信号では2クロツクとい
う信号幅が得られることになり、二値化信号の信
号幅を正確に測定し得ない欠点を有する。 For example, in Fig. 1, it is a count clock, and , is a binary signal of the same width,
Since the phase relationship with the count clock is different, a signal width of 3 clocks and 2 clocks is obtained for the signal, which has the disadvantage that the signal width of the binary signal cannot be accurately measured.
この事は、読取光電素子が上記のような自己走
査型でない場合に特に顕著となる。 This is particularly noticeable when the reading photoelectric element is not of the self-scanning type as described above.
すなわち、読取光電素子としてフオトダイオー
ド等の非走査型のものを用いて、これに例えば走
査光学系によつて読み取つた画像を順次受光させ
るようにした読取装置に於ては、この装置の座標
基準となる前述の走査クロツクに相当するクロツ
クとフオトダイオードからの信号の二値化信号と
の位相関係が大幅にズレる可能性があるからであ
る。 In other words, in a reading device that uses a non-scanning type device such as a photodiode as a reading photoelectric element and sequentially receives images read by a scanning optical system, the coordinate reference of this device is This is because there is a possibility that the phase relationship between the clock corresponding to the above-mentioned scanning clock and the binary signal of the signal from the photodiode may be significantly shifted.
この問題の解決策としては、座標基準となるク
ロツクより周波数の高いクロツクによつて線幅を
計測した後、求めた線幅を座標変換することが考
えられるが、それでは線幅をリアルタイムで得ら
れない。 One possible solution to this problem is to measure the line width using a clock with a higher frequency than the clock that serves as the coordinate reference, and then transform the determined line width into coordinates, but this would not allow line widths to be obtained in real time. do not have.
本考案はこの様な欠点を解決する事を目的と
し、走査クロツクで二値化信号の信号幅を正確に
しかもリアルタイムで測定し得る回路を提供する
ものである。 The present invention aims to solve these drawbacks and provides a circuit that can accurately measure the signal width of a binary signal using a scanning clock in real time.
以下、本考案の詳細を実施例に従つて説明す
る。 Hereinafter, details of the present invention will be explained according to examples.
第2図は、本考案の一実施例を示す回路図であ
る。 FIG. 2 is a circuit diagram showing an embodiment of the present invention.
同図中、aは補間クロツクであり、該補間クロ
ツクaを分周器1により分周し座標基準となる走
査クロツクbを得る。一方、cは二値化信号であ
り、この例では論理“1”の時の信号幅を検出す
るものとする。 In the figure, a is an interpolation clock, and the frequency of the interpolation clock a is divided by a frequency divider 1 to obtain a scanning clock b serving as a coordinate reference. On the other hand, c is a binary signal, and in this example, the signal width when the logic is "1" is detected.
この二値化信号cは否定回路5により反転さ
れ、アンド回路6で補間クロツクaとの論理積を
とる。すると二値化信号cのない場合(論理
“0”)だけアンド回路6の出力に補間クロツクd
が得られ、減算カウンタ2に導かれる。 This binary signal c is inverted by a NOT circuit 5, and ANDed with an interpolation clock a by an AND circuit 6. Then, only when there is no binary signal c (logic "0"), the interpolation clock d is sent to the output of the AND circuit 6.
is obtained and led to the subtraction counter 2.
今この例で分周器1は5分の1分周器であると
すると、減算カウンタ2は5進減算カウンタを構
成し、補間クロツクdの入力毎に4,3,2,
1,0,4,3,……と減算カウントするもので
ある。一方、3はフリツプフロツプ等の記憶回路
であり、二値化信号cの立ち上りでセツトされ、
減算カウンタ2の零出力eでリセツトされる様構
成されている。 Now, in this example, assuming that frequency divider 1 is a 1/5 frequency divider, subtraction counter 2 constitutes a quinary subtraction counter, and for each input of interpolation clock d, 4, 3, 2,
This is a subtraction count such as 1, 0, 4, 3, etc. On the other hand, 3 is a storage circuit such as a flip-flop, which is set at the rising edge of the binary signal c.
It is constructed so that it is reset by the zero output e of the subtraction counter 2.
第3図に各部のタイムチヤートを示す。 Figure 3 shows a time chart for each part.
この第3図に併用しながら説明を続けると、第
3図aは補間クロツクであり、bは二値化信号幅
をカウントする走査クロツクであり、補間クロツ
クaの5分の1分周されたものである。cは二値
化信号であり、論理“1”の間の幅を検知するこ
とを目的とする。 Continuing the explanation while referring to Fig. 3, Fig. 3 a is an interpolation clock, b is a scanning clock that counts the binary signal width, and the frequency of the interpolation clock a is divided by one-fifth. It is something. c is a binary signal whose purpose is to detect the width between logical "1"s.
二値化信号cが論理“0”の間は、アンド回路
6の出力には補間クロツクdが出力されて減算カ
ウンタ2に入力される為、減算カウンタ2は4,
3,2,1,0,4,3,……と減算カウントが
行われ、カウント値が0の時は零出力eが得られ
る。 While the binary signal c is logic "0", the interpolation clock d is outputted to the output of the AND circuit 6 and inputted to the subtraction counter 2, so the subtraction counter 2 is 4,
Subtraction counting is performed in the order of 3, 2, 1, 0, 4, 3, . . . , and when the count value is 0, a zero output e is obtained.
今、二値化信号cが論理“1”になると、その
時点でアンド回路6の出力に補間クロツクdが出
力されなくなり、減算カウンタ2のカウント値は
その直前の値に、二値化信号の論理“1”の間、
保たれることになる。この場合のカウント値は第
3図に示すとおりとなる。この保持されているカ
ウント値は、二値化信号cの立ち上りから、次に
くる基本クロツクまでの補間クロツクの数を表わ
していることになる。 Now, when the binary signal c becomes logic "1", at that point the interpolation clock d is no longer output to the output of the AND circuit 6, and the count value of the subtraction counter 2 changes to the previous value. During logic “1”,
It will be preserved. The count value in this case is as shown in FIG. This held count value represents the number of interpolation clocks from the rising edge of the binary signal c to the next basic clock.
一方、二値化信号cの立ち上りで記憶回路3が
セツトされる。次に二値化信号cがなくなる(論
理“0”になる)と、アンド回路6の出力に補間
クロツクdが再度出力され、減算カウントを開始
する。減算カウンタが零となると零出力eが出力
され、記憶回路3がリセツトされる。記憶回路3
の出力hを第3図hに示す。 On the other hand, the storage circuit 3 is set at the rising edge of the binary signal c. Next, when the binary signal c disappears (becomes logic "0"), the interpolation clock d is output again to the output of the AND circuit 6, and subtraction counting is started. When the subtraction counter reaches zero, a zero output e is output and the memory circuit 3 is reset. Memory circuit 3
The output h is shown in Fig. 3h.
尚、補間クロツクと減算カウンタの値の関係を
揃えるには、記憶回路3の出力と走査クロツク
bとのアンド回路7による論理積出力gによつ
て、減算カウンタに4をプリセツトすればよい。 In order to equalize the relationship between the values of the interpolation clock and the subtraction counter, it is sufficient to preset the subtraction counter to 4 using the AND output g from the AND circuit 7 between the output of the storage circuit 3 and the scanning clock b.
二値化信号cと記憶回路3のQ出力との関係
は、二値化信号cの立ち上りと次にくる走査クロ
ツクの間の補間クロツクの数だけ、二値化信号c
の後縁を引き延ばした関係にある。この記憶回路
3のQ出力と走査クロツクbの論理積をアンド回
路4でとれば、出力されるクロツクfが二値化信
号幅を示すクロツク数となつており、このクロツ
クfをカウントすれば信号幅の値が正確に得られ
ることになる。ここでは減算カウンタを採用する
場合で説明したが、これは0,1,2,3,4,
0,1,2,……とカウントする加算カウンタで
も同じことで、この場合零出力eの代りに4出力
すればよい。 The relationship between the binary signal c and the Q output of the storage circuit 3 is such that the number of interpolation clocks between the rising edge of the binary signal c and the next scan clock
It is related to the extended trailing edge of . If the AND circuit 4 takes the AND of the Q output of the memory circuit 3 and the scanning clock b, the output clock f becomes the number of clocks indicating the binarized signal width, and by counting this clock f, the signal This will give you an accurate width value. Here, we have explained the case where a subtraction counter is used, but this applies to 0, 1, 2, 3, 4,
The same thing applies to an addition counter that counts 0, 1, 2, . . . , and in this case, it is sufficient to output 4 instead of the zero output e.
また、基本クロツクによる4のプリセツトの代
りに零クリアとする必要がある。補間クロツクの
周波数を走査クロツクの周波数に比して大きくす
れば、さらに精度の高い値が基本クロツクによつ
て測定し得る。 Also, instead of the preset of 4 using the basic clock, it is necessary to clear it to zero. If the frequency of the interpolation clock is increased relative to the frequency of the scan clock, even more accurate values can be measured with the base clock.
本考案は、以上説明したように構成されている
ので、二値化信号の正確な幅のクロツク数を得る
ことが出来、少なくとも同じ幅の二値化信号に対
し、その走査クロツクとの位相関係に影響されず
同じカウント値がリアルタイムで得られ、その後
のパターン認識等の処理に対して正確な線幅の情
報を得ることが出来、その効果は絶大である。 Since the present invention is configured as described above, it is possible to obtain the number of clocks with an accurate width of the binary signal, and at least to determine the phase relationship with the scanning clock for the binary signal of the same width. The same count value can be obtained in real time without being affected by the current flow, and accurate line width information can be obtained for subsequent processing such as pattern recognition, which is extremely effective.
第1図は走査クロツクと二値化信号の位相関係
の異なる場合のタイムチヤートである。第2図は
本考案の実施例の回路図で、第3図は主要部のタ
イムチヤートである。
1……分周器、2……減算カウンタ、3……記
憶回路、4……アンド回路、5……否定回路、6
……アンド回路、7……アンド回路。
FIG. 1 is a time chart when the phase relationship between the scanning clock and the binary signal is different. FIG. 2 is a circuit diagram of an embodiment of the present invention, and FIG. 3 is a time chart of the main parts. 1... Frequency divider, 2... Subtraction counter, 3... Memory circuit, 4... AND circuit, 5... Not circuit, 6
...and circuit, 7...and circuit.
Claims (1)
周回路と、二値化信号のない間だけ前記補間クロ
ツクによつて繰り返しカウントするn進カウンタ
回路と、二値化信号をその前縁から該n進カウン
タ回路の一定値出力まで記憶する記憶回路と、該
記憶回路のQ出力と前記分周回路の出力である走
査クロツクとを入力とする論理積回路と、前記走
査クロツクと前記記憶回路のQ出力とを入力とし
前記カウンタ回路に初期数値をプリセツトする論
理積回路とからなる線幅検出回路。 a frequency dividing circuit that divides an interpolation clock of a certain frequency by 1/n; an n-ary counter circuit that repeatedly counts using the interpolation clock only while there is no binary signal; a memory circuit that stores up to a constant value output of the n-ary counter circuit; an AND circuit that receives the Q output of the memory circuit and the scan clock that is the output of the frequency divider circuit; A line width detection circuit comprising an AND circuit which receives the Q output and presets an initial value to the counter circuit.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2064980U JPS6230114Y2 (en) | 1980-02-20 | 1980-02-20 |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2064980U JPS6230114Y2 (en) | 1980-02-20 | 1980-02-20 |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS56122158U JPS56122158U (en) | 1981-09-17 |
| JPS6230114Y2 true JPS6230114Y2 (en) | 1987-08-03 |
Family
ID=29616835
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2064980U Expired JPS6230114Y2 (en) | 1980-02-20 | 1980-02-20 |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPS6230114Y2 (en) |
-
1980
- 1980-02-20 JP JP2064980U patent/JPS6230114Y2/ja not_active Expired
Also Published As
| Publication number | Publication date |
|---|---|
| JPS56122158U (en) | 1981-09-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US4569078A (en) | Image sensor | |
| JPS6230114Y2 (en) | ||
| JPH02500684A (en) | How to increase the resolution of line or matrix cameras | |
| JPH04346069A (en) | Speed signal generating circuit | |
| JPH0132657B2 (en) | ||
| JPS6224989B2 (en) | ||
| JPH057754B2 (en) | ||
| JP3002120B2 (en) | Image processing device | |
| SU1383417A1 (en) | Device for reading out images | |
| JPS6223349B2 (en) | ||
| SU1737470A1 (en) | Device for selecting images of point objects | |
| JP2548692B2 (en) | Density value determination method for multiple-stage print management scale | |
| SU763881A1 (en) | Device for processing textual data | |
| JP2947994B2 (en) | Binary filter device | |
| JPS59222930A (en) | Method for detection of marking position in electron beam exposure and device thereof | |
| SU1506272A1 (en) | Method and apparatus for determining zone with nonuniform illumination | |
| JPH0629752Y2 (en) | Counting circuit | |
| RU2093880C1 (en) | Universal detector of pulse position | |
| JPH089939Y2 (en) | Run length code compression device | |
| JPS59776A (en) | Data input system using bar code | |
| JPS63296461A (en) | Image area discrimination device | |
| JPH04108268A (en) | Image binary coding circuit | |
| JPS5994181A (en) | Pattern recognizing device | |
| JPS6227435B2 (en) | ||
| JPH0246097B2 (en) |