JP2008241650A - Device for inspecting defect - Google Patents

Device for inspecting defect Download PDF

Info

Publication number
JP2008241650A
JP2008241650A JP2007086331A JP2007086331A JP2008241650A JP 2008241650 A JP2008241650 A JP 2008241650A JP 2007086331 A JP2007086331 A JP 2007086331A JP 2007086331 A JP2007086331 A JP 2007086331A JP 2008241650 A JP2008241650 A JP 2008241650A
Authority
JP
Japan
Prior art keywords
defect
defect candidate
candidate
inspection apparatus
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2007086331A
Other languages
Japanese (ja)
Inventor
Yuichi Abe
雄一 安部
Takashi Iwaki
隆志 岩城
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.)
Hitachi Industrial Equipment Systems Co Ltd
Original Assignee
Hitachi Industrial Equipment Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Industrial Equipment Systems Co Ltd filed Critical Hitachi Industrial Equipment Systems Co Ltd
Priority to JP2007086331A priority Critical patent/JP2008241650A/en
Publication of JP2008241650A publication Critical patent/JP2008241650A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method and a device for detecting defect stably by reducing misinformation, without generating information missing, even when a stain adheres onto a lens. <P>SOLUTION: This device has a defect candidate position 3D coordinate comparison means between frames, in addition to a defect candidate position frame coordinate comparison means between frames. The device also has a defect mask information generation means and a lens stain alarm generation means for determining that a defect candidate is a lens fouling, when a defect candidate having the same 3D coordinates in another frame does not exist relative to the defect candidate, when the same spot is imaged at least twice or more number of times. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

画像処理を行い欠陥検出をする欠陥検査装置に関する。   The present invention relates to a defect inspection apparatus that performs image processing and detects defects.

従来より、カメラで撮影した画像を画像処理して対象物表面の欠陥を検出することは一般的に行われている。しかし、機械加工現場などでは切子,油,水滴などがレンズなどに付着して、これを欠陥と誤認識するという問題がある。   Conventionally, it has been generally performed to detect defects on the surface of an object by performing image processing on an image captured by a camera. However, in machining sites, there is a problem that facets, oil, water droplets, etc. adhere to the lens and are mistakenly recognized as defects.

特許文献1には、このようなレンズに付着した汚れを画像処理で検知して、この汚れが欠陥検知において誤報(実際には欠陥ではないにも拘らず欠陥として扱ってしまう)の原因となるのを回避する手法を開示してある。ここでは検査対象を撮影するカメラで連続して撮影した2フレームの画像を比較して、2フレーム共に同じ位置(フレーム座標)において欠陥が検出されているとき、これはレンズ汚れであると判定して、警報を発したり、以後この位置において検知された欠陥はレンズ汚れによる誤報と解釈してマスク(欠陥として扱わない)している。   In Patent Document 1, such dirt adhering to the lens is detected by image processing, and this dirt causes a false report (detected as a defect even though it is not actually a defect) in defect detection. A technique for avoiding this is disclosed. Here, two frames of images continuously captured by a camera that shoots the inspection object are compared, and when a defect is detected at the same position (frame coordinates) in both frames, it is determined that this is lens contamination. Thus, an alarm is issued or a defect detected at this position is interpreted as a false alarm due to lens contamination and masked (not treated as a defect).

特開平6−148083号公報Japanese Patent Laid-Open No. 6-148083

特許文献1に開示してある手法では、レンズ汚れで隠れた部分に真の欠陥が存在していた場合に欠報(真の欠陥を見逃してしまう)が発生してしまう。   In the method disclosed in Patent Document 1, when a true defect exists in a portion hidden by lens dirt, a missing report (missing the true defect) occurs.

また、連続したフレームで偶然同じフレーム座標に真の欠陥が存在している場合、これらをレンズ汚れと認識して欠報が発生する。さらに、レンズ汚れと認識された部分は、その後欠陥がマスクされるためこのフレーム座標に写った欠陥については以後欠陥と扱われず欠報となってしまう。   Also, if there is a true defect in the same frame coordinates by chance in consecutive frames, these are recognized as lens contamination and a missing report occurs. Furthermore, since the defect recognized as the lens contamination is masked after that, the defect reflected in the frame coordinates is not treated as a defect and will be reported as missing.

多くの欠陥検査システムでは誤報よりも欠報の方が問題であり、欠陥の見逃しは欠陥検査システムにとって致命的である。レンズ汚れの検知では、欠報の増加を抑制しつつ、誤報を減らすことが課題である。   In many defect inspection systems, missing information is more problematic than false information, and missing a defect is fatal to the defect inspection system. In detecting lens dirt, it is a problem to reduce false alarms while suppressing an increase in missing reports.

本発明の目的は、レンズに汚れが付着した場合でも欠報を発生させることなく誤報を減らして、安定的に欠陥を検出する欠陥検査装置を提供することである。   An object of the present invention is to provide a defect inspection apparatus that can stably detect defects by reducing false alarms without generating missing alarms even when dirt is attached to a lens.

本発明は、上記課題を解決するために、撮像手段で撮像した1フレーム毎の画像データから欠陥候補を検出する欠陥検出手段と、検出された欠陥候補を記憶する欠陥候補記憶手段と、欠陥候補記憶手段で記憶された前フレームの画像データから検出された欠陥候補と現フレームの画像データから検出された欠陥候補とを二次元座標で比較し、欠陥候補の同一性を判定し、判定結果として二次元座標比較結果情報を生成する欠陥候補比較手段と、欠陥候補記憶手段で記憶された欠陥候補と現フレームの画像データから検出された欠陥候補とを三次元座標で比較し、欠陥候補の同一性を判定し、判定結果として三次元座標比較結果情報を生成する三次元欠陥候補比較手段と、二次元座標比較結果情報と三次元座標比較結果情報とに基づいて欠陥候補が撮像手段の汚れであると判定された場合、撮像手段欠陥警報信号を生成し、出力する撮像手段欠陥警報信号生成手段と、二次元座標比較結果情報と三次元座標比較結果情報とに基づいて欠陥候補が検査対象物の欠陥であると判定された場合、欠陥警報信号を生成し、出力する欠陥警報信号生成手段と、を有する構成とする。   In order to solve the above-described problems, the present invention provides a defect detection unit that detects a defect candidate from image data for each frame imaged by an imaging unit, a defect candidate storage unit that stores a detected defect candidate, and a defect candidate The defect candidate detected from the image data of the previous frame stored in the storage means and the defect candidate detected from the image data of the current frame are compared in two-dimensional coordinates, the identity of the defect candidate is determined, and the determination result is The defect candidate comparison unit that generates the two-dimensional coordinate comparison result information, the defect candidate stored in the defect candidate storage unit and the defect candidate detected from the image data of the current frame are compared in three-dimensional coordinates, and the defect candidate is identical. 3D defect candidate comparison means for determining the property and generating 3D coordinate comparison result information as a determination result, and based on the 2D coordinate comparison result information and the 3D coordinate comparison result information Is determined to be the contamination of the imaging means, based on the imaging means defect alarm signal generating means for generating and outputting the imaging means defect alarm signal, and the two-dimensional coordinate comparison result information and the three-dimensional coordinate comparison result information When it is determined that the defect candidate is a defect of the inspection object, a defect alarm signal generating unit that generates and outputs a defect alarm signal is provided.

レンズに汚れが付着した場合でも欠報を発生させることなく誤報を減らして、安定的に欠陥を検出する欠陥検査装置を提供できる。   It is possible to provide a defect inspection apparatus that can detect defects stably by reducing false alarms without generating missing alarms even when dirt is attached to the lens.

図2は本発明に係わる欠陥検査装置の一実施例の外観を表している。   FIG. 2 shows the appearance of an embodiment of the defect inspection apparatus according to the present invention.

検査対象物は円筒11の内面である。固定された円筒11にスコープヘッド12を挿入しながら円筒11の内面を撮影する。スコープヘッド12の移動や撮影に関する制御信号や画像情報は制御信号線14を通してPC13とやり取りされる。スコープヘッド12の移動や撮影のタイミングはPC13で制御され、取り込まれた画像はPC13に送られ、PC13において画像処理によって欠陥検出などが行われる。   The inspection object is the inner surface of the cylinder 11. The inner surface of the cylinder 11 is photographed while inserting the scope head 12 into the fixed cylinder 11. Control signals and image information relating to movement of the scope head 12 and photographing are exchanged with the PC 13 through the control signal line 14. The movement of the scope head 12 and the timing of photographing are controlled by the PC 13, the captured image is sent to the PC 13, and defect detection and the like are performed by image processing in the PC 13.

図3は欠陥検査装置のPC以外の部分を詳細に表したものである。   FIG. 3 shows in detail the part other than the PC of the defect inspection apparatus.

スコープヘッド12はリニアモータの可動子17と固定されており、台座などに固定されたリニアモータのレール18に対して前後に指定された長さだけ正確に移動させることが出来る。このリニアモータの移動に関する制御は位置制御信号を介してPC13が行う。リニアモータが指定の動作を完了すると位置制御応答信号によってPCは動作の完了を知ることが出来る。   The scope head 12 is fixed to a linear motor movable element 17 and can be accurately moved by a length specified in the front-rear direction with respect to a linear motor rail 18 fixed to a pedestal or the like. Control relating to the movement of the linear motor is performed by the PC 13 via a position control signal. When the linear motor completes the designated operation, the PC can know the completion of the operation by the position control response signal.

スコープヘッド12の先端にはLED照明15と撮像素子であるディジタルカメラ16が取り付けられており、LEDで円筒内部を照らして円筒内面をカメラで撮影することが出来る。撮影のタイミングは撮影制御信号を介してPCから制御できるようになっている。また、撮影した画像情報はPC13に送られて画像処理される。   At the tip of the scope head 12, an LED illumination 15 and a digital camera 16 as an image pickup device are attached. The inside of the cylinder can be illuminated with the LED and the inner surface of the cylinder can be photographed with the camera. The shooting timing can be controlled from the PC via a shooting control signal. The captured image information is sent to the PC 13 for image processing.

PC13はこれら一連の制御信号を使ってスコープヘッド12を移動させ、移動が完了したら撮影を行い画像を取得して、またスコープヘッド12を動かすといったシーケンスを実行することが出来る。   The PC 13 can execute a sequence of moving the scope head 12 using these series of control signals, capturing images when the movement is completed, and moving the scope head 12.

図4はスコープヘッド12の先端を正面から見たときの構造を表している。   FIG. 4 shows a structure when the tip of the scope head 12 is viewed from the front.

スコープヘッド12の円筒中央部にディジタルカメラ16が、その周りに数個のLED照明15が環状に配置されている。LED照明15の前や周囲には必要に応じて拡散フィルタや遮光板などを配置して円筒内を一様な明るさで照明できるようにすることも出来る。   A digital camera 16 is arranged at the center of the cylinder of the scope head 12, and several LED lights 15 are arranged around the digital camera 16. A diffusion filter, a light shielding plate, or the like may be disposed in front of or around the LED illumination 15 as necessary so that the inside of the cylinder can be illuminated with uniform brightness.

図5はスコープヘッド12先端の一例を表している。ディジタルカメラ16の前面にはレンズ19が剥き出しで配置されている。   FIG. 5 shows an example of the tip of the scope head 12. A lens 19 is exposed on the front surface of the digital camera 16.

図6はスコープヘッド12先端の別の一例を表している。ディジタルカメラ16のレンズ19は剥き出しにはなっておらず、スコープヘッド12を囲い込むように透明なカバー20が配置されている。   FIG. 6 shows another example of the tip of the scope head 12. The lens 19 of the digital camera 16 is not exposed, and a transparent cover 20 is disposed so as to surround the scope head 12.

図7はスコープヘッド12先端の別の一例を表している。レンズ19の前面には円錐形のミラー21が配置されており、ミラーが反射した円筒内面の画像をディジタルカメラ
16で取り込むようになっている。
FIG. 7 shows another example of the tip of the scope head 12. A conical mirror 21 is disposed in front of the lens 19, and an image of the inner surface of the cylinder reflected by the mirror is captured by the digital camera 16.

この発明が対象とするレンズ汚れとは単にレンズに付着した汚れだけではなく、ディジタルカメラ16で撮影する時のカバー20やミラー21などの光学系を全て含んだものである。また、汚れも油や切粉などの付着物だけではなく、レンズ19の傷など正常な撮影を妨げる要因全体を表している。したがって、カバー20に付着した油滴やミラー21の傷なども本発明が対象とするレンズ汚れの範疇である。   The lens dirt targeted by the present invention includes not only dirt adhered to the lens but also all optical systems such as the cover 20 and the mirror 21 when the digital camera 16 takes an image. Also, the dirt represents not only deposits such as oil and chips, but also the entire factors that hinder normal photographing such as scratches on the lens 19. Therefore, oil droplets adhering to the cover 20 and scratches on the mirror 21 are also categories of lens contamination targeted by the present invention.

図8は本欠陥検査装置における円筒内部の撮影方法を表している。   FIG. 8 shows a photographing method inside the cylinder in the defect inspection apparatus.

立体図は円筒11とスコープヘッド12を横から見たものである。(a),(b),
(c)は長さdだけカメラを進ませながら撮影しているところである。フレーム画像
(a′),(b′),(c′)は立体図の(a),(b),(c)のそれぞれの位置で撮影された画像である。カメラは視野23に写った対象物を画像として取得するが、カメラから遠くの対象物は小さく写り解像度は低くなってしまう。したがって画像処理を行う上で都合の良い高解像度な情報を得るためにはカメラを動かし、カメラから近い状態で撮影する必要がある。
The three-dimensional view shows the cylinder 11 and the scope head 12 as viewed from the side. (A), (b),
(C) is shooting while moving the camera by the length d. Frame images (a ′), (b ′), and (c ′) are images taken at respective positions (a), (b), and (c) in the three-dimensional view. The camera acquires the object captured in the field of view 23 as an image, but the object far from the camera is small and the resolution is low. Therefore, in order to obtain high-resolution information convenient for image processing, it is necessary to move the camera and take a picture in a state close to the camera.

本欠陥検査装置ではカメラから一定の距離にある幅dの円筒内面を画像情報として使用する。スコープヘッド12を長さdで送って(移動させて)いるため、これら幅dの円筒内面の画像情報を繋ぎ合わせれば円筒内面全体の画像を取得することが出来る。   In this defect inspection apparatus, a cylindrical inner surface having a width d at a certain distance from the camera is used as image information. Since the scope head 12 is sent (moved) by the length d, an image of the entire cylinder inner surface can be acquired by connecting the image information of the cylinder inner surface having the width d.

フレーム画像では(a′)〜(c′)とカメラが進んでゆくに従い、穴底24の輪郭の形状がだんだん大きな半径の円となってきているが、幅dの画像取込み部分は一定の半径と幅を持ったリングとして撮影される。   In the frame image, as the camera advances (a ′) to (c ′), the contour shape of the hole bottom 24 gradually becomes a circle with a large radius, but the image capture portion of the width d has a constant radius. And is taken as a ring with a width.

このように取り込まれた複数のフレーム画像は画像取込み部分22の情報だけを切り出して、幾何学的な変換を施しつなぎ合わせて展開図を生成する。展開図は仮想的に円筒内面に送り方向に切れ目を入れ、円周方向に開いた画像である。各フレーム画像のリング状の画像取込み部分22は全て幅がdで長さが円筒内面の円周に等しい短冊状の画像に変換される。   In the plurality of frame images thus captured, only the information of the image capturing portion 22 is cut out and subjected to geometric transformation to generate a developed view. The developed view is an image virtually cut in the feed direction on the inner surface of the cylinder and opened in the circumferential direction. The ring-shaped image capturing portions 22 of each frame image are all converted into strip-shaped images having a width d and a length equal to the circumference of the cylindrical inner surface.

この展開図の作成方法については特開平11−66316号公報に詳細に説明してある。   A method for creating this development is described in detail in Japanese Patent Laid-Open No. 11-66316.

図9は本欠陥検査装置における円筒内部の別の撮影方法を表している。   FIG. 9 shows another imaging method inside the cylinder in the defect inspection apparatus.

記号などは図8と同様であるが、図9が図8と異なる点は、送り幅がdと変わっていないのに対して、画像取込み部分22の幅が2dと2倍になっているところである。画像取込み部分22の幅が送り幅の2倍になったことで(a)と(b)或いは(b)と(c)の画像取込み部分22に重複が生じ、円筒11内面の全ての点が連続する2フレームの画像取込み部分22の両方に含まれるようになっている。   The symbols and the like are the same as in FIG. 8, but FIG. 9 differs from FIG. 8 in that the feed width is not changed from d, whereas the width of the image capturing portion 22 is doubled to 2d. is there. Since the width of the image capturing portion 22 is twice the feed width, duplication occurs in the image capturing portion 22 of (a) and (b) or (b) and (c), and all the points on the inner surface of the cylinder 11 are It is included in both two consecutive frames of the image capturing portion 22.

このようにして得られたフレーム画像の画像取込み部分22を短冊状に展開すると、幅が2dの短冊となり、送り幅のdずつずらしながら貼り合わせると全ての点で2枚の短冊が重なるようになる。重なった2枚の短冊の同一部分は幾何学的には同一の画像情報を持ち、ぴったりと(画像のズレがなく)重なる。しかし、照明条件の関係でカメラに近い側が明るく写り、遠い側が暗く写るため輝度差が生じている。   When the image capturing portion 22 of the frame image obtained in this way is developed into a strip shape, it becomes a strip having a width of 2d, and when pasting together while shifting the feed width by d, the two strips overlap at all points. Become. The same part of two overlapping strips has the same image information geometrically and overlaps exactly (no image shift). However, due to lighting conditions, the side closer to the camera appears brighter and the far side appears darker, resulting in a brightness difference.

図8のように送り幅と取込み幅を等しくしていると、短冊に重なり代がなく、各短冊が送り方向に輝度差を持っているため、繋ぎ合わせたときにつなぎ目に輝度の落差による横線が生じる。この横線は後の画像処理で悪影響を及ぼす可能性がある。しかし、図9のように短冊に重なり代があると、2つの短冊の輝度を連続的に変化するブレンド率でブレンドすることで輝度の落差による横線のない良好な画像を得ることが出来る。   If the feed width and the capture width are equal as shown in FIG. 8, there is no overlap margin between the strips, and each strip has a brightness difference in the feed direction. Occurs. This horizontal line may adversely affect later image processing. However, when there is an overlap margin between the strips as shown in FIG. 9, a good image free from horizontal lines due to a drop in luminance can be obtained by blending the luminances of the two strips at a blend ratio that continuously changes.

図10は本欠陥検査装置で撮像手段であるレンズの汚れがあった場合(ここではカバーの汚れ26を意味している)に取得した画像について説明している。   FIG. 10 illustrates an image acquired when the lens, which is an image pickup unit, is contaminated in this defect inspection apparatus (which means the dirt 26 of the cover here).

撮影条件はカバー20がついていることとカバーに汚れがあることを除けば図9と同じである。ここではカバー20は光学的に何の作用も持たないものとする。即ち、カバー
20によって光が屈折や反射などして画像が歪んだり、照明が映り込んだりすることは考えない。
The shooting conditions are the same as those in FIG. 9 except that the cover 20 is attached and the cover is dirty. Here, it is assumed that the cover 20 has no optical action. That is, it is not considered that the light is refracted or reflected by the cover 20 and the image is distorted or illumination is reflected.

カバー20に付着したカバーの汚れ26はフレーム画像中では円筒内面にある欠陥と区別し辛く、フレーム画像1枚だけでは、これが欠陥なのかレンズ汚れなのか判定できない。したがって、このようにフレーム画像中に欠陥のように写りこんだ対象を欠陥候補と呼ぶことにする。また、もし欠陥候補が欠陥ではなくレンズ汚れだった場合は、レンズ汚れと重なる円筒内面に偽欠陥25が存在すると考える。立体図上でこの偽欠陥25は白く表される。それに対して真の欠陥は黒く表すこととする。   The cover stain 26 attached to the cover 20 is difficult to distinguish from a defect on the inner surface of the cylinder in the frame image, and it is impossible to determine whether this is a defect or a lens stain with only one frame image. Therefore, an object that appears in the frame image like a defect is called a defect candidate. Further, if the defect candidate is not a defect but a lens stain, it is considered that a false defect 25 exists on the inner surface of the cylinder overlapping the lens stain. The false defect 25 is shown in white on the three-dimensional view. On the other hand, true defects are shown in black.

図11はスコープヘッド12を送り方向に移動させながら撮影を行ったときの偽欠陥
25の挙動について表したものである。
FIG. 11 shows the behavior of the false defect 25 when photographing is performed while moving the scope head 12 in the feeding direction.

レンズ汚れのカメラとの相対位置は変化しないので、フレーム画像上では偽欠陥25はカメラの動きによって移動しない。立体図で考えると、偽欠陥25はカメラを送った分だけ前進するように見える。   Since the relative position of the lens dirt with the camera does not change, the false defect 25 does not move on the frame image due to the movement of the camera. Considering a three-dimensional view, the false defect 25 seems to move forward by the amount sent by the camera.

従来技術として取り上げた特許文献1において連続するフレームでフレーム座標(フレーム画像における位置)が変化しない欠陥候補をレンズ汚れと判断しているのはこの原理に基づいている。   It is based on this principle that a defect candidate whose frame coordinate (position in a frame image) does not change in consecutive frames in Patent Document 1 taken up as a conventional technique is determined as lens contamination.

図12はスコープヘッド12を送り方向に移動させながら撮影を行ったときの真欠陥
27の挙動について表したものである。
FIG. 12 shows the behavior of the true defect 27 when photographing is performed while moving the scope head 12 in the feeding direction.

真欠陥27はカメラと共に動くことはないので、立体図における真欠陥27の位置は不変である。フレーム画像における真の欠陥位置はカメラを送り方向に移動させると送り方向とは逆に(即ち画面の外側に)移動する。   Since the true defect 27 does not move with the camera, the position of the true defect 27 in the three-dimensional view is unchanged. The true defect position in the frame image moves in the direction opposite to the feed direction (that is, outside the screen) when the camera is moved in the feed direction.

図13は真欠陥27と偽欠陥25が重なっているときに、スコープヘッド12を送り方向に移動させながら撮影を行った場合のそれぞれの挙動について表したものである。   FIG. 13 shows each behavior when photographing is performed while moving the scope head 12 in the feeding direction when the true defect 27 and the false defect 25 overlap.

図中で真欠陥27と偽欠陥25が重なった部分は網掛けで表している。真欠陥27と偽欠陥25が重なっているということはレンズ汚れと真欠陥27がフレーム画像上で同一の位置に写っていることを意味している。   In the figure, the portion where the true defect 27 and the false defect 25 overlap is indicated by shading. The fact that the true defect 27 and the false defect 25 overlap each other means that the lens stain and the true defect 27 appear in the same position on the frame image.

しかし、真欠陥27と偽欠陥25が重なっている場合はカメラを送ることで両者は分離する。即ち、あるフレームで両者が重なっていても、別の位置から撮影すると真欠陥27と偽欠陥25は別の位置に捕らえられる。真欠陥27は送り方向とは逆に移動し、偽欠陥25は移動しない。   However, when the true defect 27 and the false defect 25 overlap, they are separated by sending a camera. That is, even if they overlap each other in a certain frame, the true defect 27 and the false defect 25 are captured at different positions when the image is taken from another position. The true defect 27 moves in the direction opposite to the feeding direction, and the false defect 25 does not move.

このような場合、従来技術として取り上げた特許文献1の手法では移動しない偽欠陥
25をマスクすることで重なっていた真欠陥27もマスクしてしまい、欠報を発生させてしまうことになる。
In such a case, by masking the false defect 25 which does not move in the method of Patent Document 1 taken up as the prior art, the overlapped true defect 27 is also masked, and a missing report is generated.

しかし、このような場合でも真欠陥27が別のフレーム(この例では次のフレーム)に偽欠陥25と分離した状態で捉えられているので、別フレームの情報を利用することでこの欠報を阻止することは可能である。   However, even in such a case, the true defect 27 is captured in a state separated from the false defect 25 in another frame (in this example, the next frame). It is possible to stop.

図14はスコープヘッド12を送り方向に移動させながら撮影を行ったとき、偶然に2つの真欠陥27が連続フレームの同じ場所に移ってしまった場合を表している。   FIG. 14 shows a case where two true defects 27 are accidentally moved to the same location in a continuous frame when photographing is performed while moving the scope head 12 in the feeding direction.

このような場合も、連続するフレームでフレーム座標(フレーム画像における位置)が変化しない欠陥候補が存在するため、特許文献1の手法ではこれらの欠陥をマスクしてしまう。またこのフレーム座標には実際にはレンズ汚れが存在しないにも拘らず、この位置に写る欠陥は以後マスクされてしまい、欠報を発生させてしまうことになる。   Even in such a case, since there are defect candidates whose frame coordinates (positions in the frame image) do not change in successive frames, the technique of Patent Document 1 masks these defects. Although the frame coordinates are not actually contaminated with a lens, the defect appearing at this position will be masked thereafter, resulting in a missed report.

このような場合でも、それぞれの真欠陥27が写った別フレーム(この例では次とその次のフレーム)を見ることで、真欠陥27を見逃しなく検出することが出来る。   Even in such a case, the true defect 27 can be detected without missing it by looking at another frame (in this example, the next frame and the next frame) in which each true defect 27 is reflected.

図1は本発明の欠陥検査装置における処理の構成とデータの流れを表したものである。   FIG. 1 shows a processing configuration and a data flow in the defect inspection apparatus of the present invention.

検査対象物である円筒内面に撮像手段であるカメラ1をずらしながら撮像し、その撮影されたフレーム毎の画像データは欠陥検出手段2に送られる。   Images are taken while shifting the camera 1 as the imaging means on the inner surface of the cylinder as the inspection object, and the image data for each photographed frame is sent to the defect detection means 2.

欠陥検出手段2はカメラ1で撮影されたフレーム毎の画像データに対して様々な画像処理を施し欠陥候補を検出する。具体的には、画像に重畳したノイズを除去するためにガウシャンフィルタなどのローパスフィルタ、或いはミディアムフィルタなどを施し、次にソーベルフィルタやラプラシアンフィルタなどでエッジを強調して、適当な閾値で2値化し、連結成分毎にラベリングして、ある程度の大きさを持った塊(連結成分)を欠陥候補とする、などの処理が一般的である。欠陥検出の手法は様々なものが提案されており、対象画像に応じて適切な手法を用いれば良い。特に本発明において欠陥検出の手法を限定するものではない。欠陥検出の結果としては欠陥候補の位置座標、即ちフレーム座標や3D座標(立体図における3次元座標)、場合によっては欠陥の形状情報、即ち大きさ,モーメント、又は欠陥の局所的な画像情報などが含まれる。これらの情報の中には必ずしも欠陥検出手段2で求まる必要のないものも含まれる。例えば、3D座標はカメラの位置情報とフレーム座標が分かっていれば後から計算することが出来る。また、欠陥の局所的な画像情報から欠陥の大きさやモーメントも計算できる。このような情報をどこで生成するかは計算量などを勘案して設計者が決めればよい。   The defect detection means 2 performs various image processing on the image data for each frame taken by the camera 1 to detect defect candidates. Specifically, a low pass filter such as a Gaussian filter or a medium filter is applied to remove noise superimposed on the image, and then the edge is emphasized with a Sobel filter or Laplacian filter, and an appropriate threshold value is set. Processing such as binarization, labeling for each connected component, and making a lump (connected component) having a certain size as a defect candidate is common. Various defect detection methods have been proposed, and an appropriate method may be used according to the target image. In particular, the defect detection method is not limited in the present invention. As a result of defect detection, position coordinates of defect candidates, that is, frame coordinates and 3D coordinates (three-dimensional coordinates in a three-dimensional view), and in some cases, defect shape information, that is, size, moment, or local image information of defects, etc. Is included. Some of these pieces of information do not necessarily need to be obtained by the defect detection means 2. For example, 3D coordinates can be calculated later if the camera position information and frame coordinates are known. Further, the size and moment of the defect can be calculated from the local image information of the defect. The designer should decide where to generate such information in consideration of the amount of calculation.

欠陥候補記憶手段であるフレームごと欠陥情報記憶手段3では欠陥検出手段2で検出された欠陥候補に関する情報を記憶する。記憶の仕方の一例を図15に示す。表中の欠陥候補No.は欠陥候補を識別するためのもので、異なる欠陥候補には異なる番号が振られるが、フレーム間に渡る同一性の判定はこの段階では行わないため、同一の欠陥候補が複数フレームで異なる番号を有している。フレームNo.は各フレームに付与された番号で、欠陥候補が存在しているフレームを識別するためのものである。フレーム座標は、上述したが二次元座標上で欠陥候補が存在するフレーム座標情報であり、3D座標は、三次元座標上で欠陥候補が存在する三次元座標情報である。欠陥情報には欠陥候補の真欠陥か偽欠陥か、或いはまだ判定されていない場合は保留が記述された情報である。その他のプロパティには欠陥の形状に関する情報や同一の欠陥候補をフレーム間に渡ってグルーピングするための情報などが必要に応じて保存される。欠陥候補の同一性については真の欠陥の場合は3D座標の一致で、レンズ汚れの場合は(つまり同一のレンズ汚れとしての認識は)フレーム座標の一致で判定する。   The defect information storage means 3 for each frame, which is a defect candidate storage means, stores information on defect candidates detected by the defect detection means 2. An example of the storage method is shown in FIG. The defect candidate No. in the table is for identifying defect candidates, and different defect candidates are assigned different numbers. However, since the identity determination between frames is not performed at this stage, the same defect candidate Have different numbers in multiple frames. The frame No. is a number assigned to each frame and identifies a frame in which a defect candidate exists. As described above, the frame coordinate is frame coordinate information in which a defect candidate exists on two-dimensional coordinates, and the 3D coordinate is three-dimensional coordinate information in which a defect candidate exists on three-dimensional coordinates. The defect information is information describing whether the defect candidate is a true defect or a false defect, or a hold if it is not yet determined. In other properties, information on the shape of the defect, information for grouping the same defect candidate across frames, and the like are stored as necessary. The identity of defect candidates is determined by coincidence of 3D coordinates in the case of a true defect, and coincidence of frame coordinates in the case of lens contamination (that is, recognition as the same lens contamination).

このように欠陥に関する情報を関連付けて纏めたテーブルを欠陥テーブルと呼ぶことにする。フレームごと欠陥情報記憶手段3は欠陥テーブルに保存する情報のうち、フレーム内で求めることの出来る情報を書き込む。   A table in which information related to defects is associated and collected in this way is called a defect table. The defect information storage unit 3 for each frame writes information that can be obtained within a frame among the information stored in the defect table.

欠陥候補比較手段であるフレーム間の欠陥候補位置フレーム座標比較手段4は欠陥候補ごとに、フレームごと欠陥情報記憶手段3で記憶された前フレームの各欠陥候補と現フレームで検出された欠陥候補とを二次元のフレーム座標を比較して、欠陥候補において同一性を判定(同一座標のものがあるかどうかを判定)し、その判定結果として、二次元座標比較結果情報を生成して出力する。欠陥テーブルに欠陥の形状情報が保存されている場合は、座標の比較のみでなく、形状の比較を行うことも出来る。この形状の比較結果は後で真欠陥と偽欠陥の判定を行う際に、より精度の高い判定を行うのに役立つ。具体的には、欠陥候補のフレーム画像における同一性の判定(同一のレンズ汚れか否か)を行う際に、座標だけでなく形状情報も使うことでより確度の高い同一性の判定が可能となる。また、欠陥テーブルのレンズ汚れをフレーム間に渡ってグルーピングするための情報は、フレーム間の欠陥候補位置フレーム座標比較手段で書き込まれる。   For each defect candidate, the defect candidate position frame coordinate comparison means 4 between the frames, which is a defect candidate comparison means, and each defect candidate of the previous frame stored in the defect information storage means 3 for each frame and the defect candidate detected in the current frame Are compared with the two-dimensional frame coordinates to determine the identity of the defect candidates (determining whether there is one with the same coordinates). As the determination result, two-dimensional coordinate comparison result information is generated and output. When the defect shape information is stored in the defect table, not only the coordinate comparison but also the shape comparison can be performed. The comparison result of this shape is useful for making a more accurate determination when determining a true defect and a false defect later. Specifically, it is possible to determine the identity with higher accuracy by using not only the coordinates but also the shape information when determining the identity in the frame image of the defect candidate (whether it is the same lens stain or not). Become. In addition, information for grouping lens stains on the defect table between frames is written by a defect candidate position frame coordinate comparison unit between frames.

三次元欠陥候補比較手段であるフレーム間の欠陥候補位置3D座標比較手段7は、欠陥候補ごとに、フレームごと欠陥情報記憶手段3で記憶された各欠陥候補と現フレームで検出された欠陥候補とを三次元の3D座標を比較して、欠陥候補において同一性を判定(同一三次元座標のものがあるかどうかを判定)し、その判定結果として、三次元座標比較結果情報を生成して出力する。具体的には、別フレームでその欠陥候補が既に撮影されているか、更に、その撮影された別フレームにおいて欠陥候補であったかどうかを検索する。欠陥テーブルに欠陥の形状情報が保存されている場合は、座標の比較のみでなく、形状の比較を行うことも出来る。この形状の比較結果は後で真欠陥と偽欠陥の判定を行う際に、より精度の高い判定を行うのに役立つ。具体的には、欠陥候補の立体図における同一性の判定(同一の欠陥か否か)を行う際に、座標だけでなく形状情報も使うことでより確度の高い同一性の判定が可能となる。形状情報を欠陥候補の立体図における同一性の判定に使用する場合は、フレーム画像における形状ではなく展開図にしたときの形状、即ち立体的に欠陥に正対したときに見える形状を使用するほうが望ましい。なぜならば、同一の欠陥でもフレーム座標で写っている場所によって形状が変化するためである。また、欠陥テーブルの真の欠陥をフレーム間に渡ってグルーピングするための情報はフレーム間の欠陥候補位置3D座標比較手段7で書き込まれる。   The defect candidate position 3D coordinate comparison means 7 between the frames, which is a three-dimensional defect candidate comparison means, for each defect candidate, the defect candidates stored in the defect information storage means 3 for each frame and the defect candidates detected in the current frame. Compare three-dimensional 3D coordinates, determine the identity of defect candidates (determine whether there is one with the same three-dimensional coordinates), and generate and output three-dimensional coordinate comparison result information as the determination result To do. Specifically, it is searched whether the defect candidate has already been photographed in another frame and whether it was a defect candidate in the photographed another frame. When the defect shape information is stored in the defect table, not only the coordinate comparison but also the shape comparison can be performed. The comparison result of this shape is useful for making a more accurate determination when determining a true defect and a false defect later. Specifically, when determining the identity in a three-dimensional view of defect candidates (whether or not they are the same defect), it is possible to determine identity with higher accuracy by using not only coordinates but also shape information. . When shape information is used to determine the identity of a defect candidate in a three-dimensional view, it is better to use the shape of a developed view, not the shape of a frame image, that is, the shape that can be seen when facing a defect three-dimensionally. desirable. This is because the shape of the same defect changes depending on where it appears in the frame coordinates. Information for grouping true defects in the defect table across frames is written by the defect candidate position 3D coordinate comparison means 7 between frames.

欠陥マスク情報生成手段5は前記2つの座標比較手段から出力される二次元座標比較結果情報及び三次元座標比較結果情報に基づき、欠陥検出手段2でレンズ汚れがある位置における欠陥候補の発生を抑止するものである。レンズ汚れか否かの判定は欠陥候補ごとに欠陥テーブルを参照しながら行っているので、欠陥マスク情報生成手段5は必ずしも必要なものではないが、設けることで欠陥の判定(偽欠陥か真の欠陥か)の処理を削減することが出来る。しかし、これを設けることで欠報が増加する可能性がある。これを回避するため工夫として、欠陥マスク情報生成手段5は欠陥検出手段2でレンズ汚れがある位置における欠陥候補の発生を抑止するのではなく、同一の3D座標を持つ欠陥候補が別フレームに存在したときは欠陥と判定するようにするなどの方法が挙げられる。   The defect mask information generation unit 5 suppresses the generation of defect candidates at positions where the lens contamination is present in the defect detection unit 2 based on the two-dimensional coordinate comparison result information and the three-dimensional coordinate comparison result information output from the two coordinate comparison units. To do. Since the determination of whether or not the lens is dirty is performed with reference to the defect table for each defect candidate, the defect mask information generation means 5 is not necessarily required, but it is possible to determine the defect by providing (fake defect or true defect). The processing of defects) can be reduced. However, this may increase the number of missing reports. As a contrivance to avoid this, the defect mask information generation means 5 does not suppress the generation of defect candidates at the position where the lens contamination is present in the defect detection means 2, but the defect candidates having the same 3D coordinates exist in different frames. In such a case, a method such as determining a defect may be used.

撮像手段欠陥警報信号生成手段であるレンズ汚れ警報生成手段6は、前記2つの座標比較手段から出力される二次元座標比較結果情報及び三次元座標比較結果情報に基づき、欠陥候補が撮像手段であるカメラのレンズの汚れであると判定された場合、撮像手段欠陥警報信号であるレンズ汚れ警報を生成する。具体的には欠陥候補をレンズ汚れと判定したとき、レンズ汚れ警報手段に警報の指示出す。撮像手段欠陥警報手段であるレンズ汚れ警報手段8は、レンズ汚れがあると判定されたとき、レンズ汚れ警報生成手段6で生成されたレンズ汚れ警報をレンズ汚れの存在をユーザに伝えるために出力する。具体的にはブザーや点灯などで知らせる。或いは、展開画像を表示してレンズ汚れと判定された欠陥候補はレンズ汚れの可能性が高いことがユーザに分かるように色など変えて表示する。或いは、ユーザに知らせるのではなく、レンズ汚れと判定された欠陥候補があるフレームはレンズ汚れ付近の画像を使わず別フレームの画像だけを使って展開画像を作成してユーザにレンズ汚れを感じさせないという方法もある。また、自動でレンズなどの洗浄を開始するようにすることも出来る。   The lens dirt alarm generation means 6 which is an imaging means defect alarm signal generation means is based on the two-dimensional coordinate comparison result information and the three-dimensional coordinate comparison result information output from the two coordinate comparison means, and the defect candidate is the imaging means. If it is determined that the lens of the camera is dirty, a lens contamination alarm that is an imaging means defect alarm signal is generated. Specifically, when it is determined that the defect candidate is lens dirt, an alarm instruction is issued to the lens dirt alarm means. When it is determined that there is a lens dirt, the lens dirt alarm means 8 that is an imaging means defect alarm means outputs the lens dirt alarm generated by the lens dirt alarm generation means 6 to inform the user of the presence of the lens dirt. . Specifically, it is notified by a buzzer or lighting. Alternatively, a defect candidate that is determined to be lens dirt by displaying a developed image is displayed with a different color or the like so that the user can recognize that the possibility of lens dirt is high. Alternatively, instead of notifying the user, a frame having a defect candidate determined to be lens dirt does not use an image near the lens dirt but creates an unfolded image using only an image of another frame so that the user does not feel the lens dirt. There is also a method. It is also possible to automatically start cleaning of the lens and the like.

欠陥警報信号生成手段である欠陥警報生成手段10は、前記2つの座標比較手段から出力される二次元座標比較結果情報及び三次元座標比較結果情報に基づき、欠陥候補が検査対象物である円筒内面の欠陥であると判定された場合、欠陥警報信号を生成し、欠陥警報手段9に欠陥警報生成手段10で生成された欠陥警報信号を出力して警報の指示を出す。欠陥警報手段9は、欠陥の存在をユーザに知らせるために各種欠陥警報信号を発する。具体的にはブザーや点灯などで知らせる。或いは、展開画像を表示して欠陥と判定された欠陥候補は欠陥の可能性が高いことがユーザに分かるように色など変えて表示する。また、自動で欠陥のある製品を排除するようにすることも出来る。   The defect alarm generation means 10 which is a defect alarm signal generation means is based on the two-dimensional coordinate comparison result information and the three-dimensional coordinate comparison result information output from the two coordinate comparison means, and the cylindrical inner surface whose defect candidate is the inspection object. When it is determined that the defect is a defect, a defect alarm signal is generated, and the defect alarm signal generated by the defect alarm generator 10 is output to the defect alarm unit 9 to issue an alarm instruction. The defect alarm means 9 issues various defect alarm signals in order to notify the user of the existence of a defect. Specifically, it is notified by a buzzer or lighting. Alternatively, the defect candidates that are determined as defects by displaying the developed image are displayed in different colors so that the user can recognize that the possibility of the defect is high. It is also possible to automatically eliminate defective products.

図16は本発明の欠陥検査装置における処理の流れを表したものである。   FIG. 16 shows the flow of processing in the defect inspection apparatus of the present invention.

まず、欠陥検出手段2により、カメラ1で撮像したフレーム毎の画像データからフレーム内の欠陥候補を検出する。ここで欠陥候補が検出されない場合は、その検査対象物である円筒は欠陥無しと判定する。以下欠陥候補が検出できたことを前提に説明する。また以下の処理は欠陥候補ごとに行われる。例えば欠陥候補数分のループ処理となる。「フレーム座標と3D座標を算出」は欠陥検出手段2において行っても良いし、前述したように
3D座標の算出は後の処理で3D座標の比較を行うまでに行われれば良い。
First, the defect detection means 2 detects defect candidates in the frame from the image data for each frame captured by the camera 1. If no defect candidate is detected here, it is determined that the cylinder that is the inspection object has no defect. The following description is based on the assumption that a defect candidate has been detected. The following processing is performed for each defect candidate. For example, loop processing is performed for the number of defect candidates. The “calculation of frame coordinates and 3D coordinates” may be performed by the defect detection means 2, and as described above, the calculation of 3D coordinates may be performed until the 3D coordinates are compared in the subsequent processing.

「前フレームの各欠陥候補とフレーム座標を比較」はフレーム間の欠陥候補位置フレーム座標比較手段4で行われる。比較の結果である二次元座標比較結果情報が、前フレームにフレーム座標の一致した欠陥候補がないとの情報の場合は、その欠陥候補は欠陥(真の)と判定し、検査対象物の円筒内面に欠陥があると判定される。   “Compare the frame coordinates with each defect candidate in the previous frame” is performed by the defect candidate position frame coordinate comparison means 4 between frames. If the two-dimensional coordinate comparison result information, which is the result of the comparison, is information that there is no defect candidate with the matching frame coordinates in the previous frame, it is determined that the defect candidate is a defect (true) and the cylinder of the inspection object It is determined that the inner surface is defective.

二次元座標比較結果情報が一致した欠陥候補があるとの情報の場合にはフレーム間の欠陥候補位置3D座標比較手段7において「別フレームで同一な3D座標の欠陥候補を検索」を行った結果により、別フレームで撮影済みでない場合にはこのフレームでの判定を保留して、判定を後のフレームに委ねる。撮影済みの場合は、三次元座標比較結果情報が同一な3D座標の欠陥候補がある場合には検査対象物である円筒内部に欠陥があると判定して、ない場合には撮像手段であるレンズの汚れがあると判定する。   In the case of information that there is a defect candidate whose two-dimensional coordinate comparison result information matches, the result of performing “search for defect candidates of the same 3D coordinates in different frames” in the defect candidate position 3D coordinate comparison means 7 between frames Thus, if the image has not been shot in another frame, the determination in this frame is suspended and the determination is left to a later frame. When the image has been photographed, if there is a 3D coordinate defect candidate having the same 3D coordinate comparison result information, it is determined that there is a defect inside the cylinder that is the object to be inspected. Judge that there is dirt.

前フレームにフレーム座標が同じ欠陥候補がない場合については、欠陥と判定しない方が良い場合もある。最初に汚れが付着したフレームではその前のフレームにはフレーム座標が一致する欠陥候補は存在しないため、必ず欠陥と判定されることになるからである。このとき、欠陥と判定しないのであれば判定を保留にしておけばよい。しかし、この場合は欠陥ではなくレンズ汚れと判定される割合が多くなるため、欠報が増える可能性もある。どちらの方が良いかは誤報がどれくらい許容できるかに依存する。逆に、レンズ汚れを厳しく判定するのであれば、連続する2フレームではなく所定のNフレームで同一フレーム座標に欠陥候補が存在した時にのみレンズ汚れと判定するようにすることも出来る。   If there is no defect candidate with the same frame coordinate in the previous frame, it may be better not to determine that it is a defect. This is because, in the first frame on which dirt is attached, there is no defect candidate having the same frame coordinate in the previous frame, so that it is always determined as a defect. At this time, if it is not determined as a defect, the determination may be put on hold. However, in this case, there is a possibility that the number of missed reports increases because the ratio that the lens is not a defect but a lens stain is increased. Which is better depends on how much misinformation can be tolerated. On the other hand, if the lens contamination is strictly determined, it can be determined that the lens contamination is present only when a defect candidate exists in the same frame coordinates in a predetermined N frame instead of two consecutive frames.

なお、前フレームの画像データが欠陥候補記憶手段に記憶されていないときは、比較することができないの、欠陥判定を保留として次フレームまで待って欠陥検査を行う。   When the image data of the previous frame is not stored in the defect candidate storage means, the comparison cannot be performed, but the defect determination is suspended and the defect inspection is performed after waiting for the next frame.

本発明では、このように、円筒内部の欠陥があるか否かをレンズ汚れによる欠陥がどうかを考慮しながら判定できるため、レンズに汚れが付着した場合でも欠報を発生させることなく誤報を減らして、安定的に欠陥を検出する欠陥検査装置を提供できる。   In the present invention, since it is possible to determine whether or not there is a defect inside the cylinder in consideration of the defect due to the lens contamination in this way, even if the lens adheres to the lens, it is possible to reduce false alarms without generating a missing notification. Thus, it is possible to provide a defect inspection apparatus that stably detects defects.

なお、欠陥マスク情報生成手段5,レンズ汚れ警報生成手段6,欠陥警報生成手段10はそれぞれ欠陥候補の判定方法を独立に選んでも問題はない。各々の役割に応じて適切に選ぶべきである。   It should be noted that the defect mask information generating unit 5, the lens dirt alarm generating unit 6, and the defect alarm generating unit 10 may select the defect candidate determination method independently. You should choose appropriately according to each role.

図17,図18,図19は取込み幅を送り幅の2倍にしてもうまくいかない例を示している。   FIGS. 17, 18 and 19 show examples in which even if the take-in width is twice the feed width, it will not work.

図17はdの間隔で真欠陥が並んでいる。図18は偽欠陥がdの間隔にあるように見える位置にレンズ汚れがある。図19はdの間隔で真欠陥が並んでいて、その1つと重なるようにレンズ汚れが存在している。   In FIG. 17, true defects are arranged at intervals of d. In FIG. 18, there is a lens stain at a position where the false defects appear to be at the interval d. In FIG. 19, true defects are arranged at intervals of d, and lens dirt exists so as to overlap one of them.

上記の処理ではどれも真の欠陥と判定して誤報を挙げてしまうことになる。このようなケースは以上に稀だと考えられるが、図17,図18,図19で2dのところを3dと変えて全ての欠陥候補が3フレームで撮影されるようにすると、旨く行かないケースは更に激減する。取込み幅を送り幅の何倍に設定するかは要求される欠陥候補の判定精度に応じて適切に決めるべきである。   Any of the above processing will determine that the defect is a true defect and will give a false alarm. Such a case is considered to be rare, but if all the defect candidates are photographed in 3 frames by changing 2d to 3d in FIGS. Is drastically reduced. How many times the take-in width should be set should be determined appropriately according to the required defect candidate determination accuracy.

本実施例では円筒内面の検査装置を取り上げている。この場合は全ての観察部位をN回以上撮影して3D座標が一致する別フレームの欠陥候補を探索するのが容易である。しかし、一般の検査対象、例えば特許文献1にあるような自動車のボディの欠陥検査のような場合でも同様の処理が可能である。   In this embodiment, an inspection device for a cylindrical inner surface is taken up. In this case, it is easy to search for defect candidates in another frame in which all the observation sites are photographed N times or more and the 3D coordinates match. However, the same processing is possible even in the case of a defect inspection of a general inspection object, for example, an automobile body as in Patent Document 1.

本発明に係る欠陥検査装置の一実施例の処理構成とデータの流れを示す図である。It is a figure which shows the processing structure and flow of data of one Example of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の一実施例の外観を示す図である。It is a figure which shows the external appearance of one Example of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の一実施例の詳細を説明する図である。It is a figure explaining the detail of one Example of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置のスコープヘッドの正面を示す図である。It is a figure which shows the front of the scope head of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置のスコープヘッドの一詳細例を示す図である。It is a figure which shows one detailed example of the scope head of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置のスコープヘッドの他の詳細例を示す図である。It is a figure which shows the other detailed example of the scope head of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置のスコープヘッドの他の詳細例を示す図である。It is a figure which shows the other detailed example of the scope head of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の撮影方法の一例を示す図である。It is a figure which shows an example of the imaging | photography method of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の撮影方法の他例を示す図である。It is a figure which shows the other example of the imaging | photography method of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の撮影方法でのレンズ汚れがある場合の一画像例を示す図である。It is a figure which shows an example of an image when there exists lens dirt by the imaging | photography method of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の撮影方法での偽欠陥の挙動を説明する図である。It is a figure explaining the behavior of the false defect in the imaging | photography method of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の撮影方法での真欠陥の挙動を説明する図である。It is a figure explaining the behavior of the true defect in the imaging | photography method of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の撮影方法での真欠陥と偽欠陥が重なっている場合の挙動を説明する図である。It is a figure explaining the behavior when the true defect and the false defect overlap in the imaging method of the defect inspection apparatus according to the present invention. 本発明に係る欠陥検査装置の撮影方法での2つの真欠陥がある場合の挙動を説明する図である。It is a figure explaining the behavior when there are two true defects in the imaging method of the defect inspection apparatus according to the present invention. 本発明に係る欠陥検査装置の欠陥テーブルの一例を示す図である。It is a figure which shows an example of the defect table of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の欠陥判定処理の流れの一例を示す図である。It is a figure which shows an example of the flow of the defect determination process of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の欠陥判定不可能な一実施例を説明する図である。It is a figure explaining one Example in which the defect determination of the defect inspection apparatus which concerns on this invention is impossible. 本発明に係る欠陥検査装置の欠陥判定不可能な他の実施例を説明する図である。It is a figure explaining the other Example which cannot determine the defect of the defect inspection apparatus which concerns on this invention. 本発明に係る欠陥検査装置の欠陥判定不可能な他の実施例を説明する図である。It is a figure explaining the other Example which cannot determine the defect of the defect inspection apparatus which concerns on this invention.

符号の説明Explanation of symbols

1 カメラ
2 欠陥検出手段
3 フレームごと欠陥情報記憶手段
4 フレーム間の欠陥候補位置フレーム座標比較手段
5 欠陥マスク情報生成手段
6 レンズ汚れ警報生成手段
7 フレーム間の欠陥候補位置3D座標比較手段
8 レンズ汚れ警報手段
9 欠陥警報手段
10 欠陥警報生成手段
DESCRIPTION OF SYMBOLS 1 Camera 2 Defect detection means 3 Defect information storage means for every frame 4 Defect candidate position frame coordinate comparison means between frames 5 Defect mask information generation means 6 Lens dirt warning generation means 7 Defect candidate position 3D coordinate comparison means between frames 8 Lens dirt Alarm means 9 Defect alarm means 10 Defect alarm generation means

Claims (9)

検査対象物である円筒内面を撮像手段をずらしながら撮像して欠陥を検出する欠陥検査装置において、
撮像手段で撮像した1フレーム毎の画像データから欠陥候補を検出する欠陥検出手段と、
検出された前記欠陥候補を記憶する欠陥候補記憶手段と、
前記欠陥候補記憶手段で記憶された前フレームの画像データから検出された欠陥候補と現フレームの画像データから検出された欠陥候補とを二次元座標で比較し、前記欠陥候補の同一性を判定し、判定結果として二次元座標比較結果情報を生成する欠陥候補比較手段と、
前記欠陥候補記憶手段で記憶された欠陥候補と現フレームの画像データから検出された欠陥候補とを三次元座標で比較し、前記欠陥候補の同一性を判定し、判定結果として三次元座標比較結果情報を生成する三次元欠陥候補比較手段と、
前記二次元座標比較結果情報と前記三次元座標比較結果情報とに基づいて前記欠陥候補が撮像手段の汚れであると判定された場合、撮像手段欠陥警報信号を生成し、出力する撮像手段欠陥警報信号生成手段と、
前記二次元座標比較結果情報と前記三次元座標比較結果情報とに基づいて前記欠陥候補が検査対象物の欠陥であると判定された場合、欠陥警報信号を生成し、出力する欠陥警報信号生成手段と、を有する欠陥検査装置。
In the defect inspection apparatus for detecting defects by imaging the cylindrical inner surface that is the inspection object while shifting the imaging means,
Defect detection means for detecting defect candidates from image data for each frame imaged by the imaging means;
Defect candidate storage means for storing the detected defect candidates;
The defect candidate detected from the image data of the previous frame stored in the defect candidate storage means is compared with the defect candidate detected from the image data of the current frame in two-dimensional coordinates, and the identity of the defect candidate is determined. , Defect candidate comparison means for generating two-dimensional coordinate comparison result information as a determination result;
The defect candidate stored in the defect candidate storage means and the defect candidate detected from the image data of the current frame are compared in three-dimensional coordinates, the identity of the defect candidate is determined, and a three-dimensional coordinate comparison result is determined as a determination result. 3D defect candidate comparison means for generating information;
An imaging unit defect alarm that generates and outputs an imaging unit defect alarm signal when the defect candidate is determined to be dirt on the imaging unit based on the two-dimensional coordinate comparison result information and the three-dimensional coordinate comparison result information Signal generating means;
Defect alarm signal generation means for generating and outputting a defect alarm signal when it is determined that the defect candidate is a defect of an inspection object based on the two-dimensional coordinate comparison result information and the three-dimensional coordinate comparison result information And a defect inspection apparatus.
請求項1記載の欠陥検査装置において、
前記欠陥警報信号生成手段は、前記二次元座標比較結果情報が同一な欠陥候補がないとの情報の場合は、検査対象物に欠陥があると判定し、欠陥警報信号を生成する欠陥検査装置。
The defect inspection apparatus according to claim 1,
The defect inspection signal generation unit determines that the inspection target is defective when the information indicating that there is no defect candidate having the same two-dimensional coordinate comparison result information, and generates a defect alarm signal.
請求項1記載の欠陥検査装置において、
前記欠陥警報信号生成手段は、前記二次元座標比較結果情報が同一な欠陥候補があるとの情報の場合、且つ前記三次元座標比較結果情報が同一な欠陥候補があるとの情報の場合は、検査対象物に欠陥があると判定し、欠陥警報信号を生成する欠陥検査装置。
The defect inspection apparatus according to claim 1,
In the case of information that the two-dimensional coordinate comparison result information has the same defect candidate and the information that the three-dimensional coordinate comparison result information has the same defect candidate, the defect warning signal generation means, A defect inspection apparatus that determines that an inspection object has a defect and generates a defect alarm signal.
請求項1記載の欠陥検査装置において、
前記撮像手段欠陥警報信号生成手段は、前記二次元座標比較結果情報が同一な欠陥候補があるとの情報の場合、且つ前記三次元座標比較結果情報が同一な欠陥候補がないとの情報の場合は、撮像手段に汚れがあると判定し、撮像手段欠陥警報信号を生成する欠陥検査装置。
The defect inspection apparatus according to claim 1,
In the case where the imaging means defect warning signal generating means is information that the two-dimensional coordinate comparison result information has the same defect candidate, and the information that the three-dimensional coordinate comparison result information does not have the same defect candidate. Is a defect inspection apparatus that determines that the imaging means is dirty and generates an imaging means defect alarm signal.
請求項1記載の欠陥検査装置において、
前記欠陥候補記憶手段は、欠陥候補を識別する欠陥候補番号と、フレーム番号と、二次元座標上で欠陥候補が存在するフレーム座標情報と、三次元座標上で欠陥候補が存在する三次元座標情報と、欠陥候補の真,偽,保留の判定が記述された欠陥情報とが、関連付けられた欠陥テーブルが記憶されている欠陥検査装置。
The defect inspection apparatus according to claim 1,
The defect candidate storage means includes a defect candidate number for identifying a defect candidate, a frame number, frame coordinate information in which a defect candidate exists on two-dimensional coordinates, and three-dimensional coordinate information in which a defect candidate exists on three-dimensional coordinates. And a defect table in which a defect table in which defect information describing whether a defect candidate is true, false, or pending is described is stored.
請求項1記載の欠陥検査装置において、
前記欠陥候補比較手段は、前記欠陥候補記憶手段で記憶された前フレームの画像データから検出された欠陥候補と現フレームの画像データから検出された欠陥候補とを二次元座標及び形状で比較し、前記欠陥候補の同一性を判定し、判定結果として二次元座標比較結果情報を生成する欠陥検査装置。
The defect inspection apparatus according to claim 1,
The defect candidate comparison means compares the defect candidate detected from the image data of the previous frame stored in the defect candidate storage means with the defect candidate detected from the image data of the current frame in two-dimensional coordinates and shape, A defect inspection apparatus that determines the identity of the defect candidate and generates two-dimensional coordinate comparison result information as a determination result.
請求項1記載の欠陥検査装置において、
前記三次元欠陥候補比較手段は、前記欠陥候補記憶手段で記憶された欠陥候補と現フレームの画像データから検出された欠陥候補とを三次元座標及び形状で比較し、前記欠陥候補の同一性を判定し、判定結果として三次元座標比較結果情報を生成する欠陥検査装置。
The defect inspection apparatus according to claim 1,
The three-dimensional defect candidate comparison unit compares the defect candidate stored in the defect candidate storage unit with the defect candidate detected from the image data of the current frame in three-dimensional coordinates and shape, and determines the identity of the defect candidate. A defect inspection apparatus that determines and generates three-dimensional coordinate comparison result information as a determination result.
請求項1記載の欠陥検査装置において、
前記欠陥候補比較手段及び前記三次元欠陥候補比較手段において、比較する前フレームの画像データが前記欠陥候補記憶手段に記憶されていない場合は、欠陥判定を保留とし、次フレームまで待つ欠陥検査装置。
The defect inspection apparatus according to claim 1,
In the defect candidate comparison unit and the three-dimensional defect candidate comparison unit, if the image data of the previous frame to be compared is not stored in the defect candidate storage unit, the defect inspection apparatus holds the defect determination and waits until the next frame.
請求項1記載の欠陥検査装置において、
前記欠陥検出手段において、欠陥候補が検出できない場合は、検査対象物に欠陥がないと判定する欠陥検査装置。
The defect inspection apparatus according to claim 1,
A defect inspection apparatus that determines that an inspection object has no defect when the defect detection means cannot detect a defect candidate.
JP2007086331A 2007-03-29 2007-03-29 Device for inspecting defect Pending JP2008241650A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007086331A JP2008241650A (en) 2007-03-29 2007-03-29 Device for inspecting defect

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007086331A JP2008241650A (en) 2007-03-29 2007-03-29 Device for inspecting defect

Publications (1)

Publication Number Publication Date
JP2008241650A true JP2008241650A (en) 2008-10-09

Family

ID=39913170

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007086331A Pending JP2008241650A (en) 2007-03-29 2007-03-29 Device for inspecting defect

Country Status (1)

Country Link
JP (1) JP2008241650A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013245023A (en) * 2012-05-24 2013-12-09 G D Spa Inspection method of product in packaging machinery
CN107860778A (en) * 2017-11-20 2018-03-30 深圳市资福技术有限公司 A kind of dirty detection means of capsule endoscope and detection method
WO2019219956A1 (en) * 2018-05-18 2019-11-21 Ab Sandvik Materials Technology Tube inspection system
JP2019211571A (en) * 2018-06-01 2019-12-12 ファナック株式会社 Abnormality detection system of lens or lens cover of visual sensor

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013245023A (en) * 2012-05-24 2013-12-09 G D Spa Inspection method of product in packaging machinery
CN107860778A (en) * 2017-11-20 2018-03-30 深圳市资福技术有限公司 A kind of dirty detection means of capsule endoscope and detection method
CN107860778B (en) * 2017-11-20 2022-12-13 深圳市资福医疗技术有限公司 Capsule endoscope dirt detection device and detection method
WO2019219956A1 (en) * 2018-05-18 2019-11-21 Ab Sandvik Materials Technology Tube inspection system
JP2019211571A (en) * 2018-06-01 2019-12-12 ファナック株式会社 Abnormality detection system of lens or lens cover of visual sensor
US10775319B2 (en) 2018-06-01 2020-09-15 Fanuc Corporation Visual sensor lens or lens cover abnormality detection system

Similar Documents

Publication Publication Date Title
JP5410092B2 (en) Apparatus and method for inspecting composite structures for inconsistencies
TWI626440B (en) Defect detection apparatus, defect detection method and program product
US10551179B2 (en) Reflection refuting laser scanner
US7355692B2 (en) System and method for inspecting electrical circuits utilizing reflective and fluorescent imagery
CN101592621A (en) A kind of automatic optical inspection device that uses refraction grid light sources check vial surface imperfection and inherent vice
JP6635712B2 (en) Inspection method, inspection device, image processing device, program, and recording medium
JP2008241650A (en) Device for inspecting defect
JP2007033339A (en) Method and device for determining detection of fisheye
JP2006258713A (en) Method and apparatus for detecting stain defect
JP2007212544A (en) Liquid crystal panel inspecting apparatus and its inspecting method
JP2009139365A (en) Device and method for defect inspection of translucent material
KR20160149883A (en) An apparatus for inspecting a lens defect
JP7362324B2 (en) Inspection method, manufacturing method and inspection device for image display device
US11320258B2 (en) Apparatus and method for edge detection when machining workpieces
KR102196114B1 (en) Apparatus and method for inspecting steel products
JP5231779B2 (en) Appearance inspection device
JPH04223262A (en) Processing method of image in fluorescent magnetic powder flaw detection
JPH08186808A (en) Method and device for processing image
JP2006145228A (en) Unevenness defect detecting method and unevenness defect detector
JP6688629B2 (en) Defect detecting device, defect detecting method and program
JP2020118572A (en) Surface defect inspection device and surface defect inspection method
JP2021188937A (en) Extrusion inspection device and inspection method
JPH09318336A (en) Surface defect inspection device
CN113865830A (en) Display screen defect detection method and system
CN110987951A (en) Method for detecting surface defects of moving object