JPH0769959B2 - Vertex detection method for pattern recognition - Google Patents

Vertex detection method for pattern recognition

Info

Publication number
JPH0769959B2
JPH0769959B2 JP63003551A JP355188A JPH0769959B2 JP H0769959 B2 JPH0769959 B2 JP H0769959B2 JP 63003551 A JP63003551 A JP 63003551A JP 355188 A JP355188 A JP 355188A JP H0769959 B2 JPH0769959 B2 JP H0769959B2
Authority
JP
Japan
Prior art keywords
pattern
detection processing
contour
vertex
area
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
JP63003551A
Other languages
Japanese (ja)
Other versions
JPH01180076A (en
Inventor
英彦 高野
昭一 木村
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.)
Amada Co Ltd
Original Assignee
Amada Co 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 Amada Co Ltd filed Critical Amada Co Ltd
Priority to JP63003551A priority Critical patent/JPH0769959B2/en
Publication of JPH01180076A publication Critical patent/JPH01180076A/en
Publication of JPH0769959B2 publication Critical patent/JPH0769959B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、加工機の自動化に伴うマテリアル・ハンドリ
ング等に際して、部材の位置等を計測する場合に有効に
利用できるパターン認識技術に関するものであり、特
に、そのパターン認識のための頂点検出を行う方法に関
するものである。
TECHNICAL FIELD The present invention relates to a pattern recognition technique that can be effectively used when measuring the position of a member or the like in material handling and the like accompanying automation of a processing machine. In particular, it relates to a method for detecting vertices for pattern recognition.

[従来の技術] 本発明者らは、先に特公昭56−47581号において、図形
パターンの各頂点を検出することによりパターン認識等
を行う方法を提案している。
[Prior Art] The inventors of the present invention have previously proposed a method of performing pattern recognition or the like by detecting each vertex of a graphic pattern in Japanese Patent Publication No. 56-47581.

それは、本明細書において輪郭追跡による頂点検出と呼
ぶ方法についての提案であり、具体的には、対象物体を
テレビカメラ等のパターン入力装置により2次元的な図
形パターンとして取込み、その走査線上の各サンプル点
についての出力をAD変換によりサンプル点の明暗に応じ
た2値化信号とし、これによって得られた2値化マトリ
クス・パターンについて次のような処理を行うことによ
り、図形パターンの形状等を認識するものである。
It is a proposal for a method called apex detection by contour tracking in the present specification. Specifically, a target object is captured as a two-dimensional figure pattern by a pattern input device such as a television camera, and each of the scan lines is scanned. The output of the sample points is converted into a binary signal according to the brightness of the sample points by AD conversion, and the binarized matrix pattern thus obtained is subjected to the following processing to determine the shape of the figure pattern, etc. To recognize.

上記2値化マトリクス・パターンの処理は、その2値化
マトリクス・パターンにおける相隣接する2×2のメッ
シュポイントに着目し、それらの4つのポイントにおけ
るいずれのデータが2値化された0または1であるかに
よって、図形パターンの輪郭、即ち実部と空部の間の境
界線におけるデータについて、その輪郭線の線分の方向
をマーキングするための信号の変換を行い、次いで、そ
れによって変換された変換情報におけるパターン輪郭部
を一巡し、その変換情報に基づいてパターンの頂点(コ
ーナー)の存在を検出し、図形パターンを認識するため
のデータとするものである。
In the processing of the binarized matrix pattern, attention is paid to adjacent 2 × 2 mesh points in the binarized matrix pattern, and any data at these four points is binarized 0 or 1 Depending on whether the contour of the graphic pattern, that is, the data at the boundary line between the real part and the empty part, is converted into a signal for marking the direction of the line segment of the contour line, and then converted. The pattern contour portion in the conversion information is circulated once, and the existence of the apex (corner) of the pattern is detected based on the conversion information, and the data is used for recognizing the graphic pattern.

このような方法によって図形パターンの認識を行う場合
には、上述したように変換情報におけるパターン輪郭部
を一巡して頂点の存在を検出するため、マトリクス・パ
ターン内に図形パターンの全体像を捉えておく必要があ
り、必然的に、頂点検出のアルゴリズムも、パターン輪
郭部を一巡して頂点の存在を検出することを前提とす
る。従って、マトリクス・パターンに図形パターンの全
体像が捉えられていない場合、即ち図形パターンがマト
リクス・パターンの周辺部分にまで達している場合に
は、頂点検出を行うことができず、それを可能にするた
めには、別途アルゴリズムによる頂点検出を可能にする
必要がある。
When a figure pattern is recognized by such a method, as described above, the existence of vertices is detected by making a round of the pattern contour portion in the conversion information. Inevitably, the apex detection algorithm is also premised on detecting the existence of the apex by going around the pattern contour portion. Therefore, when the matrix pattern does not capture the whole image of the figure pattern, that is, when the figure pattern reaches the peripheral portion of the matrix pattern, the vertex detection cannot be performed and it is possible to do so. In order to do so, it is necessary to enable vertex detection by a separate algorithm.

[発明が解決しようとする課題] 本発明の目的は、上述のマトリクス・パターン内に図形
パターンの全体像が捉えられることなく、従って、図形
パターンがマトリクス・パターンの周辺部分にまで達し
ている場合にも、一般的な頂点検出のアルゴリズム、即
ちマトリクス・パターンに図形パターンの全体像が捉え
られている場合に用いられる頂点検出のアルゴリズムを
そのまま利用可能にし、処理装置の簡素化を図ることに
ある。
[Problems to be Solved by the Invention] An object of the present invention is to provide a case in which the entire image of a figure pattern is not captured in the above-mentioned matrix pattern, and therefore the figure pattern reaches the peripheral portion of the matrix pattern. Also, the general vertex detection algorithm, that is, the vertex detection algorithm used when the whole image of the figure pattern is captured in the matrix pattern can be used as it is, and the processing device can be simplified. .

[課題を解決するための手段] 上記目的を達成するための本発明の頂点検出方法は、対
象物体を2次元的な図形パターンとして取込み、その各
サンプル点についての出力をサンプル点の明暗に応じた
2値化信号とし、これによって得られた2値化マトリク
ス・パターンの全部または一部領域についての頂点検出
処理に際し、図形パターンの輪郭部におけるデータを、
隣接するメッシュポイントのデータが2値化された0ま
たは1であるかによって、その輪郭線の方向に関して分
類し、その分類付けされたデータを図形パターンの輪郭
線に沿って追跡して、図形パターンの頂点の検出を行う
パターン認識処理において、上記マトリクス・パターン
における検出処理領域の周囲に、図形パターンの輪郭部
に沿って上記データの分類を行うのに必要なピクセル数
の空白部分を付設して、その検出処理領域を拡大し、こ
の拡大された検出処理領域について、図形パターンの輪
郭部に沿って一周する頂点検出処理を行うことにより、
その図形パターンの頂点を検出することを特徴とし、さ
らに、上記頂点検出処理を行った後、検出された図形パ
ターンの頂点のうちで、上記検出領域の拡大部分に接す
る位置において検出された頂点を除き、それ以外を図形
パターンの頂点として検出することを特徴とするもので
ある。
[Means for Solving the Problems] The vertex detection method of the present invention for achieving the above object captures a target object as a two-dimensional graphic pattern, and outputs the output for each sample point according to the brightness of the sample point. Data in the contour portion of the graphic pattern in the vertex detection processing for all or a part of the binarized matrix pattern obtained by
Depending on whether the data of the adjacent mesh points is 0 or 1 which is binarized, it is classified with respect to the direction of the contour line, and the classified data is traced along the contour line of the graphic pattern to obtain the graphic pattern. In the pattern recognition process for detecting the vertices of the pattern, a blank part with the number of pixels necessary for classifying the data along the outline of the figure pattern is attached around the detection process area in the matrix pattern. , By enlarging the detection processing area and performing apex detection processing for one round along the contour portion of the figure pattern for the expanded detection processing area,
It is characterized by detecting the vertices of the figure pattern, and further, after performing the above-mentioned vertex detection processing, among the vertices of the detected figure pattern, the vertices detected at the position in contact with the enlarged portion of the detection area are detected. It is characterized in that the others are detected as the vertices of the figure pattern.

[実施例] 以下に本発明の実施例について詳述する。[Examples] Examples of the present invention will be described in detail below.

一般に、計測域に置かれた物体の形状、位置等の計測を
行うパターン認識においては、その対象物体をテレビカ
メラ等のパターン入力装置により2次元的な図形パター
ンとして取込み、その走査線上の各サンプル点について
の出力をAD変換によりサンプル点の明暗に応じた2値化
信号とし、これによって得られた2値化マトリクス・パ
ターンの処理により、図形パターンの形状や位置の認識
が行われ、その認識処理方法としては各種の方法があ
る。そして、これらの方法においては、通常、2値化し
た図形パターンの輪郭部における頂点の抽出を行い、そ
のデータに基づいて図形パターンの認識が行われる。
Generally, in pattern recognition for measuring the shape, position, etc. of an object placed in a measurement area, the target object is captured as a two-dimensional figure pattern by a pattern input device such as a television camera, and each sample on the scanning line is captured. The output of the points is converted into a binary signal according to the lightness and darkness of the sample points by AD conversion, and the shape and position of the figure pattern is recognized by the processing of the binary matrix pattern obtained by this, and the recognition There are various methods of processing. In these methods, usually, the vertices in the contour portion of the binarized graphic pattern are extracted, and the graphic pattern is recognized based on the data.

このような図形パターンの認識を行う場合には、前述し
たように、図形パターンの輪郭部を一巡して頂点の存在
を検出するため、マトリクス・パターン内に図形パター
ンの全体像を捉えておくことを前提とした頂点検出のア
ルゴリズムが採用されるが、この点は本発明においても
同様である。
When recognizing such a graphic pattern, as described above, it is necessary to capture the whole image of the graphic pattern in the matrix pattern in order to detect the existence of vertices by going around the outline portion of the graphic pattern. The vertex detection algorithm based on the above is adopted, but this point is the same in the present invention.

しかるに、そのような頂点検出のアルゴリズムは、マト
リクス・パターンに図形パターンの全体像が捉えられて
いない場合、即ち図形パターンがマトリクス・パターン
の周辺部分にまで達している場合には、そのまま利用す
ることができない。
However, such an apex detection algorithm should be used as it is when the whole image of the figure pattern is not captured in the matrix pattern, that is, when the figure pattern reaches the peripheral portion of the matrix pattern. I can't.

このような問題に対処し、本発明の方法においては、図
形パターンの全体像が捉えられていないマトリクス・パ
ターンに対して後述するような処理を施すことにより、
上記アルゴリズムによる頂点検出を可能にするものであ
る。
To deal with such a problem, in the method of the present invention, by performing the processing described later on the matrix pattern in which the entire image of the graphic pattern is not captured,
It enables the vertex detection by the above algorithm.

なお、本発明は、各種のアルゴリズムによる2値化マト
リクス・パターンの処理により図形パターンの形状や位
置の認識を行う場合に適用でき、さらに、2値化マトリ
クス・パターンの全部または一部領域についての頂点検
出処理を行う場合、また適宜理由によって図形パターン
がマトリクス・パターンの周辺部分にまで達している場
合、例えばパターン入力装置により図形パターンの一部
の像のみを取込んだ場合等にも適用できるが、ここで
は、本発明者らが先に特願昭62−256804号により提案し
たアフィン逆変換による図形パターンの姿勢角・位置計
測方法において、特徴点コーナーの位置を高精度に検出
するためのウインドを設定し、このウインド内を頂点の
検出処理領域とする場合(同日出願により提案:発明の
名称「パターン認識のための特徴点コーナーの位置計測
方法」)について説明する。
The present invention can be applied to the case of recognizing the shape and position of a graphic pattern by processing a binarized matrix pattern by various algorithms. Further, the present invention can be applied to all or a part of the binarized matrix pattern. It can also be applied to the case of performing vertex detection processing, or when the figure pattern reaches the peripheral portion of the matrix pattern for some reason, for example, when only a part of the figure pattern is captured by the pattern input device. However, here, in the attitude angle / position measuring method of the figure pattern by the affine inverse transformation proposed by the present inventors in Japanese Patent Application No. 62-256804, the position of the feature point corner is detected with high accuracy. When a window is set and the inside of this window is used as the vertex detection processing area (proposed by the application on the same day: Position measurement of the feature point corner of the eye method ") will be described.

先ず、上記アフィン逆変換を利用した姿勢角・位置計測
方法の概要について説明すると、同計測方法において
は、計測対象の図形パターンが、テレビカメラ等のパタ
ーン入力装置により2値化したマトリクス・パターンと
して画像処理装置に入力される。この場合に、図形パタ
ーンの認識精度を高めるためには、1024×1024程度の比
較的大容量メモリが用いられる。
First, an outline of a posture angle / position measurement method using the above-mentioned affine inverse transformation will be described. In the measurement method, a graphic pattern to be measured is a matrix pattern binarized by a pattern input device such as a television camera. It is input to the image processing device. In this case, in order to improve the recognition accuracy of the graphic pattern, a relatively large capacity memory of about 1024 × 1024 is used.

画像処理装置においては、そのマトリクス・パターンに
おける相隣接する2×2のメッシュポイントに着目し、
それらの4つのポイントにおけるいずれのデータが2値
化された0または1であるかによって、図形パターンの
輪郭、即ち実部と空部の間の境界線におけるデータを、
その輪郭線の方向に関して分類し、さらに図形パターン
の輪郭線に沿ってその分類付けされたデータを追跡し
て、図形パターンの頂点が検出され、即ち輪郭追跡によ
る頂点検出が行われ、その頂点の座標が求められる。
In the image processing device, paying attention to adjacent 2 × 2 mesh points in the matrix pattern,
Depending on which data at those four points is a binary 0 or 1, the contour of the graphic pattern, that is, the data at the boundary between the real part and the empty part,
The vertices of the figure pattern are detected by classifying with respect to the direction of the contour line and tracing the classified data along the contour line of the figure pattern. The coordinates are calculated.

一方、上記図形パターンが基準位置にある場合の基準パ
ターンは、他の各種基準パターンと共に画像処理装置内
の記憶装置に予め記憶させておき、上記頂点検出を行っ
た図形パターンについては、アフィン逆変換によって基
準パターンに対する姿勢角・位置ずれを計測するに先立
って、どの基準パターンと対応関係を有するか、また図
形パターンにおける特定の頂点が、対応する基準パター
ンの頂点のデータ群のどれに対応するのかが判別され
る。
On the other hand, the reference pattern in the case where the figure pattern is at the reference position is stored in advance in the storage device in the image processing apparatus together with other various reference patterns, and the figure pattern subjected to the above-mentioned vertex detection is subjected to affine inverse transformation. Prior to measuring the posture angle / positional deviation with respect to the reference pattern, which reference pattern has a correspondence relationship, and which specific vertex in the figure pattern corresponds to which data group of the corresponding reference pattern vertex Is determined.

上記図形パターンと基準パターンとのアフィン逆変換に
よる姿勢角・位置ずれの計測に際しては、輪郭追跡によ
り検出した二つの相互の距離が最も大きい特定の頂点を
特徴点コーナーとして、これらの特徴点コーナーに対応
する基準パターン上の特徴点コーナーとの座標関係か
ら、図形パターンの姿勢角及び位置ずれが求められる。
When measuring the posture angle / positional deviation by the affine inverse transformation between the graphic pattern and the reference pattern, the specific vertex with the largest mutual distance between the two detected by contour tracing is set as the feature point corner, and The posture angle and the positional deviation of the graphic pattern are obtained from the coordinate relationship with the feature point corner on the corresponding reference pattern.

本発明者らが先に提案している図形パターンの姿勢角・
位置計測方法においては、上述した過程により図形パタ
ーンの認識を行うようにしているが、この場合に、認識
精度を高めるために1024×1024程度の比較的大容量メモ
リを用いると、データの処理に非常に長い時間を必要と
する。
The posture angle of the graphic pattern previously proposed by the present inventors
In the position measurement method, the figure pattern is recognized through the above process. In this case, if a relatively large capacity memory of about 1024 × 1024 is used to improve the recognition accuracy, the data processing can be performed. It takes a very long time.

このデータ処理時間を短縮するためには、2値化マトリ
クス・パターンに対して以下に説明するような「ウイン
ド」を適用し、その2値化マトリクス・パターンの一部
を頂点の検出領域とすることにより、データ処理時間の
短縮化を図ることができる。この場合には、上記ウイン
ドの設定のため、予め特徴点コーナーの概略図な位置が
わかっていることが前提となるが、このような概略位置
は、テレビカメラ等のパターン入力装置と認識対象物体
の位置的関係が常に一定の範囲内にある場合などに計測
するまでもなく既知であり、また上記対象物体の2値化
マトリクス・パターンの簡単な処理(本発明者らが同日
出願により別途提案:発明の名称「図形パターンの概略
的輪郭形状計測方法」)によっても、容易に、しかも実
時間的に得られるものである。
In order to reduce the data processing time, a "window" as described below is applied to the binarized matrix pattern, and a part of the binarized matrix pattern is used as a vertex detection area. As a result, the data processing time can be shortened. In this case, it is premised that the schematic position of the feature point corner is known in advance for setting the window, but such a schematic position is determined by the pattern input device such as a television camera and the recognition target object. Is known without needing to measure it when the positional relationship between the target object and the target object is always within a certain range, and a simple processing of the binarized matrix pattern of the target object (the inventors of the present application filed on the same day and separately proposed. It can be obtained easily and in real time by the title of the invention “method of measuring outline shape of figure pattern”).

特徴点コーナーの概略的な位置がわかったときは、その
特徴点コーナーの周辺にウインドを設定し、ウインド内
のみのデータ処理により、特徴点コーナーの正確な座標
計測を短時間に行うことが可能になる。上記ウインドの
水平及び垂直方向のサイズは、特徴点コーナーに隣接し
ている頂点の座標値との関連において適切に設定する必
要がある。
When the approximate position of the feature point corner is known, a window is set around the feature point corner, and data processing only within the window enables accurate coordinate measurement of the feature point corner in a short time. become. The horizontal and vertical sizes of the windows need to be set appropriately in relation to the coordinate values of the vertices adjacent to the feature point corners.

このような方法によって特徴点コーナーの認識を行う場
合には、必然的に、図形パターンの一部がウインド即ち
マトリクス・パターンにおける検出処理領域の周辺部分
にまで達することになる。そのため、パターン輪郭部を
一巡して頂点の存在を検出しようとしても、ウインドの
周辺に達することにより一巡ができなくなり、一般的な
輪郭追跡による頂点検出のアルゴリズムを利用すること
ができない。
When the feature point corner is recognized by such a method, a part of the figure pattern inevitably reaches the window, that is, the peripheral part of the detection processing area in the matrix pattern. Therefore, even if an attempt is made to detect the existence of vertices by making a round in the pattern contour portion, it becomes impossible to make a round by reaching the periphery of the window, and it is not possible to use a general vertex detection algorithm for contour tracing.

このような問題に対処し、一般的な輪郭追跡による頂点
検出のアルゴリズムを利用可能にするため、上記マトリ
クス・パターンにおける頂点検出に先立ち、そのマトリ
クス・パターンにおけるウインドの全周には、図形パタ
ーンの輪郭部に沿って一周する頂点検出処理に必要な数
ピクセス巾の空白部分が付設され、それにより検出処理
領域を拡大したうえで上記アルゴリズムによる輪郭追跡
による頂点検出が行われる。この空白部分の付設は、図
形パターンが認識領域からはみ出しているか否かにかか
わらず、認識領域の周囲4辺について行われる処理であ
る。
In order to deal with such a problem and to make available a general vertex-tracking vertex detection algorithm, prior to the vertex detection in the matrix pattern, the figure pattern is formed around the entire window of the matrix pattern. A blank portion having a width of several pixels necessary for the vertex detection processing, which makes one round along the contour portion, is provided, thereby expanding the detection processing area and performing vertex detection by contour tracing by the above algorithm. The provision of the blank portion is a process performed for the four sides around the recognition area regardless of whether the graphic pattern is outside the recognition area.

上記空白部分の付設に際しては、第1図に模式的に示す
ような上記ウインドに対応する画像メモリのM−N座標
系において、最初に同図(A)のm×nのマトリクス・
パターンに示すような図形パターンの輪郭部が存在した
とし、さらに上記輪郭追跡による頂点検出のアルゴリズ
ムにおいて周囲に2ピクセルの空白部分が必要であると
すると、その2値化マトリクス・パターンは、同図
(B)に示すように(m+4)×(n+4)に拡大さ
れ、点線の位置にあった図形パターンの輪郭部が実線の
位置に移される。
When attaching the blank portion, first, in the MN coordinate system of the image memory corresponding to the window as schematically shown in FIG. 1, the m × n matrix of FIG.
Assuming that there is a contour portion of the figure pattern as shown in the pattern, and further that a blank portion of 2 pixels is required in the surroundings in the vertex detection algorithm by contour tracing, the binarized matrix pattern is as shown in FIG. As shown in (B), it is enlarged to (m + 4) × (n + 4), and the contour portion of the graphic pattern at the position of the dotted line is moved to the position of the solid line.

この後に行う輪郭追跡による頂点検出のアルゴリズム
は、図形パターンの輪郭部を一巡して頂点の存在を検出
するために、マトリクス・パターン内に図形パターンの
全体像を捉えておくことを前提とする一般的なものであ
り、そのため、上記マトリクス・パターンの拡大巾は、
この頂点検出アルゴリズムにおいて必要な値に設定され
るものである。具体的には、前述したように、2値化マ
トリクス・パターンにおける相隣接する2×2のメッシ
ュポイントに着目し、それらの4つのポイントにおける
いずれのデータが2値化された0または1であるかによ
って図形パターンの輪郭部における信号の変換を行う場
合、m×nのマトリクス・パターンにおける各周辺に
は、それぞれ2ピクセルの拡大部分が設けられる。
The apex detection algorithm by contour tracing, which is performed after this, generally assumes that the whole image of the figure pattern is captured in the matrix pattern in order to detect the existence of the vertices by going around the contour part of the figure pattern. Therefore, the expansion width of the matrix pattern is
It is set to a required value in this vertex detection algorithm. Specifically, as described above, attention is paid to adjacent 2 × 2 mesh points in the binarized matrix pattern, and any data at these four points is a binarized 0 or 1. When the signal conversion in the contour portion of the graphic pattern is performed by the above, an enlarged portion of 2 pixels is provided in each periphery of the m × n matrix pattern.

このような検出処理領域の拡大は、第2図のフローチャ
ートによって示すように、i及びjの値をそれぞれm及
びnから順次減少させながら、画像アドレス(i,j)の
データを画像アドレス(i+2,j+2)に移動させ、最
後に周辺の拡大部分にあるデータをクリアすることによ
り完了させることができる。
As shown in the flowchart of FIG. 2, the expansion of the detection processing area is performed by reducing the values of i and j from m and n, respectively, while the data of the image address (i, j) is changed to the image address (i + 2). , j + 2), and finally clear the data in the surrounding enlarged portion to complete.

このようにして空白部分の付設による検出処理領域の拡
大を行うと、ウインドに対応する画像メモリと拡大部分
を加えた容量を有するコピー用の画像メモリを別々に用
意せずに、画像メモリにおけるウインドと同一の領域を
用いることができ、メモリの使用効率が非常に高くな
る。また、操作原理が非常に簡単で処理が単純であるた
め、容易にハードウエア化でき、高速処理が可能であ
る。そして、この処理を予め行うことによって、輪郭追
跡時に図形パターンが認識領域の端に達したどうかの複
雑な判断処理機能、即ち、領域端検出アルゴリズムを付
加して、処理量・処理時間を増大させることなく、従来
の単純な輪郭追跡アルゴリズムを用いて高速に輪郭追跡
を行うことが可能となる。
When the detection processing area is enlarged by adding a blank portion in this way, the image memory corresponding to the window and the image memory for copying having the capacity including the enlarged portion are not separately prepared, and the window in the image memory is not prepared. The same area can be used, and the memory usage efficiency becomes very high. Moreover, since the operation principle is very simple and the processing is simple, it can be easily implemented as hardware and high-speed processing is possible. By performing this processing in advance, a complicated judgment processing function of whether or not the figure pattern has reached the edge of the recognition area during contour tracing, that is, an area edge detection algorithm is added to increase the processing amount and processing time. Without using the conventional simple contour tracing algorithm, contour tracing can be performed at high speed.

次に、上述したところにより拡大された検出処理領域に
ついて、図形パターンの輪郭部に沿って一周する頂点検
出処理、即ち前述の輪郭追跡による頂点検出を行うが、
上記拡大により輪郭部を一巡して信号の変換等が可能で
あるため、一般的に用いられている頂点検出のアルゴリ
ズムをそのまま利用することができる。
Next, with respect to the detection processing area enlarged as described above, the vertex detection processing for making a round along the contour portion of the graphic pattern, that is, the vertex detection by the contour tracing described above is performed.
Because of the enlargement, it is possible to make a round of the contour portion to convert the signal, etc., so that the generally used vertex detection algorithm can be used as it is.

また、このような方法によって頂点検出を行った場合に
は、上記検出領域の拡大部分に接する位置において、本
来は検出されはずのない頂点が検出されることになる。
従って、それらを除いて本来の特徴点コーナーを抽出す
る必要があるが、この処理は、輪郭追跡により検出され
た頂点の座標値が下記の不等式のいずれかを満足すれ
ば、検出領域の拡大により生じた頂点であるとして、そ
れを特徴点コーナーから除外すればよい。
Further, when the vertices are detected by such a method, the vertices that should not be originally detected are detected at the position in contact with the enlarged portion of the detection area.
Therefore, it is necessary to extract the original feature point corners excluding them, but this processing is performed by expanding the detection area if the coordinate values of the vertices detected by contour tracing satisfy any of the following inequalities. If it is a generated vertex, it may be excluded from the feature point corner.

Mi≦3, Mi≧m+2, Ni≦3, Ni≧n+2 なお、このような不等式の計算は、単純な整数計算であ
って、それにより検出した頂点が求めようとしている特
徴点コーナーであるか否かを判定できるので、非常に高
速で処理することができる。
Mi ≦ 3, Mi ≧ m + 2, Ni ≦ 3, Ni ≧ n + 2 Note that the calculation of such inequalities is a simple integer calculation, and whether or not the detected vertex is the feature point corner to be obtained. Since it can be determined whether or not it can be processed at a very high speed.

[発明の効果] 以上に詳述した本発明の方法によれば、マトリクス・パ
ターン内に図形パターンの全体像が捉えられることな
く、従って図形パターンがマトリクス・パターンの周辺
部分にまで達している場合にも、一般的な頂点検出のア
ルゴリズムをそのまま利用することができ、処理装置の
簡素化を図ることができる。
[Effects of the Invention] According to the method of the present invention described in detail above, when the entire image of the graphic pattern is not captured in the matrix pattern, and therefore the graphic pattern reaches the peripheral portion of the matrix pattern. Also, a general vertex detection algorithm can be used as it is, and the processing device can be simplified.

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

第1図(A)(B)は本発明に係る方法についての説明
図、第2図は上記方法における検出処理領域の拡大等に
関して説明するためのフローチャートである。
1 (A) and (B) are explanatory views of the method according to the present invention, and FIG. 2 is a flow chart for explaining the expansion of the detection processing area in the above method.

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】対象物体を2次元的な図形パターンとして
取込み、その各サンプル点についての出力をサンプル点
の明暗に応じた2値化信号とし、これによって得られた
2値化マトリクス・パターンの全部または一部領域につ
いての頂点検出処理に際し、図形パターンの輪郭部にお
けるデータを、隣接するメッシュポイントのデータが2
値化された0または1であるかによって、その輪郭線の
方向に関して分類し、その分類付けされたデータを図形
パターンの輪郭線に沿って追跡して、図形パターンの頂
点の検出を行うパターン認識処理において、 上記マトリクス・パターンにおける検出処理領域の周囲
に、図形パターンの輪郭部に沿って上記データの分類を
行うのに必要なピクセル数の空白部分を付設して、その
検出処理領域を拡大し、 この拡大された検出処理領域について、図形パターンの
輪郭部に沿って一周する頂点検出処理を行うことによ
り、その図形パターンの頂点を検出する、 ことを特徴とするパターン認識のための頂点検出方法。
1. A target object is captured as a two-dimensional graphic pattern, and the output for each sample point is converted into a binarized signal corresponding to the lightness and darkness of the sample point, and a binarized matrix pattern obtained by this is obtained. At the time of the vertex detection processing for all or part of the area, the data in the contour portion of the graphic pattern is
Pattern recognition for classifying the direction of the contour line depending on whether the value is 0 or 1 and tracing the classified data along the contour line of the figure pattern to detect the vertices of the figure pattern. In the processing, the detection processing area is enlarged by adding a blank area around the detection processing area in the matrix pattern, which has the number of pixels required to classify the data along the outline of the graphic pattern. A vertex detection method for pattern recognition, characterized in that the apex of the figure pattern is detected by performing apex detection processing that makes a round along the contour portion of the figure pattern for the enlarged detection processing area. .
【請求項2】対象物体を2次元的な図形パターンとして
取込み、その各サンプル点についての出力をサンプル点
の明暗に応じた2値化信号とし、これによって得られた
2値化マトリクス・パターンの全部または一部領域につ
いての頂点検出処理に際し、図形パターンの輪郭部にお
けるデータを、隣接するメッスポイントのデータが2値
化された0または1であるかによって、その輪郭線の方
向に関して分類し、その分類付けされたデータを図形パ
ターンの輪郭線に沿って追跡して、図形パターンの頂点
の検出を行うパターン認識処理において、 上記マトリクス・パターンにおける検出処理領域の周囲
に、図形パターンの輪郭部に沿って上記データの分類を
行うのに必要なピクセル数の空白部分を付設して、その
検出処理領域を拡大し、 この拡大された検出処理領域について、図形パターンの
輪郭部に沿って一周する頂点検出処理を行い、 それにより検出された図形パターンの頂点のうちで、上
記検出領域の拡大部分に接する位置において検出された
頂点を除き、それ以外を図形パターンの頂点として検出
する、 ことを特徴とするパターン認識のための頂点検出方法。
2. A target object is captured as a two-dimensional graphic pattern, and the output for each sample point is converted into a binarized signal according to the lightness and darkness of the sample point, and the binarized matrix pattern obtained thereby is obtained. In the vertex detection processing for all or some areas, the data in the contour portion of the graphic pattern is classified with respect to the direction of the contour line depending on whether the data of the adjacent mess point is binary 0 or 1. In the pattern recognition processing of tracing the classified data along the contour line of the figure pattern and detecting the vertices of the figure pattern, the contour part of the figure pattern is formed around the detection processing area in the matrix pattern. A blank area with the number of pixels required to classify the above data is added along the line to expand the detection processing area. For the enlarged detection processing area, the vertex detection processing is performed along the contour portion of the figure pattern, and the detected vertex is detected at a position in contact with the enlarged portion of the detection area. A vertex detection method for pattern recognition, which is characterized by detecting vertices and detecting the others as vertices of a figure pattern.
JP63003551A 1988-01-11 1988-01-11 Vertex detection method for pattern recognition Expired - Lifetime JPH0769959B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63003551A JPH0769959B2 (en) 1988-01-11 1988-01-11 Vertex detection method for pattern recognition

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63003551A JPH0769959B2 (en) 1988-01-11 1988-01-11 Vertex detection method for pattern recognition

Publications (2)

Publication Number Publication Date
JPH01180076A JPH01180076A (en) 1989-07-18
JPH0769959B2 true JPH0769959B2 (en) 1995-07-31

Family

ID=11560557

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63003551A Expired - Lifetime JPH0769959B2 (en) 1988-01-11 1988-01-11 Vertex detection method for pattern recognition

Country Status (1)

Country Link
JP (1) JPH0769959B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62154076A (en) * 1985-12-27 1987-07-09 Hitachi Ltd Picture processing method

Also Published As

Publication number Publication date
JPH01180076A (en) 1989-07-18

Similar Documents

Publication Publication Date Title
US6839466B2 (en) Detecting overlapping images in an automatic image segmentation device with the presence of severe bleeding
Mason et al. Using histograms to detect and track objects in color video
US5892854A (en) Automatic image registration using binary moments
EP1081648B1 (en) Method for processing a digital image
JPH09510809A (en) Method and apparatus for determining a fine azimuth of a barcode symbol in a two-dimensional CDD image
JP3543442B2 (en) Article interference detection method
JPH07220026A (en) Method and device for picture processing
JPH0769959B2 (en) Vertex detection method for pattern recognition
JP4172236B2 (en) Facial image processing apparatus and program
JP3230509B2 (en) Moving image processing device
JP3698867B2 (en) Circular pattern determination method, apparatus and recording medium
JPH0528321A (en) Method and system for image recognition
JPH0624028B2 (en) Position measurement method of feature point corners for pattern recognition
JP2710685B2 (en) Defect detection method by visual inspection
CN112926463B (en) Target detection method and device
JP3552419B2 (en) Object recognition method
JP2620094B2 (en) How to measure figure patterns
Pochec Moire based stereo matching technique
JP3048718B2 (en) Vertex detector
JPH05113315A (en) Detecting method for center position of circular image data
JPH08194825A (en) Outline information extracting device
JPH08226961A (en) Automatic target identifying apparatus
JPS622382A (en) Feature extracting devie for pattern
JP2522511B2 (en) Image contour tracking unit
JP2650443B2 (en) Line figure vectorization method

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20080731

Year of fee payment: 13