JPS616776A - Recognizing device of two-dimensional sight - Google Patents

Recognizing device of two-dimensional sight

Info

Publication number
JPS616776A
JPS616776A JP12826784A JP12826784A JPS616776A JP S616776 A JPS616776 A JP S616776A JP 12826784 A JP12826784 A JP 12826784A JP 12826784 A JP12826784 A JP 12826784A JP S616776 A JPS616776 A JP S616776A
Authority
JP
Japan
Prior art keywords
black
pattern
deviation
picture element
element string
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
JP12826784A
Other languages
Japanese (ja)
Inventor
Kazuo Mikami
和夫 三上
Suguru Ishihara
石原 英
Masahiro Nishimura
西村 真洋
Noriyuki Tsukiyama
築山 則之
Seisuke Hinota
日野田 征佑
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.)
Omron Corp
Original Assignee
Tateisi Electronics Co
Omron Tateisi Electronics Co
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 Tateisi Electronics Co, Omron Tateisi Electronics Co filed Critical Tateisi Electronics Co
Priority to JP12826784A priority Critical patent/JPS616776A/en
Publication of JPS616776A publication Critical patent/JPS616776A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To recognize rapidly and easily an input pattern even if the input pattern is shifted positionally by executing pattern matching while correcting the positional shift of the input pattern from a reference pattern. CONSTITUTION:A picture of a reference model is picked up by a television camera 1 and encoded into a binary signal of white and black by a binary-coding circuit 4 to find out a reference pattern and the length of a black picture element string and a distance up to the black picture element string are calculated by a CPU10 in each horizontal scanning line. Simultaneously, a deviation between a distance up to a specific black picture element string and a distance up to the black picture element string of each line is found out and the length of the black picture element string and the deviation are successively stored in RAMs 12, 13 from their leading addresses. Similarly, the picture of a substance to be recognized is encoded into a binary signal of white and black to find out an input pattern and the length of a black picture element string and its deviation are found out in each horizontal scanning line. At the detection of the leading black picture element string of the input pattern, the length of the black picture element string of the reference pattern and its deviation are read out from the RAMs 12, 13 and compared with the length of the black picture element string of the input pattern and its deviation.

Description

【発明の詳細な説明】 〈発明の技術分野〉 本発明は、静止若しくは移動中の被認識物体を画像化し
て入力パターンを求め、この入力パターンを標準パター
ンと対比して、被認識物体を認識する二次元視覚認識装
置に関連し、殊に本発明は、標準パターンに対する入力
パターンの位置ずれを修正しつつ、パターン間の照合を
実施する新規装置を提供する。
[Detailed Description of the Invention] <Technical Field of the Invention> The present invention obtains an input pattern by imaging a stationary or moving object to be recognized, and compares this input pattern with a standard pattern to recognize the object to be recognized. In particular, the present invention provides a new device that performs matching between patterns while correcting the misalignment of an input pattern with respect to a standard pattern.

〈発明の背景〉 一般に二次元視覚認識装置は、入力パターンと標準パタ
ーンとを画像上で重ね合わせ、両パターンの重合一致度
合を検出して、被認識物体を認識するものである。従っ
てパターン照合に際しては、両パターンを正確に位置合
わせする必要があり、従来はXYステージ等を用いて被
J忍織物体を所定停止位置に位置決めした後、これをテ
レビカメラで撮像して入力、N6ターンを求め、この入
力パターンにつき標準ノでターンと照合処理を行なって
いる。ところがこの種方式の場合、被認識物体の位置決
め機構が必要であるから、装置全体の構造が複雑化し、
また位置決め操作の時間分だけパターン照合に時間がか
かる不利がある。而もこの方式の場合、物体を位置決め
停止させるから、コンベア上を流れる移動中の物体の認
識には不向きてあり、更に/々ターン照合するための大
容量の画像メモリが必要であるから、装置コストが高く
なる等、実用上幾多の問題があった。
<Background of the Invention> Generally, a two-dimensional visual recognition device recognizes an object by superimposing an input pattern and a standard pattern on an image, detecting the degree of superimposition and coincidence of both patterns. Therefore, when performing pattern matching, it is necessary to accurately align both patterns. Conventionally, after positioning the target fabric at a predetermined stopping position using an XY stage, etc., this is imaged with a television camera and input. The N6 turn is obtained, and this input pattern is compared with the standard turn. However, in this type of method, a mechanism for positioning the object to be recognized is required, which makes the overall structure of the device complicated.
Another disadvantage is that pattern matching takes time equal to the time required for positioning operations. However, in this method, the object is positioned and stopped, so it is not suitable for recognizing moving objects flowing on a conveyor.Furthermore, it requires a large capacity image memory for turn-by-turn verification, so the device There were many practical problems such as increased cost.

〈発明の目的〉 本発明は、大容量の画像メモリを用いることなく、標準
パターンに対する入力、N6ターンの位置ずれを修正し
つつパターン照合を実施する新規方式を提案するもので
、これにより入カッ々ターンか位置ずれしても、迅速且
つ容易に物体認識を行ない得る装置コストの安価な二次
元視覚認識装置を提供することを目的とする。
<Objective of the Invention> The present invention proposes a new method for inputting a standard pattern and performing pattern matching while correcting the positional deviation of the N6 turn without using a large-capacity image memory. To provide a low-cost two-dimensional visual recognition device that can quickly and easily recognize an object even if the position shifts from one turn to the next.

〈発明の構成および効果〉 上記目的を達成するため、本発明では、まず標準モデル
の画像を白黒2値化して標準ノでターンを求め、各水平
走査行毎に黒画素列の長さおよび黒画素列までの距離を
算出する。そして同時に特定黒画素列までの距離に対す
る各付熱画素列までの距離の偏差を求め、前記黒画素列
の長さおよび偏差をメモリへその先頭番地より順次格納
する。つぎに同様の手順で被認識物体の画像を白黒2値
化して入力パターンを求め、各水平走査行毎に黒画素列
の長さおよび偏差を求める。そしてこの場合、入力パタ
ーンの先頭黒画素列が検出された時点で、前記標準パタ
ーンの黒画素列の長さおよび偏差をメモリの先頭番地よ
り読み出しつつ入力パターンの黒画素列の長さおよび偏
差と水平走査行毎に比較してゆくものである。
<Structure and Effects of the Invention> In order to achieve the above object, the present invention first converts the image of the standard model into black and white binarized, calculates the turn in the standard model, and calculates the length of the black pixel column and the black color for each horizontal scanning line. Calculate the distance to the pixel column. At the same time, the deviation of the distance to each heated pixel column with respect to the distance to a specific black pixel column is determined, and the length and deviation of the black pixel column are sequentially stored in the memory starting from the first address. Next, using the same procedure, the image of the object to be recognized is converted into black and white binarized to obtain an input pattern, and the length and deviation of the black pixel column are determined for each horizontal scanning line. In this case, when the first black pixel string of the input pattern is detected, the length and deviation of the black pixel string of the standard pattern are read from the first address of the memory, and the length and deviation of the black pixel string of the input pattern are calculated. The comparison is made for each horizontal scanning line.

本発明によれば、被認識物体を所定停止位置に位置決め
する等の必要がないから、特別な位置決め機構が不要で
あり、装置全体を簡易化でき、また位置決め操作に要す
る時間を節約し得、物体認識処理の効率を向上できる。
According to the present invention, since there is no need to position the object to be recognized at a predetermined stop position, a special positioning mechanism is not required, the entire device can be simplified, and the time required for positioning operations can be saved. The efficiency of object recognition processing can be improved.

また物体を位置決め停止させないから、コンベア上を流
れる移動物体を認識する装置に好適であり、而もパター
ン照合用の大容量の画像メモリを必要としないから、装
置の簡易化や装置コストの低減に貢献する等、発明目的
を達成した顕著な効果を奏する。
In addition, since the object does not have to be positioned and stopped, it is suitable for devices that recognize moving objects flowing on a conveyor, and since it does not require a large capacity image memory for pattern matching, it can simplify the device and reduce device costs. It has a remarkable effect of achieving the purpose of the invention, such as making a contribution.

〈実施例の説明〉 第1図は本発明にかかる二次元視覚認識装置の回路構成
例を示す。図中テレビカメラ1は、例えばコンベア上を
流れる物体2を例えば上方より撮像し、飛越走査にかか
る画像出力(第3図il+に示す)を同期分離回路3へ
送出する。同期分離回路3は、前記画像出力より水平同
期信号HD、垂直同期信号VD、奇数フィールド信号O
D (第3図(2)に示す)、クロック信号CK(第3
図(4)に示す)等を分離し、ビデオ信号VDiを2値
化回路4へ出力する。2値化回路4は、第3図(3)に
示す如く、ビデオ信号VDiに対し一定のスレシュホー
ルドレベルTHを設定し、ビデオ信号VDiの奇数フィ
ールドにつき白黒2値化して2値パターンを形成出力す
る。
<Description of Embodiments> FIG. 1 shows an example of a circuit configuration of a two-dimensional visual recognition device according to the present invention. A television camera 1 in the figure images an object 2 flowing on a conveyor, for example, from above, and sends an image output (shown as il+ in FIG. 3) related to interlaced scanning to a synchronization separation circuit 3. The synchronization separation circuit 3 extracts a horizontal synchronization signal HD, a vertical synchronization signal VD, and an odd field signal O from the image output.
D (shown in Figure 3 (2)), clock signal CK (shown in Figure 3 (2)),
(shown in FIG. 4), etc., and outputs the video signal VDi to the binarization circuit 4. As shown in FIG. 3 (3), the binarization circuit 4 sets a certain threshold level TH for the video signal VDi, converts odd fields of the video signal VDi into black and white binarization, forms a binary pattern, and outputs it. do.

第2図はこの2値パターン例を示し、第2図(1)は標
準パターンPを、第2図(2)は入力パターンPiを夫
々示す。尚図中、斜線部分が黒画素、斜線以外の部分が
白画素を示し、本実施例の場合、いずれのパターンも縦
横256ビツトの白黒画素をもって組立て構成される。
FIG. 2 shows an example of this binary pattern, FIG. 2 (1) shows the standard pattern P, and FIG. 2 (2) shows the input pattern Pi. In the figure, the shaded areas indicate black pixels, and the areas other than the shaded areas indicate white pixels. In this embodiment, each pattern is composed of black and white pixels of 256 bits in the vertical and horizontal directions.

前記2値化回路4には、白画素検知回路5および黒画素
検知回路6が接続され、白画素検知回路5には画素カウ
ンタ7が、また黒画素検知回路6には他の画素カウンタ
8が夫々接続されている。黒画素検知回路6は各パター
ンを構成する黒画素を検知し、白画素検知回路5は背景
部分に相当する白画素を検知する。一方の画素カウンタ
7は、白画素検知回路5の出力(白画素数)を計数し、
黒画素検知回路6が黒画素を検知した時点でその行の画
素計数動作を停止すると共に、つぎに他方の画素カウン
タ8が黒画素検知回路6の出力(黒画素数)を計数する
A white pixel detection circuit 5 and a black pixel detection circuit 6 are connected to the binarization circuit 4, a pixel counter 7 is connected to the white pixel detection circuit 5, and another pixel counter 8 is connected to the black pixel detection circuit 6. are connected to each other. The black pixel detection circuit 6 detects black pixels forming each pattern, and the white pixel detection circuit 5 detects white pixels corresponding to the background portion. One pixel counter 7 counts the output (number of white pixels) of the white pixel detection circuit 5,
When the black pixel detection circuit 6 detects a black pixel, the pixel counting operation for that row is stopped, and the other pixel counter 8 then counts the output of the black pixel detection circuit 6 (the number of black pixels).

これら画素カウンタ7.8は、Ilo  ポート9を介
してマイクロコンピュータのCP U (Centra
lProcessing Unit ) l Qに接続
され、CP、UIQは画素カウンタ7.8の計数データ
を取り込み、この取り込んだデータ等を用いて、標準パ
ターンに対する入カバ1ターンの位置ずれ修正、両パタ
ーンの照合等、物体認識にかかる一連の演算や各種処理
を実行する。このC,PUIOには、位置すれ修正やパ
ターン照合のプログラムを格納するP ROM (Pr
ogramnable Read 0nly Memo
ry ) ll、標準パターンについての後記データを
格納する第1+第2のRA、M (Read 0nly
 Memory ) l 2゜13が夫々接続され、R
AM12.13には水平走査行数(本実施例では256
)に相当するデータ格納領域を設けて、各水平走査行毎
の前記計数データを対応する番地領域に格納する。尚図
中、オア回路14は画素カウンタ7,8をリセットする
回路、ゲート回路15はCPUl0に対し割込み信号I
NTを発生させる回路、スイッチSWはモード切換スイ
ッチである。
These pixel counters 7.8 are connected to the CPU (Centra) of the microcomputer via the Ilo port 9.
lProcessing Unit) l Connected to Q, CP and UIQ take in the count data of pixel counter 7.8, and use this read data etc. to correct the positional deviation of one turn of the input cover with respect to the standard pattern, collate both patterns, etc. , executes a series of calculations and various processes related to object recognition. This C, PUIO is a PROM (Pr
ogramnable Read 0nly Memo
ry) ll, 1st + 2nd RA for storing postscript data regarding the standard pattern, M (Read 0nly
Memory) l 2゜13 are connected respectively, R
AM12.13 has a horizontal scanning line number (256 in this example).
) is provided, and the count data for each horizontal scanning line is stored in the corresponding address area. In the figure, the OR circuit 14 is a circuit that resets the pixel counters 7 and 8, and the gate circuit 15 is a circuit that resets the pixel counters 7 and 8.
The circuit for generating NT, switch SW, is a mode changeover switch.

第4図+11 +2+は、標準パターンPおよび入力パ
ターンPiの構成例およびパターン間の位置関係を示す
。同図中、A 、 A/は各パターンP 、 Piにお
ける光面黒画素、Xl、 Y、、 N2. Y2は各黒
画素A 、 A’の位置データを夫々示し、一方の黒画
素A/は他の黒画素Aに対し水平方向にN2−Xl、垂
直方向にY2−Ylだけ位置ずれしている。
FIG. 4 +11 +2+ shows an example of the configuration of the standard pattern P and the input pattern Pi, and the positional relationship between the patterns. In the figure, A, A/ are optical surface black pixels in each pattern P, Pi, Xl, Y, N2. Y2 indicates the position data of each black pixel A and A', and one black pixel A/ is shifted from the other black pixel A by N2-Xl in the horizontal direction and by Y2-Yl in the vertical direction.

また第4図(]、llf2)で示すヒストグラムH,、
N2は水平走査行に対する黒画素数N、、N2、ヒスト
グラムH3,H4は先頭黒画素A 、 A/まての白画
素数に対する各付熱画素端までの白画素数の偏差W1.
 W2を夫々示しており、更に夫々RAM12゜13の
領域図は黒画素数N1および偏差W1の格納範囲(図中
、斜線部分)を示している。
Also, the histogram H, shown in Fig. 4 (], llf2),
N2 is the number of black pixels for the horizontal scanning line N, , N2, histograms H3 and H4 are the deviation W1.
In addition, the area diagrams of the RAMs 12 and 13 respectively show the storage range of the number N1 of black pixels and the deviation W1 (shaded areas in the figure).

然してモード切換スイッチSWを学習モード側aに設定
した後、テレビカメラ1により標塾モデルを撮像すると
、ビデオ信号VDiの最初の奇数フィールドにつき2値
化処理が実行されて標準パターンが形成され、画素カウ
ンタ7.8によって水平走査行毎の白黒画素数が計数さ
れる。そして奇数フィールドにおける水平同期信号HD
の各時間タイミングで、CPUl0に対し割込み信号I
NTが発生せられ、CPU10はこの水平同期期間にお
いて、画素カウンタ7.8の計数データを内部に取り込
む。
However, after setting the mode changeover switch SW to the learning mode side a, when the TV camera 1 captures an image of the Shibejuku model, binarization processing is executed for the first odd field of the video signal VDi to form a standard pattern, and the pixel A counter 7.8 counts the number of black and white pixels for each horizontal scanning line. And horizontal synchronization signal HD in odd field
At each time timing, interrupt signal I is sent to CPUl0.
NT is generated, and the CPU 10 internally takes in the count data of the pixel counter 7.8 during this horizontal synchronization period.

第5図はかかる割込み制御動作を示すもので、同図中、
XAは画素カウンタ7の計数直を、N1は画素カウンタ
8の計数値を、YlはRAM12に設定された行カウン
タの計数値を、Fは同じRAM12に設定されたフラグ
エリアの内容を夫々示す。ますCP U 1. Qは、
ステップ21て行カウンタY1を初期設定(Yl−1)
シた後、つぎにステップ22て、画素カウンタ7の計数
値XAが各走査行の画素データ数(本実施例では256
個)に達したか否か、すなわちその行の走査で黒画素を
検出1.たか否かをチェックする。今画素カウンタ7が
黒画素検知回路6による計数停止制御を受けずに、1行
分の画素データ数(256個)を計数した場合、ステッ
プ22が”YES″となり、つぎのステップ23てフラ
グFをクリアした後、つきにステップ24において、行
カウンタの計数値Y1が最終走査行(本実施例では25
6行)に達したか否かがチェックされる。この場合、ス
テップ24の判定は”NO”であるから、スタート時点
の割込み待の状態に戻り、つぎの行につき同様の白画素
計数動作が実行される。
FIG. 5 shows such an interrupt control operation, and in the figure,
XA indicates the count value of the pixel counter 7, N1 indicates the count value of the pixel counter 8, Yl indicates the count value of the row counter set in the RAM 12, and F indicates the contents of the flag area set in the same RAM 12. Mas CPU 1. Q is
Step 21 Initialize row counter Y1 (Yl-1)
After that, in step 22, the counted value
In other words, detect black pixels in scanning that row.1. Check whether it is correct or not. If the pixel counter 7 has now counted the number of pixel data for one row (256 pieces) without being subjected to counting stop control by the black pixel detection circuit 6, step 22 becomes "YES", and the next step 23 flag F After clearing, at step 24, the count value Y1 of the row counter reaches the final scanning row (25 in this embodiment).
6 rows) is reached. In this case, since the determination in step 24 is "NO", the process returns to the interrupt waiting state at the start, and a similar white pixel counting operation is executed for the next row.

かくて各行の計数過程において、黒画素検知回路6が黒
画素を検知すると、画素カウンタ7はその時点てその水
平走査での計数動作を停止し、他方の画素カウンタ8は
その時点から黒画素列の計数を開始する。従ってこの行
の走査において画素カウンタ7の計数値XA はr25
6jに達せず、これによりつぎの水平ブランキング期間
の割込み処理ではステップ22の判定が“NO′″ と
なって、ステップ25へ進み、フラグFの内容がゼロか
否かがチェックされる。この場合、ステップ25は”Y
ES”となるから、つぎにCPU20は、画素カウンタ
8の計数値N1を読み出し、ステップ26てしきい値T
H,l  との大小を比較する。もし画素カウンタ8の
計数値N1がしきい値TH1以下であれば、計数にかか
る黒画素列は例えばノイズ分であると判断され、ステッ
プ26が−YES″′となってステップ24へ戻る。一
方針数値N□がしきい値TH1を越えるとき、ステップ
26が”No”となり、ステップ27で画素カウンタ7
の計数値XAが。
Thus, in the counting process of each row, when the black pixel detection circuit 6 detects a black pixel, the pixel counter 7 stops counting operation in the horizontal scan at that point, and the other pixel counter 8 starts counting the black pixel column from that point on. Start counting. Therefore, in scanning this row, the count value XA of the pixel counter 7 is r25
6j is not reached, and as a result, in the interrupt processing for the next horizontal blanking period, the determination at step 22 becomes "NO'", and the process proceeds to step 25, where it is checked whether the content of flag F is zero. In this case, step 25 is “Y”
ES'', the CPU 20 then reads out the count value N1 of the pixel counter 8 and sets the threshold value T in step 26.
Compare the size with H and l. If the count value N1 of the pixel counter 8 is less than or equal to the threshold value TH1, it is determined that the black pixel row to be counted is, for example, noise, and step 26 becomes -YES'' and the process returns to step 24. When the policy value N□ exceeds the threshold value TH1, step 26 becomes "No", and step 27 pixel counter 7
The count value XA is.

RAM12内に設定されたデータエリアX1に書き込ま
れ、更に続くステップ28で画素カウンタ8の計数値N
1がaAM12内の黒画素数格納領域の先頭番地に格納
される。つぎにステップ29において、CPUIQは画
素カウンタ7の計数値xAとデータエリアX1の内容と
の差から偏差Wl(この場合はゼロ)を求め、これをR
AM13の偏差格納領域の先頭番地に格納する。
The count value N of the pixel counter 8 is written in the data area X1 set in the RAM 12, and in the subsequent step 28.
1 is stored at the first address of the black pixel number storage area in the aAM 12. Next, in step 29, the CPUIQ calculates the deviation Wl (zero in this case) from the difference between the count value xA of the pixel counter 7 and the contents of the data area
It is stored in the first address of the deviation storage area of AM13.

更にステップ30で検出フラグFに「1」がセットされ
、続くステップ31.32でRAM12゜13の各アド
レスカウンタが歩進される。
Furthermore, in step 30, the detection flag F is set to "1", and in subsequent steps 31 and 32, each address counter in the RAMs 12 and 13 is incremented.

かくて以下標準パターンを含む水平走査行について、ス
テ′ンブ22の「xA=256Jが”NO”。
Thus, for the horizontal scanning line containing the standard pattern below, "xA=256J" of step 22 is "NO".

ステップ25のrF=OJが°’NO”の状態が続き、
この場合、ステップ26.27を経ることなく、ステッ
プ28.29において、黒画素数N1および偏差Wlの
格納処理が実施される。上記一連の処理は、行カウンタ
Y1の内容がr256Jに達するまで繰り返し実行され
、ステップ24の[y1=256Jの判定が“YES”
となったとき、ステップ33で行カウンタYlが、つき
のステップ34.3!5でRAM12.13の各アドレ
スカウンタが夫々クリアされ、標準パターンに関する一
連の処理が完了する。
rF=OJ in step 25 continues to be “NO”,
In this case, the number of black pixels N1 and the deviation Wl are stored in step 28.29 without going through steps 26.27. The above series of processes are repeatedly executed until the contents of the row counter Y1 reach r256J, and the determination of [y1=256J in step 24 is "YES"]
When this occurs, the row counter Yl is cleared in step 33, and each address counter in the RAM 12.13 is cleared in step 34.3!5, completing a series of processes regarding the standard pattern.

つぎに被認識物体の認識処理を実行する場合、モード切
換スイッチSWを認識モード側すに設定した後、同様の
撮像操作および2値化処理を実行して、入力パターンP
i を求める。そして前記同様に奇数フィールドにおけ
る水平同期信号HDの時間タイミングで、C,PUIQ
に対し割込み信号INTが発生せられ、CPU、10は
前記水平同期期間において画素カウンタ7.8の計数デ
ータの取込みを行ない、パターン間の位置ずれ修正を実
施しつつパターン照合処理を実行する。
Next, when performing recognition processing for the object to be recognized, after setting the mode changeover switch SW to the recognition mode side, perform the same imaging operation and binarization processing, and then perform the input pattern P.
Find i. Then, as above, at the time timing of the horizontal synchronizing signal HD in the odd field, C, PUIQ
An interrupt signal INT is generated, and the CPU 10 takes in count data of the pixel counter 7.8 during the horizontal synchronization period, and executes pattern matching processing while correcting positional deviation between patterns.

第6図はかかる割込み制御動作を示すもので、同図中、
XA′は画素カウンタ7の白画素計数値を、N2は画素
カウンタ8の計数値を、Y2はRAM12に設定された
行カウンタの計数値を、Fは同じRAM12に設定され
たフラグの内容を夫々示している。同図において、ステ
ップ41からステップ47に至る処理フローは前記第5
図と同様であり、ステップ47では、ステップ46の[
N2≦THIJの判定がはじめて−Y E S ”とな
ったときの画素カウンタ7の計数値XA’がRAM12
のデータエリアy2へ書き込まれる。
FIG. 6 shows such an interrupt control operation, and in the figure,
XA' is the white pixel count value of the pixel counter 7, N2 is the count value of the pixel counter 8, Y2 is the count value of the row counter set in the RAM 12, and F is the content of the flag set in the same RAM 12. It shows. In the same figure, the processing flow from step 41 to step 47 is shown in the fifth step.
This is similar to the figure, and in step 47, [
The counted value XA' of the pixel counter 7 when the judgment of N2≦THIJ becomes -YES'' for the first time is stored in the RAM 12.
is written to the data area y2.

そしてつぎにCPU10は、ステップ48で画素カウン
タ8の計数値N2を取り込み、更にステップ49でRA
M12のアドレスカウンタが指定する番地領域(この場
合先頭番地)の計数値N1を読み出して、両データを比
較する。これにより両パターンは位置ずれ修正された状
態でパターン照合されることになり、その結果、CPU
IQは両者の差(N1−N2)から不一致黒画素数ΔN
を算出する(ステップ50)。つぎにcpuloは、ス
テップ51において、画素カウンタ7の計数値XA′と
データエリアX1の内容との差から偏差W2を求め、つ
きのステップ52で、RAM13のアドレスカウンタが
指定する番地領域(この場合先頭番地)より標準パター
ンについての偏差W1を読み出す。更につぎのステップ
53で、前記同様、両者の差(”I  W2)から不一
致白画素数ΔWが算出され、続くステップ54.55で
不一致黒画素数ΔNおよび不一致白画素数ΔWとしきい
値TH2との大小が比較される。もしステップ54の「
ΔN<TH2Jの判定並びにステップ55の[ΔW<T
H2Jの判定が共にYES nのとき、ステップ56で
不一致黒画素数ΔNの累積加算値NTを計算し、然る後
火々RAM12.13のアドレスカウンタを歩進して、
各RAM12.13のつきの番地領域を指定する(ステ
ップ57.58)。
Then, in step 48, the CPU 10 takes in the count value N2 of the pixel counter 8, and further in step 49, the CPU 10 takes in the count value N2 of the pixel counter 8.
The count value N1 of the address area (in this case, the first address) specified by the address counter of M12 is read out, and both data are compared. As a result, both patterns are matched with the positional deviation corrected, and as a result, the CPU
IQ is the number of mismatched black pixels ΔN from the difference between the two (N1-N2)
is calculated (step 50). Next, in step 51, cpulo calculates the deviation W2 from the difference between the count value XA' of the pixel counter 7 and the contents of the data area The deviation W1 for the standard pattern is read from the address). Furthermore, in the next step 53, the number of mismatched white pixels ΔW is calculated from the difference between the two ("I W2"), and in the following steps 54 and 55, the number of mismatched black pixels ΔN, the number of mismatched white pixels ΔW, and the threshold value TH2 are calculated. are compared.If step 54 "
Determination of ΔN<TH2J and step 55 [ΔW<T
When both H2J determinations are YES n, the cumulative addition value NT of the mismatched black pixel number ΔN is calculated in step 56, and then the address counter of the Hibi RAM 12.13 is incremented.
The address area of each RAM 12.13 is designated (steps 57 and 58).

上記一連の処理は、行カウンタの計数値Y2が「256
」に達するまで繰り返され、その結果、累積加算値NT
がしきい値TH3より小さい値であったとき、ステップ
59の判定が” Y E S ”となり、つぎのステッ
プ60てCPUl0は一致出力を出す。
In the above series of processes, the count value Y2 of the row counter is "256
”, and as a result, the cumulative addition value NT
When the value is smaller than the threshold value TH3, the determination in step 59 becomes "YES", and in the next step 60, CPU10 outputs a coincidence output.

一方繰返し処理過程において、しきい値TH2以上の不
一致黒画素数ΔN或いは不一致白画素数ΔWが算出され
たとき、ステップ54.55が”No”となり、また累
積加算値NTがしきい値TH3以上に達したとき、ステ
ップ64が′“NO″となり、いずれの場合もCPUl
0は不一致出力を出しくステップ61)、つぎのステッ
プ62で行カウンタの計数値Y2をクリアする。
On the other hand, in the iterative processing process, when the number of mismatched black pixels ΔN or the number of mismatched white pixels ΔW is calculated equal to or greater than the threshold value TH2, steps 54 and 55 become "No", and the cumulative addition value NT is equal to or greater than the threshold value TH3. , step 64 becomes ``NO'', and in either case the CPU
0 outputs a non-coincidence output (step 61), and in the next step 62, the count value Y2 of the row counter is cleared.

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

第1図は本発明にかかる二次元視覚認識装置の回路ブロ
ック図、第2図fl) +2+は標準パターンおよび入
力パターンを示す説明図、第3図は第1図に示す回路構
成例の信号波形を示すタイミンクチャート、第4図(1
1(21は標準パターンに対する入力パターンの位置ず
れ修正原理を示す説明図、第5図は学習モードにおける
割込み処理動作を示すフローチャート、第6図+11 
+21は認識モードにおける割込み処理動作を示すフロ
ーチャートである。 1・・・・・・テレビカメラ  4・・・・・2値化回
路7.8・・・・・画素カウンタ 1o・川・・CPU
12.13・・・・・・RAM 分3 図 テロ′1121 労6図(ト) テと し c2ノ
Fig. 1 is a circuit block diagram of a two-dimensional visual recognition device according to the present invention, Fig. 2 fl) +2+ is an explanatory diagram showing standard patterns and input patterns, and Fig. 3 is a signal waveform of the circuit configuration example shown in Fig. 1. Timing chart showing Figure 4 (1)
1 (21 is an explanatory diagram showing the principle of correcting the positional deviation of the input pattern with respect to the standard pattern, Fig. 5 is a flowchart showing the interrupt processing operation in learning mode, Fig. 6 + 11
+21 is a flowchart showing the interrupt processing operation in the recognition mode. 1...TV camera 4...Binarization circuit 7.8...Pixel counter 1o...CPU
12.13...RAM minute 3 figure terror '1121 labor 6 figure (g) Tetoshi c2ノ

Claims (2)

【特許請求の範囲】[Claims] (1)物体画像を白黒2値化して標準パターンおよび入
力パターンを求める手段、 各パターンにつき水平走査行毎に黒画素列 の長さおよび黒画素列までの距離を算出する手段、 各パターンにつき特定黒画素列までの距離 に対する各行黒画素列までの距離の偏差を求める手段、 標準パターンにつき水平走査行毎の黒画素 列の長さおよび偏差を先頭番地より順次格納する手段お
よび、 入力パターンにつき先頭の黒画素列が検出 されたとき、前記標準パターンの黒画素列の長さおよび
偏差を前記先頭番地より読み出して、入力パターンの黒
画素列の長さおよび偏差と水平走査行毎に比較する手段
を具備して成る二次元視覚認識装置。
(1) Means for obtaining a standard pattern and input pattern by converting the object image into black and white binarization, means for calculating the length of a black pixel column and the distance to the black pixel column for each horizontal scanning line for each pattern, specifying for each pattern means for calculating the deviation of the distance from each row to the black pixel column with respect to the distance to the black pixel column; means for sequentially storing the length and deviation of the black pixel column for each horizontal scanning row for the standard pattern from the first address; means for reading out the length and deviation of the black pixel string of the standard pattern from the first address and comparing it with the length and deviation of the black pixel string of the input pattern for each horizontal scanning line when the black pixel string of the input pattern is detected; A two-dimensional visual recognition device comprising:
(2)前記特定黒画素列は、パターンにおける先頭黒画
素列である特許請求の範囲第1項記載の二次元視覚認識
装置。
(2) The two-dimensional visual recognition device according to claim 1, wherein the specific black pixel row is the first black pixel row in the pattern.
JP12826784A 1984-06-20 1984-06-20 Recognizing device of two-dimensional sight Pending JPS616776A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP12826784A JPS616776A (en) 1984-06-20 1984-06-20 Recognizing device of two-dimensional sight

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12826784A JPS616776A (en) 1984-06-20 1984-06-20 Recognizing device of two-dimensional sight

Publications (1)

Publication Number Publication Date
JPS616776A true JPS616776A (en) 1986-01-13

Family

ID=14980608

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12826784A Pending JPS616776A (en) 1984-06-20 1984-06-20 Recognizing device of two-dimensional sight

Country Status (1)

Country Link
JP (1) JPS616776A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62279109A (en) * 1986-05-28 1987-12-04 Sumitomo Rubber Ind Ltd Tire antiskid device and manufacture thereof
US5631981A (en) * 1994-01-13 1997-05-20 Eastman Kodak Company Bitmap registration by gradient descent

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62279109A (en) * 1986-05-28 1987-12-04 Sumitomo Rubber Ind Ltd Tire antiskid device and manufacture thereof
US5631981A (en) * 1994-01-13 1997-05-20 Eastman Kodak Company Bitmap registration by gradient descent

Similar Documents

Publication Publication Date Title
TWI521448B (en) Vehicle identification system and method
JPH0644292B2 (en) Two-dimensional visual recognition device
JPS62285004A (en) Detecting method of rotating angle of object pattern
CN104966283A (en) Imaging layered registering method
CN112330618A (en) Image offset detection method, device and storage medium
JPS616776A (en) Recognizing device of two-dimensional sight
JP3244850B2 (en) License plate reader
JP3427230B2 (en) Image processing device
JPH057363A (en) Picture monitoring device
JPS615385A (en) Two-dimensional visual recognizer
JPH051508B2 (en)
JP3447751B2 (en) Pattern recognition method
CN114331843B (en) Image splicing method based on gray level histogram
JPS61879A (en) 2-dimensional visual recognizer
JP3658137B2 (en) Moving object recognition method
JPH07325906A (en) Detecting and tracking device for moving body
JP2638073B2 (en) Tilt angle detector
JPH0410074A (en) Picture pattern inclination detecting method
CN117372379A (en) Infrared image dead pixel detection method for rotatable equipment
JPS58158761A (en) Pattern position detecting method
CN115830141A (en) Calibration parameter obtaining method and device and electronic equipment
JPS60263274A (en) Two-dimensional vision recognizing device
JPS61294985A (en) Detecting device for rotation slippage
JP2642185B2 (en) Angle detector
JPH0498376A (en) Pattern recognition device