[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

JPH11132743A - Defect inspecting device by image signal processing - Google Patents

Defect inspecting device by image signal processing

Info

Publication number
JPH11132743A
JPH11132743A JP9299954A JP29995497A JPH11132743A JP H11132743 A JPH11132743 A JP H11132743A JP 9299954 A JP9299954 A JP 9299954A JP 29995497 A JP29995497 A JP 29995497A JP H11132743 A JPH11132743 A JP H11132743A
Authority
JP
Japan
Prior art keywords
edge
image
defect
points
edge point
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.)
Withdrawn
Application number
JP9299954A
Other languages
Japanese (ja)
Inventor
Koji Igura
浩司 井倉
Tsuneyoshi Takahashi
常悦 高橋
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.)
Meidensha Corp
Meidensha Electric Manufacturing Co Ltd
Original Assignee
Meidensha Corp
Meidensha Electric Manufacturing 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 Meidensha Corp, Meidensha Electric Manufacturing Co Ltd filed Critical Meidensha Corp
Priority to JP9299954A priority Critical patent/JPH11132743A/en
Publication of JPH11132743A publication Critical patent/JPH11132743A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To detect a defect with high sensitivity within the dispersion range by detecting edge points of an object to be inspected, connecting the edge points to obtain the shape of the object to be inspected, detecting the abrupt direction change of the edge points, and judging the quality of the shape. SOLUTION: An image input section 2 receives an object as an image and stores image data in an image memory 3. An edge detection section 20 is provided at the next stage of the image memory 3, and it binalizes the image data and detects edges via image preprocessing for extracting black/white change points to obtain edge point images. An edge trace section 21 traces the edge point images to obtain a continued edge image as an outline image. A judgment section 22 obtains the x, y-coordinates of the edge points from the outline image, selects and specifies an edge point near the central object edge point, and calculates the angle with the object edge point from the coordinate values. A defect can be detected from the angle and the interval between the edge points, thereby the defect can be detected with high sensitivity.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、画像信号処理によ
る欠陥検出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a defect detection apparatus using image signal processing.

【0002】[0002]

【従来の技術】画像処理において、物体の形状(外周)
を検査する場合、すなわち、物体の外周の欠損、凹凸、
傷等を検査するに当っては、次の二通りの方法が例示さ
れる。その一つは、検査パターンを発生してこの検査パ
ターン上のデータを解析する方法であり、図6(a)に
示すように物体の外形Oに対して内側及び外側の検査パ
ターンPを生じ、このパターンP上での画像データを比
較判定するというものである。図6(b)は、このため
のブロック図を示しており、対象物体1の外形を画像入
力部2にて画像としてとらえ、得られた画像データを画
像メモリ3に格納する。一方、検査パターン発生器4か
らのパターンデータをパターンメモリ5に格納する。比
較器6では画像データと検査パターンとを比較し、判定
部7にて外周での欠損や凹凸、傷の判定を行ない、出力
部8にて結果を出力するものである。
2. Description of the Related Art In image processing, the shape (outer periphery) of an object
When inspecting, namely, defects, irregularities,
In inspecting a flaw or the like, the following two methods are exemplified. One of them is a method of generating an inspection pattern and analyzing data on the inspection pattern. As shown in FIG. 6A, an inner and outer inspection pattern P with respect to the outer shape O of the object is generated. The image data on the pattern P is compared and determined. FIG. 6B shows a block diagram for this purpose. The external shape of the target object 1 is captured as an image by the image input unit 2, and the obtained image data is stored in the image memory 3. On the other hand, the pattern data from the inspection pattern generator 4 is stored in the pattern memory 5. The comparator 6 compares the image data with the inspection pattern, determines a defect, an irregularity, or a flaw on the outer periphery by the determination unit 7, and outputs the result by the output unit 8.

【0003】また他の一つは、標準品と検査対象物との
画像の違いを検出する方法であり、図7(a)の如く検
査対象物Oと標準品(テンプレート)Pとの差分Dを採
り、判定を行なうものである。図7(b)は、このため
のブロック図を示しており、対象物体1の外形を画像入
力部2にて画像としてとらえ、得られた画像データを画
像メモリ3に格納する。一方、標準品のテンプレート9
からのパターンデータをパターンメモリ5に格納する。
比較器6にて画像データとパターンデータとを比較し、
差分画像部10にて差分画像を得て、判定部7にて差分
画像から欠損や凹凸、傷の判定を行い、出力部8にて結
果を出力するものである。
Another method is a method for detecting a difference between an image of a standard product and an image of an inspection object. As shown in FIG. 7A, a difference D between an inspection object O and a standard product (template) P is obtained. Is used to make the determination. FIG. 7B shows a block diagram for this purpose. The external shape of the target object 1 is captured as an image by the image input unit 2, and the obtained image data is stored in the image memory 3. On the other hand, the standard template 9
Is stored in the pattern memory 5.
The comparator 6 compares the image data with the pattern data,
The difference image unit 10 obtains a difference image, the determination unit 7 determines loss, unevenness, and scratches from the difference image, and the output unit 8 outputs the result.

【0004】[0004]

【発明が解決しようとする課題】上述の二つの例での欠
陥検査にあたっては、図6に示す検査パターン上にて画
像データを解析する場合、正しい外形が既知であること
が必要であり、また物体の外形にばらつきが無いことが
必要なのであるが、外形にばらつきが生じないこと自体
困難でありそのため予めばらつき範囲を設定して検査を
行うことになる。しかし、ばらつきの範囲自体設定しに
くく予めこの範囲を広くすれば不良検出感度が落ち、ま
た正確なばらつき範囲が決定してもその外側で検査パタ
ーンを発生させた場合には不良検出が出にくいという問
題を有している。
In the defect inspection in the above two examples, when analyzing image data on the inspection pattern shown in FIG. 6, it is necessary that a correct outer shape is known. It is necessary that there is no variation in the outer shape of the object. However, it is difficult for the outer shape to have no variation. Therefore, an inspection is performed by setting a variation range in advance. However, it is difficult to set the variation range itself, and if this range is widened in advance, the defect detection sensitivity is lowered, and even if an accurate variation range is determined, if an inspection pattern is generated outside the range, it is difficult to detect a defect. Have a problem.

【0005】また、図7に示す標準品と検査対象との差
分を採る場合、対象物の位置が既知である必要があり、
また物体の外形にばらつきが無いことが必要なのである
が、本例では画像の差分を採っているため外形のばらつ
きが全て検出されてしまい、この場合も不良部分の検出
が困難となり、不感帯を設けた場合には感度が低下す
る。従って予めばらつき範囲を前述と同様設定して差分
を採ったとしても前述の例と同様不良検出感度が落ち
る。
In addition, when taking the difference between the standard product and the inspection object shown in FIG. 7, the position of the object needs to be known,
In addition, it is necessary that there is no variation in the outer shape of the object, but in this example, since the difference in the image is taken, all the variations in the outer shape are detected. In this case, too, it is difficult to detect a defective portion, and a dead zone is provided. In such a case, the sensitivity decreases. Therefore, even if the variation range is set in advance in the same manner as described above and the difference is obtained, the defect detection sensitivity decreases as in the above-described example.

【0006】本来的には、図8に示すように工業部品等
の物体では、ばらつきが公差として存在し、この公差内
にて欠陥等を検出したいのであるが、前述した二つの方
法によってしても、検出しにくいことは前述のとおりで
ある。
Originally, as shown in FIG. 8, in an object such as an industrial part, a variation exists as a tolerance, and it is desired to detect a defect or the like within the tolerance. However, it is difficult to detect as described above.

【0007】本発明は、上述の問題に鑑み、公差等ばら
つき範囲内においても高感度に欠陥検出ができ所望の不
良検出を行なうようにした画像信号処理による欠陥検出
装置を提供する。
The present invention has been made in view of the above problems, and provides a defect detection apparatus by image signal processing capable of detecting a defect with high sensitivity even within a range of variation such as a tolerance and performing a desired defect detection.

【0008】[0008]

【課題を解決するための手段】上述の目的を達成する本
発明は、次の発明特定事項を有する。 (1) 被検査物のエッジ点を検出するエッジ検出部
と、上記エッジ点を連ねて上記被検査物の形状を得るエ
ッジトレース部と、上記エッジ点を解析しエッジの急激
な方向変化を検出しエッジからなる形状の良否を判定す
る判定部と、を有することを特徴とする。 (2) 上記(1)において、判定部は、対象とするエ
ッジ点を中心としてその両側にて選択して特定したエッ
ジ点との間の角度を検出し、この角度と上記選択したエ
ッジ点間の間隔とから欠陥の有無を判定することを特徴
とする。
The present invention that achieves the above object has the following matters specifying the invention. (1) An edge detection unit for detecting an edge point of the object to be inspected, an edge trace unit for connecting the edge points to obtain the shape of the object to be inspected, and analyzing the edge points to detect a sharp change in direction of the edge And a determining unit for determining whether the shape of the edge is good or bad. (2) In the above (1), the determination unit detects an angle between the target edge point as a center and the edge point selected and specified on both sides thereof, and determines the angle between the angle and the selected edge point. The presence or absence of a defect is determined based on the interval.

【0009】[0009]

【発明の実施の形態】ここで、図1ないし図5を参照し
て本発明の実施の形態の一例を説明する。図1は、本例
のブロック構成を示し、対象物体を画像として取り込む
画像入力部2、画像入力部2の画像データを格納する画
像メモリ3の次段には、エッジ検出部20が存在する。
このエッジ検出部20は、二値化及び画像前処理によっ
てエッジを検出するものであり、エッジ点の点画の連な
りが出力されることになる。ここで、エッジ検出部20
は、図2に例示するように画像データを2値化し、この
2値化した画像データから黒白変化点を抽出する画像前
処理を行ないこの変化点よりエッジを検出するもので、
エッジ点画像を得ることになる。
DESCRIPTION OF THE PREFERRED EMBODIMENTS Here, an example of an embodiment of the present invention will be described with reference to FIGS. FIG. 1 shows a block configuration of the present example. An edge detection unit 20 is provided next to an image input unit 2 that captures a target object as an image and an image memory 3 that stores image data of the image input unit 2.
The edge detection unit 20 detects edges by binarization and image preprocessing, and outputs a series of stippled edge points. Here, the edge detection unit 20
Is to binarize image data as shown in FIG. 2, perform image preprocessing to extract a black-and-white change point from the binarized image data, and detect an edge from the change point.
An edge point image will be obtained.

【0010】エッジ検出部20の次段には、エッジトレ
ース部21が備えられる。このエッジトレース部21
は、エッジ検出部20にて得られたエッジ点画像をトレ
ースすることによって連なったエッジ画像を得るもので
あり、図3に例示するようにエッジ点を連続させて外形
画像を得ている。この場合、トレース方法は、図3の如
く現在位置を中心としてその回りを順に0、1、2、・
・・7、という具合にエッジを探索することで、連続し
た座標によってエッジ形状を得る。
An edge tracing unit 21 is provided next to the edge detecting unit 20. This edge trace unit 21
Is to obtain a continuous edge image by tracing the edge point image obtained by the edge detection unit 20. As shown in FIG. 3, an outline image is obtained by connecting edge points continuously. In this case, as shown in FIG. 3, the tracing method is performed in the order of 0, 1, 2,.
..7, an edge shape is obtained by continuous coordinates by searching for an edge.

【0011】エッジトレース部21の次段にある判定部
22では、欠陥検出を行なうのであるが、次のような方
法を採る。まず、図4(a)に示すようにエッジ点から
なる外形画像から各エッジ点のx,y座標を計測する。
ついで、対象となるエッジ点を中心としてこのエッジ点
に近いエッジ点を選択して特定し、その座標値から対象
となるエッジ点との角度を計算する。例えば、エッジ点
2 が対象とするエッジ点であるとき、検出したい凹凸
部の幅にて選択したエッジ点P1 3 を特定し、この点
1 3 とによりP 2 について角度を計算する。すなわ
ち、図4(b)に示すようにエッジ点P3 とP2 とでな
す角θ1 とエッジ点P1 とP2 とでなす角θ2 を求め、
角度θ=θ1 +θ2 を得る。エッジ点P 1 の座標を(X
1 1 )、P2 の座標を(X2 2 )、P3 の座標を
(X3 3)としたとき、θ1 =tan-1(X3 −X2
/Y3 −Y2 )、θ2 =tan-1(X1 −X2 /Y1
2 )であり、これを加え合せることにより図4(b)
のθを得ることができる。ここで、検出すべき欠陥の角
度をθ以下とし、幅をP3 〜P1 と設定すると、エッジ
上の各点でθを計算する事により、欠陥の検出をする事
が出来る。
A determination unit at the next stage of the edge trace unit 21
In step 22, defect detection is performed.
Take the law. First, as shown in FIG.
The x and y coordinates of each edge point are measured from the outline image.
Next, this edge point is centered on the target edge point.
Select and specify an edge point close to
Calculate the angle with the edge point. For example, an edge point
PTwoWhen is the target edge point, the irregularities to be detected
Edge point P selected by width of part1PThreeIdentify this point
P1PThreeAnd P TwoCalculate the angle for. Sand
That is, as shown in FIG.ThreeAnd PTwoAnd
Angle θ1And edge point P1And PTwoAngle θTwo,
Angle θ = θ1+ ΘTwoGet. Edge point P 1Coordinate of (X
1Y1), PTwoCoordinate of (XTwoYTwo), PThreeThe coordinates of
(XThreeYThree), Θ1= Tan-1(XThree-XTwo
/ YThree-YTwo), ΘTwo= Tan-1(X1-XTwo/ Y1
YTwo), And by adding these, FIG.
Θ can be obtained. Here, the corner of the defect to be detected
Degree is less than θ and width is PThree~ P1To set the edge
Detecting defects by calculating θ at each point above
Can be done.

【0012】例えば図4(c) に示すようにエッジ点P1
2 3 にあって、つまりギャップが3画素深さが2画
素のような欠陥の検査にあって、図のP2 における欠陥
の角度は前述のθの式を当てはめると, θ=tan-1(2/2) +tan-1(2/2) =90°となり、この設定角90°で欠陥を検出するこ
とができる。
[0012] For example, FIG. 4 edge points as shown in (c) P 1
In the P 2 P 3, i.e. the gap is a 3 pixel depth for inspection of defects, such as two pixels, the angle of defects in P 2 in FIG. Applying the above equation for θ, θ = tan - 1 (2/2) + tan -1 (2/2) = 90 °, and a defect can be detected at the set angle of 90 °.

【0013】[0013]

【発明の効果】以上説明したように本発明によれば、対
象物体に形状のばらつきがあったとしても、従来の如く
既存パターンとの比較をすることがないので、高感度に
欠陥検出が可能となり、また、例えば図5ような種々の
外形検査をするに当ってもエッジトレースアムゴリズム
は物体の大小、形状、に影響されず共通のアルゴリズム
にて検査でき、また公差内の微小欠陥の検出も可能とな
る。
As described above, according to the present invention, even if there is a variation in the shape of the target object, it is not necessary to compare the existing pattern with the existing pattern, so that defect detection can be performed with high sensitivity. The edge trace algorithm can be inspected by a common algorithm without being influenced by the size and shape of the object even when performing various contour inspections as shown in FIG. 5, for example, and detection of minute defects within tolerances Is also possible.

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

【図1】本発明の実施の形態の一例のブロック図。FIG. 1 is a block diagram illustrating an example of an embodiment of the present invention.

【図2】図1のエッジ検出部内の機能を示す説明図。FIG. 2 is an explanatory diagram showing functions in an edge detection unit in FIG. 1;

【図3】図1のエッジトレース部の機能を示す説明図。FIG. 3 is an explanatory diagram showing functions of an edge trace unit in FIG. 1;

【図4】図1の判定部の機能を示す説明図。FIG. 4 is an explanatory diagram showing functions of a determination unit in FIG. 1;

【図5】不定形物体の形状検査のための説明図。FIG. 5 is an explanatory diagram for inspecting the shape of an irregular-shaped object.

【図6】従来例の一例の説明図。FIG. 6 is an explanatory diagram of an example of a conventional example.

【図7】従来例の他の例の説明図。FIG. 7 is an explanatory diagram of another example of the conventional example.

【図8】公差の説明図。FIG. 8 is an explanatory diagram of a tolerance.

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

20 エッジ検出部 21 エッジトレース部 22 判定部 Reference Signs List 20 edge detection unit 21 edge trace unit 22 judgment unit

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 被検査物のエッジ点を検出するエッジ検
出部と、上記エッジ点を連ねて上記被検査物の形状を得
るエッジトレース部と、 上記エッジ点を解析しエッジの急激な方向変化を検出し
エッジからなる形状の良否を判定する判定部と、 を有する画像信号処理による欠陥検査装置。
1. An edge detecting section for detecting an edge point of an object to be inspected, an edge trace section for connecting the edge points to obtain a shape of the object to be inspected, and a sharp direction change of an edge by analyzing the edge points And a determining unit for determining whether or not the shape composed of the edges is good or bad.
【請求項2】 判定部は、対象とするエッジ点を中心と
してその両側に選択して特定したエッジ点との間の角度
を検出し、 この角度と上記特定したエッジ点間の間隔とから欠陥の
有無を判定する請求項1記載の画像信号処理による欠陥
検査装置。
2. A determining unit detects an angle between an edge point selected and specified on both sides of a target edge point as a center, and determines a defect based on the angle and the interval between the specified edge points. 2. The defect inspection apparatus according to claim 1, wherein the presence or absence of the defect is determined.
JP9299954A 1997-10-31 1997-10-31 Defect inspecting device by image signal processing Withdrawn JPH11132743A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9299954A JPH11132743A (en) 1997-10-31 1997-10-31 Defect inspecting device by image signal processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9299954A JPH11132743A (en) 1997-10-31 1997-10-31 Defect inspecting device by image signal processing

Publications (1)

Publication Number Publication Date
JPH11132743A true JPH11132743A (en) 1999-05-21

Family

ID=17878976

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9299954A Withdrawn JPH11132743A (en) 1997-10-31 1997-10-31 Defect inspecting device by image signal processing

Country Status (1)

Country Link
JP (1) JPH11132743A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352901B2 (en) 2000-10-23 2008-04-01 Omron Corporation Contour inspection method and apparatus
JP2008295512A (en) * 2007-05-29 2008-12-11 Olympus Corp Endoscope apparatus for measurement, and program
US7643668B2 (en) 2005-09-26 2010-01-05 Advanced Mask Inspection Technology Inc. Workpiece inspection apparatus, workpiece inspection method and computer-readable recording medium storing program
JP2012247376A (en) * 2011-05-31 2012-12-13 Ckd Corp Tablet inspection device and ptp packaging machine
JP2013238860A (en) * 2007-01-31 2013-11-28 Olympus Corp Endoscope apparatus
JP2019124609A (en) * 2018-01-17 2019-07-25 株式会社ミツトヨ Three-d shape auto-tracing method and measuring machine
CN118150585A (en) * 2024-05-11 2024-06-07 深圳亚太航空技术股份有限公司 Crimping terminal detection system and method thereof

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7352901B2 (en) 2000-10-23 2008-04-01 Omron Corporation Contour inspection method and apparatus
US7643668B2 (en) 2005-09-26 2010-01-05 Advanced Mask Inspection Technology Inc. Workpiece inspection apparatus, workpiece inspection method and computer-readable recording medium storing program
JP2013238860A (en) * 2007-01-31 2013-11-28 Olympus Corp Endoscope apparatus
JP2008295512A (en) * 2007-05-29 2008-12-11 Olympus Corp Endoscope apparatus for measurement, and program
JP2012247376A (en) * 2011-05-31 2012-12-13 Ckd Corp Tablet inspection device and ptp packaging machine
JP2019124609A (en) * 2018-01-17 2019-07-25 株式会社ミツトヨ Three-d shape auto-tracing method and measuring machine
CN118150585A (en) * 2024-05-11 2024-06-07 深圳亚太航空技术股份有限公司 Crimping terminal detection system and method thereof

Similar Documents

Publication Publication Date Title
US4876457A (en) Method and apparatus for differentiating a planar textured surface from a surrounding background
WO2021251064A1 (en) Information processing device, determination method, and information processing program
KR102027986B1 (en) Bead recognition apparatus using vision camera and method thereof
US20160321797A1 (en) Imaging-based methods for detecting and measuring defects in extruded cellular ceramic articles
CN115601359A (en) Welding seam detection method and device
Hu et al. Rail surface spalling detection based on visual saliency
KR20180115645A (en) Apparatus for weld bead recognition of 2d image-based and soot removal method using the same
KR102242996B1 (en) Method for atypical defects detect in automobile injection products
JPH11132743A (en) Defect inspecting device by image signal processing
JP3159063B2 (en) Surface defect inspection equipment
JP3160743B2 (en) LCD panel defect inspection equipment
JP2000132684A (en) External appearance inspecting method
JPH03175343A (en) Method for extracting flaw by inspection appearance
JP3508518B2 (en) Appearance inspection method
JPS62229050A (en) Surface detect inspection of object
JPH1010053A (en) Inspection device for surface defect
JP2710685B2 (en) Defect detection method by visual inspection
JPH0772909B2 (en) Welding condition judgment method by visual inspection
JP2638121B2 (en) Surface defect inspection equipment
JP6576661B2 (en) Image processing device
JP2000121495A (en) Screen inspection method
JPH02252392A (en) Picture quality evaluating method
JPH0569536A (en) Defect detecting method and defect detecting circuit in inspection device for printed matter
JP3132931B2 (en) Scratch inspection device
JPH0815174A (en) Defect inspection method by visual inspection

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20050104