JPH05290190A - Mark inspecting method - Google Patents

Mark inspecting method

Info

Publication number
JPH05290190A
JPH05290190A JP4087004A JP8700492A JPH05290190A JP H05290190 A JPH05290190 A JP H05290190A JP 4087004 A JP4087004 A JP 4087004A JP 8700492 A JP8700492 A JP 8700492A JP H05290190 A JPH05290190 A JP H05290190A
Authority
JP
Japan
Prior art keywords
image
mark
inspected
feature quantities
defect
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
JP4087004A
Other languages
Japanese (ja)
Other versions
JP3200748B2 (en
Inventor
Yuji Ueno
裕司 上野
Hisami Nishi
壽巳 西
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.)
Nippon Sheet Glass Co Ltd
Original Assignee
Nippon Sheet Glass 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 Nippon Sheet Glass Co Ltd filed Critical Nippon Sheet Glass Co Ltd
Priority to JP08700492A priority Critical patent/JP3200748B2/en
Publication of JPH05290190A publication Critical patent/JPH05290190A/en
Application granted granted Critical
Publication of JP3200748B2 publication Critical patent/JP3200748B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PURPOSE:To properly judge a defect in an object image to be inspected even unless a binary-coding process is properly done by converting an input image signal into a digital signal and performing the binary-coding process, then extracting feature quantities of independent patterns which do not connect with each other in a reference image, and comparing the feature quantities of corresponding patterns of the reference image and image to be inspected. CONSTITUTION:A master image of a reference mark is inputted by using an input device such as a TV camera. Then this image is converted into binary data and the feature quantities of plural independent patterns in the image are calculated and registered together with their positions. When the object image is inspected, an image of a mark to be inspected is inputted by the TV camera and converted into binary data, and the feature quantities of independent patterns are calculated. The feature quantities are compared with the feature quantities of the independent patterns of the master image which are registered in advance and when the both are different, it is judged that the inspected object mark has a defect.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明はマークの検査方法に関
し、基準画像情報に基づいて対象画像の差異、変化を検
知して認識、制御を行なう分野に用いて好適なものであ
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a mark inspection method, and is suitable for use in the field of detecting and recognizing differences and changes in target images based on reference image information.

【0002】[0002]

【従来の技術】検査対象物に印刷、蝕刻などで付された
マークが正しいものであるかどうかを機械的に検査する
方法としては、テレビカメラなどで入力された画像を2
値化し、画像同士のパターンマッチングを用いたり、そ
の画像内の複数個の独立パターンの特徴量を、基準とな
る画像と検査しようとする画像間で対応するもの同士比
較する方法などがある。
2. Description of the Related Art As a method for mechanically inspecting an object to be inspected, whether a mark formed by printing or etching is correct, an image input by a television camera or the like is used.
There are methods such as binarizing and using pattern matching between images, or comparing the feature amounts of a plurality of independent patterns in the images corresponding to each other between the reference image and the image to be inspected.

【0003】[0003]

【発明が解決しようとする課題】上述の複数個の独立パ
ターン同士の特徴量を比較する方法を使用するときは、
入力された画像を2値化する必要がある。しかし、2値
化の過程で、照明ムラ、2値化の方法の不完全さ、ある
いは撮像対象物の濃淡ムラなどにより、適切に2値化す
ることができないことがある。そのときに、対応する独
立パターン同士の特徴量を比較すると著しい差が生じ、
入力された検査対象画像内に欠点があるという判断(誤
判断)をしてしまう。
When using the above-described method of comparing the feature quantities of a plurality of independent patterns,
It is necessary to binarize the input image. However, in the process of binarization, it may not be possible to properly binarize due to illumination unevenness, incompleteness of the binarization method, or unevenness in the density of the imaged object. At that time, when comparing the feature amounts of the corresponding independent patterns, a significant difference occurs,
The judgment (erroneous judgment) is made that there is a defect in the input image to be inspected.

【0004】本発明は上述の問題にかんがみ、検査対象
画像に対する2値化処理が適切に行えなかったときで
も、検査対象画像内に欠点があるかどうかの適切な判断
を行えるようにすることを目的とする。
In view of the above-mentioned problems, the present invention is to make it possible to appropriately judge whether or not there is a defect in the image to be inspected, even if the binarization processing to the image to be inspected cannot be performed properly. To aim.

【0005】[0005]

【課題を解決するための手段】本発明のマーク検査方法
は、あらかじめ基準画像と検査画像との間の対応する複
数個の独立したパターンの対応関係を調べ、対応するパ
ターン同士の特徴量を比較するときに著しい差が生じた
パターンに対して、そのパターン近傍に存在する他のパ
ターンの特徴量を考慮して比較する。
According to the mark inspection method of the present invention, the correspondence relationship between a plurality of corresponding independent patterns between the reference image and the inspection image is checked in advance, and the feature amounts of the corresponding patterns are compared. When a pattern is markedly different from each other, a feature amount of another pattern existing in the vicinity of the pattern is considered and compared with the pattern.

【0006】[0006]

【作用】対応する独立パターン同士の比較だけではな
く、近傍に存在するパターンも含めたより広範囲の特徴
量比較を行うようにしているので、単一独立パターンに
ついて濃淡ムラ等に起因して正しい2値化が行われず、
例えば文字に欠損を生じたような場合でも、その欠損の
量が正確に評価される。しかも、全ての独立パターンに
対して上記処理を行うのではなく、予め設定してある許
容値以上の差異を基準画像との間で生じた独立パターン
に対してのみ行うようにしているので、認識処理速度の
低下をほとんど生じない。 [実施例] (検査の概要)図1に本発明のマーク検査方法の手順を
フローチャートで示す。本発明のマーク検査方法は、基
準となるマークを一度覚えこませ(基準画像の登録)、
その後検査対象マークと比較して欠点が無いかどうか検
査するという方法である。
[Function] Not only the corresponding independent patterns are compared but also a wider range of feature amount comparison including patterns existing in the vicinity is performed. Is not done,
For example, even if a character has a defect, the amount of the defect can be accurately evaluated. In addition, the above process is not performed for all independent patterns, but is performed only for the independent patterns generated between the reference image and the difference equal to or more than the preset allowable value. Almost no reduction in processing speed occurs. [Example] (Outline of inspection) FIG. 1 is a flowchart showing the procedure of the mark inspection method of the present invention. In the mark inspection method of the present invention, the reference mark is memorized once (registration of the reference image),
After that, it is a method of inspecting whether there is any defect by comparing with the inspection target mark.

【0007】マーク検査方法の手順は大きく分けて、
「マスター画像の登録」と「対象画像の検査」から構成
されている。まず、TVカメラなどの画像入力装置を用
いて基準となるマークの画像を入力する。次にこの画像
を2値化し、画像内にある複数個の独立パターン(粒
子)の特徴量を計算し、それぞれの特徴量と位置を登録
しておく。特徴量の例を図2に示す。ここで使用する特
徴量は位置ずれ、回転などに影響されないものを用いる
のが望ましい。
The procedure of the mark inspection method is roughly divided into
It is composed of "registration of master image" and "inspection of target image". First, an image of a reference mark is input using an image input device such as a TV camera. Next, this image is binarized, the characteristic amounts of a plurality of independent patterns (particles) in the image are calculated, and the characteristic amounts and positions of each are registered. An example of the feature amount is shown in FIG. It is desirable that the feature quantity used here is one that is not affected by misalignment or rotation.

【0008】マスター画像の登録が終わったら、検査対
象画像の検査を行う。TVカメラなどで検査したいマー
クの画像を入力し、2値化を行い、粒子の特徴量を計算
する。
After the registration of the master image, the inspection target image is inspected. The image of the mark to be inspected is input by a TV camera or the like, binarized, and the feature amount of particles is calculated.

【0009】そして、図3に示すように、マスター画像
の登録時に予め登録してあった特徴量を各粒子毎に比較
する。比較の結果、マスター画像の特徴量と異なる場合
は、マークに欠点があったものとする。その後は、同様
に対象画像の検査を続ける。
Then, as shown in FIG. 3, the feature amounts registered in advance when the master image is registered are compared for each particle. As a result of the comparison, if the feature amount differs from the master image, it is determined that the mark has a defect. After that, the inspection of the target image is similarly continued.

【0010】(特徴量の照合)次に、特徴量の照合につ
いて詳しく説明する。特徴量の照合では、図3に示すよ
うにマスター画像と検査対象画像の対応する粒子同士の
特徴量を比較する。ここで使用する特徴量は図2に示す
ようなものがあり、本発明では主に周囲長と面積を用い
ている。
(Characteristic Matching) Next, the feature matching will be described in detail. In the collation of the feature amount, the feature amounts of the corresponding particles in the master image and the image to be inspected are compared with each other as shown in FIG. The feature quantity used here is as shown in FIG. 2, and in the present invention, the perimeter and the area are mainly used.

【0011】ところが、照明ムラなどによって入力画像
に濃度ムラがあったり、2値化時のスレッショルドレベ
ルが適切でなかったりしたときに、元々1つであった粒
子が2つ以上になってしまう。図4に、2値化の不良
で、元々1つであった文字が2つに分離してしまった例
を示す。同図のような場合、左側のマスター画像の文
字”N”に対して、右側の検査対象画像の切れた文字”
N”の左側を対応粒子として認識してしまう。その特徴
量を比較すると、欠損部分が許容される量よりも充分短
くても著しい差が生じてしまい、マークに欠点があった
ものと誤判断される。
However, when the input image has density unevenness due to uneven lighting, or the threshold level at the time of binarization is not appropriate, the number of particles that was originally one becomes two or more. FIG. 4 shows an example in which the original character is separated into two due to poor binarization. In the case of the same figure, the character “N” in the master image on the left side is compared with the character “N” in the image to be inspected on the right side ”
The left side of N "is recognized as a corresponding particle. When the feature amounts are compared, a significant difference occurs even if the defective portion is sufficiently shorter than the allowable amount, and it is erroneously determined that the mark has a defect. To be done.

【0012】(切れたときの再計算の方法)前述した不
具合を回避するために本発明では、以下のような方法で
特徴量の再計算を行い、特徴量の比較を行う。基準とな
る特徴量と検査対象画像の特徴量との間に著しい差があ
るときは、再度、周辺の粒子のなかで孤立している粒子
(どれとも対応付けされていない粒子)を探し、特徴量
を再計算して修正する。特徴量として図3で示したよう
な周囲長や面積を用いる場合は、それらの特徴量を加算
するだけで特徴量の再計算を行うことができる。図5に
特徴量比較のフローチャートを示す。
(Method of Recalculation When Cut Out) In order to avoid the above-mentioned inconvenience, the present invention recalculates the feature quantity by the following method and compares the feature quantities. When there is a significant difference between the reference feature amount and the feature amount of the image to be inspected, the surrounding particles are searched again for isolated particles (particles that are not associated with any), and Recalculate the amount and correct. When the perimeter or area shown in FIG. 3 is used as the feature amount, the feature amount can be recalculated by simply adding the feature amounts. FIG. 5 shows a flowchart of feature quantity comparison.

【0013】(粒子の探索範囲)上述した孤立している
粒子を探し出す範囲の説明を図6に示す。図6におい
て、(A)は各粒子を円形で囲む範囲に設定しており、
(B)は矩形領域で囲む範囲に設定している。
(Particle Search Range) FIG. 6 shows an explanation of the above-mentioned range for searching for isolated particles. In FIG. 6, (A) is set in a range in which each particle is surrounded by a circle,
(B) is set in a range surrounded by a rectangular area.

【0014】図6の(A)の範囲を決めるときは、各文
字の占める領域を含むように決定している。従って、文
字の一部に欠損があっても各粒子の探索範囲内で再計算
された特徴量と比較されるので、その欠損の量が正確に
評価される。この範囲を決めるには、基準画像が入力さ
れたときに、各粒子の輪郭追跡を行い、各文字を含むよ
うに図6(A)、(B)のように設定すればよい。
When the range of FIG. 6A is determined, it is determined so as to include the area occupied by each character. Therefore, even if a part of the character has a defect, it is compared with the recalculated feature amount within the search range of each particle, so that the amount of the defect can be accurately evaluated. In order to determine this range, when the reference image is input, contour tracing of each particle is performed, and settings are made so as to include each character as shown in FIGS. 6A and 6B.

【0015】あるいは、図7に示すように注目するパタ
ーンの周りの粒子との重心距離を計算し、最も近い粒子
との距離の半分を基本半径とするとき、元々1つであっ
た粒子全体を充分含むと考えられる距離、例えば、基本
半径の2倍ないし3倍を半径とする円形領域を設定する
とよい。
Alternatively, as shown in FIG. 7, when the center-of-gravity distance to the particle around the pattern of interest is calculated and half the distance to the nearest particle is used as the basic radius, the entire particle that was originally one is It is advisable to set a distance that is considered to be sufficient, for example, a circular region having a radius of 2 to 3 times the basic radius.

【0016】[0016]

【発明の効果】本発明によるマーク検査方法では、2値
化の時に対象となるマークに濃度ムラや照明にシェーデ
ィングがあって、2値化処理のときに独立パターン(粒
子)の単位が本来のパターンとは変わっても、適切に対
応する粒子同士の特徴量を比較することにより、マーク
の欠点を正確に検出できる。
According to the mark inspection method of the present invention, the mark to be binarized has density unevenness and shading in illumination, and the unit of the independent pattern (particle) is the original unit in the binarization process. Even if it is different from the pattern, the defect of the mark can be accurately detected by comparing the feature amounts of the particles that correspond appropriately.

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

【図1】本発明方法全体のフローチャートを示す図FIG. 1 is a diagram showing a flowchart of the entire method of the present invention.

【図2】各粒子の特徴量を説明する図FIG. 2 is a diagram for explaining the feature amount of each particle.

【図3】基準画像と検査対象画像との間での粒子の対応
関係を示す図
FIG. 3 is a diagram showing a correspondence relationship of particles between a reference image and an inspection target image.

【図4】2値化の不良により1つの粒子が切れたときの
粒子の対応関係を示す図
FIG. 4 is a diagram showing a correspondence relationship between particles when one particle is cut due to poor binarization.

【図5】本発明による特徴量の比較方法を示すフローチ
ャート
FIG. 5 is a flowchart showing a feature quantity comparison method according to the present invention.

【図6】各粒子の探索範囲を示す図FIG. 6 is a diagram showing a search range of each particle.

【図7】特徴量の再計算を行うときの孤立粒子を探し出
す範囲の設定方法を示す図
FIG. 7 is a diagram showing a method of setting a range for searching for isolated particles when recalculating a feature amount.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】入力された画像信号をデジタル信号に変換
し、2値化処理後、基準となる画像上で互いに連結して
いない複数個の独立したパターンの特徴量を抽出し、基
準画像と検査画像との対応するパターン同士の特徴量を
比較することにより、マークの欠点を識別するマーク検
査方法において、対応するパターン同士の特徴量が予め
設定してある許容値以上に異なるとき、基準画像中の各
独立パターンの占める領域のパターンを考慮して特徴量
を比較することを特徴とするマーク検査方法。
1. An input image signal is converted into a digital signal, and after binarization processing, a plurality of independent pattern feature amounts that are not connected to each other on a reference image are extracted to obtain a reference image and a reference image. In a mark inspection method for identifying a defect of a mark by comparing feature amounts of corresponding patterns with an inspection image, when the feature amounts of corresponding patterns differ by a preset allowable value or more, a reference image A mark inspection method characterized by comparing feature amounts in consideration of a pattern of an area occupied by each independent pattern therein.
JP08700492A 1992-04-08 1992-04-08 Mark inspection method Expired - Fee Related JP3200748B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP08700492A JP3200748B2 (en) 1992-04-08 1992-04-08 Mark inspection method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP08700492A JP3200748B2 (en) 1992-04-08 1992-04-08 Mark inspection method

Publications (2)

Publication Number Publication Date
JPH05290190A true JPH05290190A (en) 1993-11-05
JP3200748B2 JP3200748B2 (en) 2001-08-20

Family

ID=13902765

Family Applications (1)

Application Number Title Priority Date Filing Date
JP08700492A Expired - Fee Related JP3200748B2 (en) 1992-04-08 1992-04-08 Mark inspection method

Country Status (1)

Country Link
JP (1) JP3200748B2 (en)

Also Published As

Publication number Publication date
JP3200748B2 (en) 2001-08-20

Similar Documents

Publication Publication Date Title
JPH11328408A (en) Device for processing data and information storage medium
JPH05281154A (en) Inspection apparatus for defect of pattern
JPH05290190A (en) Mark inspecting method
JPH0441777B2 (en)
JP3919207B2 (en) Appearance inspection device
JP2692147B2 (en) Object detection method
JP2003203218A (en) Visual inspection device and method
JP2964594B2 (en) Mark inspection method
JPH07324916A (en) Inspection apparatus of external shape of pattern
JP2906454B2 (en) Object position detection method
JP2000028334A (en) Method and apparatus for inspecting pattern fault
JPH1114317A (en) Appearance inspection method and device
JP3232249B2 (en) Inspection method for missing pins of PGA substrate
JPH102725A (en) Visual inspection device for tape carrier package
JPS61140804A (en) Pattern inspection instrument
JPH0815172A (en) Visual inspection method
JP2001021502A (en) Flaw inspecting method and system therefor
JPS6135303A (en) Pattern defect inspecting instrument
JPH05333532A (en) Pattern inspecting device
JPH05290167A (en) Mark inspecting method
JPS6138450A (en) Method and apparatus for inspecting fault of pattern
JPH0894335A (en) Image processing detector
JPH1027246A (en) Picture processing method
JPS62148838A (en) Defect recognizing method
JPH02168365A (en) Method for segmenting character string and character

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees