JPH0416828B2 - - Google Patents

Info

Publication number
JPH0416828B2
JPH0416828B2 JP60072290A JP7229085A JPH0416828B2 JP H0416828 B2 JPH0416828 B2 JP H0416828B2 JP 60072290 A JP60072290 A JP 60072290A JP 7229085 A JP7229085 A JP 7229085A JP H0416828 B2 JPH0416828 B2 JP H0416828B2
Authority
JP
Japan
Prior art keywords
signal
circuit
frequency
frequency division
data
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
Application number
JP60072290A
Other languages
Japanese (ja)
Other versions
JPS61231684A (en
Inventor
Hideyuki Kondo
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.)
Nidec Sankyo Corp
Original Assignee
Nidec Sankyo Corp
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 Nidec Sankyo Corp filed Critical Nidec Sankyo Corp
Priority to JP60072290A priority Critical patent/JPS61231684A/en
Publication of JPS61231684A publication Critical patent/JPS61231684A/en
Publication of JPH0416828B2 publication Critical patent/JPH0416828B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は画像処理装置に関する。[Detailed description of the invention] (Industrial application field) The present invention relates to an image processing device.

(従来の技術) 従来の画像処理装置は第14図に示すようにテ
レビジヨンカメラ1により被写体を撮像してその
映像信号をフレームメモリ2に記憶し、これをマ
イクロコンピユータ3により処理している。
(Prior Art) As shown in FIG. 14, a conventional image processing device images a subject with a television camera 1, stores the video signal in a frame memory 2, and processes this with a microcomputer 3.

(発明が解決しようとする問題点) 上記画像処理装置では2次元情報の映像信号を
そのままフレームメモリ2に記憶するので、簡単
な図形例えば円や直線等を処理する場合でも256
×256bit又は512×512bitという容量の大きなフ
レームメモリを必要とし高価になる。さらに2次
元情報の映像信号を処理するので、処理データが
多い。またフレームメモリの容量により最小分解
能が制約されてしまう。
(Problems to be Solved by the Invention) In the above-mentioned image processing device, the video signal of two-dimensional information is stored as it is in the frame memory 2, so even when processing simple figures such as circles and straight lines, 256
It requires a frame memory with a large capacity of 256 bits or 512 x 512 bits and is expensive. Furthermore, since a video signal of two-dimensional information is processed, there is a large amount of processing data. Furthermore, the minimum resolution is limited by the capacity of the frame memory.

(問題点を解決するための手段) 本発明は映像信号から2値化信号を得る2値化
手段と、この2値化手段から2値化信号を複数の
互いに異なる分周比のいずれかで分周する分周器
と、この分周器の分周比を選択的に指定する分周
指定部と、前記分周器からの信号が白から黒へ、
及び又は黒から白へ転位する位置を計測する計測
手段と、この計測手段からの上記転位する位置の
計測値を記憶する記憶手段とを有する。
(Means for Solving the Problems) The present invention provides a binarization means for obtaining a binarized signal from a video signal, and a binarization means for obtaining a binarized signal from the binarization means by using one of a plurality of different frequency division ratios. a frequency divider that divides the frequency, a frequency division specifying section that selectively specifies the frequency division ratio of the frequency divider, and a signal from the frequency divider that changes from white to black;
and/or a measuring means for measuring the position of transition from black to white, and a storage means for storing the measured value of the position of transition from the measuring means.

(作用) 2値化手段により映像信号から2値化信号が得
られ、この2値化信号が分周器により複数の互い
に異なる分周比のいずれかで分周される。この分
周器の分周比が分周指定部により選択的に指定さ
れる。分周器からの信号は白から黒へ、及び又は
黒から白へ転位する位置が計測手段により計測さ
れ、その転位する位置の計測値が記憶手段により
記憶される。
(Operation) A binarized signal is obtained from the video signal by the binarization means, and this binarized signal is divided by one of a plurality of mutually different frequency division ratios by the frequency divider. The frequency division ratio of this frequency divider is selectively designated by the frequency division designation section. The position where the signal from the frequency divider shifts from white to black and/or from black to white is measured by the measuring means, and the measured value of the shifted position is stored by the storage means.

(実施例) 第1図は本発明の概略を示し、第2図はそのタ
イミングチヤートである。
(Example) FIG. 1 shows an outline of the present invention, and FIG. 2 is a timing chart thereof.

テレビジヨンカメラが被写体を撮像して映像信
号を出力し、この映像信号が2値化手段により基
準レベルで2値化されることによつて黒部分と白
部分に2値化されてラツチパルス発生回路11に
入力される。このラツチパルス発生回路11は2
値化手段からの2値化信号が白部分から黒部分に
転位する位置と、黒部分から白部分に転位する位
置とを検知して、つまり2値化信号の立上りと立
下りを検知してパルスを発生する。一方、カウン
タ12はテレビジヨンカメラからの映像信号から
同期分離回路により分離された垂直同期信号(又
はそれに類する信号)が入力されてクロツクのカ
ウントを開始し、リセツトパルス発生回路13は
上記同期分離回路からの水平周期信号によりリセ
ツトパルスを発生してカウンタ12をリセツトす
る。ラツチ回路14はラツチパネル発生回路11
からのパルスによりカウンタ12の内容をラツチ
してランダムアクセスメモリ(RAM)等に転送
し、したがつて同期信号から2値化信号の立上
り、立下りまでの各時間に発生したクロツクの数
(カウンタ12の内容)がRAMに転送されて記
憶される。これにより上記2値化信号は2次元情
報から1次元情報に変換されてRAMに記憶され
たことになり、マイクロコンピユータ等により処
理される。
A television camera images a subject and outputs a video signal, and this video signal is binarized at a reference level by a binarization means to be binarized into a black part and a white part, and the latch pulse generation circuit generates a black part and a white part. 11. This latch pulse generation circuit 11 has two
A pulse is generated by detecting the position where the binarized signal from the digitization means shifts from the white part to the black part and the position where it shifts from the black part to the white part, that is, detects the rising and falling edges of the binarized signal. occurs. On the other hand, the counter 12 receives a vertical synchronization signal (or a similar signal) separated from the video signal from the television camera by the synchronization separation circuit and starts counting the clock, and the reset pulse generation circuit 13 receives the vertical synchronization signal (or similar signal) separated from the video signal from the television camera by the synchronization separation circuit. A reset pulse is generated by a horizontal periodic signal from the counter 12 to reset the counter 12. The latch circuit 14 is the latch panel generator circuit 11.
The contents of the counter 12 are latched and transferred to a random access memory (RAM), etc. by pulses from 12 contents) are transferred to RAM and stored. As a result, the binarized signal is converted from two-dimensional information to one-dimensional information and stored in the RAM, where it is processed by a microcomputer or the like.

また2値化手段からの2値化信号は分周器15
により分周してラツチパネル発生回路11に入力
するようにすれば2値化信号の転位位置(立上
り、立下りの位置)を分周器15の分周比に応じ
て選択的に取り出すことができる。この分周器1
5は周知のものであつて、例えば後述のように分
周回路およびアンドゲートを複数個有するものが
用いられ、互いに異なる分周比が複数の分周指定
部により選択的に指定される。
Further, the binarized signal from the binarizing means is passed through a frequency divider 15.
By dividing the frequency by and inputting it to the latch panel generation circuit 11, the transposition positions (rising and falling positions) of the binary signal can be selectively extracted according to the frequency division ratio of the frequency divider 15. . This frequency divider 1
5 is a well-known device, for example, one having a plurality of frequency dividing circuits and AND gates is used as described later, and different frequency division ratios are selectively specified by a plurality of frequency division specifying sections.

第3図a,bは被写体の一例と、分周器15が
無い場合のラツチ回路14出力データが示す画像
(処理画像)である。第3図bにおいて実線はラ
ツチ回路14が2値化信号の立上りでカウンタ1
2よりラツチしたデータによる処理画像であり、
点線はラツチ回路14が2値化信号の立下りでカ
ウンタ12よりラツチしたデータによる処理画像
である。
FIGS. 3a and 3b show an example of a subject and an image (processed image) shown by the output data of the latch circuit 14 when the frequency divider 15 is not provided. In FIG. 3b, the solid line indicates that the latch circuit 14 activates the counter 1 at the rising edge of the binary signal.
This is a processed image using data latched from 2.
The dotted line is a processed image based on data latched by the latch circuit 14 from the counter 12 at the falling edge of the binarized signal.

第4図のaとb,cは被写体の他の例と、分周
器15が有る場合の処理画像である。第4図bは
分周器15を無分周(分周比1)にした場合の処
理画像を示し、第4図cは分周器15の分周比を
1/2にした場合の処理画像を示し、これらを合
成すれば元の画像になる。
A, b, and c in FIG. 4 show other examples of the subject and processed images when the frequency divider 15 is provided. Fig. 4b shows the processed image when the frequency divider 15 is set to no frequency division (frequency division ratio 1), and Fig. 4c shows the processing when the frequency division ratio of the frequency divider 15 is set to 1/2. If you show the images and combine them, you get the original image.

第5図のaとbは被写体の他の例と処理画像を
示す。処理画像は分周器15を無分周にした場合
の処理画像と、分周器15の分周比を1/2に
した場合の処理画像とを合成したものを示す。
第6図のaとbあ被写体の他の例と処理画像を示
し、この処理画像は分周器15の分周比を1、
1/2、1/3にした場合の各処理画像〜を
合成したものを示す。
FIGS. 5a and 5b show other examples of objects and processed images. The processed image is a composite of the processed image when the frequency divider 15 is set to no frequency division and the processed image when the frequency division ratio of the frequency divider 15 is set to 1/2.
Fig. 6 a and b show other examples of subjects and processed images, in which the frequency division ratio of the frequency divider 15 is set to 1,
A composite image of each processed image when the size is reduced to 1/2 and 1/3 is shown.

なおカウンタ12の代りに電荷チヤージ回路を
用いて電荷をチヤージし、そのチヤージ量をラツ
チパルス発生回路11からのパルスにより測定し
てRAM等に記憶するようにしてもよい。
Incidentally, instead of the counter 12, a charge circuit may be used to charge the charge, and the amount of charge may be measured by a pulse from the latch pulse generation circuit 11 and stored in a RAM or the like.

第7図は本発明を応用したワーク位置決め制御
装置の実施例を示す。この実施例はワーク(被加
工物)16を予め定められた正規の位置に高い精
度で位置決めするものであり、ワーク16は簡単
な図形例えば円を有し、支持台17上にセツトさ
れてテレビジヨンカメラ18により撮像される。
画像処理装置19はテレビジヨンカメラ18から
の映像信号を2値化し、この2値化信号が白レベ
ルから黒レベルへ転位する位置及び黒レベルから
白レベルへ転位する位置を計測してそのデータを
マイクロコンピユータ20に送る。マイクロコン
ピユータ20は画像処理装置19からのデータを
一旦RAMに記憶してワーク16のX軸、Y軸、
回転角の位置情報を求め、これを正規の位置の情
報と比較してその結果によりモータ駆動回路21
をワーク16が正規の位置に移動するように制御
する。モータ駆動回路21はモータ22を駆動し
て支持台17をX軸方向へ移動させると共にモー
タ23を駆動して支持台17をY軸方向へ移動さ
せ、さらにモータ24を駆動して支持台17を回
転させることによつてワーク16を正規の位置に
移動させる。
FIG. 7 shows an embodiment of a workpiece positioning control device to which the present invention is applied. In this embodiment, a workpiece (workpiece) 16 is positioned at a predetermined regular position with high precision.The workpiece 16 has a simple shape, for example, a circle, and is set on a support stand 17 and placed on a television set. The image is captured by the digital camera 18.
The image processing device 19 binarizes the video signal from the television camera 18, measures the position where this binarized signal shifts from the white level to the black level, and the position where the black level shifts to the white level, and stores the data. It is sent to the microcomputer 20. The microcomputer 20 temporarily stores the data from the image processing device 19 in RAM and processes the X-axis, Y-axis,
Find the rotation angle position information, compare it with the regular position information, and use the result to drive the motor drive circuit 21.
is controlled so that the workpiece 16 moves to the normal position. The motor drive circuit 21 drives the motor 22 to move the support stand 17 in the X-axis direction, drives the motor 23 to move the support stand 17 in the Y-axis direction, and further drives the motor 24 to move the support stand 17. By rotating the workpiece 16, the workpiece 16 is moved to a normal position.

第8図は上記画像処理装置19を具体的に示
し、第9図はそのタイミングチヤートを示す。
FIG. 8 specifically shows the image processing device 19, and FIG. 9 shows its timing chart.

この画像処理装置19においてはマイクロコン
ピユータ20からデータ取込要求信号○ハが入力さ
れると、この信号○ハによりフリツプフロツプ25
がセツトされる。テレビジヨンカメラ18からの
映像信号は同期分離回路26により同期信号
が分離され、さらにこの同期信号から偶数フイ
ールド垂直同期信号分離回路27により偶数フイ
ールドの垂直同期信号が分離される。この垂直
同期信号はフリツプフロツプ25の出力信号に
よりアンドゲート28を通過してトリガー回路2
9をセツトし、これによりトリガー回路29の出
力信号がアンドゲート30,31に加えられて
これら30,31が開けられる。また同期分離回
路26からの同期信号が水平同期カウンタ32
によりカウントされる。走査域設定回路33,3
4は同期分離回路26からの同期信号により互
いに異なる走査域A,Bで出力信号を発生し、つ
まり映像信号が走査域A,B内のものである時に
出力信号を発生し、例えば各水平同期信号から一
定時間後に立上つてそれから更に一定時間後に立
下るパルス信号を出力する。走査域指定フリツプ
フロツプ及びクロツク指定フリツプフロツプ35
はマイクロコンピユータ20からの走査域指定、
クロツク指定信号○ホをラツチしてアンドゲート3
6,37のいずれか一方に出力信号を出力するこ
とによつてその一方のアンドゲートを開けると共
にアンドゲート38,39のいずれか一方に出力
信号を出力してその一方のアンドゲートを開け
る。走査域設定回路33,34の出力信号はアン
ドゲート36,37により一方が選択されて通さ
れ、オア回路40に送られる。このオア回路40
の出力信号がアンドゲート31を通つてカウンタ
からなる計測手段41,42に加えられてカウン
タ41,42がクロツクをカウントする。発振
器43からのクロツクはそのままアンドゲート3
8に送られ、また分周器40で分周されてアンド
ゲート39に送られる。アンドゲート38,39
は走査域指定フリツプフロツプ及びクロツク指定
フリツプフロツプ35により一方だけ開いてクロ
ツクを通し、そのクロツクがオア回路45を通つ
てカウンタ41,42でカウントされる。
In this image processing device 19, when the data acquisition request signal ○c is input from the microcomputer 20, the flip-flop 25 is activated by this signal ○c.
is set. A synchronization separation circuit 26 separates a synchronization signal from the video signal from the television camera 18, and an even field vertical synchronization signal is further separated from this synchronization signal by an even field vertical synchronization signal separation circuit 27. This vertical synchronizing signal is passed through the AND gate 28 by the output signal of the flip-flop 25, and is passed through the trigger circuit 2.
9 is set, whereby the output signal of the trigger circuit 29 is applied to the AND gates 30 and 31, and these gates 30 and 31 are opened. Further, the synchronization signal from the synchronization separation circuit 26 is sent to the horizontal synchronization counter 32.
It is counted by Scan area setting circuit 33, 3
4 generates output signals in mutually different scanning areas A and B according to the synchronization signal from the synchronization separation circuit 26, that is, generates an output signal when the video signal is within the scanning areas A and B, for example, each horizontal synchronization It outputs a pulse signal that rises after a certain period of time from the signal and then falls after another certain period of time. Scan area specification flip-flop and clock specification flip-flop 35
is the scan area specification from the microcomputer 20,
Latch clock designation signal ○ho and AND gate 3
By outputting an output signal to one of AND gates 6 and 37, one of the AND gates is opened, and by outputting an output signal to one of AND gates 38 and 39, one of the AND gates is opened. One of the output signals from the scan area setting circuits 33 and 34 is selected by AND gates 36 and 37 and passed through, and is sent to an OR circuit 40. This OR circuit 40
The output signal passes through an AND gate 31 and is applied to measuring means 41, 42 consisting of counters, and the counters 41, 42 count the clocks. The clock from the oscillator 43 is sent directly to the AND gate 3.
8, the frequency is divided by a frequency divider 40, and the signal is sent to an AND gate 39. and gate 38, 39
The scanning area designating flip-flop and the clock designating flip-flop 35 open only one side to pass a clock, and the clock passes through an OR circuit 45 and is counted by counters 41 and 42.

またテレビジヨンカメラ18からの映像信号
が2値化回路46により基準レベルで黒部分と白
部分とに2値化され、その2値化信号がオア回
路40の出力信号によりアンドゲート47を通
過してそのままアンドゲート481に送られると
共に分周比がそれぞれ1/2、1/3………1/
nである分周回路492〜49nで各々1/2、
1/3…………1/nに分周されてアンドゲート
482〜48nに送られる。ここに、分周回路4
92〜49n及びアンドゲート481〜48nは
前記分周器15を構成するものであり、複数の互
いに異なる分周比のいずれかが分周指定部53に
より選択的に指定される。分周回路492〜49
nは入力信号周波数の整数分の1の周波数の出力
信号を出力するという一般的に用いられているも
のであり、入力信号としてアンドゲート47から
の2値化信号が入力される。
Further, the video signal from the television camera 18 is binarized into black and white parts at a reference level by the binarization circuit 46, and the binarized signal is passed through the AND gate 47 by the output signal of the OR circuit 40. are sent as they are to the AND gate 481, and the frequency division ratios are respectively 1/2, 1/3...1/
n frequency dividing circuits 492 to 49n each have 1/2,
1/3...The frequency is divided into 1/n and sent to AND gates 482 to 48n. Here, frequency divider circuit 4
92 to 49n and AND gates 481 to 48n constitute the frequency divider 15, and one of a plurality of mutually different frequency division ratios is selectively designated by the frequency division designation unit 53. Frequency dividing circuit 492-49
n is a commonly used signal that outputs an output signal with a frequency that is an integer fraction of the input signal frequency, and the binary signal from the AND gate 47 is input as the input signal.

即ち、分周回路492は図10に示すように1
走査線上の2値化信号を(ワーク16の形状の特
徴を示すデータ)を1/2の分周比に分周して2
値化信号の周波数を1/2に変換し、分周回路4
93は図11に示すように1走査線上の2値化信
号を1/3の分周比に分周して2値化信号の周波
数を1/3に変換する。そこで、1走査線上の2
値化信号に転位点がある場合でも、分周回路49
2〜49nの出力信号およびアンドゲート47の
出力信号をアンドゲート481〜48nにより選
択的に取り出して1走査線上の2値化信号に対す
る分周比を変更することができ、カウンタ41,
42のカウント開始位置を変更させることができ
てある程度複雑な図形の画像処理に有効となる。
しかも、分周指定部53により予めアンドゲート
481〜48nのいずれか1つを選択的に動作さ
せることによつて分周比を選択的に指定するよう
に設定しておけば、必要な図形のデータのみを取
り出すことができる。具体的には、図10に示す
ように分周比1/2の分周回路492の出力信号
をアンドゲート482により取り出せば、2値化
信号の2番目の転位位置(立上り位置)で分周回
路492の出力信号を取り出すことができ、図1
1に示すように分周比1/3の分周回路493の
出力信号をアンドゲート483により取り出せ
ば、2値化信号の3番目の転位位置(立上り位
置)で分周回路493の出力信号を取り出すこと
ができる。そして、このようにアンドゲート48
1〜48nにより選択的に取り出した出力信号が
カウンタ41,42のカウント開始位置となる。
なお、アンドゲート481によりアンドゲート4
7の出力信号を取り出せば、2値化信号に対する
分周比が1になり、2値化信号の1番目の転位位
置(立上り位置)がカウンタ41,42のカウン
ト開始位置となる。分周指定部53はマイクロコ
ンピユータ20からの分周指定信号○ヘをラツチし
てこの信号○ヘによりアンドゲート481〜48n
のいずれか1つを選択的に開き、そのアンドゲー
トからの2値化信号がオア回路54,55を通つ
て正トリガーフリツプフロツプ56及び負トリガ
ーフリツプフロツプ57に入力される。正トリガ
ーフリツプフロツプ56はオア回路55からの2
値化信号の立上り(始めて白レベルから黒レベル
に転位する位置)でセツトされて出力信号をカウ
ント停止信号としてカウンタ41に送り、カウン
タ41を停止させる。負トリガーフリツプフロツ
プ57はオア回路55からの2値化信号の立下り
(始めて黒レベルから白レベルに転位する位置)
でセツトされて出力信号をカウント停止信号とし
てカウンタ42に送り、カウンタ42を停止させ
る。
That is, the frequency dividing circuit 492 has a frequency of 1 as shown in FIG.
The binarized signal on the scanning line (data indicating the characteristics of the shape of the workpiece 16) is divided by a frequency division ratio of 1/2 to 2.
The frequency of the value signal is converted to 1/2, and the frequency dividing circuit 4
As shown in FIG. 11, 93 divides the binary signal on one scanning line to a frequency division ratio of 1/3 to convert the frequency of the binary signal to 1/3. Therefore, 2 on one scanning line
Even if there is a transposition point in the value signal, the frequency dividing circuit 49
The output signals of the counters 41 to 49n and the output signals of the AND gates 47 can be selectively taken out by the AND gates 481 to 48n to change the division ratio for the binarized signal on one scanning line.
42 count start position can be changed, which is effective for image processing of somewhat complicated figures.
Moreover, if the frequency division specifying unit 53 is set in advance to selectively specify the frequency division ratio by selectively operating any one of the AND gates 481 to 48n, the required figure can be Only data can be retrieved. Specifically, as shown in FIG. 10, if the output signal of the frequency dividing circuit 492 with a frequency division ratio of 1/2 is taken out by the AND gate 482, the frequency is divided at the second transposition position (rising position) of the binarized signal. The output signal of the circuit 492 can be taken out, as shown in FIG.
1, if the output signal of the frequency divider circuit 493 with a frequency division ratio of 1/3 is taken out by the AND gate 483, the output signal of the frequency divider circuit 493 is obtained at the third transition position (rising position) of the binarized signal. It can be taken out. And gate 48 like this
The output signals selectively taken out by signals 1 to 48n become the count start positions of the counters 41 and 42.
Note that AND gate 481 causes AND gate 4
If an output signal of 7 is taken out, the frequency division ratio for the binarized signal becomes 1, and the first transition position (rising position) of the binarized signal becomes the counting start position of the counters 41 and 42. The frequency division designation section 53 latches the frequency division designation signal ○ from the microcomputer 20, and uses this signal ○ to output the AND gates 481 to 48n.
is selectively opened, and the binary signal from the AND gate is inputted to a positive trigger flip-flop 56 and a negative trigger flip-flop 57 through OR circuits 54 and 55. The positive trigger flip-flop 56 receives the 2 from the OR circuit 55.
It is set at the rising edge of the value conversion signal (the position at which the white level changes for the first time to the black level), and the output signal is sent to the counter 41 as a count stop signal, and the counter 41 is stopped. The negative trigger flip-flop 57 detects the falling edge of the binary signal from the OR circuit 55 (the position where it first transitions from black level to white level).
The output signal is sent to the counter 42 as a count stop signal, and the counter 42 is stopped.

ラツチパルス発生回路58は同期分離回路26
からの同期信号の立下りでラツチパルスを発
生し、このラツチパルスがトリガー回路29の
出力信号によりアンドゲート30を通過してラ
ツチ回路59,60に加えられる。ラツチ回路5
9,60はそのラツチパルスによりカウンタ4
1,42のカウント値をラツチし、データセツト
フリツプフロツプ61はアンドゲート30からの
ラツチパルスによりセツトされて出力信号をデー
タセツト完了信号○イとしてマイクロコンピユータ
20に送る。マイクロコンピユータ20はデータ
セツト完了信号○イが入力されると、ラツチ回路5
9,60からデータをとり込み、その後データ取
込完了信号○ロを送つてデータセツトフリツプフロ
ツプ61をリセツトする。
The latch pulse generation circuit 58 is connected to the synchronous separation circuit 26.
A latch pulse is generated at the fall of the synchronizing signal from the trigger circuit 29, and this latch pulse is applied to the latch circuits 59 and 60 through the AND gate 30 by the output signal of the trigger circuit 29. Latch circuit 5
9 and 60 are counter 4 due to the latch pulse.
The count values of 1 and 42 are latched, and the data set flip-flop 61 is set by a latch pulse from the AND gate 30 and sends an output signal to the microcomputer 20 as a data set completion signal ○. When the microcomputer 20 receives the data set completion signal ○a, the latch circuit 5
The data set flip-flop 61 is reset by fetching data from the flip-flops 9 and 60 and then sending a data fetching completion signal ○.

またリセツトパルス発生回路62は同期分離回
路26からの同期信号によりリセツトパルス
をラツチパルスより後で発生し、このリセツト
パルスによりカウンタ41,42、正トリガー
フリツプフロツプ56、負トリガーフリツプフロ
ツプ57がリセツトされる。カウンタ41が設定
値(1走査線分に相当するカウント値)をオーバ
ーした時にはその出力信号がオア回路55に入力
されてカウンタ41,42が停止する。
Further, the reset pulse generation circuit 62 generates a reset pulse after the latch pulse based on the synchronization signal from the synchronization separation circuit 26, and this reset pulse causes the counters 41 and 42, the positive trigger flip-flop 56, and the negative trigger flip-flop 57 to operate. is reset. When the counter 41 exceeds a set value (count value corresponding to one scanning line), its output signal is input to the OR circuit 55 and the counters 41 and 42 are stopped.

上記動作は映像信号の1走査線分毎にくり返さ
れ、アンド回路63は水平同期カウンタ32の出
力信号が入力されて水平同期カウンタ32が26
2になつた時、つまり上記動作が奇数フイールド
の映像信号について終了した時にパルスを出力す
る。アンド回路64は水平同期カウンタ32の出
力信号が入力されて水平同期カウンタ32が52
5になつた時、つまり上記動作が1フレームの映
像信号について終了した時にパルスを出力し、ア
ンド回路63,64の出力パルスはスイツチ65
により手動で選択することができる。スイツチ6
5からのパルスはトリガー回路29及びフリツプ
フロツプ25をリセツトすると共に全データ取込
完了信号○ニとしてマイクロコンピユータ20に送
られる。
The above operation is repeated for every one scanning line of the video signal, and the AND circuit 63 receives the output signal of the horizontal synchronization counter 32 so that the horizontal synchronization counter 32 becomes 26.
2, that is, when the above operation is completed for the odd field video signal, a pulse is output. The output signal of the horizontal synchronization counter 32 is input to the AND circuit 64, and the horizontal synchronization counter 32 becomes 52.
5, that is, when the above operation is completed for one frame of video signal, a pulse is output.
It can be selected manually. switch 6
The pulse from 5 resets the trigger circuit 29 and the flip-flop 25, and is sent to the microcomputer 20 as a complete data acquisition signal.

第10図は被写体と2値化回路46からの2値
化信号、分周比1/2の分周回路49の出力信号
の関係を示し、第11図は被写体と2値化回路4
6からの2値化信号、分周比1/3の分周回路5
0の出力信号の関係を示す。
FIG. 10 shows the relationship between the subject, the binarized signal from the binarization circuit 46, and the output signal of the frequency division circuit 49 with a frequency division ratio of 1/2, and FIG. 11 shows the relationship between the subject and the binarization circuit 46.
Binarized signal from 6, frequency divider circuit 5 with frequency division ratio 1/3
The relationship between output signals of 0 is shown.

第12図は上記マイクロコンピユータ20のデ
ータ取込処理ルーチンを示す。
FIG. 12 shows the data import processing routine of the microcomputer 20.

マイクロコンピユータ20はまずデータ取込要
求信号○ハ及び走査域、クロツク指定信号○ホを画像
処理装置19へ出力し、画像処理装置19からの
データセツト完了信号○イをチエツクしてこの信号
○イが入力されると、ラツチ回路59,60からの
データを取込んでRAMに書込んだ後にデータ取
込完了信号○ロを画像処理装置19へ出力する。こ
のようなデータの取込動作をくり返してデータ取
込数が設定値になると、つまり画像処理装置19
から全データ取込完了信号○ニが入力されると、2
値化信号の分周比を1から1/2に進める信号○ヘ
を画像処理装置19へ出力してアンドゲート48
1を閉じアンドゲート482を開けさせる。そし
て再びデータ取込要求信号○ハを出力してデータ取
込動作を行ない、以下同様にデータ取込数が設定
数になる度毎に2値化信号の分周比を1/2、
1/3、………1/nというように順次に進める
ように信号○ヘを出力してアンドゲート482〜4
8nを順次に開けさせデータ取込動作をくり返
す。画像処理装置19において2値化信号の分周
比を進めながらその立上り、立下りの位置をカウ
ンタ41,42でカウントしてラツチ回路59,
60でラツチして行つた場合2値化信号が全て無
信号になつてラツチ回路59,60の値が全て走
査線の終り(画面の右側)に相当する値になる状
態に達する。そこで取込んだデータの全て(上記
設定数のデータ)が画面の右端に相当する値にな
つた時にはこれをパターン認識(2値化信号の一
次元データ化処理)の終了と判断し、取込んだデ
ータを処理してワーク16のX軸、Y軸、回転角
と位置情報を求め、これを正規の位置の情報と比
較してその結果によりモータ駆動回路21を制御
する。
The microcomputer 20 first outputs the data acquisition request signal ○C and the scanning area and clock designation signal ○H to the image processing device 19, checks the data set completion signal ○I from the image processing device 19, and processes this signal ○I. When inputted, data from the latch circuits 59 and 60 is taken in and written into the RAM, and then a data taking completion signal ○○ is output to the image processing device 19. When the number of data to be acquired reaches the set value by repeating such data acquisition operation, that is, the image processing device 19
When the all data import completion signal ○2 is input from 2
The signal ○ that advances the frequency division ratio of the value signal from 1 to 1/2 is output to the image processing device 19 and is processed by the AND gate 48.
1 is closed and the AND gate 482 is opened. Then, the data acquisition request signal ○c is outputted again to perform the data acquisition operation, and in the same manner, each time the number of data acquisition reaches the set number, the frequency division ratio of the binarized signal is changed to 1/2,
Output the signal ○ to advance sequentially like 1/3, ......1/n, and use the AND gates 482 to 4.
8n in sequence and repeat the data acquisition operation. While increasing the division ratio of the binary signal in the image processing device 19, counters 41 and 42 count the rising and falling positions of the binary signal, and the latch circuits 59 and
If this is done by latching at 60, all the binary signals become non-signal, and the values of the latch circuits 59 and 60 reach a state where they all correspond to the end of the scanning line (right side of the screen). When all of the imported data (the number of data set above) reaches the value corresponding to the right edge of the screen, this is determined to be the end of pattern recognition (processing to convert the binary signal into one-dimensional data), and the data is imported. The X-axis, Y-axis, rotation angle, and position information of the workpiece 16 are obtained by processing the data, and this is compared with the regular position information, and the motor drive circuit 21 is controlled based on the results.

上記実施例では2値化信号の分周比を一次元デ
ータ化処理の終了まで自動的に進めたが、他の実
施例では上記実施例においてマイクロコンピユー
タ20が第13図に示すように2値化信号の分周
比をワーク16の図形に応じて予め設定された値
(ここでは1/3)まで自動的に進めるようにな
つている。
In the above embodiment, the frequency division ratio of the binary signal is automatically advanced until the end of the one-dimensional data conversion process, but in other embodiments, the microcomputer 20 in the above embodiment The frequency division ratio of the conversion signal is automatically advanced to a preset value (1/3 in this case) according to the shape of the workpiece 16.

(発明の効果) 以上のように本発明によれば映像信号を2値化
してその転位位置のデータを記憶するので、処理
データが少なくなり記憶手段の容量を小さくでき
て低価格にできると共に最小分解能を小さくする
ことができ、特に単純な図形の処理に好適で、
又、2値化信号を分周器により複数の互いに異な
る分周比のいずれかで分周し、その分周比を分周
指定部により選択的に指定することにより、ある
程度複雑な図形の処理にも有効である。
(Effects of the Invention) As described above, according to the present invention, since the video signal is binarized and the data of the transposed position is stored, the amount of processing data is reduced, the capacity of the storage means can be reduced, the cost can be reduced, and the minimum The resolution can be reduced, making it particularly suitable for processing simple shapes.
In addition, by dividing the binary signal using one of a plurality of different division ratios using a frequency divider and selectively specifying the division ratio using the division specification section, it is possible to process somewhat complex figures. It is also effective for

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

第1図は本発明の概略を示すブロツク図、第2
図は同実施例のタイミングチヤート、第3図〜第
6図は同実施例の被写体及び処理画像を示す図、
第7図は本発明の応用例を示す概略図、第8図は
同応用例の画像処理装置を示すブロツク図、第9
図は同画像処理装置のタイミングチヤート、第1
0図及び第11図は上記応用例の被写体、2値化
信号、分周回路の出力信号の関係を示す図、第1
2図は上記応用例におけるマイクロコンピユータ
のデータ取込処理ルーチンを示すフローチヤー
ト、第13図は本発明の他の応用例におけるマイ
クロコンピユータのデータ取込処理ルーチンを示
すフローチヤート、第14図は従来装置を示すブ
ロツク図である。 11,58……ラツチパルス発生回路、12,
41,42……カウンタ、14,59,60……
ラツチ回路、46……2値化回路、492〜49
n……分周回路、53……分周指定部。
Figure 1 is a block diagram showing the outline of the present invention, Figure 2 is a block diagram showing the outline of the present invention.
The figure is a timing chart of the same example, and Figures 3 to 6 are diagrams showing the subject and processed images of the same example.
FIG. 7 is a schematic diagram showing an application example of the present invention, FIG. 8 is a block diagram showing an image processing device of the same application example, and FIG.
The figure is a timing chart of the image processing device, No. 1.
Figures 0 and 11 are diagrams showing the relationship between the subject, the binarized signal, and the output signal of the frequency dividing circuit in the above application example.
FIG. 2 is a flow chart showing a data import processing routine of a microcomputer in the above application example, FIG. 13 is a flow chart showing a data import processing routine of a microcomputer in another application example of the present invention, and FIG. 14 is a flow chart showing a data import processing routine of a microcomputer in another application example of the present invention. FIG. 2 is a block diagram showing the device. 11, 58... Latch pulse generation circuit, 12,
41, 42... Counter, 14, 59, 60...
Latch circuit, 46...Binarization circuit, 492-49
n... Frequency division circuit, 53... Frequency division specification section.

Claims (1)

【特許請求の範囲】[Claims] 1 映像信号から2値化信号を得る2値化手段
と、この2値化手段からの2値化信号を複数の互
いに異なる分周比のいずれかで分周する分周器
と、この分周器の分周比を選択的に指定する分周
指定部と、前記分周器からの信号が白から黒へ、
及び又は黒から白へ転位する位置を計測する計測
手段と、この計測手段からの上記転位する位置の
計測値を記憶する記憶手段とを有する画像処理装
置。
1 Binarization means for obtaining a binarized signal from a video signal, a frequency divider that divides the binarized signal from the binarization means by one of a plurality of mutually different frequency division ratios, and this frequency divider. a frequency division specifying section for selectively specifying a frequency division ratio of the frequency divider, and a signal from the frequency divider changes from white to black;
and/or an image processing device comprising: a measuring means for measuring a position of transition from black to white; and a storage means for storing a measured value of the position of transition from the measuring means.
JP60072290A 1985-04-05 1985-04-05 Picture processing device Granted JPS61231684A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60072290A JPS61231684A (en) 1985-04-05 1985-04-05 Picture processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60072290A JPS61231684A (en) 1985-04-05 1985-04-05 Picture processing device

Publications (2)

Publication Number Publication Date
JPS61231684A JPS61231684A (en) 1986-10-15
JPH0416828B2 true JPH0416828B2 (en) 1992-03-25

Family

ID=13484992

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60072290A Granted JPS61231684A (en) 1985-04-05 1985-04-05 Picture processing device

Country Status (1)

Country Link
JP (1) JPS61231684A (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63191282A (en) * 1987-02-03 1988-08-08 Nippon Denshi Kiki Kk Non-contact personal identification system
JPS63254574A (en) * 1987-04-10 1988-10-21 Nippon Denshi Kiki Kk Profile feature extraction system for face matching device
JPS6450179A (en) * 1987-08-20 1989-02-27 Tdk Corp Picture data fetching and processing device
KR920002928B1 (en) * 1989-11-28 1992-04-10 한국과학기술연구원 Finger print recognition method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5842903A (en) * 1981-09-07 1983-03-12 Nippon Soken Inc Detector for stroke of internal combustion engine cylinder

Also Published As

Publication number Publication date
JPS61231684A (en) 1986-10-15

Similar Documents

Publication Publication Date Title
CA1135832A (en) Optical read-write system with electronically variable image size
GB2064259A (en) Digitally magnifying selected portion of scanned image
JPS5925266B2 (en) How to extract sample points from images
JPH0416828B2 (en)
US4891713A (en) Method of sampling picture signals and apparatus therefor
US6124889A (en) Programmable video timing generator scanning an event memory between possible event times
JPS6243589B2 (en)
JPH0546589B2 (en)
JPS6316199Y2 (en)
JP2621260B2 (en) Image scaling device
JPS60194868A (en) Detecting method of original edge coordinate
JPS5821260Y2 (en) Facsimile signal transmitter
JPS61206389A (en) Pattern discriminator
JPS5992670A (en) Mark position detecting means
JP2960732B2 (en) Image forming device
JPH09167964A (en) Image input circuit for image processor
US3551593A (en) Parts counter
JPH07118007B2 (en) Image processing device
JP2903214B2 (en) Area designation device
JPH0411910B2 (en)
JPS6314391B2 (en)
JP2535454B2 (en) Automatic focusing device
JPH0345955B2 (en)
JPS5831626B2 (en) Eizou Shiyori Souchi
JPS5924584B2 (en) Original reading method