JPH03217981A - Pattern recognizer - Google Patents

Pattern recognizer

Info

Publication number
JPH03217981A
JPH03217981A JP2011775A JP1177590A JPH03217981A JP H03217981 A JPH03217981 A JP H03217981A JP 2011775 A JP2011775 A JP 2011775A JP 1177590 A JP1177590 A JP 1177590A JP H03217981 A JPH03217981 A JP H03217981A
Authority
JP
Japan
Prior art keywords
pattern
circuit
scanning
dictionary
inspected
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.)
Granted
Application number
JP2011775A
Other languages
Japanese (ja)
Other versions
JP2913103B2 (en
Inventor
Satoshi Sakurai
聡 桜井
Hiroshige Sakahara
坂原 広重
Sumiichi Kiyota
清田 純市
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2011775A priority Critical patent/JP2913103B2/en
Publication of JPH03217981A publication Critical patent/JPH03217981A/en
Application granted granted Critical
Publication of JP2913103B2 publication Critical patent/JP2913103B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

PURPOSE:To shorten the pattern recognizing time by providing a spiral scan processing means which scans spirally a dictionary pattern to a pattern to be checked, a scanning start point position correcting means, and a pattern deciding means which decides the coincidence/discordance between the pattern to be checked and the dictionary pattern. CONSTITUTION:A prepared dictionary pattern is spirally scanned to a pattern to be checked and segmented out of the picture data inputted via a spiral scan processing means A. Then a scanning start point position correcting means B corrects the spiral scanning start point of the means A to a position nearest to the pattern to be checked when the scanning position of the dictionary pattern reaches the position nearest to the pattern to be checked. A pattern deciding means C decides the coincidence or moncoincidence between the pattern to be checked and the dictionary pattern based on the number of discrepant bits between both patterns. As a result, the matching scanning frequency is reduced.

Description

【発明の詳細な説明】 〔概 要] 渦巻状の走査処理により文字,数字,記号等のパターン
認識を行うパターン認識装置に関し、マッチング走査回
数を削減してパターン認識に要する時間を短縮すること
を目的とし、入力された画像データから切り出された被
検査パターンを予め準備された辞書パターンによりパタ
ーンマッチングしてパターン認識を行うパターン認識装
置であって、前記被検査パターンに対して前記辞書パタ
ーンを渦巻状に走査する渦巻状走査処理手段と、前記辞
書パターンの走査位置が前記被検査パターンの至近位置
に来たとき、前記渦巻状走査処理手段による渦巻状走査
の初点を該至近位置へ修正する走査初点位置修正手段と
、前記被検査パターンと前記辞書パターンとの不一致ビ
ット量から、一致・不一致を判定するパターン判定手段
とを具備するように構成する。
[Detailed Description of the Invention] [Summary] Regarding a pattern recognition device that recognizes patterns of characters, numbers, symbols, etc. through spiral scanning processing, the present invention aims to shorten the time required for pattern recognition by reducing the number of matching scans. A pattern recognition device that performs pattern recognition by pattern matching a pattern to be inspected cut out from input image data with a dictionary pattern prepared in advance; spiral scanning processing means for scanning in a circular pattern, and when the scanning position of the dictionary pattern comes to a close position of the pattern to be inspected, correcting the starting point of the spiral scanning by the spiral scanning processing means to the close position; The apparatus is configured to include a scanning starting point position correcting means, and a pattern determining means for determining whether the pattern to be inspected matches or does not match based on the amount of mismatched bits between the pattern to be inspected and the dictionary pattern.

〔産業上の利用分野〕[Industrial application field]

本発明は、パターン認識装置に関し、特に、渦巻状の走
査処理により文字,数字1記号等のパターン認識を行う
パターン認識装置に関する。
The present invention relates to a pattern recognition device, and more particularly to a pattern recognition device that recognizes patterns such as letters, numbers, and symbols by spiral scanning processing.

現在、各種製品の外観検査、例えば、キーボード上に正
しいキートップが挿入されているか、或いは、プリント
板に正しい型番のICが搭載されているか等の検査は、
目視による検査から自動検査へと変化しつつある。しか
し、自動検査を行う場合、製品の位置出し、製品に記載
されたパターン(文字、数字)の位置ずれ等が問題とな
り、これらのパターンを高速にかつ高精度に認識する装
置が要望されている。
Currently, visual inspections of various products, such as checking whether the correct key top is inserted on the keyboard or whether the correct model number IC is mounted on the printed circuit board, are carried out as follows:
There is a shift from visual inspection to automatic inspection. However, when performing automatic inspection, there are problems such as product positioning and misalignment of patterns (letters, numbers) written on the product, and there is a need for a device that can recognize these patterns quickly and with high precision. .

〔従来の技術〕[Conventional technology]

第6図は従来のパターン認識装置の一例を示すブロック
図である。同図に示されるように、従来のパターン認識
装置は、撮像系10L A/D変換回路102,フレー
ムメモリ回路103,パターン切出回路104,辞書メ
モリ回路105,マッチング位置走査回路106,パタ
ーンマッチング回路107,判定回路110および結果
出力回路111を備えている。
FIG. 6 is a block diagram showing an example of a conventional pattern recognition device. As shown in the figure, the conventional pattern recognition device includes an imaging system 10L, an A/D conversion circuit 102, a frame memory circuit 103, a pattern extraction circuit 104, a dictionary memory circuit 105, a matching position scanning circuit 106, and a pattern matching circuit. 107, a determination circuit 110, and a result output circuit 111.

撮像系101はカメラにより検査対象の画像を撮影する
もので、該撮像系101からのアナログ画像信号はA/
D変換回路102によりをデジタル化されて、フレーム
メモリ回路103へ格納される。フレ一ムメモリ回路1
03へ格納された画像データは、パターン切出回路10
4によりその中から所定の被検査パターンが切り出され
てマッチング位置走査回路106へ供給される。また、
マッチング位置走査回路106には、予め辞書メモリ回
路105に格納された辞書パターンも供給され、該マッ
チング位置走査回路106により被検査パターンと辞書
パターンとのパターンマッチング位置が走査されるよう
になされている。
The imaging system 101 takes an image of the inspection target using a camera, and the analog image signal from the imaging system 101 is sent to the A/
The data is digitized by the D conversion circuit 102 and stored in the frame memory circuit 103. Frame memory circuit 1
The image data stored in 03 is sent to the pattern cutting circuit 10.
4, a predetermined pattern to be inspected is cut out from the pattern and supplied to the matching position scanning circuit 106. Also,
A dictionary pattern previously stored in the dictionary memory circuit 105 is also supplied to the matching position scanning circuit 106, and the matching position scanning circuit 106 scans the pattern matching position between the pattern to be inspected and the dictionary pattern. .

切り出された被検査パターンと辞書パターンとのパター
ンマッチングは、パターンマッチンク回路107で行わ
れ、また、判定回路110では、パターンマッチング回
路107で算出された不一致ビット量から、一致・不一
致を判定されることになる。
Pattern matching between the extracted pattern to be inspected and the dictionary pattern is performed in a pattern matching circuit 107, and a determination circuit 110 determines whether the pattern matches or does not match based on the amount of unmatched bits calculated by the pattern matching circuit 107. That will happen.

そして、判定回路110からの出力は、結果出力回路1
11に供給され、該結果出力回路111から判定結果が
出力される。ここで、判定回路110の出力信号は、マ
ッチング位置走査回路106に供給され、被検査パター
ンに対する辞書パターンのパターンマッチング位置が渦
巻状に順次走査されるようになされている。
The output from the determination circuit 110 is then output from the result output circuit 1.
11, and the determination result is output from the result output circuit 111. Here, the output signal of the determination circuit 110 is supplied to the matching position scanning circuit 106, and the pattern matching positions of the dictionary pattern with respect to the pattern to be inspected are sequentially scanned in a spiral manner.

第7図はパターン認識装置における渦巻状の走査処理を
説明するための図である。同図に示されるように、従来
のパターン認識装置における渦巻状の走査処理は、パタ
ーン切出回路104により切り出された被検査パターン
の切り出し枠の中で、該切り出し枠の中心を初点P1と
してその周囲へ渦巻状に辞書パターンをマッチング位置
走査回路106で走査するようになされている。
FIG. 7 is a diagram for explaining spiral scanning processing in the pattern recognition device. As shown in the figure, in the spiral scanning process in the conventional pattern recognition device, the center of the cutout frame is set as the initial point P1 within the cutout frame of the pattern to be inspected cut out by the pattern cutout circuit 104. A matching position scanning circuit 106 scans the dictionary pattern in a spiral around the pattern.

各マッチング位置において、パターンマッチング回路1
07で算出された不一致ビット量Mは、判定回路110
で一致判定レベルSと比較され、M〉Sであれば上記渦
巻状の走査順序でマッチング位置をずらし、そして、M
≦Sとなる位置(P3)が存在した場合、その時点で結
果出力回路111からパターン一致の認識結果が出力さ
れる。ここで、切り出し枠内を全て走査した結果、M≦
Sとなる位置がなければパターン不一致の認識結果が結
果出力回路111から出力されることになる。
At each matching position, pattern matching circuit 1
The amount of mismatched bits M calculated in step 07 is determined by the determination circuit 110.
is compared with the match determination level S, and if M>S, the matching position is shifted in the spiral scanning order, and then M
If a position (P3) where ≦S exists, the result output circuit 111 outputs a pattern matching recognition result at that point. Here, as a result of scanning the entire area within the cutting frame, M≦
If there is no position corresponding to S, a recognition result of pattern mismatch will be output from the result output circuit 111.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述したように、従来のパターン認識装置は、渦巻状の
走査処理を行ってパターン認識を行うようになされてい
る。
As described above, conventional pattern recognition devices perform pattern recognition by performing spiral scanning processing.

ところで、従来のパターン認識装置では、パターンマッ
チング回路107で算出される不一致ビット量Mが判定
回路110の一致判定レベルSに対してM≦Sとなるマ
ッチング位置P3まで辞書パターンを渦巻状に走査した
場合、第8図に示されるように、切り出し枠の中心(初
点P.)からマッチング位置P3までの距離を2とする
と、全走査回数NはN# (2ffi+1)” となる
By the way, in the conventional pattern recognition device, the dictionary pattern is spirally scanned to the matching position P3 where the mismatch bit amount M calculated by the pattern matching circuit 107 satisfies M≦S with respect to the matching judgment level S of the judgment circuit 110. In this case, as shown in FIG. 8, if the distance from the center of the cutting frame (initial point P.) to the matching position P3 is 2, the total number of scans N is N# (2ffi+1)''.

その結果、従来のパターン認識装置では、例えば、被検
査パターンが渦巻状走査の初点P.(切り出し枠の中心
)からずれていればいる程、無駄な検索エリアが広がり
マッチング走査回数が増加してマッチング処理時間(パ
ターン認識に要する時間)が増大するという課題があっ
た。
As a result, in the conventional pattern recognition apparatus, for example, the pattern to be inspected is located at the initial point P of spiral scanning. There is a problem in that the further the pattern is deviated from the center of the clipping frame, the more the search area is wasted and the number of matching scans increases, resulting in an increase in matching processing time (time required for pattern recognition).

本発明は、上述した従来のパターン認識装置が有する課
題に鑑み、マッチング走査回数を削減してパターン認識
に要する時間を短縮することを目的とする。
SUMMARY OF THE INVENTION In view of the problems of the conventional pattern recognition apparatus described above, it is an object of the present invention to reduce the number of matching scans and shorten the time required for pattern recognition.

〔課題を解決するための手段〕[Means to solve the problem]

第1図は本発明に係るパターン認識装置の原理を示すブ
ロック図である。
FIG. 1 is a block diagram showing the principle of a pattern recognition device according to the present invention.

本発明によれば、入力された画像データから切り出され
た被検査パターンを予め準備された辞書パターンにより
パターンマッチングしてパターン認識を行うパターン認
識装置であって、前記被検査パターンに対して前記辞書
パターンを渦巻状に走査する渦巻状走査処理手段Aと、
前記辞書パターンの走査位置が前記被検査パターンの至
近位置に来たとき、前記渦巻状走査処理手段Aによる渦
巻状走査の初点を該至近位置へ修正する走査初点位置修
正手段Bと、前記被検査パターンと前記辞書パターンと
の不一致ビット量から、一致・不一致を判定するパター
ン判定千段Cとを具備することを特徴とするパターン認
識装置が提供される。
According to the present invention, there is provided a pattern recognition device that performs pattern recognition by pattern matching a pattern to be inspected cut out from input image data with a dictionary pattern prepared in advance, wherein spiral scanning processing means A that spirally scans the pattern;
scanning starting point position correction means B for correcting the starting point of the spiral scan by the spiral scanning processing means A to the closest position when the scanning position of the dictionary pattern comes to the closest position to the pattern to be inspected; There is provided a pattern recognition device characterized by comprising a pattern determination stage C for determining coincidence/mismatch based on the amount of mismatch bits between the pattern to be inspected and the dictionary pattern.

〔作 用〕[For production]

本発明のパターン認識装置によれば、渦巻状走査処理手
段Aにより、入力された画像データから切り出された被
検査パターンに対して予め準備された辞書パターンが渦
巻状に走査される。さらに、走査初点位置修正手段Bに
より、辞書パターンの走査位置が被検査パターンの至近
位置に来たとき、上記渦巻状走査処理手段Aによる渦巻
状走査の初点を該至近位置へ修正するようにされている
According to the pattern recognition device of the present invention, the spiral scanning processing means A spirally scans the pattern to be inspected cut out from the input image data using a dictionary pattern prepared in advance. Furthermore, when the scanning position of the dictionary pattern comes to the closest position to the pattern to be inspected, the scanning starting point position correcting means B corrects the starting point of the spiral scanning by the spiral scanning processing means A to the nearest position. is being used.

そして、パターン判定手段Cにより、被検査パターンと
辞書パターンとの不一致ビント量から一致・不一致が判
定されるようになされている。これによって、マッチン
グ走査回数を削減してパターンiF6に要する時間を短
縮することができる。
Then, the pattern determining means C determines whether the pattern to be inspected matches or does not match based on the amount of mismatched bins between the pattern to be inspected and the dictionary pattern. Thereby, the number of matching scans can be reduced and the time required for pattern iF6 can be shortened.

〔実施例〕〔Example〕

以下、図面を参照して本発明に係るパターン認識装置の
一実施例を説明する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of a pattern recognition device according to the present invention will be described below with reference to the drawings.

第2図は本発明のパターン認識装置の一実施例を示すブ
ロック図である。同図に示されるように、本実施例のパ
ターン認識装置は、撮像系1,A/D変換回路2,フレ
ームメモリ回路3,パターン切出回路4,辞書メモリ回
路5,マッチング位置走査回路6,パターンマッチング
回路7,判定弁別回路8,走査初点位置修正回路9,判
定回路10および結果出力回路1lを備えている。
FIG. 2 is a block diagram showing an embodiment of the pattern recognition device of the present invention. As shown in the figure, the pattern recognition device of this embodiment includes an imaging system 1, an A/D conversion circuit 2, a frame memory circuit 3, a pattern extraction circuit 4, a dictionary memory circuit 5, a matching position scanning circuit 6, It includes a pattern matching circuit 7, a determination discrimination circuit 8, a scanning starting point position correction circuit 9, a determination circuit 10, and a result output circuit 1l.

撮像系lはカメラにより検査対象の画像を撮影するもの
で、該撮像系1からのアナログ画像信号はA/D変換回
路2によりをデジタル化されて、フレームメモリ回路3
へ格納される。フレームメモリ回路3へ格納された画像
データは、パターン切出回路4によりその中から所定の
被検査パターンが切り出されてマッチング位置走査回路
6へ供給される。また、マッチング位置走査回路6には
、予め辞書メモリ回路5に格納された辞書パターンも供
給され、該マノチング位置走査回路6により被検査パタ
ーンと辞書パターンとのパターンマッチング位置が渦巻
状に走査されるようになされている。
The imaging system 1 is for taking an image of the inspection object with a camera, and the analog image signal from the imaging system 1 is digitized by the A/D conversion circuit 2 and sent to the frame memory circuit 3.
is stored in A predetermined pattern to be inspected is cut out from the image data stored in the frame memory circuit 3 by a pattern cutting circuit 4 and supplied to a matching position scanning circuit 6. Further, the matching position scanning circuit 6 is also supplied with a dictionary pattern stored in the dictionary memory circuit 5 in advance, and the pattern matching position between the pattern to be inspected and the dictionary pattern is scanned in a spiral manner by the matching position scanning circuit 6. It is done like this.

切り出された被検査パターンと辞書パターンとのパター
ンマンチング処理は、パターンマ,チング回路7で行わ
れ、被検査パターンと辞書パターンとの一致ビノトおよ
び不一致ビットを算出するようになされている。判定弁
別回路8は、パターンマッチング回路7で算出された不
一致ビット量に応じて出力信号を走査初点位置修正回路
9と判定回路10とに切り換えるものである。
Pattern munching processing between the extracted pattern to be inspected and the dictionary pattern is performed in a pattern munching circuit 7, which calculates matching bits and mismatching bits between the pattern to be inspected and the dictionary pattern. The judgment discrimination circuit 8 switches the output signal to the scan starting point position correction circuit 9 and the judgment circuit 10 according to the amount of mismatched bits calculated by the pattern matching circuit 7.

走査初点位置修正回路9は、パターンマッチング回路7
で算出された不一致ビット量Mが或る余裕度(1)を持
った所定の値S’(S+t)以下になったとき、渦巻状
の走査を行う初点の位置を該不一致ビット量が所定値以
下となった位置へ修正する(第5図を参照して後に詳述
する)もので、その修正する位置情報は走査初点位置修
正回路9からマッチング位置走査回路6へ供給されるよ
うになされている。
The scanning starting point position correction circuit 9 includes a pattern matching circuit 7
When the amount of mismatched bits M calculated in is equal to or less than a predetermined value S' (S+t) with a certain margin (1), the position of the starting point for spiral scanning is determined by the amount of mismatched bits. The position is corrected to the position that is below the value (described in detail later with reference to FIG. 5), and the position information to be corrected is supplied from the scanning starting point position correction circuit 9 to the matching position scanning circuit 6. being done.

判定回路10は、従来のパターン認識装置と同様のもの
で、パターンマッチング回路7で算出された不一致ビッ
ト量から、一致・不一致を判定するものである。そして
、判定回路10からの出力は、結果出力回路l1に供給
され、該結果出力回路l1から判定結果が出力される。
The determination circuit 10 is similar to a conventional pattern recognition device, and determines whether the pattern matches or does not match based on the amount of unmatched bits calculated by the pattern matching circuit 7. The output from the determination circuit 10 is supplied to the result output circuit l1, and the determination result is output from the result output circuit l1.

ここで、判定回路10の出力信号は、従来のパターン認
識装置と同様に、マソチング位置走査回路6に供給され
、被検査パターンに対する辞書パターンのパターンマッ
チング位置が渦巻状に順次走査されるようになされてい
る。
Here, the output signal of the determination circuit 10 is supplied to the masocing position scanning circuit 6, as in the conventional pattern recognition device, so that the pattern matching position of the dictionary pattern with respect to the pattern to be inspected is sequentially scanned in a spiral manner. ing.

このように、本実施例のパターン認識装置においては、
まず、マッチング位置走査回路6およびパターンマッチ
ング回路7によって、切り出し枠の中心を初点とした従
来と同様な渦巻状の走査が行われ、その走査位置でのマ
ソチングの程度(例えば、不一致ビット量)はパターン
マッチング回路7から判定弁別回路8に供給される。そ
して、判定弁別回路8において、被検査パターンに対し
て辞書パターンが半一致状態(辞書パターンの走査位置
が被検査パターンの至近位置にある状態)であると判別
されると、走査初点位置修正回路9およびマノチング位
置走査回路6により該至近位置が新たな初点となるよう
に渦巻状走査の初点位置が修正され、該新たな初点の位
置から新たな渦巻状の走査が行われる。そして、パター
ンマンチング回路7からのマンチング結果は、判定弁別
回路8によって、判定回路10に供給されるように切り
換えられ、該判定回路10で一致・不一致が判定される
。これによって、従来のパターン認識装置において行わ
れていた無駄な領域での走査(第8図における右上の領
域における渦巻状走査)を省略して被検査パターンに対
する辞書パターンのマッチング走査回数を削減すること
ができ、パターン認識に要する時間を短縮することが可
能となる。
In this way, in the pattern recognition device of this embodiment,
First, the matching position scanning circuit 6 and the pattern matching circuit 7 perform spiral scanning similar to the conventional method with the center of the cutting frame as the starting point, and determine the degree of masoching (for example, the amount of mismatched bits) at that scanning position. is supplied from the pattern matching circuit 7 to the judgment discrimination circuit 8. Then, when the judgment discrimination circuit 8 determines that the dictionary pattern is a semi-matching state to the pattern to be inspected (a state in which the scanning position of the dictionary pattern is in the closest position to the pattern to be inspected), the scanning initial point position is corrected. The starting point position of the spiral scan is corrected by the circuit 9 and the manoching position scanning circuit 6 so that the closest position becomes the new starting point, and a new spiral scan is performed from the new starting point position. Then, the munching result from the pattern munching circuit 7 is switched by the judgment discrimination circuit 8 so as to be supplied to the judgment circuit 10, and the judgment circuit 10 judges whether it is a match or a mismatch. As a result, it is possible to omit scanning in a wasteful area (spiral scanning in the upper right area in FIG. 8), which is performed in conventional pattern recognition devices, and reduce the number of matching scans of the dictionary pattern with the pattern to be inspected. This makes it possible to shorten the time required for pattern recognition.

第3図は本発明が適用される検査対象の一例を示す図で
ある。
FIG. 3 is a diagram showing an example of an object to be inspected to which the present invention is applied.

本実施例のパターン認識装置は、例えば、第3図に示さ
れるようなキーボード31の外観検査に使用されるもの
で、該キーボード31の所定個所(例えば、テンキー3
2の数字r8Jの位置)に正しいキートップ(例えば、
数字F8Jのキートソプ)が挿入されているかどうかを
検査するために使用されるものである。
The pattern recognition device of this embodiment is used, for example, to inspect the appearance of a keyboard 31 as shown in FIG.
2 number r8J position) at the correct key top (for example,
This is used to check whether the number F8J (Keatsoap) has been inserted.

第4図はフレームメモリ回路から切り出された被検査パ
ターンの一例を示す図である。
FIG. 4 is a diagram showing an example of a pattern to be inspected cut out from the frame memory circuit.

例えば、本実施例のパターン認識装置を使用してキーボ
ード3lの外観検査を行う場合、まず、撮像系1により
キーボート全体または所定範囲の画像を撮影し、この画
像信号をA/D変換回路2でデジタル化してフレームメ
モリ回路3へ格納する。
For example, when performing an external appearance inspection of the keyboard 3l using the pattern recognition device of this embodiment, first, an image of the entire keyboard or a predetermined range is taken by the imaging system 1, and this image signal is sent to the A/D conversion circuit 2. The data is digitized and stored in the frame memory circuit 3.

そして、例えば、キーボード3lのテンキー32におい
て、数字F8Jのキートップが挿入されるべき領域の画
像データをパターン切出回路4で切り出す。ここで、キ
ートップに刻印された数字[’3Jは、理想的には切り
出された枠の中央に位置することになるが、実際には、
第4図に示されるように、撮像系1とキーボードの位置
ずれ等に起因して、切り出し枠の中央に位置しないこと
が多い。
Then, for example, on the numeric keypad 32 of the keyboard 3l, the pattern cutting circuit 4 cuts out the image data of the area where the key top of the number F8J is to be inserted. Here, the number ['3J] engraved on the key top would ideally be located in the center of the cutout frame, but in reality,
As shown in FIG. 4, it is often not located at the center of the cutting frame due to misalignment between the imaging system 1 and the keyboard.

第4図の場合には、切り出し枠の左下の位置に偏ってい
る。このとき、切り出された被検査パターンに対して辞
書パターンを渦巻状に走査してパターンマッチングを行
うが、本発明のパターン認識装置では、さらに、渦巻状
の走査回数を削減してパターン認識に要する処理時間を
一層短縮するために、パターンマッチング回路7で算出
された不一致ビット量が或る余裕度を持った所定の値以
下になったとき、すなわち、辞書パターンが被検査パタ
ーンの至近にあって半一致であると判定弁別回路8が判
断したとき、渦巻状走査を行う初点を該不一致ビット量
が所定値以下となった位置へ修正するようになされてい
る。
In the case of FIG. 4, it is biased towards the lower left position of the cutting frame. At this time, pattern matching is performed by spirally scanning the dictionary pattern against the extracted pattern to be inspected, but the pattern recognition device of the present invention further reduces the number of spiral scans required for pattern recognition. In order to further reduce the processing time, when the amount of mismatched bits calculated by the pattern matching circuit 7 falls below a predetermined value with a certain margin, that is, when the dictionary pattern is close to the pattern to be inspected, When the determination discrimination circuit 8 determines that there is a half match, the starting point for spiral scanning is corrected to the position where the amount of mismatched bits is less than a predetermined value.

第5図は本発明のパターン認識装置における処理動作を
説明するための図である。
FIG. 5 is a diagram for explaining processing operations in the pattern recognition device of the present invention.

第2図を参照して述べたように、例えば、検査対象であ
るキーボード(際2図参照)は、撮像系1によりアナロ
グ信号として入力され、該アナログの画像信号はA/D
変換回路2によりデジタル化されてフレームメモリ回路
3に格納される。パターン切出回路4ではフレームメモ
リ回路3から、被検査パターンを切り出す(第4図参照
)。マッチング位置走査回路6で最初に切り出し枠の中
心P1をマッチング位置(渦巻状走査の初点)として、
辞書メモリ回路5から読み出された辞書パタ−ンとのパ
ターンマソチングをパターンマッチング回路7で行う。
As described with reference to FIG. 2, for example, the keyboard to be inspected (see FIG. 2) is input as an analog signal by the imaging system 1, and the analog image signal is sent to the A/D
The data is digitized by the conversion circuit 2 and stored in the frame memory circuit 3. The pattern cutting circuit 4 cuts out the pattern to be inspected from the frame memory circuit 3 (see FIG. 4). The matching position scanning circuit 6 first sets the center P1 of the cutting frame as the matching position (starting point of spiral scanning),
Pattern matching circuit 7 performs pattern matching with the dictionary pattern read out from dictionary memory circuit 5.

上記パターンマッチング回路7で算出された不一敗ビン
ト量Mは、判定弁別回路8に供給され、一敗・不一致を
判定する一致判定レヘルSよりも余裕度1(1は辞書パ
ターンにより異なる〕を付加した値S’(ここで、S”
 一S+t)で判定する。ここで、不一致ビット量Mの
値S゛による判定は、判定弁別回路8で行わずに、走査
初点位置修正回路9の前に前判定回路を設け、そこで行
うように構成することもできる。また、値S゛はパター
ンの一致とまではいかないが半一致(一致に近い)とい
うレベルである。
The no-lose bint amount M calculated by the pattern matching circuit 7 is supplied to the judgment discrimination circuit 8, and is given a margin of 1 (1 differs depending on the dictionary pattern) than the match judgment level S that judges one-lose/unmatched. The added value S' (here, S"
1S+t). Here, the determination based on the value S' of the mismatch bit amount M may not be performed by the determination discrimination circuit 8, but may be configured to be performed by providing a pre-determination circuit in front of the scanning starting point position correction circuit 9. Further, the value S' is not a pattern match, but is at a level of a semi-match (close to a match).

判定弁別回路8において、不一致ビット量M〉S゛、す
なわち、全く一致していない場合は、走査初点位置修正
回路9で渦巻状の走査方向を修正することなく、従来の
パターン認識装置と同様に、上記マッチング位置走査回
路6により渦巻状の走査をしながらパターンマッチング
を行なっていく。一方、判定弁別回路8において、不一
致ビット量M≦S゛ となる位置P2が存在した場合、
すなわち、辞書パターン位置が被検査パターンに近づい
た場合には、走査初点位置修正回路9にて、第5図の様
に位i P z (初点P1からの縦方向の距離m)を
渦巻状走査の新たな初点として、新たな渦巻状走査を行
うように走査方向を修正する。マッチング位置走査回路
6による初点P2からの新たな渦巻状走査を行ウて得ら
れる不一致ビット量M゛は、判定弁別回路8から判定回
路10へ供給され、一致判定レベルSと比較判定される
In the judgment discrimination circuit 8, if the mismatch bit amount M〉S゛, that is, they do not match at all, the scan starting point position correction circuit 9 does not correct the spiral scanning direction, and the process is performed in the same way as in the conventional pattern recognition device. Next, pattern matching is performed while performing spiral scanning using the matching position scanning circuit 6. On the other hand, in the judgment discrimination circuit 8, if there is a position P2 where the mismatch bit amount M≦S゛,
That is, when the dictionary pattern position approaches the pattern to be inspected, the scanning initial point position correction circuit 9 changes the position i P z (vertical distance m from the initial point P1) into a spiral as shown in FIG. As a new starting point of the spiral scan, the scan direction is modified to perform a new spiral scan. The mismatch bit amount M' obtained by performing a new spiral scan from the initial point P2 by the matching position scanning circuit 6 is supplied from the judgment discrimination circuit 8 to the judgment circuit 10, and is compared and judged with the match judgment level S. .

判定回路10において、不一致ビット量M゛がM゛〉S
、すなわち、パターンが一致してない場合は、さらに走
査を続ける。そして、不一致ビット量M≦Sとなる位置
P3(初点P1からの縦方向の距離l)が存在した場合
、すなわち辞書パターンと被検査対象のパターンが一致
した場合は、結果出力回路11からパターン一致が出力
される。また、切り出し枠内を全走査し、M≦S (M
’ ≦S)となる位置がない場合は、結果出力回路11
からパターン不一致が出力される。
In the determination circuit 10, the mismatch bit amount M゛ is M゛〉S
, that is, if the patterns do not match, scanning is continued. If there is a position P3 (vertical distance l from the initial point P1) where the amount of mismatched bits M≦S exists, that is, if the dictionary pattern and the pattern of the object to be inspected match, the result output circuit 11 outputs the pattern Matches are printed. Also, the entire inside of the cutting frame is scanned, and M≦S (M
' ≦S), the result output circuit 11
A pattern mismatch is output.

本実施例のパターン認識装置におけるマツチング走査回
数N゛は、第5図に示されるように、切り出し枠の中心
(最初の渦巻状走査の初点)Pから新たな渦巻状走査の
初点P2までの縦方向の距離をm,該新たな初点P2か
らパターン位置P3までの縦方向の距離をn(ここで、
l =m+ n )とすると、全走査回数N”はN’ 
# (2m+1)2十(2n±1)2−1となる。ここ
で、従来のパターン認識装置における全走査回数NはN
′=.(2f+1)2−(2 (m+n)+1) 2で
あるから、その差は、N−N’ 鵡8mnとなる。従っ
て、本実施例のパターン認識装置では、約8mn回だけ
マッチング走査回数を削減することができ、パターン認
識に要する時間を短縮することができることになる。
As shown in FIG. 5, the number of matching scans N' in the pattern recognition device of this embodiment is from the center of the cutting frame (the starting point of the first spiral scan) P to the starting point P2 of the new spiral scan. m, the vertical distance from the new starting point P2 to the pattern position P3 is n (here,
l = m + n), the total number of scans N'' is N'
# (2m+1)20(2n±1)2-1. Here, the total number of scans N in the conventional pattern recognition device is N
′=. (2f+1)2-(2 (m+n)+1)2, so the difference is N-N' 8mn. Therefore, in the pattern recognition apparatus of this embodiment, the number of matching scans can be reduced by about 8 mn times, and the time required for pattern recognition can be shortened.

〔発明の効果] 以上説明したように、本発明のパターン認識装置によれ
ば、辞書パターンの走査位置が被検査パターンの至近位
置に来たとき、渦巻状走査の初点を該至近位置へ修正し
、そこから渦巻状走査を再度行うことによって、マッチ
ング走査回数を削減してパターン認識に要する時間を短
縮することができる。
[Effects of the Invention] As explained above, according to the pattern recognition device of the present invention, when the scanning position of the dictionary pattern comes to the closest position to the pattern to be inspected, the starting point of the spiral scan is corrected to the closest position. However, by performing the spiral scan again from there, it is possible to reduce the number of matching scans and shorten the time required for pattern recognition.

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

第1図は本発明に係るパターン認識装置の原理を示すブ
ロック図、 第2図は本発明のパターン認識装置の一実施例を示すブ
ロック図、 第3図は本発明が適用される検査対象の一例を示す図、 第4図はフレームメモリ回路から切り出された被検査パ
ターンの一例を示す図、 第5図は本発明のパターン認識装置における処理動作を
説明するための図、 第6図は従来のパターン認識装置の一例を示すブロソク
図、 第7図はパターン認識装置における渦巻状の走査処理を
説明するための図、 第8図は従来のパターン認識装置における処理動作を説
明するための図である。 (符号の説明) A・・・渦巻状走査処理手段、 B・・・走査初点位置修正手段、 C・・・パターン判定手段、 1・・・撮像系、 2・・・A/D変換回路、 3・・・フレームメモリ回路、 4・・・パターン切出回路、 5・・・辞書メモリ回路、 6・・・マンチング位置走査回路、 7・・・パターンマンチンク回路、 8・・・判定弁別回路、 9・・・走査初点位置修正回路、 lO・・・判定回路、 11・・・結果出力回路。 切り出し枠 を説明するための図 マッチングイ位置 箪 8 M
FIG. 1 is a block diagram showing the principle of a pattern recognition device according to the present invention, FIG. 2 is a block diagram showing an embodiment of the pattern recognition device according to the present invention, and FIG. 3 is a block diagram showing an example of an inspection target to which the present invention is applied. FIG. 4 is a diagram showing an example of a pattern to be inspected cut out from a frame memory circuit. FIG. 5 is a diagram for explaining the processing operation in the pattern recognition device of the present invention. FIG. 6 is a conventional A block diagram showing an example of a pattern recognition device, FIG. 7 is a diagram for explaining spiral scanning processing in a pattern recognition device, and FIG. 8 is a diagram for explaining processing operations in a conventional pattern recognition device. be. (Explanation of symbols) A... Spiral scanning processing means, B... Scanning initial point position correction means, C... Pattern determination means, 1... Imaging system, 2... A/D conversion circuit , 3... Frame memory circuit, 4... Pattern cutting circuit, 5... Dictionary memory circuit, 6... Munching position scanning circuit, 7... Pattern munching circuit, 8... Judgment discrimination Circuit, 9... Scanning initial point position correction circuit, lO... Judgment circuit, 11... Result output circuit. Figure matching position for explaining the cutout frame 8 M

Claims (1)

【特許請求の範囲】 1、入力された画像データから切り出された被検査パタ
ーンを予め準備された辞書パターンによりパターンマッ
チングしてパターン認識を行うパターン認識装置であっ
て、 前記被検査パターンに対して前記辞書パターンを渦巻状
に走査する渦巻状走査処理手段(A)と、前記辞書パタ
ーンの走査位置が前記被検査パターンの至近位置に来た
とき、前記渦巻状走査処理手段による渦巻状走査の初点
を該至近位置へ修正する走査初点位置修正手段(B)と
、 前記被検査パターンと前記辞書パターンとの不一致ビッ
ト量から、一致・不一致を判定するパターン判定手段(
C)とを具備することを特徴とするパターン認識装置。 2、前記走査初点位置修正手段(B)は、前記被検査パ
ターンと前記辞書パターンとの不一致ビット量が或る余
裕度を持った所定の値以下になったとき、前記辞書パタ
ーンの走査位置が前記被検査パターンの至近位置に来た
として、前記渦巻状走査の初点を修正するようになって
いる請求項第1項に記載のパターン認識装置。 3、検査対象の画像を撮影する撮像系(1)と、該撮像
系からのアナログ画像信号をデジタル化するA/D変換
回路(2)と、 該A/D変換回路からのデジタル信号を格納するフレー
ムメモリ回路(3)と、 該フレームメモリ回路の中から被検査パターンを切り出
すパターン切出回路(4)と、 該切り出された被検査パターンと比較する辞書パターン
が予め格納された辞書メモリ回路(5)と、 前記被検査パターンと前記辞書パターンとのパターンマ
ッチング位置を走査するマッチング位置走査回路(6)
と、 前記切り出された被検査パターンと前記辞書パターンと
のパターンマッチングを行うパターンマッチング回路(
7)と、 前記パターンマッチング回路で算出された不一致ビット
量に応じて出力信号を切り換える判定弁別回路(8)と
、 該判定弁別回路により前記パターンマッチング回路で算
出された不一致ビット量が或る余裕度を持った所定の値
以下になったとき、渦巻状の走査を行う初点位置を該不
一致ビット量が所定値以下となった位置へ修正する走査
初点位置修正回路(9)と、 前記パターンマッチング回路で算出された不一致ビット
量から、一致・不一致を判定する判定回路(10)と、 該判定回路による判定結果を出力する結果出力回路(1
1)とを具備するパターン認識装置。
[Claims] 1. A pattern recognition device that performs pattern recognition by pattern matching a pattern to be inspected cut out from input image data using a dictionary pattern prepared in advance, the device comprising: spiral scanning processing means (A) for spirally scanning the dictionary pattern; and when the scanning position of the dictionary pattern comes close to the pattern to be inspected, the spiral scanning processing means (A) starts spiral scanning by the spiral scanning processing means. scanning starting point position correcting means (B) for correcting a point to the closest position; and pattern determining means (B) for determining whether there is a match or mismatch between the inspected pattern and the dictionary pattern based on the amount of mismatched bits between the pattern to be inspected and the dictionary pattern.
C) A pattern recognition device comprising: 2. The scanning initial point position correcting means (B) adjusts the scanning position of the dictionary pattern when the amount of mismatched bits between the pattern to be inspected and the dictionary pattern becomes less than or equal to a predetermined value with a certain margin. 2. The pattern recognition apparatus according to claim 1, wherein the starting point of said spiral scanning is corrected when said pattern has come close to said pattern to be inspected. 3. An imaging system (1) that captures images of the inspection target, an A/D conversion circuit (2) that digitizes analog image signals from the imaging system, and stores digital signals from the A/D conversion circuit. a frame memory circuit (3) for extracting a pattern to be inspected from the frame memory circuit; a pattern extraction circuit (4) for extracting a pattern to be inspected from the frame memory circuit; and a dictionary memory circuit in which a dictionary pattern to be compared with the extracted pattern to be inspected is stored in advance. (5); and a matching position scanning circuit (6) that scans a pattern matching position between the pattern to be inspected and the dictionary pattern.
and a pattern matching circuit that performs pattern matching between the extracted pattern to be inspected and the dictionary pattern (
7); a determination discrimination circuit (8) that switches an output signal according to the amount of mismatched bits calculated by the pattern matching circuit; a scan starting point position correction circuit (9) that corrects the starting point position for spiral scanning to the position where the amount of mismatched bits becomes less than a predetermined value when the amount of mismatched bits becomes less than a predetermined value; A determination circuit (10) that determines whether there is a match or a mismatch based on the amount of mismatched bits calculated by the pattern matching circuit, and a result output circuit (10) that outputs the determination result of the determination circuit.
1) A pattern recognition device comprising:
JP2011775A 1990-01-23 1990-01-23 Pattern recognition device Expired - Lifetime JP2913103B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011775A JP2913103B2 (en) 1990-01-23 1990-01-23 Pattern recognition device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011775A JP2913103B2 (en) 1990-01-23 1990-01-23 Pattern recognition device

Publications (2)

Publication Number Publication Date
JPH03217981A true JPH03217981A (en) 1991-09-25
JP2913103B2 JP2913103B2 (en) 1999-06-28

Family

ID=11787336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011775A Expired - Lifetime JP2913103B2 (en) 1990-01-23 1990-01-23 Pattern recognition device

Country Status (1)

Country Link
JP (1) JP2913103B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277275A (en) * 2005-03-29 2006-10-12 Seiko Epson Corp Image processor, printer, image processing method and image processing program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006277275A (en) * 2005-03-29 2006-10-12 Seiko Epson Corp Image processor, printer, image processing method and image processing program

Also Published As

Publication number Publication date
JP2913103B2 (en) 1999-06-28

Similar Documents

Publication Publication Date Title
EP0045803A1 (en) System and method for processing horizontal line characteristics in an image
JPH03217981A (en) Pattern recognizer
JP2954968B2 (en) Optical character reader and method of adding subset information in optical reader
JPH07230525A (en) Method for recognizing ruled line and method for processing table
JPH0157837B2 (en)
JP3074691B2 (en) Character recognition device
JPH10153407A (en) Measuring and processing device
JPS6111886A (en) Character recognition system
JPH05223877A (en) Defect sensing and tye acknowleging system for printed circuit board using graph information
JPH06187450A (en) Pattern recognizing method and device therefor
JPH0688707A (en) Method and apparatus for detecting position
JPS63163678A (en) Picture automatic collating device
JPS58151685A (en) Character recognizing device
JPH04276888A (en) Character reader
JPH0896077A (en) Symbol string inclination detector and method therefor
JPH11161739A (en) Character recognizing device
JPS63208180A (en) Character recognizing device
JPH11353412A (en) Correcting method for character inscription coordinate, format selecting method, and optical character reader
JPH08201037A (en) Pattern inspection device and method
JPH0475184A (en) Input device
JPH08287190A (en) Optical character reader
JPH04365189A (en) Method and device for picture processing
JPH0554089A (en) Graphic recognizing device and recognition error correcting device
JPH10134139A (en) Method and device for recognizing and correcting image
JPS58219681A (en) Reference position determining method of character pattern

Legal Events

Date Code Title Description
S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090416

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100416

Year of fee payment: 11

EXPY Cancellation because of completion of term
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100416

Year of fee payment: 11