JPH10274626A - Image processing device - Google Patents

Image processing device

Info

Publication number
JPH10274626A
JPH10274626A JP9078462A JP7846297A JPH10274626A JP H10274626 A JPH10274626 A JP H10274626A JP 9078462 A JP9078462 A JP 9078462A JP 7846297 A JP7846297 A JP 7846297A JP H10274626 A JPH10274626 A JP H10274626A
Authority
JP
Japan
Prior art keywords
image
inspection
teaching
processing apparatus
unique
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
JP9078462A
Other languages
Japanese (ja)
Other versions
JP3310898B2 (en
Inventor
Miwako Hirooka
美和子 広岡
Kazuhiko Washimi
和彦 鷲見
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP07846297A priority Critical patent/JP3310898B2/en
Publication of JPH10274626A publication Critical patent/JPH10274626A/en
Application granted granted Critical
Publication of JP3310898B2 publication Critical patent/JP3310898B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

(57)【要約】 【課題】 検査対象物の形状のばらつきや、検査対象物
の画像の見え方のバラツキがあっても欠陥を誤報するこ
となく精度良く検査対象物の欠陥を検査できる画像処理
装置を得る。 【解決手段】 教示用サンプルおよび検査対象物を個々
に撮像するカメラ1と、カメラ1によって撮像された教
示用サンプルTSの画像である教示画像から固有画像デ
ータを生成すると共に、撮像された検査対象物の画像で
ある検査画像と生成された固有画像データから近似画像
を復元し、検査画像と近似画像との差画像を生成して2
値化し、この2値化された画像を粒子解析し検査対象物
の良否判定するCPU5とを備えている。
(57) [Summary] [Problem] Image processing capable of accurately inspecting a defect of an inspection object without falsely reporting a defect even if there is variation in the shape of the inspection object or variation in the appearance of an image of the inspection object. Get the device. Kind Code: A1 A camera for individually imaging a teaching sample and an inspection object, and generating unique image data from a teaching image that is an image of the teaching sample TS captured by the camera, and capturing the inspection object. An approximation image is restored from the inspection image which is the image of the object and the generated unique image data, and a difference image between the inspection image and the approximation image is generated.
A CPU 5 is provided to determine the quality of the inspection object by performing particle analysis on the binarized image.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、産業用ロボット
や産業機械で取り扱うワークの画像データに基づいてワ
ークの位置決め制御及び検査などを行う画像処理装置に
関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an image processing apparatus for performing positioning control and inspection of a workpiece based on image data of the workpiece handled by an industrial robot or an industrial machine.

【0002】[0002]

【従来の技術】図33は特公平6−325181号公報
に開示されたパターン認識方法を用いた検査対象物であ
るウエハの欠陥検査装置の構成図である。図において、
W1は基本パターンベクトルを作成するための良品ウエ
ハ、W2は検査対象である被検査ウエハで、これらウエ
ハW1、W2よりテストパターンベクトルを作成する。
2. Description of the Related Art FIG. 33 is a block diagram of a defect inspection apparatus for a wafer to be inspected using a pattern recognition method disclosed in Japanese Patent Publication No. 6-325181. In the figure,
W1 is a non-defective wafer for creating a basic pattern vector, and W2 is an inspected wafer to be inspected. A test pattern vector is created from these wafers W1 and W2.

【0003】MはウエハW1、W2を移動させる移動機
構、OPはウエハ表面のパターンを拡大して見るための
顕微鏡、1は顕微鏡OPで拡大されたウエハ表面の画像
を取り込むCCDカメラ、3はCCDカメラ1で取り込
まれた画像をモニタするためのディスプレイ、2はCC
Dカメラ1で取り込まれた画像をA/D変換してデジタ
ル化する画像入力装置、4はデジタル化された画像デー
タを格納するフレームメモリ、5はフレームメモリ4の
画像データを用いて後述するパターン認識方法の手順に
より良品ウエハW1のパターンと被検査ウエハW2のパ
ターンの類似度を計算する中央演算装置(以下CP
U)、6は計算プログラムや途中結果を格納するメモ
リ、8は検査結果を表示する表示装置である。
M is a moving mechanism for moving the wafers W1 and W2, OP is a microscope for enlarging and viewing a pattern on the wafer surface, 1 is a CCD camera for capturing an image of the wafer surface enlarged by the microscope OP, and 3 is a CCD. A display for monitoring an image captured by the camera 1, 2 is a CC
An image input device for A / D converting and digitizing an image captured by the D camera 1, a frame memory 4 for storing digitized image data, and a pattern memory 5 described later using the image data of the frame memory 4. A central processing unit (hereinafter referred to as CP) that calculates the similarity between the pattern of the non-defective wafer W1 and the pattern of the wafer to be inspected W2 by the procedure of the recognition method.
U) and 6 are memories for storing calculation programs and intermediate results, and 8 is a display device for displaying inspection results.

【0004】次に、図34のフローチャートを用いて従
来の欠陥検査装置の作用および動作について説明する。
良品ウエハW1を移動機構Nに乗せてウエハ前面をCC
Dカメラ1で走査させ、その画像データを画像入力装置
2でデジタル化してフレームメモリ4に格納する(43
−1)。この画像データに基づき、後述する方法で基本
パターンベクトルの集合を求め(34−2)、線形部分
空間Lを求める
Next, the operation and operation of the conventional defect inspection apparatus will be described with reference to the flowchart of FIG.
The non-defective wafer W1 is placed on the moving mechanism N and the front surface of the wafer is CC
The image data is digitized by the image input device 2 and stored in the frame memory 4 (43).
-1). Based on the image data, a set of basic pattern vectors is obtained by a method described later (34-2), and a linear subspace L is obtained.

【0005】ここで求められた基本パターンベクトルの
数をm個とする。この2次元の基本パターンベクトル
(X×Y[画素])を1列に並べたn次元(n=X×
Y)の基本パターンベクトルを基本パターンベクトルの
集合Xi=(Xi1,Xi2,...,Xinとする。ここでT
は転置を表す。これらm個のパターンベクトルで張られ
る線形部分空間をLとする(34−3)。この線形部分
空間は式(1)で表される。
[0005] The number of basic pattern vectors obtained here is assumed to be m. An n-dimensional (n = X ×) in which these two-dimensional basic pattern vectors (X × Y [pixels]) are arranged in one line
A set of basic pattern vector the basic pattern vector of Y) Xi = (X i1, X i2, ..., and X in) T. Where T
Represents transposition. Let L be a linear subspace spanned by these m pattern vectors (34-3). This linear subspace is represented by equation (1).

【0006】 L={Xi∈Rn|i=1,2,...,m}・・・・・(1)L = {X i ∈Rn | i = 1, 2,..., M} (1)

【0007】次に被検査ウエハを移動機構Tに乗せてウ
エハパターン全面をCCDカメラ1で走査しながら検査
ウエハと同様に基本パターンベクトルをn次元で表し、
テストパターンXを得る(34−3)。ここでXをLに
射影し、Lの補空間Lcに属するベクトルXcを求め
る。Xが基本パターンベクトルに類似していればXはX
iのいずれかのパターンにほぼ等しくなり、線形部分空
間Lにおおむね含まれる。
Next, while placing the wafer to be inspected on the moving mechanism T and scanning the entire surface of the wafer pattern with the CCD camera 1, the basic pattern vector is represented in n dimensions similarly to the inspection wafer.
A test pattern X is obtained (34-3). Here, X is projected onto L, and a vector Xc belonging to the complement space Lc of L is obtained. If X is similar to the basic pattern vector, X is X
i is approximately equal to any of the patterns, and is substantially included in the linear subspace L.

【0008】ところがもしXが基本パターンベクトルと
異なる要素を持てば、Xは線形部分空間Lには含まれ
ず、その異なった要素のためにLの補空間Lcが存在す
る。したがってXをLに射影しXcのノルム|Xc|に
マイナス符号をつけたものが、基本パターンベクトルと
テストパターンベクトルとの類似度を表す(34−
5)。
However, if X has an element different from the basic pattern vector, X is not included in the linear subspace L, and a complementary space Lc of L exists for the different element. Therefore, a value obtained by projecting X onto L and adding a minus sign to the norm | Xc | of Xc represents the similarity between the basic pattern vector and the test pattern vector (34−
5).

【0009】ノルムとしては数学上の定義を満足するも
のであれば何でも良くL2ノルム{(Xc)TXc}0.5
はその代表的なものである。ノルムがしきい値を超えた
か判断し(34−6)、ノルムがしきい値よりも小さけ
れば欠陥があるとし(34−7)、しきい値よりも大き
ければ欠陥がないと判断する(34−8)。ウエハ全体
を検査したか調べ(34−9)、検査が未完了であれば
ステップ34−3へ戻り残る非検査ウエハの画像を取り
込む。ウエハ全体を検査したならばその結果を表示装置
8に表示する。
Any norm can be used as long as it satisfies the mathematical definition. L2 norm {(Xc) T Xc} 0.5
Is a typical example. It is determined whether the norm exceeds the threshold (34-6). If the norm is smaller than the threshold, it is determined that there is a defect (34-7). If the norm is larger than the threshold, it is determined that there is no defect (34-6). -8). It is checked whether the entire wafer has been inspected (34-9). If the inspection is not completed, the process returns to step 34-3 to capture the image of the remaining non-inspection wafer. If the whole wafer is inspected, the result is displayed on the display device 8.

【0010】射影として直交射影を用いた場合、Xの直
交補空間Lcに属するベクトルXcは以下のような式で
求められる。
When orthogonal projection is used as the projection, a vector Xc belonging to the orthogonal complement space Lc of X is obtained by the following equation.

【0011】1.式3によってm個の基本パターンベク
トルXii=1,2,...,m)の集合から線形部分空間L
を張る直交ベクトルHii=1,2,...,m)を求める。
1. From the set of m basic pattern vectors X i ( i = 1, 2,..., M), a linear subspace L
, The orthogonal vector H i ( i = 1, 2,..., M).

【0012】H1=X1 ・・・・・・(2)H 1 = X 1 (2)

【0013】[0013]

【数1】 (Equation 1)

【0014】ただし(Xi,Hk)はXiとHkの内積を表
したもので、式(3)の計算の途中で|Hi|=0にな
った場合、XiはX1からXi-1の線形結合として表され
るのでXiを捨てXi+1について計算を続ける。
However, (X i , H k ) represents the inner product of X i and H k. If | H i | = 0 during the calculation of equation (3), X i is X 1 Is discarded since X i is represented as a linear combination of X i−1 to X i−1, and the calculation is continued for X i + 1 .

【0015】2.テストパターンベクトルXをLへ直交
射影し、式(4)によりXcを求める。
2. The test pattern vector X is orthogonally projected onto L, and Xc is obtained by equation (4).

【0016】[0016]

【数2】 (Equation 2)

【0017】m'は直行ベクトル列Hiの個数を表す。
前述のように式(3)の計算の途中で|Hi|=0にな
った場合は、m'はmより小さくなり、そうでない場合
はm'=mとなる。
M 'represents the number of orthogonal vector columns Hi.
As described above, if | Hi | = 0 during the calculation of equation (3), m ′ becomes smaller than m, and otherwise m ′ = m.

【0018】[0018]

【発明が解決しようとする課題】従来の装置による欠陥
検出方法は、パターンの位置ずれに影響されずパターン
認識を行うことができるが、1つの良品を撮像しフレー
ムメモリに格納したパターンを計算機内部で移動させる
ことによって教示パターンの集合を生成するため、位置
のずれにしか対応できない。
The defect detection method using the conventional apparatus can perform pattern recognition without being affected by the positional deviation of the pattern. However, a pattern obtained by imaging one good product and storing it in the frame memory is stored in the computer. Since a set of teaching patterns is generated by moving with, only the displacement of the position can be dealt with.

【0019】しかし、実際には検査時に検査対象となる
はパターンの位置ずれだけでなくパターンの形状なども
ある。それは、被検査対象物に対する照射角度によって
もパターンの見え方が変化することが多い。また、例え
ば機械加工した部品の検査を行う場合、機械加工時の位
置決めのずれ方や工具の摩耗などによって被検査対象の
輪郭の曲面形状や凹凸の変化の仕方などによってもパタ
ーンにバラツキが生じる。
However, in practice, the inspection target at the time of inspection includes not only the positional displacement of the pattern but also the shape of the pattern. That is, the appearance of the pattern often changes depending on the irradiation angle with respect to the inspection object. In addition, for example, when inspecting a machined part, the pattern may vary depending on the shape of the curved surface of the contour of the object to be inspected or the manner in which the irregularities change due to misalignment during machining, wear of the tool, or the like.

【0020】また、半導体ウエハのパターン検査を行う
場合、パターン全体がシフトするだけでなく数回のエッ
チング工程を経てパターン同士の相対位置が変化する。
また化学的プロセスにかける時間のばらつきによってパ
ターンは変化する。さらに同じ製品でも部品を製造した
ラインや部品納入会社が異なるときは表面の光沢や加工
傷の方向性、粗さ、面とりの形状などにバラツキが生じ
る。そして、それらがパターンのバラツキとなって現れ
る。
When a pattern inspection of a semiconductor wafer is performed, not only does the entire pattern shift, but also the relative positions of the patterns change through several etching steps.
Also, the pattern changes due to variations in the time taken for the chemical process. Furthermore, even if the same product is manufactured by a different part manufacturing line or part supplier, the surface gloss, the direction of processing scratches, the roughness, the shape of the chamfer, and the like vary. Then, they appear as variations in the pattern.

【0021】従来の方法による基本パターンベクトル生
成法ではこのようなバラツキを発生させることができな
い為、良品を検査していてもバラツキにより不良品であ
ると判定してしまうおそれがある。また、従来の欠陥検
査方法では補空間ベクトル(=差画像)のノルム値の絶
対値をしきい値処理することによって良否判定している
ので、検査画像全体を基本パターンと比較することにな
る。従って、検査画像が全体的に基本パターンと異なる
場合に不良と判定される。また、検査画像中の局所領域
に欠陥があってもその領域が小さいときには無視され良
品と判定されるおそれがある。
Since such a variation cannot be generated by the basic pattern vector generation method according to the conventional method, there is a possibility that even if a good product is inspected, it is determined to be defective due to the variation. Further, in the conventional defect inspection method, since the pass / fail judgment is performed by threshold processing the absolute value of the norm value of the complementary space vector (= difference image), the entire inspection image is compared with the basic pattern. Therefore, when the inspection image is entirely different from the basic pattern, it is determined to be defective. Further, even if a local area in the inspection image has a defect, when the area is small, the area is ignored and may be determined as a non-defective product.

【0022】さらに、良否判定を行うためのノルム値の
しきい値を操作者が経験によって調整する場合に、調整
にノウハウが必要であった。そのため、画像処理に関す
る知識が少ないユーザは適正なしきい値を設定すること
は困難である。
Further, when the operator adjusts the threshold value of the norm value for performing the quality judgment by experience, know-how is required for the adjustment. Therefore, it is difficult for a user who has little knowledge of image processing to set an appropriate threshold.

【0023】生産ラインにおいて欠陥検査を行う場合、
ユーザは欠陥の大きさによって良否判定したいことが多
いが従来の方法ではしきい値を、抽出したい欠陥の大き
さなどの物理量と対比させることは困難であった。
When performing a defect inspection on a production line,
In many cases, a user wants to judge pass / fail based on the size of a defect, but it is difficult to compare a threshold with a physical quantity such as the size of a defect to be extracted by a conventional method.

【0024】この発明は上記のような問題点を解消する
ためになされたもので、検査対象物の形状のばらつき
や、検査対象物の画像の見え方のバラツキがあっても検
査対象物の欠陥を誤報することなく精度良く欠陥を検査
できる画像処理装置を得ることを目的とする。
The present invention has been made in order to solve the above-described problems. Even if there is a variation in the shape of the inspection object or a variation in the appearance of the image of the inspection object, the defect of the inspection object can be obtained. It is an object of the present invention to obtain an image processing apparatus capable of inspecting a defect with high accuracy without falsely reporting the defect.

【0025】[0025]

【課題を解決するための手段】請求項1の発明に係る画
像処理装置は、教示用サンプルおよび検査対象物を個々
に撮像する撮像段と、前記撮像手段によって撮像された
教示用サンプルの画像である教示画像から固有画像デー
タを生成する固有画像データ生成手段と、前記撮像され
た検査対象物の画像である検査画像と前記生成された固
有画像データから近似画像を復元する近似画像復元手段
と、前記検査画像と前記近似画像との差画像を生成する
差画像生成手段と、この生成された差画像を2値化する
2値化手段と、2値画像を粒子解析し前記検査対象物の
良否判定する判定手段とを備えている。
According to a first aspect of the present invention, there is provided an image processing apparatus comprising: an imaging stage for individually imaging a teaching sample and an inspection target; and an image of the teaching sample captured by the imaging unit. A unique image data generating unit that generates unique image data from a certain teaching image, an approximate image restoring unit that restores an approximate image from the inspection image that is the image of the captured inspection object and the generated unique image data, Difference image generation means for generating a difference image between the inspection image and the approximate image, binarization means for binarizing the generated difference image, and pass / fail of the inspection object by particle analysis of the binary image Determining means for determining.

【0026】請求項2の発明に係る画像処理装置は、近
似画像を復元するのに用いる固有画像データの数と検査
処理時間との関係、あるいは固有画像データの数と寄与
率で代表される検査の信頼性との関係を計算する計算手
段と、この計算手段によって計算された各関係を教示用
サンプルの画像を入力する教示時にユーザにシミュレー
ションする機能を有した表示手段とを備えている。
An image processing apparatus according to a second aspect of the present invention provides an image processing apparatus which has a relation between the number of unique image data used for restoring an approximate image and an inspection processing time, or an inspection represented by the number of inherent image data and a contribution rate. Calculation means for calculating the relationship with the reliability, and display means having a function of simulating each of the relations calculated by the calculation means to the user at the time of inputting an image of the teaching sample.

【0027】請求項3の発明に係る画像処理装置は、教
示用サンプルを移動させる移動テーブルと、前記教示用
サンプルを所定の角度で照射する照明と、前記移動テー
ブルの移動を制御するコントローラと、前記照明の強度
を制御するコントローラと、これらコントローラに指令
を出し前記教示用サンプルに対する照明位置、照明強度
を変えて画像にばらつきを有した教示画像を生成する教
示画像ばらつき生成手段とを備えている。
An image processing apparatus according to a third aspect of the present invention provides a moving table for moving a teaching sample, illumination for irradiating the teaching sample at a predetermined angle, a controller for controlling movement of the moving table, A controller that controls the intensity of the illumination, and a teaching image variation generating unit that issues a command to the controller and changes an illumination position and an illumination intensity with respect to the teaching sample to generate a teaching image having variation in the image. .

【0028】請求項4の発明に係る画像処理装置は、検
査対象物の画像である検査画像において検査領域を決
め、その検査領域に基づいてテンプレートマッチングデ
ータを生成して格納するマッチングデータ生成手段と、
複数の教示サンプルの撮像画像である教示画像から前記
テンプレートマッチングデータに基づいて各検査領域を
切り出し、この切り出した検査領域の画像データより固
有画像データを生成する固有画像データ生成手段と、前
記検査領域切り出し手段で切り出された被検査対象画像
の検査領域画像と前記生成された固有画像データから近
似画像を復元する近似画像復元手段と、前記被検査対象
画像の検査領域画像と前記近似画像との差画像を生成す
る差画像生成手段と、この生成された差画像を2値化す
る2値化手段と、2値画像を粒子解析し前記検査対象物
の良否判定する判定手段とを備えている。
According to a fourth aspect of the present invention, there is provided an image processing apparatus, comprising: a matching data generating means for determining an inspection area in an inspection image which is an image of an inspection object, and generating and storing template matching data based on the inspection area; ,
A unique image data generating unit that cuts out each inspection area from a teaching image that is a captured image of a plurality of teaching samples based on the template matching data and generates unique image data from the image data of the cut out inspection area; Approximation image restoring means for restoring an inspection area image of the inspection object image cut out by the extraction means and an approximate image from the generated unique image data; difference between the inspection area image of the inspection object image and the approximate image; The image processing apparatus includes a difference image generation unit that generates an image, a binarization unit that binarizes the generated difference image, and a determination unit that determines the quality of the inspection object by performing a particle analysis on the binary image.

【0029】請求項5の発明に係る画像処理装置は、撮
像された各教示画像の濃度を正規化する正規化手段を備
えている。
An image processing apparatus according to a fifth aspect of the present invention includes a normalizing means for normalizing the density of each of the captured teaching images.

【0030】請求項6の発明に係る画像処理装置は、教
示にもちいた教示画像を良品クラスとして固有空間中の
クラスの特徴量を求めるクラス計算回路と、検査画像が
与えられたときに固有空間中の座標と前記クラスの特徴
量によって検査対象物の良否判定する良否判定手段とを
備えている。
According to a sixth aspect of the present invention, there is provided an image processing apparatus comprising: a class calculating circuit for obtaining a feature amount of a class in an eigenspace using a taught image used for teaching as a non-defective class; It is provided with quality judgment means for judging the quality of the inspection object based on the middle coordinates and the feature amount of the class.

【0031】請求項7の発明に係る画像処理装置は、固
有空間上のクラスとある点との距離を計算するのにマハ
ラノビス距離をもちいて計算するマハラノビス距離計算
手段を備えている。
An image processing apparatus according to a seventh aspect of the present invention includes a Mahalanobis distance calculating means for calculating a distance between a class on an eigenspace and a certain point by using a Mahalanobis distance.

【0032】請求項8の発明に係る画像処理装置は、教
示画像ベクトルを固有空間中で良品クラスと不良品クラ
スに分割する分割手段と、各クラスと検査画像の固有空
間内での距離を演算する距離演算手段と、その演算され
た距離によって検査対象物の良否判定する良否判定手段
とを備えている。
According to an eighth aspect of the present invention, there is provided an image processing apparatus which divides a taught image vector into a non-defective class and a defective class in an eigenspace, and calculates a distance between each class and an inspection image in the eigenspace. And a pass / fail judgment unit for judging pass / fail of the inspection object based on the calculated distance.

【0033】請求項9の発明に係る画像処理装置は、近
似画像生成時に各固有画像データの寄与率を記録する寄
与率記録手段と、寄与率の変化率から教示画像の妥当性
を判断する寄与率状態判定手段と、寄与率の妥当性が悪
いと判断したときに新たに対象物を教示するように警告
を発する再教示警告手段とを備えている。
According to a ninth aspect of the present invention, there is provided an image processing apparatus, comprising: a contribution rate recording means for recording a contribution rate of each unique image data at the time of generating an approximate image; A rate state determination unit and a re-teach warning unit that issues a warning to newly teach an object when it is determined that the contribution rate is not appropriate are provided.

【0034】請求項10の発明に係る画像処理装置は、
被検査対象画像よりテンプレートマッチングにて検査領
域画像の切り出しを行う際にテンプレートマッチングの
相関値を記録する相関値記録手段と、相関値の変化率か
ら教示画像の妥当性を判断する相関状態判定手段と、相
関値が悪化していると判断したときに新たに教示サンプ
ルを教示するように警告を発する再教示警告手段とを備
えている。
According to a tenth aspect of the present invention, there is provided an image processing apparatus comprising:
Correlation value recording means for recording a correlation value of template matching when cutting out an inspection area image from an image to be inspected by template matching, and correlation state determination means for judging the validity of the teaching image from a change rate of the correlation value And a re-teach warning unit that issues a warning to teach a new teaching sample when it is determined that the correlation value has deteriorated.

【0035】請求項11の発明に係る画像処理装置は、
検査動作中の一定時間ごとにあるいは被検査対象となる
部品供給ロットの入れ換え時に連動して教示サンプルよ
り教示画像を取得するものである。
An image processing apparatus according to an eleventh aspect of the present invention
The teaching image is acquired from the teaching sample at regular intervals during the inspection operation or in conjunction with replacement of the component supply lot to be inspected.

【0036】[0036]

【発明の実施の形態】BEST MODE FOR CARRYING OUT THE INVENTION

実施の形態1.以下、この発明に係る欠陥検査機能を有
した画像処理装置を図について説明する。図1は本実施
の形態に係るの画像処理装置の構成図である。図におい
て、1は教示用/検査用の検査対象物を撮像する撮像手
段としてのカメラ、2はカメラ1から入力された画像信
号を受け取りデジタル信号による画像信号に変換する画
像入力装置、3はカメラ1から入力された画像信号を所
定の画像にて表示するディスプレイ、4は画像入力装置
2で変換されたデジタル信号の画像信号を格納するフレ
ームメモリ、5はフレームメモリ4に格納した画像信号
を用いて欠陥検査処理を行うCPU、6は計算プログラ
ムや途中結果を格納するメモリ、7は教示データである
固有画像データを格納する固有画像データ記憶装置、8
は検査結果を表示する表示装置、9は教示処理や検査処
理の開始や終了を操作するマウスあるいはキーボード等
の入力装置である。尚、CPU5は、固有画像データ生
成手段、近似画像復元手段、差画像生成手段、及び判定
手段を構成する。
Embodiment 1 FIG. Hereinafter, an image processing apparatus having a defect inspection function according to the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of an image processing apparatus according to the present embodiment. In the figure, reference numeral 1 denotes a camera as an imaging unit for imaging an inspection object for teaching / inspection, 2 denotes an image input device which receives an image signal input from the camera 1 and converts the image signal into a digital signal, and 3 denotes a camera. A display for displaying an image signal input from 1 as a predetermined image, 4 is a frame memory for storing an image signal of a digital signal converted by the image input device 2, and 5 is an image signal stored in the frame memory 4. A memory for storing calculation programs and intermediate results; a unique image data storage device for storing unique image data as teaching data;
Is a display device for displaying the inspection result, and 9 is an input device such as a mouse or a keyboard for operating the teaching process and the start and end of the inspection process. Note that the CPU 5 constitutes a unique image data generation unit, an approximate image restoration unit, a difference image generation unit, and a determination unit.

【0037】図2はこの欠陥検査装置の処理の流れを示
すフローチャートである。まず、教示作業は次のように
行う。検査対象物である良品サンプル(教示サンプル)
を複数集める。検査時と同じ環境のもとに良品サンプル
を設置する。良品サンプルをカメラ1で撮像し、その画
像を画像入力装置2でデジタル信号に変換してフレーム
メモリ4に格納する(2−1)。この動作を繰り返し複
数の良品サンプルの画像を得する。つぎに複数の良品サ
ンプル画像(教示画像)より後述する方法で固有画像の
集合を求め、固有値の大きい順に固有画像を並べ教示用
データとして保存しておく(2−2)。
FIG. 2 is a flowchart showing the flow of the processing of the defect inspection apparatus. First, the teaching operation is performed as follows. Non-defective sample to be inspected (teaching sample)
Collect several. Install a good sample under the same environment as the inspection. The non-defective sample is taken by the camera 1, and the image is converted into a digital signal by the image input device 2 and stored in the frame memory 4 (2-1). This operation is repeated to obtain a plurality of non-defective sample images. Next, a set of unique images is obtained from a plurality of non-defective sample images (teaching images) by a method described later, and the unique images are arranged in descending order of the unique values and stored as teaching data (2-2).

【0038】次に同フローチャートの2−3〜2−10
の各ステップに従って検査処理の方法について述べる。
検査用の対象物を移動機構Mに設置してカメラ1で撮像
し、被検査物の画像を取り込む(2−3)。この検査画
像を固有画像に射影する。射影の方法は従来の手法と同
様に行う。そして投影によって近似画像を生成する(2
−4)。射影によって作られた近似画像と2−3で取り
込まれた被検査画像との差を取り差画像を作る(2−
5)。
Next, 2-3 to 2-10 of the flowchart will be described.
The method of the inspection process will be described in accordance with the respective steps.
An inspection object is set on the moving mechanism M, imaged by the camera 1, and an image of the inspection object is captured (2-3). This inspection image is projected on a unique image. The projection method is performed in the same manner as the conventional method. Then, an approximate image is generated by projection (2
-4). The difference between the approximate image created by the projection and the image to be inspected captured in 2-3 is taken to create a difference image (2-
5).

【0039】次に、差画像の2値化処理を行い(2−
6)、差が大きい領域を切り出して2値画像に対してラ
ベリングを行う。画像中の各ラベリングされた領域につ
いて粒子解析によって領域の面積を求める(2−7)。
そして、その面積が予め設定した設定したしきい値を超
えたか否かを判断する(2−8)。領域の面積がしきい
値を超えない場合は欠陥ありとして抽出し、表示する
(2−9)。また領域の面積がしきい値を超た場合は欠
陥なし、即ち良品と判定する(2−10)。
Next, binarization processing of the difference image is performed (2-
6) A region having a large difference is cut out and labeling is performed on the binary image. The area of each labeled region in the image is determined by particle analysis (2-7).
Then, it is determined whether or not the area exceeds a preset threshold value (2-8). If the area of the region does not exceed the threshold, it is extracted as defective and displayed (2-9). If the area of the region exceeds the threshold value, it is determined that there is no defect, that is, a non-defective product (2-10).

【0040】具体的な良品検査サンプルとしてT字状の
板の特定位置に穴が空いている部品の検査を図解したも
のが図3である。教示を行うには先ず教示用に同一種の
検査対象物(T字状の板)を教示サンプルとして幾つか
集める。同一種の検査対象物でも製造の過程でばらつき
が生じている。例えば、検査対象物にパンチング機械で
穴を空ける際に穴の位置、穴の大きさ、穴の形状等にバ
ラツキが生じる。
FIG. 3 illustrates the inspection of a part having a hole at a specific position of a T-shaped plate as a specific non-defective inspection sample. In order to perform teaching, first, several test objects (T-shaped plates) of the same type are collected as teaching samples for teaching. Even for the same type of inspection object, variations occur during the manufacturing process. For example, when a hole is drilled in an inspection object using a punching machine, the position, size, shape, and the like of the hole vary.

【0041】また検査対象物を鋳造で作る場合、鋳肌を
研磨する工作機械のずれや作業者に熟練度等によりばら
つきは生じる。この場合のバラツキは製品として許容で
きる範囲のバラツキであって欠陥を意味するのではな
い。欠陥を検査するために、先ず、各検査対象物を教示
サンプルとしてカメラ1に撮像する。撮像された各画像
は教示画像として画像入力装置2に入力されてデジタル
信号に変換された後にCPU5に取り込まれ、画像処理
される。
In the case where the inspection object is made by casting, variations occur due to a deviation of a machine tool for polishing a casting surface and a skill of an operator. The variation in this case is a variation within an acceptable range as a product and does not mean a defect. In order to inspect a defect, first, each inspection object is imaged by the camera 1 as a teaching sample. Each captured image is input to the image input device 2 as a teaching image, is converted into a digital signal, is captured by the CPU 5, and is subjected to image processing.

【0042】即ち、CPU5は入力された各教示画像か
ら共通成分を抽出する固有画像の生成を行う。生成され
た固有画像は、固有値の大きな固有画像から順に並べら
れ、この固有画像に適当な重みをかけた和によって全て
の教示画像は再現できる。固有画像の情報は良品教示情
報(固有画像データ)として固有画像データ記憶装置7
に格納される。
That is, the CPU 5 generates a unique image for extracting a common component from each input teaching image. The generated unique images are arranged in order from a unique image having a large unique value, and all the teaching images can be reproduced by a sum obtained by applying an appropriate weight to the unique image. The unique image information is stored as unique image data storage device 7 as good product teaching information (unique image data).
Is stored in

【0043】次に検査を行うときは、検査対象物をカメ
ラ1で撮像して検査画像を入力する。検査画像は上記固
有画像を用いて再現する。検査対象物もバラツキを持っ
ているが、すでに教示した画像中にあるバラツキと同じ
バラツキを持つのであれば、固有画像を用いてバラツキ
を表現できる。しかし、教示画像にないバラツキ、例え
ば傷や欠けなどの欠陥は固有画像で表現できないので、
もっとも近似させた近似画像にはその対象物の欠陥がな
い画像となる。
Next, when the inspection is performed, the inspection object is imaged by the camera 1 and an inspection image is input. The inspection image is reproduced using the unique image. The inspection object also has a variation, but if the variation has the same variation as that in the image already taught, the variation can be expressed using the unique image. However, variations that are not in the teaching image, for example, defects such as scratches and chips, cannot be represented by the unique image,
The closest approximation image is an image having no defect of the object.

【0044】そこで、近似画像と入力された検査画像と
の差画像を作れば正常部は消え、欠陥部が抽出される。
つぎに差画像を2値化処理することによってノイズを除
去し、残った領域のうち面積がしきい値より大きい部分
を欠陥とする。
Therefore, if a difference image between the approximate image and the input inspection image is created, the normal part disappears and the defective part is extracted.
Next, noise is removed by binarizing the difference image, and a portion of the remaining region whose area is larger than the threshold value is determined as a defect.

【0045】固有画像の求め方: 1.教示画像を一次元に順に並べたものをxi
{xi1,...,xin}で表す。ここでiは1<=i<=m
の値をとり、教示画像の番号を表す。mは教示した画像
の枚数である。またnは画像の大きさを表す。例えば横
64×縦64画素の画像ならばn=4096である。
How to Obtain Unique Image: X i =
{X i1 , ..., x in }. Where i is 1 <= i <= m
And represents the number of the teaching image. m is the number of images taught. Also, n represents the size of the image. For example, n = 4096 for an image of 64 × 64 pixels.

【0046】2.これらの教示画像の平均画像c(p)
求める。
2. An average image c (p) of these teaching images is obtained.

【0047】[0047]

【数3】 (Equation 3)

【0048】3.各画像から平均画像を引いた差画像
x'i=xi−c(p),1<=i<=mを作る。
3. A difference image x ′ i = x i− c (p) obtained by subtracting the average image from each image, and 1 <= i <= m is created.

【0049】4.差画像の集合XをX={x'1,...,x'
mTと定義する。Tは転置を表す。 5.Xの共分散行列XXTをQとおく。Qはm×m次元
の行列である。固有方程式λiei=Qeiはヤコビ法など
の固有値の解法を用いて解き、固有画像eiを得る。
4. A set X of difference images is represented by X = {x ′ 1 , ..., x ′
Define mT. T represents transposition. 5. Let Q be the covariance matrix XX T of X. Q is an m × m-dimensional matrix. The eigen equation λ iei = Q ei is solved using an eigen value solution such as the Jacobi method to obtain an eigen image e i .

【0050】実施の形態2.次に、実施の形態2に係る
画像処理装置を図について説明する。図4は本実施の形
態に係る画像処理装置の構成図である。尚、図中、図1
と同一符号は同一または相当部分を示す。この画像処理
装置は実施の形態1に係る画像処理装置に計算手段とし
ての固有画像寄与率計算回路10を付加した構成とす
る。
Embodiment 2 Next, an image processing apparatus according to Embodiment 2 will be described with reference to the drawings. FIG. 4 is a configuration diagram of the image processing apparatus according to the present embodiment. In FIG. 1, FIG.
The same reference numerals indicate the same or corresponding parts. This image processing apparatus has a configuration in which a unique image contribution ratio calculation circuit 10 as a calculation unit is added to the image processing apparatus according to the first embodiment.

【0051】図5はこの画像処理装置の処理の流れを示
すフローチャートである。教示作業は次のように行う。
検査対象物の良品サンプルを教示サンプルとして複数集
める。検査時と同じ環境に良品サンプルを設置する。良
品サンプルをカメラ1で撮像し(5−1)、その画像を
教示画像としてフレームメモリ4に格納する。これを繰
り返し対象物の画像を複数獲得して固有画像を生成す
る。この固有画像の集合を求め固有値の大きい順に並べ
教示用データとして保存しておく(5−2)。ここまで
の処理は実施の形態1における教示モードと同様であ
る。
FIG. 5 is a flowchart showing the flow of the processing of the image processing apparatus. The teaching work is performed as follows.
A plurality of good samples of the inspection object are collected as teaching samples. Install a good sample in the same environment as the inspection. A non-defective sample is taken by the camera 1 (5-1), and the image is stored in the frame memory 4 as a teaching image. This is repeated to obtain a plurality of images of the object to generate a unique image. This set of unique images is determined and arranged as teaching data in ascending order of the unique values (5-2). The processing so far is the same as the teaching mode in the first embodiment.

【0052】次に試行モードに入る(5−3)。試行モ
ードでは今まで教示したデータによって正しく検査でき
るか確認しながらパラメータを調整する。実施の形態1
に係る画像処理装置は固有画像を用いて近似画像を生成
するが、製品のばらつきが少ない場合あるいは欠陥検査
の要求仕様がゆるやかな場合は少ない数の固有画像で近
似画像の生成が可能である。
Next, a trial mode is entered (5-3). In the trial mode, the parameters are adjusted while checking whether the inspection can be performed correctly with the data taught so far. Embodiment 1
Generates an approximate image using the unique image. However, when the variation of the product is small or when the required specification of the defect inspection is gradual, the approximate image can be generated with a small number of the unique images.

【0053】近似画像の復元に使用する固有画像数を減
らすことによって処理時間の短縮が期待できる。そこ
で、処理時間と信頼性の関係をシミュレートして予めユ
ーザに示し、ユーザが適切な固有画像数を選択できるよ
うに固有画像の寄与率を図6の(a),(b)のように
表示手段としての表示手段8に表示する。
A reduction in the processing time can be expected by reducing the number of unique images used to restore the approximate image. Accordingly, the relationship between the processing time and the reliability is simulated and shown to the user in advance, and the contribution ratio of the unique image is set as shown in FIGS. 6A and 6B so that the user can select an appropriate number of unique images. The information is displayed on the display means 8 as the display means.

【0054】試行モードに入り(5−3)、まず検査し
たい対象物をカメラ1にて撮像し、検査画像を画像入力
装置2に入力する(5−4)。次に教示モードにてフレ
ームメモリ4に格納した良品サンプルの画像による固有
画像を用いて近似画像を生成し(5−5)、そのときの
各固有画像の寄与率を図6の(a),(b)のように表
示手段8に表示する(5−6)。図6の例では寄与率7
0%を目処として70%の位置にラインを引いてユーザ
に示している。
In the trial mode (5-3), first, an object to be inspected is imaged by the camera 1, and an inspection image is input to the image input device 2 (5-4). Next, in the teaching mode, an approximate image is generated using the unique image of the non-defective sample image stored in the frame memory 4 (5-5), and the contribution ratio of each unique image at that time is shown in FIG. It is displayed on the display means 8 as shown in (b) (5-6). In the example of FIG.
A line is drawn at a position of 70% with 0% as a target and shown to the user.

【0055】図6の(a)では製品のバラツキが少なく
第3固有画像までで寄与率70%を超えているため、ユ
ーザは固有画像数3を選択している。製品によっては図
6の(b)のように寄与率70%を達成するには第9固
有画像までを必要とするものもある。この場合は固有画
像数を増やすことによって寄与率を上げ、信頼性を向上
させることができる。
In FIG. 6A, since the variation of the product is small and the contribution ratio exceeds 70% up to the third unique image, the user selects 3 unique images. Some products require up to the ninth unique image to achieve a contribution rate of 70% as shown in FIG. 6B. In this case, the contribution rate can be increased by increasing the number of unique images, and the reliability can be improved.

【0056】また、寄与率と同時に検査処理に要する時
間を表示すれば、生産ラインでのタクトタイムの推定が
できる。ユーザが寄与率に対応した固有画像数を選択し
た後に、ユーザは画像数m’を入力する(5−7)、そ
して生成されたm’個の固有画像を用いて近似画像を作
り欠陥検出処理を行う(5−8)。この欠陥検出処理は
実施の形態1と同様に行い、欠陥検出結果を表示装置8
に表示する(5−9)。
If the time required for the inspection process is displayed together with the contribution rate, the tact time on the production line can be estimated. After the user selects the number of unique images corresponding to the contribution ratio, the user inputs the number of images m '(5-7), and creates an approximate image using the generated m' unique images to perform defect detection processing. (5-8). This defect detection processing is performed in the same manner as in the first embodiment, and the result of the defect detection is displayed on the display 8.
(5-9).

【0057】欠陥表示結果がユーザの意図と一致するか
否か、即ちユーザが意図したのと同程度の欠陥が抽出さ
れたかをユーザは確認し、一致あるいは不一致を示すデ
ータを入力装置9よりCPU5に入力する(5−1
0)。ユーザの意図と一致しなかったときは再度固有画
像数入力メニューに入り固有画像数を増やすなどの処理
を行い検査を試行する(5−5〜5−10)。
The user confirms whether or not the defect display result matches the user's intention, that is, whether a defect of the same degree as the user's intention has been extracted, and outputs data indicating a match or mismatch from the input device 9 to the CPU 5. (5-1)
0). If it does not match the user's intention, the user enters the unique image number input menu again to increase the number of unique images and perform a test (5-5 to 5-10).

【0058】ユーザが満足する結果が得られたら別のサ
ンプル(対象物)についても試行を行う(5−12)。
更に、試行モードを続行するかを判断し(5−13)、
試行モードを通して十分なパラメータ調整ができたとユ
ーザが判断したときは試行モードを終了する(5−1
4)。しかし、試行モードを続行する場合は再び5−4
に戻り検査画像を入力する。
When a result satisfactory to the user is obtained, a trial is performed for another sample (object) (5-12).
Further, it is determined whether to continue the trial mode (5-13),
When the user determines that the parameter has been sufficiently adjusted through the trial mode, the trial mode is terminated (5-1).
4). However, if the trial mode is to be continued,
Return to and input the inspection image.

【0059】実施の形態3.次に、実施の形態3に係る
画像処理装置を図について説明する。図7は本画像処理
装置の構成図である。図中、図1と同一符号は同一また
は相当部分を示す。この画像処理装置は対象物を照射す
る照明11と照明11の強さを調整する照明コントロー
ラ13と、対象物を載置してXYZ方向と回転方向に移
動するテーブルTと、テーブルTの動きを調整するテー
ブルコントローラ14と、各コントローラ13,14の
状態を管理して移動指示を出すための条件設定データ記
憶装置12とを付加した構成とする。尚、CPU5によ
り教示画像バラツキ生成手段を構成する。
Embodiment 3 Next, an image processing apparatus according to Embodiment 3 will be described with reference to the drawings. FIG. 7 is a configuration diagram of the image processing apparatus. In the figure, the same reference numerals as those in FIG. 1 indicate the same or corresponding parts. The image processing apparatus includes an illumination 11 for irradiating an object, an illumination controller 13 for adjusting the intensity of the illumination 11, a table T on which the object is placed and moved in the XYZ and rotational directions, and a movement of the table T. The table controller 14 to be adjusted and the condition setting data storage device 12 for managing the states of the controllers 13 and 14 and issuing a movement instruction are added. The teaching image variation generating means is constituted by the CPU 5.

【0060】図8はこの画像処理装置の処理の流れを示
すフローチャートである。教示作業は次のように行う。
検査対象物の教示サンプル(良品サンプル)TSを1個
以上用意してテーブルTに設置する(8−1)。次に、
条件設定データ記憶装置12に格納した照明11とテー
ブルの条件設定データに基づく照明条件およびテーブル
移動条件を決定する(8−2、8−3)。決定した各条
件に合わせてCPU5は教示画像バラツキ生成のための
指示を各コントローラ13、14に送り、照明11とテ
ーブルTの動きをコントロールする(8−4、8−
5)。
FIG. 8 is a flowchart showing the flow of the processing of the image processing apparatus. The teaching work is performed as follows.
One or more teaching samples (non-defective samples) TS of the inspection object are prepared and set on the table T (8-1). next,
The lighting condition and the table moving condition are determined based on the lighting 11 and the table condition setting data stored in the condition setting data storage device 12 (8-2, 8-3). The CPU 5 sends an instruction for generating a taught image variation to each of the controllers 13 and 14 in accordance with the determined conditions, and controls the movement of the illumination 11 and the table T (8-4, 8-).
5).

【0061】次に、教示サンプルTSをカメラ1で撮像
し、その画像をフレームメモリ5に格納する(8−
6)。同様に照明条件やテーブル位置を移動させ画像を
撮像する処理を行う。格納した画像より教示操作を繰り
返す否かをディスプレイ3の表示画像より判断し(8−
7)、教示操作を繰り返す場合は再度8−2に戻る。教
示操作を繰り返さない場合は他のサンプルで教示するか
否か判断し(8−8)、他のサンプルで教示する場合は
8−1へ戻り教示する他の教示サンプルTSをテーブル
Tに置く。
Next, the teaching sample TS is imaged by the camera 1 and the image is stored in the frame memory 5 (8-
6). Similarly, a process of moving an illumination condition or a table position to capture an image is performed. It is determined from the display image on the display 3 whether or not the teaching operation is to be repeated based on the stored image (8-
7) When the teaching operation is repeated, the procedure returns to 8-2 again. When the teaching operation is not repeated, it is determined whether or not to teach with another sample (8-8). When teaching with another sample, the process returns to 8-1 and another teaching sample TS to be taught is placed on the table T.

【0062】他のサンプルで教示しない場合は、実施の
形態1と同様に取り込んだ画像画像をもとに固有画像を
求め、固有画像を教示用データとして固有画像データ記
憶装置7に保存しておく(8−9)。尚、照明条件やテ
ーブル移動条件はあらかじめバリエーションデータを用
意しても良いし、随時ユーザが入力装置9から入力して
も良い。教示操作を繰り返す場合は、教示操作を繰り返
し教示サンプルTSの画像を複数獲得する。
When teaching is not performed with another sample, a unique image is obtained based on the captured image in the same manner as in the first embodiment, and the unique image is stored in the unique image data storage device 7 as teaching data. (8-9). The illumination conditions and table movement conditions may be prepared in advance by using variation data, or may be input by the user from the input device 9 as needed. When the teaching operation is repeated, the teaching operation is repeated to acquire a plurality of images of the teaching sample TS.

【0063】バラツキのバリエーションの例を図9の
(a)、(b)に示す。図の例では円筒形の部品を教示
サンプルTSとしている。図9の(a)中、a1はカメ
ラ1の真下に教示サンプルTSがある場合の画像であ
る。同図中、a2はカメラ1が教示サンプルTSの下側
に位置している場合の画像である。同図中、a3はカメ
ラ1が教示サンプルTSの上側に位置している場合の画
像である。これらの画像をテーブルTの移動によって意
図的に作成することによって多少の位置決め誤差が生じ
ても検査時に欠陥としての誤報を発しない。
FIGS. 9A and 9B show examples of variations. In the example shown in the figure, a cylindrical part is used as the teaching sample TS. In FIG. 9A, a1 is an image when the teaching sample TS is directly below the camera 1. In the figure, a2 is an image when the camera 1 is located below the teaching sample TS. In the figure, a3 is an image when the camera 1 is located above the teaching sample TS. By intentionally creating these images by moving the table T, even if a slight positioning error occurs, a false report as a defect is not issued at the time of inspection.

【0064】また、図9の(b)中、b1は教示サンプ
ルTSに強い照明をあてた場合で、教示サンプルTSが
カメラ1の真下にあるときで輪郭がぼんやりみえている
だけである。同図中、b2、3は教示サンプルTSに斜
めから照明を照射している場合の画像である。照明の照
射方向によって教示サンプルTS設置時の傾きのバラツ
キに対応できる。
In FIG. 9B, b1 indicates a case where strong teaching is applied to the teaching sample TS, and the outline is only blurred when the teaching sample TS is directly below the camera 1. In the figure, b2 and b3 are images when the teaching sample TS is illuminated obliquely. It is possible to cope with variations in the inclination at the time of setting the teaching sample TS depending on the irradiation direction of the illumination.

【0065】実施の形態4.次に、実施の形態4に係る
画像処理装置を図について説明する。図10は本実施の
形態に係る画像処理装置の構成図である。この画像処理
装置は実施の形態1に係る画像処理装置に位置決め用テ
ンプレートデータ記憶装置15と、着目した検査領域の
画像だけ切り出して転送する着目領域切り出し回路16
を付加した構成とする。尚、CPU5でマッチングデー
タ生成手段を構成する。
Embodiment 4 Next, an image processing apparatus according to a fourth embodiment will be described with reference to the drawings. FIG. 10 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus is similar to the image processing apparatus according to the first embodiment, except that a positioning template data storage device 15 and an area-of-interest extraction circuit 16 that extracts and transfers only an image of an inspection area of interest.
Is added. Note that the CPU 5 constitutes a matching data generating means.

【0066】図11は本実施の形態に係る画像処理装置
の処理の流れを示すフローチャートである。教示作業は
次のように行う。検査領域の位置を決めるための良品サ
ンプルを複数集め、そのうち一つを選択して検査時と同
じ環境に設置する。その良品サンプルをカメラ1で撮像
し(11−1)、その画像をフレームメモリ4に格納し
た後にディスプレイ3に表示する。ユーザはディスプレ
イ3に表示それた画像を見ながら検査領域の位置を画像
から決めるために、検査領域の位置をカーソルや数値入
力によって決める(11−2)。
FIG. 11 is a flowchart showing a flow of processing of the image processing apparatus according to the present embodiment. The teaching work is performed as follows. A plurality of non-defective samples for determining the position of the inspection area are collected, and one of them is selected and installed in the same environment as the inspection. The non-defective sample is taken by the camera 1 (11-1), and the image is stored in the frame memory 4 and displayed on the display 3. The user determines the position of the inspection area from the image while looking at the image displayed on the display 3 to determine the position of the inspection area by using a cursor or numerical input (11-2).

【0067】位置決めの手法には色々あるが、ここでは
テンプレートマッチング法による位置決め手法を説明す
る。ユーザが指定した画像より検査領域のテンプレート
画像領域を切り出してテンプレートマッチングデータを
生成し、位置決め用テンプレートデータ記憶装置15に
格納すると同時に、良品画像としてメモリ6に格納して
おく(11−3)。次に複数の欠陥検査用サンプルを用
意して順次テーブルTに載置し、カメラ1で撮像して画
像を画像入力装置2にて入力してからフレームメモリ4
に格納する(11−4,11−5)。
There are various positioning methods. Here, a positioning method based on the template matching method will be described. A template image area of the inspection area is cut out from the image specified by the user, template matching data is generated, and stored in the positioning template data storage device 15 and, at the same time, stored in the memory 6 as a non-defective image (11-3). Next, a plurality of defect inspection samples are prepared, sequentially placed on the table T, captured by the camera 1, and an image is input by the image input device 2.
(11-4, 11-5).

【0068】各欠陥検査用サンプル画像よりテンプレー
トマッチングデータを用いて検査領域の位置決めを行
い、その検査領域をテンプレートマッチング法により自
動的に切り出し、良品画像としてメモリ6に格納してお
く(11−6)。これを繰り返し切り出した検査領域の
画像を複数獲得する(11−7)。教示を終了するか否
かを判断し(11−7)、教示終了が判断されたならば
複数の検査領域の画像を用いて固有画像を求め、検査用
固有画像データとして保存しておく(11−8)。教示
を継続するのであれば11−4へ戻り次に欠陥用サンプ
ルを撮像する。
An inspection area is positioned from each of the defect inspection sample images using template matching data, and the inspection area is automatically cut out by the template matching method and stored in the memory 6 as a non-defective image (11-6). ). This is repeated to obtain a plurality of images of the inspection area (11-7). It is determined whether or not the teaching is to be terminated (11-7). If the teaching is determined to be completed, a unique image is obtained by using the images of the plurality of inspection areas and stored as inspection unique image data (11-7). -8). If the teaching is continued, the process returns to step 11-4, and the defect sample is imaged.

【0069】次に検査用固有画像データを用いて検査モ
ードに入る。検査モードでは検査対象物を設置し、カメ
ラ1で撮像して画像を入力する(11−9)。次に教示
時に格納した検査領域の位置決め用データを用いて検査
対象物の画像中から検査領域(着目領域)の位置をテン
プレートマッチング法で切り出し検査画像としてメモリ
に格納する(11−10、11−11)。
Next, an inspection mode is entered using the unique image data for inspection. In the inspection mode, the inspection object is set, the image is captured by the camera 1, and an image is input (11-9). Next, the position of the inspection area (area of interest) is cut out from the image of the inspection object using the positioning data of the inspection area stored at the time of teaching by the template matching method and stored as an inspection image in the memory (11-10, 11-). 11).

【0070】検査用固有画像を用いて近似画像を生成し
入力画像(検査画像)との差画像を生成して欠陥を抽出
し、良否判定を行う(11−12、11−13)。そし
て、検査が終了したならば処理を終わり、検査が未終了
であれば11−9へ戻り次の検査対象物を撮像する(1
1−14)。
An approximate image is generated using the inspection specific image, a difference image from the input image (inspection image) is generated, defects are extracted, and pass / fail judgment is performed (11-12, 11-13). If the inspection is completed, the process is terminated. If the inspection is not completed, the process returns to step 11-9 to image the next inspection object (1).
1-14).

【0071】具体的な検査用サンプルとしてT字状の板
の所定位置に穴を空けた部品の欠陥検査を図解したもの
が図12である。教示を行うにはまず教示用に複数個の
検査対象物を集める。そのうち一つを検査領域の位置決
め用サンプルとして撮像し、位置決め用領域を決め切り
出す。図12では穴を中心にした正方形の領域を指定し
ている。また、この領域を検査領域としている。
FIG. 12 is a specific inspection sample illustrating a defect inspection of a component having a hole formed at a predetermined position on a T-shaped plate. In order to perform teaching, a plurality of inspection objects are first collected for teaching. One of them is imaged as a positioning sample of the inspection area, and the positioning area is determined and cut out. In FIG. 12, a square area centered on the hole is specified. This area is set as an inspection area.

【0072】ここでは位置決めに用いる領域と検査領域
は同じ領域としているがこれは異なる領域にしても良
い。その場合は位置決め領域と検査領域の相対座標を記
憶しておき、位置決め後その相対座標にしたがって検査
領域を切り出し以下の処理を行う。切り出された検査領
域の画像から共通成分を抽出する固有ベクトル生成処理
を行う。
Here, the area used for positioning and the inspection area are the same area, but they may be different areas. In that case, the relative coordinates of the positioning area and the inspection area are stored, and after the positioning, the inspection area is cut out according to the relative coordinates and the following processing is performed. Eigenvector generation processing for extracting a common component from the extracted image of the inspection area is performed.

【0073】以下は実施の形態1と同様の処理を行い、
検査用固有ベクトルデータを生成し格納しておく。検査
を行うときは、検査対象物の画像を取り込み、これを上
記位置決めデータを用いて検査領域を切り出す。以下の
検査処理は実施の形態1と同様に行う。
The following processes are performed in the same manner as in the first embodiment.
Inspection eigenvector data is generated and stored. When performing an inspection, an image of an inspection object is captured, and an inspection area is cut out of the image using the positioning data. The following inspection processing is performed in the same manner as in the first embodiment.

【0074】実施の形態5.以下、実施の形態5に係る
画像処理装置を図について説明する。図13は本実施の
形態に係る画像処理装置の構成図である。この画像処理
装置は実施の形態1に係る画像処理装置に、画像入力装
置2からフレームメモリ4に送られた画像信号を正規化
する正規化手段としての画像正規化回路17を付加した
構成とする。
Embodiment 5 Hereinafter, an image processing apparatus according to the fifth embodiment will be described with reference to the drawings. FIG. 13 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus has a configuration in which an image normalization circuit 17 as a normalizing means for normalizing an image signal sent from the image input apparatus 2 to the frame memory 4 is added to the image processing apparatus according to the first embodiment. .

【0075】図14はこの画像処理装置の処理の流れを
示すフローチャートである。教示作業は次のように行
う。検査対象物の良品サンプルを複数集める。各サンプ
ルを検査時と同じ環境に設置する。その良品サンプルを
カメラ1で撮像した後、これら良品サンプルの画像をN
枚取り込み画像正規化回路17で正規化処理を行う(1
4−1、14−2)。ここでいう正規化とは画像濃度の
正規化の意味で標準偏差と平均濃度を最初の画像に揃え
る。画像を正規化して固有画像を求めフレームメモリ4
に格納する(14−3)。以下は実施の形態1と同様に
固有ベクトルを求め検査用データとして格納しておく。
FIG. 14 is a flowchart showing the flow of the processing of the image processing apparatus. The teaching work is performed as follows. Collect multiple non-defective samples of the inspection object. Place each sample in the same environment as the test. After imaging the non-defective sample with the camera 1, the images of these non-defective samples are
A normalization process is performed by the image capturing image normalization circuit 17 (1).
4-1 and 14-2). Here, the normalization means the normalization of the image density. The standard deviation and the average density are aligned with the first image. Normalize image to obtain unique image Frame memory 4
(14-3). Hereinafter, the eigenvectors are obtained and stored as inspection data as in the first embodiment.

【0076】次に検査モードに入る。検査モードでは検
査対象物を設置し画像を入力する(14−4)。教示時
と同様に入力された画像を正規化した後、フレームメモ
リ4に格納する(14−5)。以下は実施の形態1と同
様に固有画像から近似画像を生成し(14−6)、検査
画像との差画像を作る(14−7)。
Next, the inspection mode is entered. In the inspection mode, an inspection object is set and an image is input (14-4). After normalizing the input image in the same manner as in teaching, the image is stored in the frame memory 4 (14-5). Hereinafter, similar to the first embodiment, an approximate image is generated from the unique image (14-6), and a difference image from the inspection image is generated (14-7).

【0077】そして差画像の2値画像を作った後に検査
対象部の面積を求める(14−8、14−9)。求めた
面積はしきい値を越えたか否かを判定し、欠陥抽出と良
否判定を行う(14−10)。しきい値を越えた場合は
欠陥なし(14−12)、しきい値を越えない場合は欠
陥ありと判定する(14−11)。
After the binary image of the difference image is created, the area of the inspection object part is obtained (14-8, 14-9). It is determined whether or not the obtained area exceeds a threshold value, and defect extraction and pass / fail determination are performed (14-10). If the threshold value is exceeded, it is determined that there is no defect (14-12), and if it does not exceed the threshold value, it is determined that there is a defect (14-11).

【0078】具体的なサンプルとしてT字状の板の所定
位置に穴を空けた部品の欠陥検査を図解したものが図1
5である。図に示したように入力される教示画像あるい
は検査画像は撮像時の環境の変化(天候、時間など)に
よって濃度分布が変化する。
FIG. 1 is a specific sample illustrating a defect inspection of a part having a hole formed at a predetermined position on a T-shaped plate.
5 As shown in the figure, the density distribution of the input teaching image or inspection image changes due to a change in environment (weather, time, etc.) at the time of imaging.

【0079】これを正規化することによって最初の画像
と同様の濃度分布の画像を生成する。正規化された画像
を用いることによって撮像時の環境の変化に左右されな
い信頼性の高い欠陥検査が期待できる。
By normalizing this, an image having the same density distribution as the first image is generated. By using the normalized image, a highly reliable defect inspection that is not affected by changes in the environment at the time of imaging can be expected.

【0080】実施の形態6.以下、実施の形態6に係る
画像処理装置を図について説明する。図16は本画像処
理装置の構成図である。この画像処理装置は実施の形態
1に係る画像処理装置に固有空間における良品の重心と
範囲を求めるパラメータ空間(クラス)特徴量計算回路
18と計算結果を格納する良品特徴量格納装置19を付
加した構成とする。
Embodiment 6 FIG. Hereinafter, an image processing apparatus according to Embodiment 6 will be described with reference to the drawings. FIG. 16 is a configuration diagram of the present image processing apparatus. In this image processing apparatus, a parameter space (class) feature quantity calculating circuit 18 for obtaining the center of gravity and range of non-defective products in the eigenspace and a non-defective feature quantity storage device 19 for storing the calculation result are added to the image processing apparatus according to Embodiment 1. Configuration.

【0081】図17は本実施の形態に係る画像処理装置
の処理の流れを示すフローチャートである。まず、教示
作業は次のように行う。検査対象物の良品サンプルの固
有画像を求めるまでは処理17−1、17−2は実施の
形態1と同じ処理を行う。次に、図18のように全ての
画像の座標の重心と範囲を求め良品データとして良品特
徴量格納装置19に格納しておく(17−3、17−
4)。
FIG. 17 is a flowchart showing the flow of processing of the image processing apparatus according to the present embodiment. First, the teaching operation is performed as follows. Until a unique image of a non-defective sample of the inspection object is obtained, processes 17-1 and 17-2 perform the same processes as in the first embodiment. Next, as shown in FIG. 18, the center of gravity and range of the coordinates of all the images are obtained and stored in the non-defective feature amount storage device 19 as non-defective data (17-3, 17-).
4).

【0082】次に検査処理の方法について述べる。検査
画像の近似画像を生成するまでは17−5、17−6に
沿って実施の形態1と同じ処理を行う。その後検査画像
の固有空間における座標を求め(17−7)。次に、上
記良品データの座標との比較を行い(17−8)、検査
画像の固有空間における座標が良品データの座標の範囲
内であれば欠陥なしで良品と判定し(17−10)、範
囲外であれば欠陥ありで不良との判定を行いユーザに示
す(17−9)。
Next, the inspection processing method will be described. Until an approximate image of the inspection image is generated, the same processing as in the first embodiment is performed along 17-5 and 17-6. Thereafter, the coordinates of the inspection image in the eigenspace are obtained (17-7). Next, comparison with the coordinates of the non-defective data is performed (17-8), and if the coordinates in the unique space of the inspection image are within the range of the coordinates of the non-defective data, it is determined to be non-defective without defects (17-10). If it is out of the range, it is determined that there is a defect and is defective, and the result is shown to the user (17-9).

【0083】実施の形態7.次に、実施の形態7に係る
画像処理装置を図について説明する。図19は本実施の
形態に係る画像処理装置の構成図である。この画像処理
装置は実施の形態6に係る画像処理装置に固有空間の距
離を正規化して求めるマハラノビス距離計算手段として
のマハラノビス距離計算回路21を付加した構成とす
る。
Embodiment 7 FIG. Next, an image processing apparatus according to Embodiment 7 will be described with reference to the drawings. FIG. 19 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus has a configuration in which a Mahalanobis distance calculation circuit 21 is added to the image processing apparatus according to Embodiment 6 as Mahalanobis distance calculation means for normalizing a distance in an eigenspace.

【0084】図20はこの画像処理装置の処理の流れを
示すフローチャートである。まず、教示作業は次のよう
に行う。教示画像を取り込んで、この画像より固有画像
を求めて検査対象物の教示サンプルの全ての画像の座標
の重心を求めるまでの処理20−1〜20−3は実施の
形態6と同じ処理を行う。この処理の後、良品クラス
(教示画像クラス)の重心と共分散行列を求め良品デー
タとして良心データ記憶部19に格納しておく(20−
3)。
FIG. 20 is a flowchart showing the flow of the processing of this image processing apparatus. First, the teaching operation is performed as follows. Processes 20-1 to 20-3 from capturing a teaching image to obtaining a unique image from this image and obtaining the barycenter of the coordinates of all the images of the teaching sample of the inspection object are the same as those in the sixth embodiment. . After this processing, the center of gravity and the covariance matrix of the non-defective class (teaching image class) are obtained and stored in the conscience data storage unit 19 as non-defective data (20-
3).

【0085】次に検査処理の方法について述べる。検査
画像の近似画像を生成するまでの処理20−3〜20−
5は実施の形態6と同じ処理を行う。その後、固有空間
における良品クラス(教示画像クラス)と検査画像クラ
スとの距離をマハラノビス距離をもちいて計算し(20
−6)、図21に示すように距離の大きさが範囲内であ
れば良品と判定し範囲外であれば不良との判定を行いユ
ーザに示す。
Next, the inspection processing method will be described. Processing 20-3 to 20- until an approximate image of the inspection image is generated
5 performs the same processing as in the sixth embodiment. Then, the distance between the good class (teaching image class) and the inspection image class in the eigenspace is calculated using the Mahalanobis distance (20).
-6), if the magnitude of the distance is within the range as shown in FIG. 21, it is determined to be good, and if it is out of the range, it is determined to be defective and shown to the user.

【0086】マハラノビス距離 それぞれのクラスが多次元の正規分布に従うと仮定した
場合、マハラノビス距離はあるデータからクラスまでの
最も自然な距離を与える。すなわち、画像xiからクラ
スμへのマハラノビス距離は、クラスのもつ固有の分散
による影響を正規化した空間での距離として式5のdi
で定められる。
Mahalanobis distance Assuming that each class follows a multidimensional normal distribution, the Mahalanobis distance gives the most natural distance from some data to the class. That is, the Mahalanobis distance from the image xi to the class μ is expressed as di in Equation 5 as a distance in a space in which the influence of the inherent variance of the class is normalized.
Is determined by

【0087】[0087]

【数4】 (Equation 4)

【0088】ωjkはそのクラスの分散共分散行列Vの逆
行列W=V-1の(j,k)要素である。nは空間次元数
である。上記処理方法の参考文献として、高木、下田
監修 :画像解析ハンドブック,東京大学出版会,19
91がある。
Ω jk is the (j, k) element of the inverse matrix W = V −1 of the variance-covariance matrix V of the class. n is the number of spatial dimensions. Takagi, Shimoda
Supervision: Image Analysis Handbook, University of Tokyo Press, 19
There are 91.

【0089】実施の形態8.次に、実施の形態8に係る
画像処理装置を図について説明する。図22は本実施の
形態に係る画像処理装置の構成図である。この画像処理
装置は実施の形態6に不良データを格納する不良データ
格納装置21を付加した構成とする。尚、CPU5でク
ラス計算手段を構成する。
Embodiment 8 FIG. Next, an image processing apparatus according to Embodiment 8 will be described with reference to the drawings. FIG. 22 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus has a configuration in which a failure data storage device 21 for storing failure data is added to the sixth embodiment. Note that the CPU 5 constitutes a class calculation means.

【0090】図23は本実施の形態に係る画像処理装置
の教示処理の流れを示すフローチャートである。まず、
教示作業は次のように行う。検査対象物の良品サンプル
(教示画像)を取り込み、固有画像を求めるまでの23
−1、23−2の処理は実施の形態1と同じ処理を行
う。更に、被検査物の画像を取り込んだ後に(23−
2)、各画像について良品か不良品かを判断する検査モ
ード(23−4)は前記各実施例で説明したものと同様
である。
FIG. 23 is a flowchart showing the flow of a teaching process of the image processing apparatus according to the present embodiment. First,
The teaching work is performed as follows. Until the non-defective sample (teaching image) of the inspection object is taken in and the unique image is obtained, 23
The processing of -1, 23-2 is the same as that of the first embodiment. Further, after capturing the image of the inspection object (23-
2) The inspection mode (23-4) for determining whether each image is a non-defective product or a defective product is the same as that described in each embodiment.

【0091】ユーザは良品、不良品判断結果よりサンプ
ルは良品か不良品かのどちらかを選択してもらい入力装
置より入力する(23−5)。また、全ての画像の座標
の重心と範囲を求め良品データか不良品データかを判断
する(23−6)。そして、良品であればその画像を良
品のクラスに加えて良品データ格納装置19に格納する
(23−7)。また、不良品であればその画像を不良品
のクラスに加えて不良品データ格納装置21に格納して
おく(23−8)。
The user selects a non-defective or non-defective sample from the results of the non-defective / defective judgment and inputs the sample from the input device (23-5). Further, the center of gravity and range of the coordinates of all the images are obtained, and it is determined whether the data is good data or defective data (23-6). If the image is non-defective, the image is added to the non-defective class and stored in the non-defective data storage device 19 (23-7). If it is defective, the image is stored in the defective data storage device 21 in addition to the class of the defective product (23-8).

【0092】次に欠陥検査処理の方法について述べる。
検査画像の近似画像を生成するまでは実施の形態6と同
じ処理を行う。その後固有空間における座標を求め、上
記良品データとの比較を行い良品の範囲内であれば良品
と判定し範囲外であれば不良品データとの比較を行い不
良品の範囲内であれば不良品との判定を行いユーザに示
す(23−9、23−10)。
Next, a method of the defect inspection processing will be described.
Until an approximate image of the inspection image is generated, the same processing as in the sixth embodiment is performed. After that, the coordinates in the unique space are obtained, compared with the above-mentioned non-defective data, judged as non-defective if within the range of non-defective products, and compared with defective data if out of range. Is determined and shown to the user (23-9, 23-10).

【0093】また、どちらにも含まれない場合は教示操
作と同様にユーザに良品/不良品を選択し選択結果を入
力装置にCPUに入力してもらう(23−5)。そして
選択結果が良品であればその被検査画像を良品のクラス
に加える(23−7)。また、選択結果が不良品であれ
ばその被検査画像を不良品のクラスに加える(23−
7)。
If neither is included, the user selects non-defective / defective products in the same manner as the teaching operation, and asks the input device to input the selection result to the CPU (23-5). If the selection result is a non-defective product, the image to be inspected is added to the non-defective class (23-7). If the selection result is defective, the inspection image is added to the defective class (23-
7).

【0094】実施の形態9.次に、実施の形態9に係る
画像処理装置を図について説明する。図25は本実施の
形態に係る画像処理装置の構成図である。この画像処理
装置は実施の形態1に寄与率状態判定手段としての固有
画像寄与率状態チェック機能22と寄与率記録手段とし
ての寄与率記録装置23を付加した構成とする。なお、
CPU5は再教示警告手段を構成する。
Embodiment 9 FIG. Next, an image processing apparatus according to Embodiment 9 will be described with reference to the drawings. FIG. 25 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus has a configuration in which a unique image contribution rate state check function 22 as contribution rate state determination means and a contribution rate recording apparatus 23 as contribution rate recording means are added to the first embodiment. In addition,
The CPU 5 constitutes a re-teach warning unit.

【0095】図26は本実施の形態に係る画像処理装置
の教示処理の流れを示すフローチャートである。教示作
業(26−1)は実施の形態1と同様に行う。検査(2
6−2)は次のように行う。被検査物を撮像しあらかじ
め教示した固有画像を用いて近似画像を生成する。近似
画像生成時に用いた固有画像が近似画像を生成するのに
寄与した割合を表す寄与率を寄与率記録装置に格納する
(26−3)。
FIG. 26 is a flowchart showing the flow of the teaching process of the image processing apparatus according to the present embodiment. The teaching operation (26-1) is performed in the same manner as in the first embodiment. Inspection (2
6-2) is performed as follows. An approximation image is generated by imaging the object to be inspected and using a unique image taught in advance. The contribution ratio indicating the ratio of the contribution of the unique image used to generate the approximate image to the generation of the approximate image is stored in the contribution ratio recording device (26-3).

【0096】次に寄与率記録の状態チェック機能によっ
て過去t1回(たとえばt1=16)の寄与率データを
ロードする(26−4)。寄与率の例を図27に示す。
図の例では寄与率は最初は70%以上で安定しているが
途中から突然寄与率が下がり、低いままで推移してい
る。このような時は対象物が変わったことが推定できる
ので、教示をし直した方が正確な検査ができる(26−
5)。
Next, the contribution data of the past t1 times (for example, t1 = 16) is loaded by the state check function of the contribution recording (26-4). FIG. 27 shows an example of the contribution ratio.
In the example shown in the figure, the contribution rate is initially 70% or more and is stable, but the contribution rate suddenly drops in the middle and remains low. In such a case, it can be estimated that the object has changed, so that re-teaching can provide a more accurate inspection (26-
5).

【0097】そこで連続して寄与率が低い時、たとえば
連続5回以上寄与率が70%を下回った時には警告を発
するようにする(26−6)。警告が発せられたらユー
ザは検査処理を一旦終了して教示をやり直し(26−
7)、固有画像を更新する(26−8)。そして、検査
を継続するか否かを判断し(26−9)、継続するので
あれば26−1へ戻り教示作業を行う。しかし、継続し
なければ処理を終了する。
Therefore, a warning is issued when the contribution rate is low continuously, for example, when the contribution rate falls below 70% five times or more consecutively (26-6). When a warning is issued, the user once ends the inspection process and starts teaching again (26-
7) Update the unique image (26-8). Then, it is determined whether or not to continue the inspection (26-9). If the inspection is to be continued, the process returns to 26-1 to perform the teaching operation. However, if it does not continue, the process ends.

【0098】実施の形態10.次に、実施の形態10に
係る画像処理装置を図について説明する。図28は本実
施の形態に係る画像処理装置の構成図である。この画像
処理装置は実施の形態1に相関値状態判定手段としての
相関値状態チェック回路24と相関値記録手段としての
位置決め相関値記録装置25を付加した構成とする。
Embodiment 10 FIG. Next, an image processing apparatus according to Embodiment 10 will be described with reference to the drawings. FIG. 28 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus has a configuration in which a correlation value state check circuit 24 as correlation value state determination means and a positioning correlation value recording device 25 as correlation value recording means are added to the first embodiment.

【0099】図29は本実施の形態に係る画像処理装置
の教示処理の流れを示すフローチャートである。教示作
業(29−1)は実施の形態1と同様に行う。検査は次
のように行う。被検査物を撮像しあらかじめ教示したテ
ンプレートデータを用いて検査領域の位置決めを行う
(29−2)。テンプレートマッチング時に計算された
相関値を相関値記録装置25に格納する(29−3)。
FIG. 29 is a flowchart showing the flow of a teaching process of the image processing apparatus according to the present embodiment. The teaching operation (29-1) is performed in the same manner as in the first embodiment. The inspection is performed as follows. The object to be inspected is imaged, and the inspection area is positioned using template data taught in advance (29-2). The correlation value calculated at the time of template matching is stored in the correlation value recording device 25 (29-3).

【0100】次に相関値記録の状態チェック機能によっ
て過去t1回(たとえばt1=16)の相関値データを
ロードする(29−4)。相関値の時間履歴の例を図3
0に示す。図の例では相関値は最初は0.7以上で安定
しているが途中から突然相関値が下がり、低いままで推
移している。このような時は対象物が変わったことが推
定できるので(29−5)、教示をし直した方が正確な
位置決めができる。
Next, the correlation value data of the past t1 times (for example, t1 = 16) is loaded by the correlation value recording state check function (29-4). Fig. 3 shows an example of time history of correlation values
0 is shown. In the example shown in the figure, the correlation value is initially 0.7 or more and is stable, but the correlation value suddenly drops in the middle and remains low. In such a case, it can be estimated that the target object has changed (29-5), so that the correct positioning can be achieved by re-teaching.

【0101】そこで連続して相関値が低い時、たとえば
連続5回以上相関値が0.7を下回った時には警告を発
するようにする(29−6)。位置決め用テンプレート
の教示処置を行い(29−7)、位置決め用テンプレー
トを更新する(29−8)。そして検査を継続するか否
かを判断し(26−9)、継続するのであれば26−1
へ戻り教示作業を行う(29−1)。しかし、継続しな
ければ処理を終了する。
Therefore, a warning is issued when the correlation value is continuously low, for example, when the correlation value is less than 0.7 for five consecutive times (29-6). The teaching process of the positioning template is performed (29-7), and the positioning template is updated (29-8). Then, it is determined whether or not to continue the inspection (26-9).
Then, the teaching operation is performed (29-1). However, if it does not continue, the process ends.

【0102】実施の形態11.次に、実施の形態11に
係る画像処理装置を図について説明する。図31は本実
施の形態に係る画像処理装置の構成図である。この画像
処理装置は実施の形態1に、予め教示タイミングデータ
を格納した教示タイミングデータ記憶装置28、画像処
理装置の稼働に伴って時刻を計時するタイマ26、ロッ
ト交換タイミングに併せてロット交換タイミング情報を
出力する装置コントローラ27、装置コントローラ27
より出力された情報をCPU5に入力させる通信管理装
置29を備えている。
Embodiment 11 FIG. Next, an image processing apparatus according to Embodiment 11 will be described with reference to the drawings. FIG. 31 is a configuration diagram of the image processing apparatus according to the present embodiment. This image processing apparatus is different from the first embodiment in that a teaching timing data storage device 28 in which teaching timing data is stored in advance, a timer 26 that counts time with the operation of the image processing device, and lot replacement timing information Device controller 27 that outputs
A communication management device 29 for inputting information output from the CPU 5 to the CPU 5 is provided.

【0103】CPU5は、教示タイミングデータ記憶装
置28に格納されている教示タイミングデータと装置コ
ントローラ27より出力されたロット交換タイミング情
報を照合してタイミングが一致したならば教示処理を行
う。あるいは、CPU5はタイマより時刻データを入力
し、予め設定された時刻になったならば教示処理を行
う。
The CPU 5 checks the teaching timing data stored in the teaching timing data storage device 28 with the lot replacement timing information output from the device controller 27, and performs a teaching process if the timings match. Alternatively, the CPU 5 inputs time data from a timer and performs a teaching process when a preset time comes.

【0104】図31は本実施の形態に係る画像処理装置
の教示処理の流れを示すフローチャートである。教示作
業(32−1)は実施の形態1と同様に行う。検査処理
(32−2)を実施の形態1のように行った後、タイマ
26の時刻をチェックして教示タイミングチェックを行
うと共に(32−3)、装置コントローラ27よりのロ
ット交換タイミング情報を取り込み装置ロット状態をチ
ェックする(32−4)。そして、教示タイミングデー
タあるいはタイマによる時刻を照合して教示タイミング
であるか否かを判断する(32−5)。教示タイミング
でなければ新たに被検査物を取り込まずに教示処理を行
い、固有画像を更新する(32−6、32−7)。教示
データ更新後は32−1へ戻り検査処理を続ける。
FIG. 31 is a flowchart showing the flow of the teaching process of the image processing apparatus according to the present embodiment. The teaching operation (32-1) is performed in the same manner as in the first embodiment. After performing the inspection process (32-2) as in the first embodiment, the time of the timer 26 is checked to perform the teaching timing check (32-3), and the lot exchange timing information from the device controller 27 is fetched. The equipment lot status is checked (32-4). Then, it is determined whether it is the teaching timing by comparing the teaching timing data or the time by the timer (32-5). If it is not the teaching timing, the teaching processing is performed without newly taking in the inspection object, and the unique image is updated (32-6, 32-7). After the teaching data is updated, the process returns to 32-1 to continue the inspection process.

【0105】この結果、装置コントローラ27との通信
により、装置の立ち上げ時、再稼働時、ロット変更時な
どサンプルのばらつきが発生しやすいタイミング時に教
示画像を取得することで、検査対象物の製品としてのバ
ラツキを含んだ画像を獲得できるため欠陥発生の誤報が
減り欠陥部分の抽出精度が良くなる。
As a result, by communicating with the device controller 27, the teaching image is acquired at the timing when the variation of the sample is likely to occur, such as when the device is started up, restarted, or when the lot is changed. As a result, it is possible to obtain an image including the variation, thereby reducing false reports of defect occurrence and improving the accuracy of extracting a defective portion.

【0106】[0106]

【発明の効果】請求項第1項の発明によれば、複数の画
像を教示するため被検査対象の移動だけでなく対象物の
形状ばらつきや見え方のばらつきにも対応して被検査対
象の欠陥の有無を判定でき、被検査対象画像の2値化と
粒子解析処理を行うので局所的な異常(欠陥)を検出で
きるため欠陥検出精度が向上するという効果がある。
According to the first aspect of the present invention, since a plurality of images are taught, not only the movement of the object to be inspected but also the variation of the shape and the appearance of the object can be accommodated. The presence / absence of a defect can be determined, and the binarization and particle analysis processing of the image to be inspected are performed, so that a local abnormality (defect) can be detected.

【0107】請求項第2項の発明によれば、教示時にあ
らかじめ時間と信頼性の関係をユーザに示すので、最適
な固有画像数を決定できるという効果がある。
According to the second aspect of the present invention, since the relationship between time and reliability is shown to the user in advance at the time of teaching, there is an effect that the optimum number of unique images can be determined.

【0108】請求項第3項の発明によれば、教示テーブ
ルにサンプルを乗せ、カメラ、照明、テーブルをコント
ロールすることによって検査時に想定されるばらつきを
あらかじめ発生させ教示することができるので対象物が
製造過程でバラツキをもっていても欠陥のみを正しく抽
出できるという効果がある。
According to the third aspect of the present invention, by placing a sample on the teaching table and controlling the camera, the illumination and the table, it is possible to generate and teach in advance the variations expected during the inspection, so that the object can be taught. There is an effect that only defects can be correctly extracted even if there is variation in the manufacturing process.

【0109】請求項第4項の発明によれば、あらかじめ
位置決めを行うことによって精度良く欠陥の抽出ができ
るという効果がある。また、必要な領域のみを処理する
ことによって誤報を削減できるという効果がある。
According to the invention of claim 4, there is an effect that a defect can be accurately extracted by performing positioning in advance. Further, there is an effect that false information can be reduced by processing only a necessary area.

【0110】請求項第5項の発明によれば、入力された
画像の濃度を正規化した後検査を行うので入力画像の濃
度変動による誤認識を削減できるという効果がある。
According to the fifth aspect of the present invention, since the inspection is performed after normalizing the density of the input image, there is an effect that erroneous recognition due to the density fluctuation of the input image can be reduced.

【0111】請求項第6項の発明によれば、固有空間に
射影した段階で良否判定を行うので計算時間を短縮でき
るという効果がある。
According to the sixth aspect of the present invention, the pass / fail judgment is made at the stage of projecting onto the eigenspace, so that there is an effect that the calculation time can be reduced.

【0112】請求項第7項の発明によれば、画像の固有
空間をマハラノビス距離で表現するので判定基準を一律
に設定でき簡単に扱えるという効果がある。
According to the seventh aspect of the present invention, since the eigenspace of an image is represented by the Mahalanobis distance, there is an effect that the criterion can be set uniformly and can be easily handled.

【0113】請求項第8項の発明によれば、固有空間に
写像しクラスタ分割している空間での距離によって良否
判定するため、しきい値の設定が不要になるという効果
がある。
According to the eighth aspect of the present invention, since the pass / fail judgment is made based on the distance in the space where the image is mapped to the eigenspace and divided into clusters, there is an effect that the setting of the threshold value becomes unnecessary.

【0114】請求項第9項の発明によれば、寄与率の変
化から固有ベクトルの妥当性を判断し教示のし直しを警
告することによって固有ベクトルを適切なものに修正す
ることができるので不良品の誤報を削減できるという効
果がある。
According to the ninth aspect of the present invention, it is possible to correct the eigenvector to an appropriate one by judging the validity of the eigenvector from the change in the contribution rate and warning of re-teaching, so that the defective product This has the effect of reducing false reports.

【0115】請求項第10項の発明によれば、相関値の
変化から位置決めに使うテンプレート画像の妥当性を判
断し教示のし直しを警告することによって位置決め用テ
ンプレート画像を適切なものに修正することができるの
で欠陥の誤認識を削減できるという効果がある。
According to the tenth aspect of the present invention, the validity of the template image used for positioning is determined from the change in the correlation value, and the positioning template image is corrected to an appropriate one by warning of re-teaching. Therefore, there is an effect that false recognition of a defect can be reduced.

【0116】請求項第11項の発明によれば、検査処理
中に教示画像を自動的に獲得するため、最初の教示は1
サンプルで良く教示作業が簡単であるという効果があ
る。また、ロット交換時に画像を取り込めば検査対象物
の製品としてのバラツキを含んだ画像を獲得できるた
め、誤報が減り欠陥部分の抽出精度が良くなるという効
果がある。
According to the eleventh aspect of the present invention, since the teaching image is automatically acquired during the inspection processing, the first teaching is one.
There is an effect that the teaching work is simple with a sample. In addition, if an image is taken in at the time of lot exchange, an image including the variation as a product of the inspection object can be obtained, so that there is an effect that false information is reduced and the accuracy of extracting a defective portion is improved.

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

【図1】 実施の形態1に係る画像処理装置の構成図で
ある。
FIG. 1 is a configuration diagram of an image processing apparatus according to a first embodiment.

【図2】 本実施の形態の動作を説明するフローチャー
トである。
FIG. 2 is a flowchart illustrating the operation of the present embodiment.

【図3】 本実施の形態に係る欠陥検出方法を図解した
図である。
FIG. 3 is a diagram illustrating a defect detection method according to the present embodiment.

【図4】 実施の形態2に係る画像処理装置の構成図で
ある。
FIG. 4 is a configuration diagram of an image processing apparatus according to a second embodiment.

【図5】 本実施の形態の動作を説明するフローチャー
トである。
FIG. 5 is a flowchart illustrating the operation of the present embodiment.

【図6】 本実施の形態にかかる固有画像の寄与率を画
面表示した場合の図である。
FIG. 6 is a diagram when a contribution ratio of a unique image according to the present embodiment is displayed on a screen.

【図7】 実施の形態3に係る画像処理装置の構成図で
ある。
FIG. 7 is a configuration diagram of an image processing apparatus according to a third embodiment.

【図8】 本実施の形態の動作を説明するフローチャー
トである。
FIG. 8 is a flowchart illustrating the operation of the present embodiment.

【図9】 本実施の形態に係る表示画面のバラツキを説
明する図である。
FIG. 9 is a diagram illustrating a variation in a display screen according to the present embodiment.

【図10】 実施の形態4に係る画像処理装置の構成図
である。
FIG. 10 is a configuration diagram of an image processing apparatus according to a fourth embodiment.

【図11】 本実施の形態の動作を説明するフローチャ
ートである。
FIG. 11 is a flowchart illustrating the operation of the present embodiment.

【図12】 本実施の形態に係る欠陥検出方法を図解し
た図である。
FIG. 12 is a diagram illustrating a defect detection method according to the present embodiment.

【図13】 実施の形態5に係る画像処理装置の構成図
である。
FIG. 13 is a configuration diagram of an image processing apparatus according to a fifth embodiment.

【図14】 本実施の形態の動作を説明するフローチャ
ートである。
FIG. 14 is a flowchart illustrating the operation of the present embodiment.

【図15】 本実施の形態に係る欠陥検出方法を図解し
た図である。
FIG. 15 is a diagram illustrating a defect detection method according to the present embodiment.

【図16】 実施の形態6に係る画像処理装置の構成図
である。
FIG. 16 is a configuration diagram of an image processing apparatus according to a sixth embodiment.

【図17】 実施の形態6の動作を説明するフローチャ
ートである。
FIG. 17 is a flowchart illustrating the operation of the sixth embodiment.

【図18】 本実施の形態に係る画像の重心と範囲を求
める方法を説明した図である。
FIG. 18 is a diagram illustrating a method for obtaining the center of gravity and range of an image according to the present embodiment.

【図19】 実施の形態7に係る画像処理装置の構成図
である。
FIG. 19 is a configuration diagram of an image processing apparatus according to a seventh embodiment.

【図20】 本本実施の形態の動作を説明するフローチ
ャートである。
FIG. 20 is a flowchart illustrating the operation of the present embodiment.

【図21】 本実施の形態に係るマハラノビス距離を求
める方法を説明する図である。
FIG. 21 is a diagram illustrating a method for obtaining a Mahalanobis distance according to the present embodiment.

【図22】 実施の形態8に係る画像処理装置の構成図
である。
FIG. 22 is a configuration diagram of an image processing apparatus according to an eighth embodiment.

【図23】 本実施の形態の動作を説明するフローチャ
ートである。
FIG. 23 is a flowchart illustrating the operation of the present embodiment.

【図24】 実施の形態に係るFIG. 24 relates to the embodiment;

【図25】 実施の形態9に係る画像処理装置の構成図
である。
FIG. 25 is a configuration diagram of an image processing apparatus according to Embodiment 9;

【図26】 本実施の形態の動作を説明するフローチャ
ートである。
FIG. 26 is a flowchart illustrating the operation of the present embodiment.

【図27】 本実施の形態に係る教示時間の遷移に対す
る寄与率の変化の度合いを示したグラフである。
FIG. 27 is a graph showing the degree of change in the contribution ratio with respect to the transition of the teaching time according to the present embodiment.

【図28】 実施の形態10に係る画像処理装置の構成
図である。
FIG. 28 is a configuration diagram of an image processing apparatus according to a tenth embodiment.

【図29】 本実施の形態の動作を説明するフローチャ
ートである。
FIG. 29 is a flowchart illustrating the operation of the present embodiment.

【図30】 本実施の形態に係る教示時間の遷移に対す
るテンプレートマッチングの相関値の変化率の変化の度
合いを示したグラフである。
FIG. 30 is a graph showing the degree of change in the rate of change of the correlation value of template matching with respect to the transition of the teaching time according to the present embodiment.

【図31】 実施の形態11に係る画像処理装置の構成
図である。
FIG. 31 is a configuration diagram of an image processing apparatus according to an eleventh embodiment.

【図32】 本実施の形態の動作を説明するフローチャ
ートである。
FIG. 32 is a flowchart illustrating the operation of the present embodiment.

【図33】 従来の画像処理装置の構成図である。FIG. 33 is a configuration diagram of a conventional image processing apparatus.

【図34】 従来の画像処理装置の動作を説明するフロ
ーチャートである。
FIG. 34 is a flowchart illustrating an operation of a conventional image processing apparatus.

【符号の説明】[Explanation of symbols]

1 カメラ、2 入力装置、4 フレームメモリ、5
CPU、7 固有画像−タ記憶装置、10 固有画像寄
与率計算回路、11 照明、12 条件設定データ記憶
装置、13 照明コントローラ、14 テーブルコント
ローラ、15テンプレートデータ記憶装置、16 着目
切り出し回路、17 画像正規化回路、18 クラス特
徴量計算回路、19 良品特徴量格納装置、20 マハ
ラノビス距離計算回路、21 不良品データ記憶装置、
22 寄与率記録/状態チェック回路、23 寄与率記
録装置、24 相関値記録/状態チェック回路、25相
関値記録装置、27 装置コントローラ、28 教示タ
イミグデータ記憶装置。
1 camera, 2 input devices, 4 frame memory, 5
CPU, 7 unique image data storage device, 10 unique image contribution ratio calculation circuit, 11 illumination, 12 condition setting data storage device, 13 illumination controller, 14 table controller, 15 template data storage device, 16 target extraction circuit, 17 image normal Conversion circuit, 18 class feature quantity calculation circuit, 19 good feature quantity storage device, 20 Mahalanobis distance calculation circuit, 21 defective data storage device,
22 contribution ratio recording / status check circuit, 23 contribution ratio recording device, 24 correlation value recording / status check circuit, 25 correlation value recording device, 27 device controller, 28 teaching timing data storage device.

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 教示用サンプルおよび検査対象物を個々
に撮像する撮像手段と、 前記撮像手段によって撮像された教示用サンプルの画像
である教示画像から固有画像データを生成する固有画像
データ生成手段と、 前記撮像された検査対象物の画像である検査画像と前記
生成された固有画像データから近似画像を復元する近似
画像復元手段と、 前記検査画像と前記近似画像との差画像を生成する差画
像生成手段と、 この生成された差画像を2値化する2値化手段と、 2値画像を粒子解析し前記検査対象物の良否判定する判
定手段とを備えたことを特徴とする画像処理装置。
An imaging unit configured to individually capture a teaching sample and an inspection target; a unique image data generating unit configured to generate unique image data from a teaching image that is an image of the teaching sample captured by the imaging unit; Approximation image restoration means for restoring an approximation image from an inspection image which is an image of the imaged inspection object and the generated unique image data; and a difference image which generates a difference image between the inspection image and the approximation image. An image processing apparatus comprising: a generating unit; a binarizing unit configured to binarize the generated difference image; and a determining unit configured to perform a particle analysis on the binary image and determine whether the inspection object is good or not. .
【請求項2】 近似画像を復元するのに用いる固有画像
データの数と検査処理時間との関係、あるいは固有画像
データの数と寄与率で代表される検査の信頼性との関係
を計算する計算手段と、この計算手段によって計算され
た各関係を教示用サンプルの画像を取り込む教示時にユ
ーザにシミュレーションする機能を有した表示手段とを
備えたことを特徴とする請求項1に記載の画像処理装
置。
2. A calculation for calculating a relationship between the number of unique image data used for restoring an approximate image and an inspection processing time, or a relationship between the number of unique image data and an inspection reliability represented by a contribution ratio. 2. The image processing apparatus according to claim 1, further comprising: a display unit having a function of simulating a user at the time of teaching to take in an image of the teaching sample, the relationship calculated by the calculating unit. .
【請求項3】 教示用サンプルを移動させる移動テーブ
ルと、前記教示用サンプルを所定の角度から照射する照
明と、前記移動テーブルの移動を制御するコントローラ
と、前記照明の照射強度を制御するコントローラと、こ
れらコントローラに指令を出し前記教示用サンプルに対
する照明位置、照明強度を変えて各画像間にばらつきを
有した教示画像を生成する教示画像ばらつき生成手段と
を備えたことを特徴とする請求項1に記載の画像処理装
置。
3. A moving table for moving the teaching sample, illumination for irradiating the teaching sample from a predetermined angle, a controller for controlling the movement of the moving table, and a controller for controlling the irradiation intensity of the illumination. A teaching image variation generating means for issuing a command to these controllers to change an illumination position and an illumination intensity with respect to the teaching sample to generate a teaching image having a variation between the images. An image processing apparatus according to claim 1.
【請求項4】 検査対象物の画像である検査画像におい
て検査領域を決め、その検査領域に基づいてテンプレー
トマッチングデータを生成して格納するマッチングデー
タ生成手段と、 複数の教示サンプルの撮像画像である教示画像から前記
テンプレートマッチングデータに基づいて各検査領域を
切り出し、この切り出した検査領域の画像データより固
有画像データを生成する固有画像データ生成手段と、 前記検査領域切り出し手段で切り出された被検査対象画
像の検査領域画像と前記生成された固有画像データから
近似画像を復元する近似画像復元手段と、 前記被検査対象画像の検査領域画像と前記近似画像との
差画像を生成する差画像生成手段と、 この生成された差画像を2値化する2値化手段と、 2値画像を粒子解析し前記検査対象物の良否判定する判
定手段とを備えたことを特徴とする画像処理装置。
4. A matching data generating means for determining an inspection area in an inspection image which is an image of an inspection object, generating and storing template matching data based on the inspection area, and a captured image of a plurality of teaching samples. A unique image data generating unit that cuts out each inspection region from the teaching image based on the template matching data, and generates unique image data from the image data of the cut out inspection region; and an inspection target that is cut out by the inspection region cutting unit. Approximation image restoration means for restoring an approximate image from an inspection area image of an image and the generated unique image data; difference image generation means for generating a difference image between the inspection area image of the image to be inspected and the approximate image; A binarizing means for binarizing the generated difference image; and a particle analysis of the binary image and the inspection object The image processing apparatus characterized by comprising a quality determining means.
【請求項5】 撮像された各教示画像の濃度を正規化す
る正規化手段を備えたことを特徴とする請求項1に記載
の画像処理装置。
5. The image processing apparatus according to claim 1, further comprising a normalizing means for normalizing the density of each of the captured teaching images.
【請求項6】 教示に用いた教示画像を良品クラスとし
て固有空間中のクラスの特徴量を求めるクラス計算手段
と、 検査画像が与えられたときに固有空間中の座標と前記ク
ラスの特徴量によって検査対象物の良否判定する良否判
定手段とを備えたことを特徴とする請求項1に記載の画
像処理装置。
6. A class calculating means for obtaining a feature amount of a class in an eigenspace using a taught image used for teaching as a non-defective class, and using a coordinate in the eigenspace and a feature amount of the class when an inspection image is given. The image processing apparatus according to claim 1, further comprising: a quality determination unit configured to determine quality of the inspection target.
【請求項7】 固有空間上のクラスとある点との距離を
計算するのにマハラノビス距離を用いて計算するマハラ
ノビス距離計算手段を備えたことを特徴とする請求項6
に記載の画像処理装置。
7. A Mahalanobis distance calculation means for calculating a distance between a class on an eigenspace and a certain point using a Mahalanobis distance.
An image processing apparatus according to claim 1.
【請求項8】 教示画像ベクトルを固有空間中で良品ク
ラスと不良品クラスに分割する分割手段と、 前記固有空間内で各クラスとの距離を演算する距離演算
手段と、 その演算された距離によって検査対象物の良否判定する
良否判定手段とを備えたことを特徴とする請求項6に記
載の画像処理装置。
8. Dividing means for dividing a teaching image vector into a good class and a defective class in an eigenspace, distance calculating means for calculating a distance to each class in the eigenspace, and a distance calculated by the calculated distance The image processing apparatus according to claim 6, further comprising a quality determination unit configured to determine quality of the inspection target.
【請求項9】 近似画像生成時に各固有画像データの寄
与率を記録する寄与率記録手段と、寄与率の変化率から
教示画像の妥当性を判断する寄与率状態判定手段と、寄
与率の妥当性が悪いと判断したときに新たに対象物を教
示するように警告を発する再教示警告手段とを備えたこ
とを特徴とする請求項2に記載の画像処理装置。
9. A contribution rate recording means for recording a contribution rate of each unique image data at the time of generating an approximate image, a contribution rate state determination means for judging the validity of a teaching image from a change rate of the contribution rate, and a contribution rate validity. The image processing apparatus according to claim 2, further comprising: a re-teach warning unit that issues a warning to newly teach a target object when it is determined that the object is bad.
【請求項10】 被検査対象画像よりテンプレートマッ
チングにて検査領域画像の切り出しを行う際にテンプレ
ートマッチングの相関値を記録する相関値記録手段と、 相関値の変化率から教示画像の妥当性を判断する相関状
態判定手段と、 相関値が悪化していると判断したときに新たに教示サン
プルを教示するように警告を発する再教示警告手段とを
備えたことを特徴とする請求項4に記載の画像処理装
置。
10. A correlation value recording means for recording a correlation value of template matching when cutting out an inspection area image from an image to be inspected by template matching, and judging the validity of the teaching image from a change rate of the correlation value. 5. The method according to claim 4, further comprising: a correlation state determination unit that performs a correlation state determination, and a re-teach warning unit that issues a warning so as to newly teach a teaching sample when the correlation value is determined to be degraded. Image processing device.
【請求項11】 検査動作中の一定時間毎にあるいは被
検査対象となる部品供給ロットの入れ換え時に連動して
被検査対象より教示画像を取得することを特徴とする請
求項1に記載の画像処理装置。
11. The image processing according to claim 1, wherein a teaching image is acquired from the inspection target at regular intervals during the inspection operation or in conjunction with replacement of the component supply lot to be inspected. apparatus.
JP07846297A 1997-03-28 1997-03-28 Image processing device Expired - Fee Related JP3310898B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP07846297A JP3310898B2 (en) 1997-03-28 1997-03-28 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP07846297A JP3310898B2 (en) 1997-03-28 1997-03-28 Image processing device

Publications (2)

Publication Number Publication Date
JPH10274626A true JPH10274626A (en) 1998-10-13
JP3310898B2 JP3310898B2 (en) 2002-08-05

Family

ID=13662703

Family Applications (1)

Application Number Title Priority Date Filing Date
JP07846297A Expired - Fee Related JP3310898B2 (en) 1997-03-28 1997-03-28 Image processing device

Country Status (1)

Country Link
JP (1) JP3310898B2 (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000046749A (en) * 1998-07-31 2000-02-18 Yamatake Corp Component connection inspection method
JP2000171956A (en) * 1998-12-09 2000-06-23 Fuji Photo Film Co Ltd Method for deciding and correcting processing state of photosensitive material
JP2001337044A (en) * 2000-05-30 2001-12-07 Honda Motor Co Ltd Appearance inspection method for cast products
JP2002140693A (en) * 2000-10-31 2002-05-17 Keyence Corp Image processing parameter determining apparatus, image processing parameter determining method, and recording medium storing image processing parameter determining program
JP2003109003A (en) * 2001-09-28 2003-04-11 Keyence Corp Pattern matching method using pyramidal structure search, image detection circuit, image processing program and computer readable storage medium
JP2003240869A (en) * 2002-02-20 2003-08-27 Natl Inst For Land & Infrastructure Management Mlit Road condition judgment method
JP2010203845A (en) * 2009-03-02 2010-09-16 Omron Corp Device, method and program for defect detection
JP2011198269A (en) * 2010-03-23 2011-10-06 Seibu Electric & Mach Co Ltd Method and device for detecting position of package product
JP2013037510A (en) * 2011-08-08 2013-02-21 Juki Corp Image processing device
JP2013200238A (en) * 2012-03-26 2013-10-03 Mitsubishi Electric Corp Image inspection method and image inspection device
JP2017219529A (en) * 2016-06-07 2017-12-14 株式会社豊田中央研究所 Appearance abnormality inspection device, method, and program
WO2018225745A1 (en) * 2017-06-06 2018-12-13 株式会社デンソー External appearance examination device, conversion data generation device, and program
CN109300080A (en) * 2017-07-25 2019-02-01 欧姆龙株式会社 Image processing system and apparatus and non-volatile computer-readable recording medium
JP2020525940A (en) * 2017-06-27 2020-08-27 エヌイーシー ラボラトリーズ アメリカ インクNEC Laboratories America, Inc. Reconstructor and controller for anomaly detection
JP2023166293A (en) * 2022-05-09 2023-11-21 Jfeテクノリサーチ株式会社 Inspection method and inspection device
CN117301040A (en) * 2022-06-29 2023-12-29 尼得科株式会社 Determination device, pickup system and determination method

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000046749A (en) * 1998-07-31 2000-02-18 Yamatake Corp Component connection inspection method
JP2000171956A (en) * 1998-12-09 2000-06-23 Fuji Photo Film Co Ltd Method for deciding and correcting processing state of photosensitive material
JP2001337044A (en) * 2000-05-30 2001-12-07 Honda Motor Co Ltd Appearance inspection method for cast products
JP2002140693A (en) * 2000-10-31 2002-05-17 Keyence Corp Image processing parameter determining apparatus, image processing parameter determining method, and recording medium storing image processing parameter determining program
JP2003109003A (en) * 2001-09-28 2003-04-11 Keyence Corp Pattern matching method using pyramidal structure search, image detection circuit, image processing program and computer readable storage medium
JP2003240869A (en) * 2002-02-20 2003-08-27 Natl Inst For Land & Infrastructure Management Mlit Road condition judgment method
JP2010203845A (en) * 2009-03-02 2010-09-16 Omron Corp Device, method and program for defect detection
JP2011198269A (en) * 2010-03-23 2011-10-06 Seibu Electric & Mach Co Ltd Method and device for detecting position of package product
JP2013037510A (en) * 2011-08-08 2013-02-21 Juki Corp Image processing device
JP2013200238A (en) * 2012-03-26 2013-10-03 Mitsubishi Electric Corp Image inspection method and image inspection device
JP2017219529A (en) * 2016-06-07 2017-12-14 株式会社豊田中央研究所 Appearance abnormality inspection device, method, and program
WO2018225745A1 (en) * 2017-06-06 2018-12-13 株式会社デンソー External appearance examination device, conversion data generation device, and program
JP2018205163A (en) * 2017-06-06 2018-12-27 株式会社デンソー Appearance inspection device, conversion data generation device, and program
JP2020525940A (en) * 2017-06-27 2020-08-27 エヌイーシー ラボラトリーズ アメリカ インクNEC Laboratories America, Inc. Reconstructor and controller for anomaly detection
CN109300080A (en) * 2017-07-25 2019-02-01 欧姆龙株式会社 Image processing system and apparatus and non-volatile computer-readable recording medium
JP2023166293A (en) * 2022-05-09 2023-11-21 Jfeテクノリサーチ株式会社 Inspection method and inspection device
CN117301040A (en) * 2022-06-29 2023-12-29 尼得科株式会社 Determination device, pickup system and determination method

Also Published As

Publication number Publication date
JP3310898B2 (en) 2002-08-05

Similar Documents

Publication Publication Date Title
JP3310898B2 (en) Image processing device
TW571246B (en) System and method for dynamic image recognition
US7835566B2 (en) All surface data for use in substrate inspection
TW314646B (en)
US8260034B2 (en) Multi-modal data analysis for defect identification
WO2019001098A1 (en) Methods and systems for improved quality inspection
WO1999016010A1 (en) Automated visual inspection system and process for detecting and classifying defects
JP4442119B2 (en) Image recognition apparatus and image recognition method, and teaching apparatus and teaching method of image recognition apparatus
US7593564B2 (en) Method and apparatus for reviewing defect of subject to be inspected
CN117862068A (en) A defective product sorting program verification method, device and storage medium
Armingol et al. Statistical pattern modeling in vision-based quality control systems
JP2006284447A (en) Defect inspection apparatus and defect inspection method
JP4814116B2 (en) Mounting board appearance inspection method
JP3652589B2 (en) Defect inspection equipment
JP2924859B2 (en) Appearance inspection method and device
US6877151B2 (en) Photomask visual inspection system
Sweeney et al. Deep learning for semiconductor defect classification
JP2024092507A (en) Appearance inspection device and appearance inspection method
JP2003017378A (en) Semiconductor processing apparatus, semiconductor processing system, and semiconductor processing management method
de Souza Silva et al. Smart Machine Vision System to Improve Decision-Maker on the Assembly Line
Cortés-Perez et al. Quality control and inspection reliability of the PCB manufacturing process through convolutional networks
Newman et al. Bidirectional template matching for 3D CAD-based inspection
US20240193907A1 (en) Image processing apparatus, learning method of feature extractor, updating method of identifier, and image processing method
Yeh et al. Wavelet-based approach for ball grid array (BGA) substrate conduct paths inspection
Navarro-Gonzálezd et al. manufacturing process through

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080524

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20090524

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20100524

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100524

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20110524

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20110524

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20120524

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20120524

Year of fee payment: 10

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

Free format text: PAYMENT UNTIL: 20130524

Year of fee payment: 11

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

Free format text: PAYMENT UNTIL: 20140524

Year of fee payment: 12

LAPS Cancellation because of no payment of annual fees