JPH08101916A - Defect inspection method and device therefor - Google Patents

Defect inspection method and device therefor

Info

Publication number
JPH08101916A
JPH08101916A JP6261698A JP26169894A JPH08101916A JP H08101916 A JPH08101916 A JP H08101916A JP 6261698 A JP6261698 A JP 6261698A JP 26169894 A JP26169894 A JP 26169894A JP H08101916 A JPH08101916 A JP H08101916A
Authority
JP
Japan
Prior art keywords
image
defect
area
measured
feature amount
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
JP6261698A
Other languages
Japanese (ja)
Inventor
Masahiro Kawachi
雅弘 河内
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP6261698A priority Critical patent/JPH08101916A/en
Publication of JPH08101916A publication Critical patent/JPH08101916A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE: To correctly discriminate whether or not a defect is present in an object and to stably inspect the defect of the object regardless of the kind of the object and observation conditions, etc. CONSTITUTION: A rectangular inspection area 4 is set in the image part 1A of the object of a gradation image 1. First, a rectangular small area 20 is set at an upper end position inside the inspection area 4 and the feature amount of an average density or the like is measured for the image inside the small area 20 at the position. Then, the small area 20 is moved for prescribed pitches and the feature amount is measured for the image inside the small area 20 at the position. Thereafter, after repeatedly executing the movement of the small area 20 and the measurement of the feature amount, a prescribed arithmetic operation is executed by respective measured values and the defect of the object is discriminated from the arithmetic result.

Description

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

【0001】[0001]

【産業上の利用分野】この発明は、対象物を撮像して得
られた画像により前記対象物の不良を検査する不良検査
方法およびその装置に関連し、殊にこの発明は、対象物
の種類や観測条件を問わず、対象物に傷,突起物,欠け
などの欠陥が存在するかどうかを判別して対象物の不良
を検査する不良検査方法およびその装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a defect inspection method and apparatus for inspecting a defect of an object by using an image obtained by picking up an image of the object. The present invention relates to a defect inspection method and apparatus for inspecting a defect of an object by determining whether the object has a defect such as a scratch, a protrusion or a chip, regardless of the observation conditions.

【0002】[0002]

【従来の技術】一般に対象物の不良を検査するのに、適
当な照明下で撮像装置により対象物を撮像し、得られた
濃淡画像またはその2値画像に検査領域を設定して、そ
の検査領域内の画像について所定の特徴量を計測し、そ
の計測値から対象物の良否、すなわち対象物に欠陥が存
在するかどうかを判別している。
2. Description of the Related Art Generally, for inspecting a defect of an object, an image of the object is picked up by an image pickup device under appropriate illumination, an inspection area is set in the obtained grayscale image or its binary image, and the inspection is performed. A predetermined characteristic amount is measured for the image in the region, and whether the object is good or bad, that is, whether or not the object has a defect is determined from the measured value.

【0003】図12には、従来の不良検査方法の一例が
示してある。図12(1)は、対象物を撮像して得られ
た濃淡画像1を示す。同図中、1Aは対象物の画像部
分、1Bは背景の画像部分である。前記対象物の画像部
分1Aには傷のような欠陥2が現れている。
FIG. 12 shows an example of a conventional defect inspection method. FIG. 12 (1) shows a grayscale image 1 obtained by imaging the object. In the figure, 1A is the image portion of the object, and 1B is the background image portion. A defect 2 such as a scratch appears in the image portion 1A of the object.

【0004】図12(2)は、この濃淡画像1を所定の
2値化しきい値で2値化処理して得られた2値画像3で
あり、同図中、斜線部分が黒画素の領域を、白地部分が
白画素の領域を、それぞれ示す。背景の画像部分1Bお
よび欠陥2は黒画素に、また対象物の画像部分1Aは白
画素に、それぞれ2値化されている。対象物の画像部分
1Aに矩形状の検査領域4を設定し、この検査領域4内
の画像について黒画素領域の面積、すなわち黒画素数を
特徴量として計測し、この計測値が所定の判定値以上で
あれば、対象物に欠陥が存在すると判断し、前記判定値
より小さければ、対象物に欠陥は存在しないと判断す
る。
FIG. 12B shows a binary image 3 obtained by binarizing the grayscale image 1 with a predetermined binarization threshold value. In FIG. 12, the shaded area is a black pixel area. The white background areas are white pixels. The background image portion 1B and the defect 2 are binarized into black pixels, and the image portion 1A of the object is binarized into white pixels. A rectangular inspection area 4 is set in the image portion 1A of the object, and the area of the black pixel area, that is, the number of black pixels is measured as a feature amount in the image in the inspection area 4, and the measured value is a predetermined judgment value. If it is above, it is determined that the object has a defect, and if it is smaller than the determination value, it is determined that the object has no defect.

【0005】図13には、従来の不良検査方法の他の例
が示してある。図13(1)は、対象物を撮像して得ら
れた濃淡画像1を示す。同図中、1Aは対象物の画像部
分、1Bは背景の画像部分、2は欠陥2である。図13
(4)には、この濃淡画像1のA−A線に沿う明るさ分
布M1が示してある。この明るさ分布M1では、背景の
画像部分1Bは暗く、対象物の画像部分1Aは明るい
が、欠陥2の位置では明るさが低下している。
FIG. 13 shows another example of the conventional defect inspection method. FIG. 13 (1) shows a grayscale image 1 obtained by imaging the object. In the figure, 1A is an image portion of the object, 1B is a background image portion, and 2 is a defect 2. FIG.
In (4), the brightness distribution M1 along the line AA of the grayscale image 1 is shown. In this brightness distribution M1, the background image portion 1B is dark and the object image portion 1A is bright, but the brightness is lowered at the position of the defect 2.

【0006】図13(2)は、この濃淡画像1に輪郭抽
出処理を施して得られたエッジ画像5を示す。同図中、
1aは対象物の画像部分1Aの輪郭であるエッジを、2
aは欠陥2の輪郭であるエッジを、それぞれ示す。図1
3(5)には、このエッジ画像5のA′−A′線に沿う
明るさ分布M2が示してある。この明るさ分布M2で
は、前記の各エッジ1a,2aの位置での明るさが急激
に大きくなっている。
FIG. 13B shows an edge image 5 obtained by subjecting the grayscale image 1 to contour extraction processing. In the figure,
1a is an edge that is the contour of the image portion 1A of the object,
a represents an edge that is the contour of the defect 2. FIG.
3 (5) shows the brightness distribution M2 along the line A'-A 'of the edge image 5. In the brightness distribution M2, the brightness at the positions of the edges 1a and 2a is rapidly increased.

【0007】図13(3)は、前記エッジ画像5を所定
の2値化しきい値THで2値化処理して得られた2値画
像6を示す。同図中、1a′はエッジ画像5における対
象物の画像部分1Aのエッジ1aを2値化処理して得ら
れた黒画素領域を、2a′は欠陥2のエッジ2aを2値
化処理して得られた黒画素領域を、それぞれ示す。図1
3(6)には、この2値画像6のA〃−A〃線に沿うデ
ータ分布Dが示してある。前記の各エッジ1a,2aの
位置では、データが「1」であり、その他の位置では
「0」である。
FIG. 13C shows a binary image 6 obtained by binarizing the edge image 5 with a predetermined binarizing threshold value TH. In the figure, 1a 'is a black pixel area obtained by binarizing the edge 1a of the image portion 1A of the object in the edge image 5, and 2a' is binarizing the edge 2a of the defect 2. The obtained black pixel areas are shown respectively. FIG.
3 (6) shows a data distribution D along the line A'-A 'of the binary image 6. The data is "1" at the positions of the edges 1a and 2a, and "0" at the other positions.

【0008】この2値画像6の対象物の画像部分1Aに
矩形状の検査領域4を設定し、この検査領域4内の画像
の黒画素領域の面積、すなわち黒画素数を特徴量として
計測し、この計測値が所定の判定値以上であれば、対象
物に欠陥が存在すると判断し、前記判定値より小さけれ
ば、対象物に欠陥は存在しないと判断する。
A rectangular inspection area 4 is set in the image portion 1A of the object of the binary image 6, and the area of the black pixel area of the image in the inspection area 4, that is, the number of black pixels is measured as a feature amount. If the measured value is greater than or equal to a predetermined determination value, it is determined that the target object has a defect, and if it is smaller than the determination value, it is determined that the target object has no defect.

【0009】なお上記の各従来例では、濃淡画像1やエ
ッジ画像5を2値化処理して得られた2値画像3,6の
対象物の画像部分1Aに検査領域4を設定して、特徴量
の計測および欠陥の有無の判断を行っているが、これら
の方法の他に、濃淡画像1の対象物の画像部分1Aに検
査領域4を設定し、その検査領域4内の画像の平均濃度
や分散値を特徴量として計測し、その計測値を判定値と
比較することにより対象物の不良を検査するという方法
もある。
In each of the above conventional examples, the inspection area 4 is set in the image portion 1A of the object of the binary images 3 and 6 obtained by binarizing the grayscale image 1 and the edge image 5. The feature amount is measured and the presence / absence of a defect is determined. In addition to these methods, the inspection area 4 is set in the image portion 1A of the object of the grayscale image 1, and the average of the images in the inspection area 4 is set. There is also a method in which a density or a variance value is measured as a feature amount and the measured value is compared with a determination value to inspect a target object for defects.

【0010】[0010]

【発明が解決しようとする課題】上記した不良検査方法
では、対象物の種類や観測条件によっては、以下の具体
例で詳述するように、対象物に欠陥が存在するかどうか
を正しく判別し得ず、安定した検査が行えないという問
題がある。
In the above defect inspection method, depending on the type of the object and the observation conditions, it is possible to correctly determine whether or not there is a defect in the object, as will be described in detail in the following specific examples. However, there is a problem that stable inspection cannot be performed.

【0011】図14には、円筒体を対象物とする場合の
不具合が示してある。図14(1)は前記対象物を撮像
して得られた濃淡画像1を、また図14(2)は前記濃
淡画像1を所定の2値化しきい値THで2値化処理して
得られた2値画像3を、それぞれ示す。図14(1)に
おいて、1Aは対象物の画像部分、1Bは背景の画像部
分、2は対象物の画像部分1Aに現れた欠陥2である
が、この対象物の画像部分1Aには前記欠陥2を挟んで
両側に「シェーディング」と称される影7が現れてい
る。図14(3)には、この濃淡画像1のA−A線に沿
う画像の明るさ分布M1が示してある。この明るさ分布
M1では、背景の画像部分1Bは暗く、対象物の画像部
分1Aは明るいが、欠陥2の位置および前記影7の位置
で明るさが低下している。図14(2)に示す2値画像
3は、斜線部分が黒画素の領域であり、白地部分が白画
素の領域であるが、欠陥2のみならず前記影7の部分も
黒画素に2値化されている。図14(4)には、前記濃
淡画像1を図14(3)に示す2値化しきい値THで2
値化したときのデータ分布D、すなわち2値画像3の
A′−A′線に沿うデータ分布Dが示してある。
FIG. 14 shows a problem when a cylindrical body is an object. 14 (1) is a grayscale image 1 obtained by imaging the object, and FIG. 14 (2) is a grayscale image 1 obtained by binarizing the grayscale image 1 with a predetermined binarization threshold TH. Binary image 3 is shown. In FIG. 14 (1), 1A is the image portion of the target object, 1B is the background image portion, and 2 is the defect 2 appearing in the image portion 1A of the target object. Shadows 7 called “shading” appear on both sides of the shadow 2. FIG. 14C shows an image brightness distribution M1 along the line AA of the grayscale image 1. In this brightness distribution M1, the background image portion 1B is dark and the object image portion 1A is bright, but the brightness is lowered at the position of the defect 2 and the position of the shadow 7. In the binary image 3 shown in FIG. 14 (2), the shaded area is a black pixel area and the white background area is a white pixel area, but not only the defect 2 but also the shadow 7 area is a black pixel. Has been converted. In FIG. 14 (4), the grayscale image 1 is represented by the binarization threshold TH shown in FIG. 14 (3).
The data distribution D when binarized, that is, the data distribution D along the A′-A ′ line of the binary image 3 is shown.

【0012】このような2値画像3の対象物の画像部分
1Aに検査領域4を設定し、この検査領域4内の画像に
ついて黒画素領域の面積を計測したとき、その計測値は
欠陥2の面積と影7の面積との総和になり、欠陥2の部
分の面積のみを検出できない。従って仮に欠陥2が存在
しなくても、影7の存在により対象物は不良であると判
断されることがある。
When the inspection area 4 is set in the image portion 1A of the object of the binary image 3 and the area of the black pixel area of the image in the inspection area 4 is measured, the measured value is that of the defect 2. It is the sum of the area and the area of the shadow 7, and only the area of the defect 2 cannot be detected. Therefore, even if the defect 2 does not exist, the object may be determined to be defective due to the presence of the shadow 7.

【0013】図15には、表面が梨地模様の物体を対象
物とする場合の不具合が示してある。図15(1)が濃
淡画像1、図15(2)が2値画像3であり、1Aが対
象物の画像部分、1Bが背景の画像部分、2が欠陥を示
す。前記2値画像3は、対象物の画像部分1Aが白画素
に2値化されているが、この対象物の画像部分1Aには
黒画素に2値化された欠陥2および梨地模様を構成する
無数の傷8が現れている。
FIG. 15 shows a defect when an object having a satin-finished surface is an object. FIG. 15 (1) is a grayscale image 1, FIG. 15 (2) is a binary image 3, 1A is an image portion of the object, 1B is a background image portion, and 2 is a defect. In the binary image 3, the image portion 1A of the target object is binarized into white pixels, but the image portion 1A of the target object has a defect 2 and a satin pattern binarized into black pixels. Countless scratches 8 have appeared.

【0014】このような2値画像3に検査領域4を設定
して、黒画素領域の面積を計測したとき、その計測値は
欠陥2の面積とすべての傷8の面積との総和になり、欠
陥2の部分の面積のみを検出できない。
When the inspection area 4 is set in such a binary image 3 and the area of the black pixel area is measured, the measured value is the sum of the area of the defect 2 and the area of all the scratches 8, Only the area of the defect 2 portion cannot be detected.

【0015】図16には、対象物の端縁に現れる突起物
や欠けなどの欠陥を検査する場合の不具合例が示してあ
る。図16(1)が濃淡画像1、図16(2)が2値画
像3であり、1Aが対象物の画像部分、1Bが背景の画
像部分を示す。この対象物の画像部分1Aの一方の端縁
には突起物9と欠け10とが現れている。図16(2)
に示す2値画像3は、斜線部分が黒画素の領域、白地部
分が白画素の領域であるが、突起物9は白画素に、また
欠け10は黒画素に、それぞれ2値化されている。
FIG. 16 shows a defect example in the case of inspecting a defect such as a protrusion or a chip appearing on the edge of an object. FIG. 16 (1) shows the grayscale image 1, FIG. 16 (2) shows the binary image 3, 1A shows the image portion of the object, and 1B shows the background image portion. A projection 9 and a chip 10 appear on one edge of the image portion 1A of the object. FIG. 16 (2)
In the binary image 3 shown in FIG. 3, the shaded area is a black pixel area and the white background area is a white pixel area, but the protrusion 9 is binarized and the chipped portion 10 is black pixel. .

【0016】このような2値画像3の対象物の画像部分
1Aには、その内側に矩形状の検査領域11を、外側に
帯状の検査領域12を、それぞれ設定し、前記検査領域
11内の画像について黒画素領域の面積を、帯状の検査
領域12内の画像について白画素領域の面積を、それぞ
れ計測する。もし検査領域11内の黒画素領域の面積が
判定値以上であるとき、欠け10が存在すると判断す
る。またもし検査領域12内の白画素領域の面積が判定
値以上であるとき、突起物9が存在すると判断する。
In the image portion 1A of the object of the binary image 3 as described above, a rectangular inspection area 11 is set on the inside and a belt-shaped inspection area 12 is set on the outside. The area of the black pixel area is measured for the image, and the area of the white pixel area is measured for the image in the strip-shaped inspection area 12. If the area of the black pixel area in the inspection area 11 is equal to or larger than the determination value, it is determined that the chip 10 exists. If the area of the white pixel area in the inspection area 12 is equal to or larger than the determination value, it is determined that the protrusion 9 is present.

【0017】このような方法では、小さな突起物9や欠
け10を検出するには、各検査領域11,12を対象物
の画像部分1Aの端縁に接近させて設定する必要がある
が、そのような設定は容易でなく、もし画像の位置ずれ
修正が高精度に行われないと、突起物9や欠け10の検
査が困難である。
In such a method, in order to detect the small projection 9 and the chip 10, it is necessary to set the inspection areas 11 and 12 close to the edge of the image portion 1A of the object. Such setting is not easy, and if the positional deviation of the image is not corrected with high accuracy, it is difficult to inspect the protrusion 9 and the chip 10.

【0018】図17および図18には、対象物を撮像す
るための照明条件が変動した場合の不具合が示してあ
る。図17(1)(2)は照明強度が変動する前の画像
であって、図17(1)が濃淡画像1、図17(2)が
その2値画像3である。1Aは対象物の画像部分、1B
は背景の画像部分、2は欠陥であり、図17(3)に
は、濃淡画像1のA−A線に沿う明るさ分布M1が示し
てある。この濃淡画像1を所定の2値化しきい値THで
2値化処理すると、図17(2)に示す2値画像3が得
られる。なおこの2値画像3において、斜線部分が黒画
素の領域であり、白地部分が白画素の領域である。
FIG. 17 and FIG. 18 show problems when the illumination conditions for picking up an object change. FIGS. 17 (1) and 17 (2) are images before the illumination intensity is changed. FIG. 17 (1) is the grayscale image 1 and FIG. 17 (2) is the binary image 3. 1A is the image part of the object, 1B
In FIG. 17 (3), a brightness distribution M1 along the line AA of the grayscale image 1 is shown. When the grayscale image 1 is binarized with a predetermined binarization threshold value TH, a binary image 3 shown in FIG. 17B is obtained. In this binary image 3, the shaded area is a black pixel area and the white background area is a white pixel area.

【0019】図18(1)(2)は照明強度が低下した
ときの画像であって、図18(1)が濃淡画像1、図1
8(2)がその2値画像3である。図18(3)には、
濃淡画像1のA′−A′線の沿う明るさ分布M2が示し
てあり、照明変動前の明るさ分布M1より明るさのレベ
ルが下がっている。この濃淡画像1を前記2値化しきい
値THで2値化処理すると、図18(2)に示すよう
に、対象物の画像部分が消失し、全体が黒画素一色の2
値画像3となり、従って不良検査が不可能である。
FIGS. 18 (1) and 18 (2) are images when the illumination intensity is lowered. FIG. 18 (1) shows the grayscale image 1 and FIG.
8 (2) is the binary image 3. In FIG. 18 (3),
The brightness distribution M2 along the line A'-A 'of the grayscale image 1 is shown, and the brightness level is lower than the brightness distribution M1 before the illumination change. When this grayscale image 1 is binarized by the binarization threshold TH, as shown in FIG. 18B, the image portion of the object disappears, and the whole image becomes a black pixel of one color.
Value image 3 is obtained, and therefore a defect inspection is impossible.

【0020】図19には、欠陥が背景との濃度差の小さ
い汚れなどである場合の不具合が示してある。図19
(1)は、そのような汚れのある対象物を撮像して得ら
れた濃淡画像1を示す。同図中、1Aは対象物の画像部
分、1Bは背景の画像部分であり、対象物の画像部分1
Aには薄い汚れによる欠陥2が現れている。図19
(2)には、この濃淡画像1のA−A線に沿う明るさ分
布M1が示してある。この明るさ分布M1では、背景の
画像部分1Bは暗く、対象物の画像部分1Aは明るい
が、欠陥2の位置で明るさがわずかに低下している。図
19(3)は、この濃淡画像1より生成されたエッジ画
像(図示せず)の明るさ分布M2を示すが、このエッジ
画像には欠陥2のエッジは抽出されておらず、従って欠
陥2の位置で明るさが増大していない。このような濃淡
画像1については、欠陥を含む2値画像を安定して得る
ことができず、不良検査は困難である。
FIG. 19 shows a defect in the case where the defect is dirt having a small density difference from the background. FIG.
(1) shows a grayscale image 1 obtained by imaging such a dirty object. In the figure, 1A is the image portion of the object, 1B is the background image portion, and the image portion 1 of the object is
Defect 2 due to thin dirt appears in A. FIG.
In (2), the brightness distribution M1 along the line AA of the grayscale image 1 is shown. In this brightness distribution M1, the background image portion 1B is dark and the target image portion 1A is bright, but the brightness is slightly reduced at the position of the defect 2. FIG. 19C shows the brightness distribution M2 of the edge image (not shown) generated from the grayscale image 1, but the edge of the defect 2 is not extracted in this edge image, and therefore the defect 2 is not extracted. The brightness does not increase at the position. For such a grayscale image 1, a binary image including a defect cannot be stably obtained, and a defect inspection is difficult.

【0021】図20には、網状体を対象物とする場合の
不具合例が示してある。同図は、前記対象物の濃淡画像
を2値化処理して得られた2値画像3を示す。13Aは
網状体の画像部分、13Bは背景の画像部分であり、網
状体の画像部分13Aには破れによる欠陥2が現れてい
る。この種の欠陥2の検査では、2値画像3の全体を検
査領域としており、この2値画像3について、黒画素の
領域の面積、すなわち黒画素数を計測し、その計測値が
所定の判定値以上であれば、対象物に欠陥が存在しない
と判断し、前記判定値より小さければ、対象物に欠陥が
存在する判断する。しかしながら網状体の場合、対象物
の画像部分13Aの一部が欠陥2の存在により欠落して
も、対象物の画像部分13Aのばらつきに吸収されるた
め、欠陥の有無を判別するのは困難である。
FIG. 20 shows an example of a problem when a net-like body is the object. The figure shows a binary image 3 obtained by binarizing the grayscale image of the object. 13A is a mesh image portion and 13B is a background image portion, and defect 2 due to breakage appears in the mesh image portion 13A. In the inspection of this kind of defect 2, the entire binary image 3 is used as the inspection area, and the area of the black pixel area, that is, the number of black pixels is measured for this binary image 3, and the measured value is determined in a predetermined manner. If the value is greater than or equal to the value, it is determined that the target object has no defect, and if it is smaller than the determination value, it is determined that the target object has a defect. However, in the case of the mesh body, even if a part of the image portion 13A of the object is missing due to the presence of the defect 2, it is absorbed by the variation of the image portion 13A of the object. is there.

【0022】図21には、輪ゴムのような輪状体を対象
物とする場合の不具合が示してある。図21(1)
(2)は、切れなどの欠陥のある対象物の濃淡画像を2
値化処理して得られた2値画像3を示す。同図中、1A
は対象物の画像部分、1Bは背景の画像部分であり、対
象物の画像部分1Aには切れによる欠陥2が現れてい
る。この2値画像3において、斜線部分が黒画素の領
域、白地部分が白画素の領域であるが、欠陥2の部分は
黒画素に2値化される。このような2値画像3の対象物
の画像部分1Aに、円形をなす線状の検査領域14を設
定し、前記検査領域14上の黒画素数を計測し、もし黒
画素数が判定値以上であれば、対象物に欠陥2が存在す
ると判断し、またもし黒画素数が判定値より小さけれ
ば、対象物に欠陥2が存在しないと判断する。この方法
では、検査領域14を幅が狭い対象物の画像部分1A上
に正しく設定する必要があるが、そのような設定は容易
でなく、図21(2)のように、画像の位置ずれ修正が
適正に行われなかったり、対象物が変形したりすると、
対象物の画像部分1Aに対する検査領域14の設定位置
がずれ、欠陥2の検出が困難となる。
FIG. 21 shows a problem when a ring-shaped body such as a rubber band is used as an object. FIG. 21 (1)
(2) is a grayscale image of an object having a defect such as a cutout.
The binary image 3 obtained by the binarization process is shown. 1A in the figure
Is an image part of the object, 1B is an image part of the background, and a defect 2 due to a cut appears in the image part 1A of the object. In this binary image 3, the shaded area is a black pixel area and the white background area is a white pixel area, but the defect 2 area is binarized into a black pixel. A circular linear inspection area 14 is set in the image portion 1A of the object of the binary image 3 as described above, and the number of black pixels on the inspection area 14 is measured. If so, it is determined that the defect 2 exists in the object, and if the number of black pixels is smaller than the determination value, it is determined that the defect 2 does not exist in the object. In this method, it is necessary to correctly set the inspection region 14 on the image portion 1A of the narrow object, but such a setting is not easy, and as shown in FIG. Is not performed properly or the object is deformed,
The set position of the inspection area 14 with respect to the image portion 1A of the object is displaced, and it becomes difficult to detect the defect 2.

【0023】この発明は、上記した諸問題に着目してな
されたもので、対象物の種類や観測条件などを問わず、
対象物に欠陥が存在するかどうかを正しく判別して、対
象物の不良を安定して検査できる不良検査方法およびそ
の装置を提供することを目的とする。
The present invention was made by paying attention to the above-mentioned various problems, regardless of the type of object or the observation conditions.
It is an object of the present invention to provide a defect inspection method and an apparatus therefor capable of accurately determining whether or not a defect exists in an object and stably inspecting the object for defects.

【0024】[0024]

【課題を解決するための手段】請求項1の発明は、対象
物を撮像して得られた画像により前記対象物の不良を検
査する方法において、前記画像の検査領域を複数の小領
域に分割して、各小領域内の画像についてそれぞれ特徴
量を計測した後、各計測値を処理することにより対象物
の不良判別を行うことを特徴としている。
According to a first aspect of the present invention, there is provided a method for inspecting a defect of an object by an image obtained by imaging the object, wherein an inspection area of the image is divided into a plurality of small areas. Then, the feature amount is measured for each image in each small area, and then the measured value is processed to perform the defect determination of the object.

【0025】請求項2〜5の発明では、前記画像は濃淡
画像であり、各小領域内の画像についてそれぞれ平均濃
度,分散値,重心位置,モデル画像との濃淡相関値を特
徴量として計測するようにしている。
According to the present invention, the image is a grayscale image, and the average density, the variance value, the position of the center of gravity, and the grayscale correlation value with the model image of the image in each small area are measured as the feature amount. I am trying.

【0026】請求項6,7の発明では、前記画像は2値
画像であり、各小領域内の画像についてそれぞれ黒画素
領域または白画素領域の面積,重心位置を特徴量として
計測するようにしている。
According to the sixth and seventh aspects of the invention, the image is a binary image, and the area of the black pixel region or the white pixel region and the position of the center of gravity of the image in each small region are measured as the characteristic amount. There is.

【0027】請求項8の発明は、対象物を撮像して得ら
れた画像により前記対象物の不良を検査する方法におい
て、前記画像の検査領域を複数の小領域に分割して、各
小領域内の画像についてそれぞれ複数種の特徴量を計測
した後、特徴量の種類毎に各計測値を処理することによ
り対象物の不良判別を行い、すべての種類の特徴量につ
いて不良判別が行われたとき、対象物が不良であると判
断することを特徴としている。
According to an eighth aspect of the present invention, in a method of inspecting a defect of the object by an image obtained by picking up an image of the object, the inspection area of the image is divided into a plurality of small areas, and each small area is divided. After measuring multiple types of feature values for each of the images in the image, a defect determination of the object was performed by processing each measurement value for each type of feature amount, and defect determination was performed for all types of feature amounts. At this time, it is characterized in that the object is judged to be defective.

【0028】請求項9の発明は、対象物を撮像して得ら
れた画像により前記対象物の不良を検査する方法におい
て、前記画像の検査領域を複数の小領域に分割して、各
小領域内の画像についてそれぞれ複数種の特徴量を計測
した後、特徴量の種類毎に各計測値を処理することによ
り対象物の不良判別を行い、いずれかの種類の特徴量に
ついて不良判別が行われたとき、対象物が不良であると
判断することを特徴としている。
According to a ninth aspect of the present invention, in a method of inspecting a defect of the object by an image obtained by picking up an image of the object, the inspection area of the image is divided into a plurality of small areas, and each small area is divided. After measuring a plurality of types of feature values for each image in the image, the measured value is processed for each type of feature amount to determine the defect of the target object, and the defect determination is performed for any type of feature amount. It is characterized in that the object is judged to be defective when it is turned on.

【0029】請求項10の発明は、対象物を撮像して得
られた画像により前記対象物の不良を検査する装置にお
いて、前記画像の検査領域を複数の小領域に分割する領
域分割手段と、前記領域分割手段により分割された各小
領域内の画像についてそれぞれ特徴量を計測する特徴量
計測手段と、前記特徴量計測手段により計測された各特
徴量を処理することにより対象物の不良判別を行う判別
手段とを備えたものである。
According to a tenth aspect of the present invention, in an apparatus for inspecting a defect of the object by an image obtained by picking up an image of the object, an area dividing means for dividing an inspection area of the image into a plurality of small areas, A feature amount measuring unit that measures a feature amount for each image in each small region divided by the region dividing unit, and a defect determination of an object by processing each feature amount measured by the feature amount measuring unit. And a discriminating means for performing.

【0030】[0030]

【作用】欠陥を有する対象物の場合、その画像の検査領
域を複数の小領域に分割しているので、画像に現れた欠
陥部分はいずれかの小領域内に含まれることになる。欠
陥部分を含む小領域内の画像より計測された特徴量と、
欠陥部分を含まない小領域内の画像より計測された特徴
量との間には差があり、この差から欠陥の有無を判別し
得る。
In the case of an object having a defect, since the inspection area of the image is divided into a plurality of small areas, the defective portion appearing in the image is included in any one of the small areas. A feature amount measured from the image in the small area including the defective part,
There is a difference between the feature amount measured from the image in the small area that does not include the defective portion, and the presence or absence of the defect can be determined from this difference.

【0031】請求項2〜5の発明では、平均濃度,分散
値,重心位置,モデル画像との濃淡相関値が特徴量とし
て計測されるもので、欠陥部分を含む小領域内の画像よ
り計測された平均濃度,分散値,重心位置,モデル画像
との濃淡相関値と、欠陥部分を含まない小領域内の画像
より計測された平均濃度,分散値,重心位置,モデル画
像との濃淡相関値との間には差があり、この差から欠陥
の有無を判別し得る。
According to the second to fifth aspects of the present invention, the average density, the variance value, the position of the center of gravity, and the density correlation value with the model image are measured as the feature quantity, and are measured from the image in the small area including the defective portion. The average density, variance, centroid position, and grayscale correlation value with the model image, and the average density, variance, centroid position, and grayscale correlation value with the model image measured from the image in the small area that does not include the defect part. There is a difference between them, and the presence or absence of a defect can be determined from this difference.

【0032】請求項6,7の発明では、黒画素領域また
は白画素領域の面積や重心位置が特徴量として計測され
るもので、欠陥部分を含む小領域内の画像より計測され
た面積や重心位置と、欠陥部分を含まない小領域内の画
像より計測された面積や重心位置との間には差があり、
この差から欠陥の有無を判別し得る。
According to the sixth and seventh aspects of the present invention, the area and barycentric position of the black pixel area or the white pixel area are measured as the characteristic amount, and the area and barycenter measured from the image in the small area including the defective portion. There is a difference between the position and the area and the center of gravity measured from the image in the small area that does not include the defective portion,
The presence or absence of defects can be determined from this difference.

【0033】請求項8の発明では、特徴量の種類毎に特
徴量の各計測値を処理して対象物の不良判別を行った結
果、すべての種類の特徴量について不良判別が行われた
とき、対象物が不良であると判断する。
According to the invention of claim 8, when the measured values of the characteristic amount are processed for each type of the characteristic amount and the defect determination of the object is performed, the defect determination is performed for all types of the characteristic amounts. , The object is judged to be defective.

【0034】請求項9の発明では、特徴量の種類毎に特
徴量の各計測値を処理して対象物の不良判別を行った結
果、いずれかの種類の特徴量について不良判別が行われ
たとき、対象物が不良であると判断する。
According to the ninth aspect of the present invention, as a result of processing the measured values of the feature amount for each type of feature amount and performing defect determination of the object, defect determination is performed for any type of feature amount. At this time, it is determined that the object is defective.

【0035】請求項10の発明にかかる不良検査装置で
は、領域分割手段により画像の検査領域が複数の小領域
に分割され、特徴量計測手段が分割された各小領域内の
画像についてそれぞれ特徴量を計測する。判別手段は計
測された各特徴量を処理することにより対象物の不良判
別を行う。
In the defect inspection apparatus according to the tenth aspect of the present invention, the inspection area of the image is divided into a plurality of small areas by the area dividing means, and the characteristic amount is measured for each image in each small area. To measure. The discriminating means discriminates the defect of the object by processing each measured characteristic amount.

【0036】[0036]

【実施例】図1〜図7は、この発明にかかる不良検査方
法を具体的に示している。図1は、円筒体を対象物とす
る場合の具体例であり、図14(1)は前記対象物を撮
像して得られた濃淡画像1を示す。図中、1Aは対象物
の画像部分、1Bは背景の画像部分、2は対象物の画像
部分1Aに現れた欠陥2であり、この対象物の画像部分
1Aには前記欠陥2を挟んで両側に「シェーディング」
と称される影7が現れている。
1 to 7 specifically show a defect inspection method according to the present invention. FIG. 1 shows a specific example in which a cylindrical body is used as an object, and FIG. 14 (1) shows a grayscale image 1 obtained by imaging the object. In the figure, 1A is an image part of the object, 1B is an image part of the background, 2 is a defect 2 appearing in the image part 1A of the object, and the image part 1A of the object is located on both sides of the defect 2. To "shading"
There is a shadow 7 called.

【0037】この濃淡画像1の対象物の画像部分1Aに
は矩形状の検査領域4が設定され、この検査領域4を複
数の小領域20に分割して、各小領域20内の画像につ
いてそれぞれ平均濃度を特徴量として計測する。この実
施例では、まず検査領域4内の上端位置に横幅がH、縦
幅がWの矩形状の小領域20を設定し、この位置で小領
域20内の画像について平均濃度を計測する。ついで小
領域20を所定のピッチd(ただしd≦W)だけ下方へ
移動させ、その位置で同様にして小領域20内の画像に
ついて平均濃度を計測する。以下、小領域20が検査領
域4の下端位置に達するまで、小領域20の移動と平均
濃度の計測とを繰り返し実行する。
A rectangular inspection area 4 is set in the image portion 1A of the object of the grayscale image 1. The inspection area 4 is divided into a plurality of small areas 20, and the images in the respective small areas 20 are respectively divided. The average density is measured as a feature amount. In this embodiment, first, a rectangular small area 20 having a horizontal width H and a vertical width W is set at the upper end position in the inspection area 4, and the average density of the image in the small area 20 is measured at this position. Then, the small area 20 is moved downward by a predetermined pitch d (where d ≦ W), and the average density of the image in the small area 20 is measured at that position in the same manner. Hereinafter, the movement of the small area 20 and the measurement of the average density are repeatedly executed until the small area 20 reaches the lower end position of the inspection area 4.

【0038】図1(2)は、小領域20の各移動位置で
計測された平均濃度をプロットしたものであり、欠陥2
の存在位置やその近傍では平均濃度が低下している。い
まi番目の移動位置での平均濃度をR(i)、その直前
および直後の各移動位置での平均濃度をR(i−1),
R(i+1)とすると、平均濃度R(i)と平均濃度R
(i−1),R(i+1)の平均値との差の絶対値を次
式により算出する。
FIG. 1B is a plot of average densities measured at each moving position of the small area 20.
The average density is low at the position of the presence of and in the vicinity. Now, the average density at the i-th moving position is R (i), the average density at each moving position immediately before and immediately after that is R (i-1),
If R (i + 1), the average density R (i) and the average density R
The absolute value of the difference between the average value of (i-1) and R (i + 1) is calculated by the following equation.

【0039】[0039]

【数1】 [Equation 1]

【0040】図1(3)は、小領域20の各移動位置で
の前記演算値aをプロットしたものであり、欠陥2が存
在するとき、所定の判定値Sを越える点Pが現れる。従
ってこの判定値Sを越える点があるかどうかにより対象
物が不良かどうかを判別する。
FIG. 1C is a plot of the calculated value a at each moving position of the small area 20, and when the defect 2 exists, a point P exceeding the predetermined judgment value S appears. Therefore, it is determined whether or not the object is defective depending on whether or not there is a point that exceeds the determination value S.

【0041】なお上記実施例では、小領域20内の濃淡
画像について平均濃度を特徴量として計測しているが、
これに限らず、分散値を特徴量として計測してもよく、
また重心位置やモデルとの濃淡相関値を特徴量として算
出してもよい。また上記実施例では、濃淡画像を対象と
しているが、2値画像を対象として、黒画素または白画
素の領域の面積や重心位置を計測または算出してもよ
い。さらに上記実施例では、ひとつの種類の特徴量(平
均濃度)を計測して前記演算値を順次算出し、いずれか
の演算値が所定の判定値Sを越えたとき、対象物に欠陥
が存在すると判断しているが、複数種類の特徴量(濃淡
画像については平均濃度,分散値,重心位置,モデルと
の濃淡相関値など、2値画像については面積,重心位置
など)を計測して前記演算値を順次算出し、全ての種類
の特徴量について、いずれかの演算値が所定の判定値を
越えたとき、対象物に欠陥が存在すると判断してもよ
く、またいずれかの種類の特徴量について、いずれかの
演算値が所定の判定値を越えたとき、対象物に欠陥が存
在すると判断してもよい。
In the above embodiment, the average density of the grayscale image in the small area 20 is measured as the feature amount.
Not limited to this, the variance value may be measured as a feature amount,
Further, a grayscale correlation value with the position of the center of gravity or the model may be calculated as the feature amount. Further, in the above embodiment, the grayscale image is targeted, but the area or the center of gravity of the region of the black pixel or the white pixel may be measured or calculated for the binary image. Further, in the above-described embodiment, one type of feature amount (average density) is measured and the calculated values are sequentially calculated, and when any of the calculated values exceeds the predetermined judgment value S, a defect exists in the object. However, it is determined that a plurality of types of feature amounts (such as average density, variance value, barycentric position for grayscale image, and grayscale correlation value with model, area, barycentric position for binary image, etc.) are measured. The calculated values may be sequentially calculated, and for any type of feature amount, it may be determined that the object has a defect when any of the calculated values exceeds a predetermined determination value. It may be determined that a defect exists in the object when any of the calculated values exceeds a predetermined determination value.

【0042】図2は、表面が梨地模様の物体を対象物と
する場合の具体例であり、図2(1)は前記対象物を撮
像して得られた濃淡画像1を示す。図中、1Aは対象物
の画像部分、1Bは背景の画像部分、2は対象物の画像
部分1Aに現れた欠陥2であり、この対象物の画像部分
1Aには前記梨地模様を構成する無数の傷8が現れてい
る。
FIG. 2 shows a specific example in which an object having a satin-finished surface is used as an object, and FIG. 2 (1) shows a grayscale image 1 obtained by imaging the object. In the figure, 1A is an image portion of the object, 1B is an image portion of the background, 2 is a defect 2 appearing in the image portion 1A of the object, and the image portion 1A of the object is a myriad of satin-finished patterns. The scratches 8 have appeared.

【0043】この濃淡画像1の対象物の画像部分1Aに
は矩形状の検査領域4が設定され、まずこの検査領域4
内の上端位置に図1の実施例と同様の矩形状の小領域2
0を設定して、この位置で小領域20内の画像について
分散値を特徴量として計測する。ついで小領域20を所
定のピッチだけ下方へ移動させ、その位置で同様にして
小領域20内の画像について分散値を計測する。以下、
小領域20が検査領域4の下端位置に達するまで、小領
域20の移動と分散値の計測とを繰り返し実行する。
A rectangular inspection area 4 is set in the image portion 1A of the object of the grayscale image 1. First, the inspection area 4 is set.
A rectangular small area 2 similar to that of the embodiment of FIG.
0 is set, and the variance value of the image in the small region 20 is measured at this position as a feature amount. Then, the small area 20 is moved downward by a predetermined pitch, and the variance value of the image in the small area 20 is similarly measured at that position. Less than,
The movement of the small area 20 and the measurement of the variance value are repeatedly executed until the small area 20 reaches the lower end position of the inspection area 4.

【0044】図2(2)は、小領域20の各移動位置で
計測された分散値をプロットしたものであり、欠陥2の
存在位置やその近傍では分散値が低下している。いまi
番目の移動位置での分散値をσ(i)、その直前および
直後の各移動位置での分散値をσ(i−1),σ(i+
1)とすると、分散値の傾きbをσ(i),σ(i−
1)間の差とσ(i),σ(i+1)間の差を用いて次
式により算出する。
FIG. 2 (2) is a plot of the dispersion value measured at each movement position of the small area 20, and the dispersion value is lowered at the position where the defect 2 exists and its vicinity. Now i
The variance value at the th moving position is σ (i), and the variance value at each moving position immediately before and immediately after is σ (i−1), σ (i +
1), the slope b of the variance value is σ (i), σ (i-
It is calculated by the following equation using the difference between 1) and the difference between σ (i) and σ (i + 1).

【0045】[0045]

【数2】 [Equation 2]

【0046】図2(3)は、小領域20の各移動位置で
の前記演算値bをプロットしたものであり、欠陥2が存
在するとき、所定の判定値Sを越える点P1,P2が現
れる。従ってこの判定値Sを越える点があるかどうかに
より対象物が不良かどうかを判別する。
FIG. 2 (3) is a plot of the calculated value b at each moving position of the small area 20, and when the defect 2 exists, points P1 and P2 that exceed the predetermined judgment value S appear. . Therefore, it is determined whether or not the object is defective depending on whether or not there is a point that exceeds the determination value S.

【0047】図3は、対象物の端縁に現れる突起物や欠
けなどの欠陥を検査する場合の具体例であり、図3
(1)は前記対象物を撮像して得られた濃淡画像1を示
す。図中、1Aは対象物の画像部分、1Bは背景の画像
部分であり、この対象物の画像部分1Aの一方の端縁に
は突起物9と欠け10とが現れている。
FIG. 3 shows a specific example of the case of inspecting for defects such as protrusions and chips appearing on the edge of the object.
(1) shows a grayscale image 1 obtained by imaging the target object. In the figure, 1A is an image portion of the object, and 1B is an image portion of the background, and a projection 9 and a chip 10 appear on one edge of the image portion 1A of the object.

【0048】前記対象物の画像部分1Aには一方の端縁
に沿って矩形状の検査領域4が設定され、まずこの検査
領域4内の上端位置に矩形状の小領域20を設定して、
この位置で小領域20内の画像について平均濃度を特徴
量として計測する。ついで小領域20を所定のピッチだ
け下方へ移動させ、その位置で同様にして小領域20内
の画像について平均濃度を計測する。以下、小領域20
が検査領域4の下端位置に達するまで、小領域20の移
動と平均濃度の計測とを繰り返し実行する。
A rectangular inspection area 4 is set along one edge of the image portion 1A of the object. First, a rectangular small area 20 is set at the upper end position in the inspection area 4,
At this position, the average density of the image in the small area 20 is measured as a feature amount. Then, the small area 20 is moved downward by a predetermined pitch, and the average density of the image in the small area 20 is measured at that position in the same manner. Below, small area 20
The movement of the small area 20 and the measurement of the average density are repeatedly executed until reaches the lower end position of the inspection area 4.

【0049】図3(2)は、小領域20の各移動位置で
計測された平均濃度をプロットしたものであり、突起物
9の存在位置やその近傍では平均濃度が低下し、欠け1
0の存在位置やその近傍では平均濃度が増加している。
いまi番目の移動位置での平均濃度をR(i)、その直
前および直後の各移動位置での平均濃度をR(i−
1),R(i+1)とすると、平均濃度R(i)と平均
濃度R(i−1),R(i+1)の平均値との差の絶対
値aを前記した式により算出する。図3(3)は、小
領域20の各移動位置での前記演算値aをプロットした
ものであり、突起物9や欠け10が存在するとき、所定
の判定値Sを越える点P1,P2が現れる。従ってこの
判定値Sを越える点があるかどうかにより対象物が不良
かどうかを判別する。
FIG. 3B is a plot of the average densities measured at the respective moving positions of the small area 20. The average densities decrease at the positions where the projections 9 are present and in the vicinity thereof, and the chipping 1
The average density increases at the position where 0 exists and its vicinity.
The average density at the i-th moving position is R (i), and the average density at each moving position immediately before and immediately after that is R (i-).
1) and R (i + 1), the absolute value a of the difference between the average concentration R (i) and the average value of the average concentrations R (i-1) and R (i + 1) is calculated by the above-mentioned formula. FIG. 3 (3) is a plot of the calculated value a at each movement position of the small area 20, and when the projection 9 or the chip 10 is present, points P1 and P2 that exceed the predetermined determination value S are appear. Therefore, it is determined whether or not the object is defective depending on whether or not there is a point that exceeds the determination value S.

【0050】図4は、対象物を撮像するための照明条件
(照明強度)が変動した場合の具体例であり、図4
(1)は前記対象物を撮像して得られた濃淡画像1を示
す。図中、1Aは対象物の画像部分、1Bは背景の画像
部分、2は対象物の画像部分1Aに現れた欠陥2であ
り、図4(2)には、照明強度が変動する前の濃淡画像
1のA−A線に沿う明るさ分布M1と、照明強度が低下
したときの濃淡画像1のA−A線に沿う明るさ分布M2
とが示してある。
FIG. 4 shows a specific example in the case where the illumination condition (illumination intensity) for imaging the object changes.
(1) shows a grayscale image 1 obtained by imaging the target object. In the figure, 1A is an image portion of the object, 1B is a background image portion, 2 is a defect 2 appearing in the image portion 1A of the object, and FIG. The brightness distribution M1 along the line AA of the image 1 and the brightness distribution M2 along the line AA of the grayscale image 1 when the illumination intensity is reduced.
And are shown.

【0051】この濃淡画像1の対象物の画像部分1Aに
は矩形状の検査領域4が設定され、まずこの検査領域4
内の上端位置に図1の実施例と同様の矩形状の小領域2
0を設定して、この位置で小領域20内の画像について
分散値を特徴量として計測する。ついで小領域20を所
定のピッチだけ下方へ移動させ、その位置で同様にして
小領域20内の画像について分散値を計測する。以下、
小領域20が検査領域4の下端位置に達するまで、小領
域20の移動と分散値の計測とを繰り返し実行する。
A rectangular inspection area 4 is set in the image portion 1A of the object of the grayscale image 1. First, the inspection area 4 is set.
A rectangular small area 2 similar to that of the embodiment of FIG.
0 is set, and the variance value of the image in the small region 20 is measured at this position as a feature amount. Then, the small area 20 is moved downward by a predetermined pitch, and the variance value of the image in the small area 20 is similarly measured at that position. Less than,
The movement of the small area 20 and the measurement of the variance value are repeatedly executed until the small area 20 reaches the lower end position of the inspection area 4.

【0052】図4(3)は、小領域20の各移動位置で
計測された分散値をプロットしたものであり、欠陥2の
存在位置やその近傍では分散値は増大して、所定の判定
値Sを越える点Pが現れる。従ってこの判定値Sを越え
る点があるかどうかにより対象物が不良かどうかを判別
することができる。
FIG. 4 (3) is a plot of the variance value measured at each movement position of the small area 20, and the variance value increases at the position where the defect 2 exists and its vicinity, and the predetermined judgment value is obtained. A point P that exceeds S appears. Therefore, it can be determined whether or not the object is defective depending on whether or not there is a point that exceeds the determination value S.

【0053】図5は、欠陥が背景との濃度差の小さい汚
れなどである場合の具体例であり、図5(1)は前記対
象物を撮像して得られた濃淡画像1を示す。図中、1A
は対象物の画像部分、1Bは背景の画像部分であり、対
象物の画像部分1Aには薄い汚れによる欠陥2が現れて
いる。図5(2)には、この濃淡画像1のA−A線に沿
う明るさ分布M1が示してある。この明るさ分布M1で
は、背景の画像部分1Bは暗く、対象物の画像部分1A
は明るいが、欠陥2の位置で明るさがわずかに低下して
いる。
FIG. 5 shows a specific example of the case where the defect is dirt having a small density difference from the background, and FIG. 5 (1) shows a grayscale image 1 obtained by imaging the object. 1A in the figure
Is an image portion of the object, 1B is an image portion of the background, and a defect 2 due to a light stain appears in the image portion 1A of the object. FIG. 5B shows the brightness distribution M1 along the line AA of the grayscale image 1. In this brightness distribution M1, the background image portion 1B is dark and the image portion 1A of the object is
Is bright, but the brightness is slightly reduced at the position of defect 2.

【0054】この濃淡画像1の対象物の画像部分1Aに
は矩形状の検査領域4が設定され、まずこの検査領域4
内の上端位置に矩形状の小領域20を設定して、この位
置で小領域20内の画像について分散値を特徴量として
計測する。ついで小領域20を所定のピッチだけ下方へ
移動させ、その位置で同様にして小領域20内の画像に
ついて分散値を計測する。以下、小領域20が検査領域
4の下端位置に達するまで、小領域20の移動と分散値
の計測とを繰り返し実行する。
A rectangular inspection area 4 is set in the image portion 1A of the object of the grayscale image 1. First, the inspection area 4 is set.
A rectangular small area 20 is set at the upper end position in the inside, and the variance value of the image in the small area 20 is measured at this position as a feature amount. Then, the small area 20 is moved downward by a predetermined pitch, and the variance value of the image in the small area 20 is similarly measured at that position. Hereinafter, the movement of the small area 20 and the measurement of the variance value are repeatedly executed until the small area 20 reaches the lower end position of the inspection area 4.

【0055】図5(3)は、小領域20の各移動位置で
計測された分散値をプロットしたものであり、欠陥2の
存在位置やその近傍では分散値は増加する。いまi番目
の移動位置での分散値をσ(i)、その直前および直後
の各移動位置での分散値をσ(i−1),σ(i+1)
とすると、分散値の傾きbをσ(i),σ(i−1)間
の差とσ(i),σ(i+1)間の差を用いて前記式
により算出する。図5(4)は、小領域20の各移動位
置での前記演算値bをプロットしたものであり、欠陥2
が存在するとき、所定の判定値Sを越える点P1〜P4
が現れる。従ってこの判定値Sを越える点があるかどう
かにより対象物が不良かどうかを判別する。
FIG. 5 (3) is a plot of the dispersion value measured at each moving position of the small area 20, and the dispersion value increases at the existence position of the defect 2 and its vicinity. The variance value at the i-th moving position is σ (i), and the variance value at each moving position immediately before and after that is σ (i−1), σ (i + 1).
Then, the slope b of the variance value is calculated by the above formula using the difference between σ (i) and σ (i−1) and the difference between σ (i) and σ (i + 1). FIG. 5 (4) is a plot of the calculated value b at each moving position of the small area 20, and the defect 2
Exists, points P1 to P4 that exceed a predetermined judgment value S
Appears. Therefore, it is determined whether or not the object is defective depending on whether or not there is a point that exceeds the determination value S.

【0056】図6は、網状体を対象物とする場合の具体
例であり、図6(1)は前記対象物を撮像して得られた
濃淡画像1を示す。図中、1Aは網状体の画像部分、1
Bは背景の画像部分であり、網状体の画像部分1Aには
破れによる欠陥2が現れている。
FIG. 6 shows a concrete example of the case where a net-like body is an object, and FIG. 6 (1) shows a grayscale image 1 obtained by imaging the object. In the figure, 1A is an image portion of a mesh body, 1
B is an image portion of the background, and a defect 2 due to breakage appears in the image portion 1A of the mesh body.

【0057】この濃淡画像1には矩形状の検査領域4a
〜4dが4列に設定され、まず第1列目の検査領域4a
内の上端位置に矩形状の小領域20を設定して、この位
置で小領域20内の画像について分散値を特徴量として
計測する。ついで小領域20を所定のピッチだけ下方へ
移動させ、その位置で同様にして小領域20内の画像に
ついて分散値を計測する。以下、小領域20が検査領域
4aの下端位置に達するまで、小領域20の移動と分散
値の計測とを繰り返し実行する。つぎに第2列目の検査
領域4b内の上端位置に矩形状の小領域20を設定し
て、この位置で小領域20内の画像について分散値を特
徴量として計測する。ついで小領域20を所定のピッチ
だけ下方へ移動させ、その位置で同様にして小領域20
内の画像について分散値を計測する。以下、小領域20
が検査領域4bの下端位置に達するまで、小領域20の
移動と分散値の計測とを繰り返し実行する。第3列目と
第4列目の各検査領域4c,4dについても同様に行
う。
The gray image 1 has a rectangular inspection area 4a.
4d are set in four columns, and the inspection area 4a in the first column is first set.
A rectangular small area 20 is set at the upper end position in the inside, and the variance value of the image in the small area 20 is measured at this position as a feature amount. Then, the small area 20 is moved downward by a predetermined pitch, and the variance value of the image in the small area 20 is similarly measured at that position. Hereinafter, the movement of the small area 20 and the measurement of the variance value are repeatedly executed until the small area 20 reaches the lower end position of the inspection area 4a. Next, the rectangular small area 20 is set at the upper end position in the inspection area 4b in the second column, and the variance value of the image in the small area 20 is measured as the feature amount at this position. Then, the small area 20 is moved downward by a predetermined pitch, and the small area 20 is similarly moved at that position.
Measure the variance of the images inside. Below, small area 20
The movement of the small area 20 and the measurement of the variance value are repeatedly executed until the point reaches the lower end position of the inspection area 4b. The same applies to the inspection areas 4c and 4d in the third and fourth columns.

【0058】図6(2)は、小領域20の各移動位置で
計測された分散値をプロットしたものであり、欠陥2の
存在位置やその近傍では分散値が低下している。いまi
番目の移動位置での分散値をσ(i)、その直前のi−
1番目,さらにi−2番目の分散値をσ(i−1),σ
(i−2)、直後のi+1番目,i+2番目の分散値を
σ(i+1),σ(i+2)とすると、分散値σ(i)
と分散値σ(i−1),σ(i−2),σ(i+1),
σ(i+2)の平均値との差の絶対値を次式により算出
する。
FIG. 6B is a plot of the dispersion value measured at each moving position of the small area 20, and the dispersion value is lowered at the existence position of the defect 2 and its vicinity. Now i
The variance value at the th movement position is σ (i), i-
The first and the i−2nd variance values are σ (i−1), σ
(I-2), assuming that the i + 1-th and i + 2-th variance values immediately after are (σ (i + 1), σ (i + 2)), the variance value σ (i)
And variance values σ (i-1), σ (i-2), σ (i + 1),
The absolute value of the difference between σ (i + 2) and the average value is calculated by the following formula.

【0059】[0059]

【数3】 (Equation 3)

【0060】図6(3)は、小領域20の各移動位置で
の前記演算値cをプロットしたものであり、欠陥2が存
在するとき、所定の判定値Sを越える点Pが現れる。従
ってこの判定値Sを越える点があるかどうかにより対象
物が不良かどうかを判別する。
FIG. 6C is a plot of the calculated value c at each moving position of the small area 20, and when the defect 2 exists, a point P exceeding the predetermined judgment value S appears. Therefore, it is determined whether or not the object is defective depending on whether or not there is a point that exceeds the determination value S.

【0061】図7および図8は、輪ゴムのような輪状体
を対象物とする場合の具体例であり、図7(1)は変形
していない前記対象物を撮像して得られた濃淡画像1
を、また図8(1)は変形した前記対象物を撮像して得
られた濃淡画像1を、それぞれ示す。同図中、1Aは対
象物の画像部分、1Bは背景の画像部分であり、対象物
の画像部分1Aには切れ目による欠陥2が現れている。
FIG. 7 and FIG. 8 are concrete examples in which a ring-shaped body such as a rubber band is used as an object, and FIG. 7 (1) is a grayscale image obtained by imaging the undeformed object. 1
FIG. 8A shows a grayscale image 1 obtained by imaging the deformed object. In the figure, 1A is an image portion of the object, 1B is an image portion of the background, and a defect 2 due to a break appears in the image portion 1A of the object.

【0062】これら濃淡画像1には円形をなす線状の検
査領域14が設定され、この検査領域14上の適当な角
度位置に小領域20を設定して、この角度位置で小領域
20内の画像について分散値を特徴量として計測する。
ついで小領域20を所定の角度ピッチθだけ移動させ、
その角度位置で同様にして小領域20内の画像について
分散値を計測する。以下、小領域20が最初の角度位置
に達するまで、小領域20の移動と分散値の計測とを繰
り返し実行する。
A circular linear inspection area 14 is set in the grayscale image 1, a small area 20 is set at an appropriate angular position on the inspection area 14, and the small area 20 is located at this angular position. The variance value of the image is measured as a feature amount.
Then, the small area 20 is moved by a predetermined angle pitch θ,
Similarly, at the angular position, the variance value of the image in the small area 20 is measured. Hereinafter, the movement of the small area 20 and the measurement of the variance value are repeatedly executed until the small area 20 reaches the first angular position.

【0063】図7(2)および図8(2)は、小領域2
0の各移動位置で計測された分散値をプロットしたもの
であり、欠陥2の存在位置やその近傍では分散値が低下
している。いまi番目の移動位置での分散値をσ
(i)、その直前のi−1番目,さらにi−2番目,i
−3番目の分散値をσ(i−1),σ(i−2),σ
(i−3)、その直後のi+1番目,さらにi+2番
目,i+3番目の分散値をσ(i+1),σ(i+
2),σ(i+3)とすると、分散値σ(i)と分散値
σ(i−1),σ(i−2),,σ(i−3),σ(i
+1),σ(i+2),σ(i+3)の平均値との差の
絶対値を次式により算出する。
FIG. 7B and FIG. 8B show the small area 2
It is a plot of the dispersion value measured at each movement position of 0, and the dispersion value is lowered at the position where the defect 2 exists and its vicinity. The variance value at the i-th movement position is σ
(I), i−1th immediately before, i−2nd, i
-3rd variance value is σ (i-1), σ (i-2), σ
(I-3), the i + 1th, i + 2th, and i + 3th variance values immediately after that are σ (i + 1), σ (i +
2) and σ (i + 3), the variance value σ (i) and the variance values σ (i-1), σ (i-2), σ (i-3), σ (i
The absolute value of the difference between the average value of +1), σ (i + 2), and σ (i + 3) is calculated by the following formula.

【0064】[0064]

【数4】 [Equation 4]

【0065】図7(3)および図8(3)は、小領域2
0の各移動位置での前記演算値dをプロットしたもので
あり、欠陥2が存在するとき、所定の判定値Sを越える
点P1〜P3が現れる。従ってこの判定値Sを越える点
があるかどうかにより対象物が不良かどうかを判別でき
る。
FIG. 7C and FIG. 8C show the small area 2
It is a plot of the calculated value d at each moving position of 0. When the defect 2 exists, points P1 to P3 that exceed a predetermined judgment value S appear. Therefore, it can be determined whether or not the object is defective depending on whether or not there is a point exceeding the determination value S.

【0066】図9は、上記した不良検査方法を実施する
ための不良検査装置の構成例を示す。図示例の不良検査
装置は、テレビカメラ31,画像処理部32,モニタ3
3より構成され、画像処理部32はA/D変換部34,
画像メモリ35,アフィン変換部36,特徴量計測部3
7,表示メモリ38,CPU39,ROM40,RAM
41,D/A変換部42,外部インターフェイス43な
どを含んでいる。
FIG. 9 shows an example of the configuration of a defect inspection apparatus for carrying out the above defect inspection method. The defect inspection apparatus of the illustrated example includes a television camera 31, an image processing unit 32, and a monitor 3.
3, the image processing unit 32 includes an A / D conversion unit 34,
Image memory 35, affine transformation unit 36, feature amount measurement unit 3
7, display memory 38, CPU 39, ROM 40, RAM
41, a D / A converter 42, an external interface 43, and the like.

【0067】前記テレビカメラ31は対象物を撮像して
濃淡画像を生成するもので、このテレビカメラ31から
のアナログ量の画像信号はA/D変換部34によりディ
ジタル量の画像データに変換される。画像メモリ35に
は1フレーム分のディジタル量の画像データが格納さ
れ、表示メモリ35にはモニタ3に表示するための表示
データとして前記小領域20を表す画像などが書き込ま
れる。D/A変換部42はA/D変換部34や画像メモ
リ35からの画像データや表示メモリ35からの表示デ
ータを入力してアナログ量の画像信号に変換し、これを
モニタ33へ出力する。外部インターフェイス部43に
は、図示しないストロボ光源や周辺装置などが接続され
る。
The television camera 31 picks up an object and generates a grayscale image, and an analog image signal from the television camera 31 is converted into digital image data by the A / D converter 34. . Image data of a digital amount for one frame is stored in the image memory 35, and an image representing the small area 20 is written in the display memory 35 as display data to be displayed on the monitor 3. The D / A converter 42 inputs the image data from the A / D converter 34 and the image memory 35 and the display data from the display memory 35, converts the image data into an analog image signal, and outputs it to the monitor 33. The external interface unit 43 is connected to a strobe light source, peripheral devices, and the like, which are not shown.

【0068】アフィン変換部36は、前記画像メモリ3
5に格納された濃淡画像をアフィン変換により回転さ
せ、回転ずれのない適正な濃淡画像を生成する。特徴量
計測部37は、アフィン変換後の濃淡画像に検査領域を
設定して、この検査領域を複数の小領域に分割し、各小
領域内の濃淡画像について特徴量を計測する。具体的に
は、図1〜図8に示した具体例のように、検査領域に沿
って小領域20を所定のピッチまたは角度ピッチずつ移
動させ、各移動位置で小領域20内の濃淡画像につい
て、平均濃度,分散値などの特徴量を計測する。CPU
39は、前記特徴量計測部37による各計測値を取り込
み、所定の演算などの処理を行い、その処理結果から対
象物の不良を判別する。なおROM40は不良検査装置
の動作を制御するためのプログラムや固定データが格納
され、またRAM41は装置動作中の作業エリアとして
用いられる。
The affine transformation unit 36 uses the image memory 3
The grayscale image stored in 5 is rotated by affine transformation to generate a proper grayscale image with no rotation deviation. The feature amount measuring unit 37 sets an inspection region in the gray image after affine transformation, divides the inspection region into a plurality of small regions, and measures the feature amount of the gray image in each small region. Specifically, as in the specific examples shown in FIGS. 1 to 8, the small area 20 is moved along the inspection area by a predetermined pitch or an angular pitch, and the grayscale image in the small area 20 is moved at each moving position. Measures characteristic quantities such as average density and variance. CPU
Reference numeral 39 captures each measured value by the characteristic amount measuring unit 37, performs a process such as a predetermined calculation, and determines a defect of the target object from the process result. The ROM 40 stores programs and fixed data for controlling the operation of the defect inspection apparatus, and the RAM 41 is used as a work area during operation of the apparatus.

【0069】図10は、モデル画像との濃淡相関値を特
徴量として計測するようにした不良検査装置の構成例を
示す。この実施例では、濃淡画像と濃淡相関をとるため
のモデル画像が格納されるモデルメモリ44が設けてあ
る。なお他の構成は、図9に示すものと同様であり、こ
こでは説明を繰り返さない。
FIG. 10 shows an example of the configuration of a defect inspection apparatus that measures the density correlation value with a model image as a feature amount. In this embodiment, a model memory 44 is provided for storing a model image for obtaining a grayscale correlation with the grayscale image. Note that the other configurations are similar to those shown in FIG. 9, and therefore description thereof will not be repeated here.

【0070】図11は、上記した不良検査装置の制御手
順をステップ1(以下、「ST1」で示す)〜ST12
で示している。
FIG. 11 shows a control procedure of the above-described defect inspection apparatus from step 1 (hereinafter referred to as "ST1") to ST12.
It shows with.

【0071】まずスタート時点で対象物の濃淡画像が得
られると、ST1で濃淡画像1に対する小領域20の最
初の設定位置、すなわち始点座標(X1,X2)と、最
終の設定位置、すなわち終点座標(X2,Y2)と、小
領域20の横幅Hおよび縦幅Wと、小領域20を移動さ
せるピッチdまたは角度ピッチθとが、RAM41より
CPU39に取り込まれる。つぎのST2で特徴量計測
部37は前記データに基づき濃淡画像1の初期位置に前
記小領域20を設定する。
First, when a grayscale image of the object is obtained at the start point, in ST1, the first set position of the small area 20 with respect to the grayscale image 1, that is, the starting point coordinates (X1, X2) and the final set position, that is, the end point coordinate. (X2, Y2), the horizontal width H and vertical width W of the small area 20, and the pitch d or the angular pitch θ for moving the small area 20 are fetched from the RAM 41 into the CPU 39. In the next step ST2, the feature amount measuring unit 37 sets the small area 20 at the initial position of the grayscale image 1 based on the data.

【0072】つぎのST3では、特徴量計測部37は前
記小領域20内の画像について平均濃度や分散値などを
特徴量として計測する。この計測値はCPU39に取り
込まれてRAM41に格納される。つぎのST4では、
小領域20が最終位置まで移動したかどうかを判定して
おり、その判定が「NO」であれば、ST5へ進んで小
領域20を所定のピッチまたは角度ピッチだけ移動させ
た後、その位置で同様にして小領域20内の画像につい
て特徴量を計測する(ST3)。以下、小領域20が最
終位置に達するまで、ST5の小領域20の移動とST
3の特徴量の計測とを繰り返し実行する。
In the next step ST3, the feature amount measuring unit 37 measures the average density, the variance value, etc. of the image in the small area 20 as the feature amount. This measured value is fetched by the CPU 39 and stored in the RAM 41. In the next ST4,
It is determined whether or not the small area 20 has moved to the final position. If the determination is “NO”, the process proceeds to ST5, where the small area 20 is moved by a predetermined pitch or angular pitch, and then at that position. Similarly, the feature amount is measured for the image in the small area 20 (ST3). Thereafter, the movement of the small area 20 in ST5 and ST until the small area 20 reaches the final position.
The measurement of the feature amount of 3 and the measurement are repeatedly performed.

【0073】かくして最終位置での特徴量の計測が終了
すると、ST4の判定が「YES」となり、CPU39
は小領域20の最初の設定位置で得られた計測値とその
前後位置で得られた計測値とをRAM40より読み出し
て所定の演算を実行し(ST6,7)、その演算値が判
定値Sを越えるかどうかを判定する(ST8)。もしS
T8の判定が「YES」であれば、ST12へ進み、C
PU39は対象物に不良がある旨の異常信号を出力す
る。
Thus, when the measurement of the characteristic amount at the final position is completed, the determination in ST4 becomes "YES", and the CPU 39
Reads out the measurement value obtained at the first set position of the small area 20 and the measurement values obtained at the front and rear positions thereof from the RAM 40 and executes a predetermined calculation (ST6, 7), and the calculated value is the judgment value S. It is determined whether or not (ST8). If S
If the determination in T8 is “YES”, the process proceeds to ST12 and C
The PU 39 outputs an abnormal signal indicating that the object is defective.

【0074】もしST8の判定が「NO」であれば、S
T9を経てST10へ進み、つぎの小領域20の移動位
置で得られた計測値とその前後位置で得られた計測値と
をRAM40より読み出して所定の演算を実行し、その
演算値が判定値Sを越えるかどうかを判定する(ST
8)。かくして最終の移動位置で得られた計測値とその
前後位置で得られた計測値とから所定の演算を実行し、
その演算値が判定値Sを越えなかったとき、ST9の判
定が「YES」となってST11へ進み、CPU39は
対象物に不良がない旨の正常信号を出力する。
If the determination in ST8 is "NO", S
After T9, the process proceeds to ST10, the measured value obtained at the moving position of the next small area 20 and the measured values obtained at the front and rear positions thereof are read out from the RAM 40, and a predetermined calculation is executed. Determine if S is exceeded (ST
8). Thus, a predetermined calculation is executed from the measurement value obtained at the final movement position and the measurement values obtained at the front and rear positions thereof,
When the calculated value does not exceed the determination value S, the determination in ST9 becomes "YES", the process proceeds to ST11, and the CPU 39 outputs a normal signal indicating that the object is not defective.

【0075】[0075]

【発明の効果】この発明は上記の如く、対象物を撮像し
て得られた画像の検査領域を複数の小領域に分割して、
各小領域内の画像についてそれぞれ特徴量を計測した
後、各計測値を処理することにより対象物の不良を判別
するようにしたから、対象物の種類や観測条件などを問
わず、対象物に欠陥が存在するかどうかを正しく判別し
て、対象物の不良を安定して検査できる。
As described above, the present invention divides the inspection area of the image obtained by imaging the object into a plurality of small areas,
After measuring the feature amount for each image in each small area, the measured value is processed to determine the defect of the target object. It is possible to accurately determine whether or not there is a defect and stably inspect for defects in the object.

【0076】請求項8の発明では、複数種類の特徴量を
計測し、特徴量の種類毎に特徴量の各計測値を処理して
対象物の不良判別を行った結果、すべての種類の特徴量
について不良判別が行われたとき、対象物が不良である
と判断するようにしたから、高精度の不良検査を安定し
て行うことができる。
According to the invention of claim 8, as a result of measuring a plurality of types of characteristic amounts, processing each measured value of the characteristic amount for each type of characteristic amount, and performing defect determination of the object, all types of characteristic Since the object is determined to be defective when the quantity is determined to be defective, a highly accurate defect inspection can be stably performed.

【0077】請求項9の発明では、特徴量の種類毎に特
徴量の各計測値を処理して対象物の不良判別を行った結
果、いずれかの種類の特徴量について不良判別が行われ
たとき、対象物が不良であると判断するようにしたか
ら、多種類の欠陥を検出できるという効果がある。
According to the invention of claim 9, as a result of processing the measured values of the feature amount for each type of feature amount and performing defect determination of the object, defect determination is performed for any type of feature amount. At this time, since it is determined that the object is defective, there is an effect that many kinds of defects can be detected.

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

【図1】この発明の不良検査方法を円筒体の不良検査に
適用した例を示す説明図である。
FIG. 1 is an explanatory diagram showing an example in which a defect inspection method of the present invention is applied to a defect inspection of a cylindrical body.

【図2】この発明の不良検査方法を梨地模様の物体の不
良検査に適用した例を示す説明図である。
FIG. 2 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to a defect inspection of an object having a satin pattern.

【図3】この発明の不良検査方法を突起物および欠けの
検査に適用した例を示す説明図である。
FIG. 3 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to inspection of protrusions and chips.

【図4】この発明の不良検査方法を照明条件が変動する
場合の不良検査に適用した例を示す説明図である。
FIG. 4 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to a defect inspection when illumination conditions change.

【図5】この発明の不良検査方法を背景との濃度差の小
さい汚れの検査に適用した例を示す説明図である。
FIG. 5 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to an inspection of dirt having a small density difference from the background.

【図6】この発明の不良検査方法を網状体の不良検査に
適用した例を示す説明図である。
FIG. 6 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to a defect inspection of a mesh body.

【図7】この発明の不良検査方法を輪状体の不良検査に
適用した例を示す説明図である。
FIG. 7 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to a defect inspection of a ring-shaped body.

【図8】この発明の不良検査方法を輪状体の不良検査に
適用した例を示す説明図である。
FIG. 8 is an explanatory diagram showing an example in which the defect inspection method of the present invention is applied to a defect inspection of a ring-shaped body.

【図9】この発明の一実施例である不良検査装置の構成
例を示すブロック図である。
FIG. 9 is a block diagram showing a configuration example of a defect inspection apparatus according to an embodiment of the present invention.

【図10】この発明の他の実施例である不良検査装置の
構成例を示すブロック図である。
FIG. 10 is a block diagram showing a configuration example of a defect inspection device according to another embodiment of the present invention.

【図11】図9の不良検査装置の制御の流れを示すフロ
ーチャートである。
11 is a flowchart showing a control flow of the defect inspection apparatus of FIG.

【図12】従来の不良検査方法を示す説明図である。FIG. 12 is an explanatory diagram showing a conventional defect inspection method.

【図13】従来の他の不良検査方法を示す説明図であ
る。
FIG. 13 is an explanatory diagram showing another conventional defect inspection method.

【図14】円筒体を対象物とする場合の従来例の不具合
を示す説明図である。
FIG. 14 is an explanatory diagram showing a defect of a conventional example when a cylindrical body is an object.

【図15】梨地模様の物体を対象物とする場合の従来例
の不具合を示す説明図である。
FIG. 15 is an explanatory diagram showing a defect of a conventional example when an object having a satin pattern is used as an object.

【図16】突起物および欠けを検査する場合の従来例の
不具合を示す説明図である。
FIG. 16 is an explanatory diagram showing a defect of a conventional example when inspecting a protrusion and a chip.

【図17】照明変動した場合の従来例の不具合を示す説
明図である。
FIG. 17 is an explanatory diagram showing a defect of the conventional example when the illumination changes.

【図18】照明変動した場合の従来例の不具合を示す説
明図である。
FIG. 18 is an explanatory diagram showing a defect of the conventional example when the illumination changes.

【図19】背景との濃度差の小さな汚れを検査する場合
の従来例の不具合を示す説明図である。
FIG. 19 is an explanatory diagram showing a defect of a conventional example when inspecting a stain having a small density difference from the background.

【図20】網状体を対象物とする場合の従来例の不具合
を示す説明図である。
FIG. 20 is an explanatory diagram showing a defect of a conventional example when a mesh body is an object.

【図21】輪状体を対象物とする場合の従来例の不具合
を示す説明図である。
FIG. 21 is an explanatory diagram showing a defect of a conventional example when a ring-shaped body is an object.

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

1 濃淡画像 2 欠陥 4,4a〜4d,14 検査領域 20 小領域 31 テレビカメラ 35 画像メモリ 37 特徴量計測部 39 CPU 40 ROM 41 RAM 1 Grayscale Image 2 Defects 4, 4a to 4d, 14 Inspection Area 20 Small Area 31 TV Camera 35 Image Memory 37 Characteristic Measurement Unit 39 CPU 40 ROM 41 RAM

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 9061−5H G06F 15/70 320 9061−5H 355 9061−5H 360 9061−5H 460 C ─────────────────────────────────────────────────── ─── Continuation of front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location 9061-5H G06F 15/70 320 9061-5H 355 9061-5H 360 9061-5H 460 C

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 対象物を撮像して得られた画像により前
記対象物の不良を検査する方法において、 前記画像の検査領域を複数の小領域に分割して、各小領
域内の画像についてそれぞれ特徴量を計測した後、各計
測値を処理することにより対象物の不良判別を行うこと
を特徴とする不良検査方法。
1. A method for inspecting a defect of an object using an image obtained by picking up an image of an object, wherein an inspection area of the image is divided into a plurality of small areas, and an image in each of the small areas is individually divided. A defect inspection method characterized by performing defect determination of an object by processing each measured value after measuring a characteristic amount.
【請求項2】 前記画像は濃淡画像であり、各小領域内
の画像についてそれぞれ平均濃度を特徴量として計測す
るようにした請求項1に記載された不良検査方法。
2. The defect inspection method according to claim 1, wherein the image is a grayscale image, and the average density of each image in each small area is measured as a feature amount.
【請求項3】 前記画像は濃淡画像であり、各小領域内
の画像についてそれぞれ分散値を特徴量として計測する
ようにした請求項1に記載された不良検査方法。
3. The defect inspection method according to claim 1, wherein the image is a grayscale image, and the variance value of each image in each small region is measured as a feature amount.
【請求項4】 前記画像は濃淡画像であり、各小領域内
の画像についてそれぞれ重心位置を特徴量として計測す
るようにした請求項1に記載された不良検査方法。
4. The defect inspection method according to claim 1, wherein the image is a grayscale image, and the barycentric position of each image in each small region is measured as a feature amount.
【請求項5】 前記画像は濃淡画像であり、各小領域内
の画像についてそれぞれモデル画像との濃淡相関値を特
徴量として計測するようにした請求項1に記載された不
良検査方法。
5. The defect inspection method according to claim 1, wherein the image is a grayscale image, and the grayscale correlation value of each of the images in each small region with the model image is measured as a feature amount.
【請求項6】 前記画像は2値画像であり、各小領域内
の画像についてそれぞれ黒画素領域または白画素領域の
面積を特徴量として計測するようにした請求項1に記載
された不良検査方法。
6. The defect inspection method according to claim 1, wherein the image is a binary image, and an area of a black pixel region or a white pixel region is measured as a feature amount for each image in each small region. .
【請求項7】 前記画像は2値画像であり、各小領域内
の画像についてそれぞれ重心位置を特徴量として計測す
るようにした請求項1に記載された不良検査方法。
7. The defect inspection method according to claim 1, wherein the image is a binary image, and the barycentric position of each image in each small area is measured as a feature amount.
【請求項8】 対象物を撮像して得られた画像により前
記対象物の不良を検査する方法において、 前記画像の検査領域を複数の小領域に分割して、各小領
域内の画像についてそれぞれ複数種の特徴量を計測した
後、特徴量の種類毎に各計測値を処理することにより対
象物の不良判別を行い、すべての種類の特徴量について
不良判別が行われたとき、対象物が不良であると判断す
ることを特徴とする不良検査方法。
8. A method for inspecting a defect of an object using an image obtained by capturing an image of the object, wherein an inspection area of the image is divided into a plurality of small areas, and an image in each of the small areas is individually divided. After measuring multiple types of feature quantities, the measured values are processed for each type of feature quantity to determine whether the target is defective, and when the defect determination is performed for all types of feature quantities, the target is A defect inspection method characterized by determining that the defect is defective.
【請求項9】 対象物を撮像して得られた画像により前
記対象物の不良を検査する方法において、 前記画像の検査領域を複数の小領域に分割して、各小領
域内の画像についてそれぞれ複数種の特徴量を計測した
後、特徴量の種類毎に各計測値を処理することにより対
象物の不良判別を行い、いずれかの種類の特徴量につい
て不良判別が行われたとき、対象物が不良であると判断
することを特徴とする不良検査方法。
9. A method for inspecting a defect of an object using an image obtained by capturing an image of an object, wherein an inspection area of the image is divided into a plurality of small areas, and an image in each of the small areas is individually divided. After measuring a plurality of types of feature quantities, the measured values are processed for each type of feature quantity to determine whether the target object is defective. A method for inspecting defects, which comprises determining that the defect is defective.
【請求項10】 対象物を撮像して得られた画像により
前記対象物の不良を検査する装置において、 前記画像の検査領域を複数の小領域に分割する領域分割
手段と、 前記領域分割手段により分割された各小領域内の画像に
ついてそれぞれ特徴量を計測する特徴量計測手段と、 前記特徴量計測手段により計測された各特徴量を処理す
ることにより対象物の不良判別を行う判別手段とを備え
て成る不良検査装置。
10. An apparatus for inspecting a defect of the object by an image obtained by picking up an image of the object, comprising: an area dividing means for dividing an inspection area of the image into a plurality of small areas; and the area dividing means. A feature amount measuring unit that measures a feature amount of each image in each of the divided small areas, and a determination unit that performs a defect determination of an object by processing each feature amount measured by the feature amount measuring unit. A defect inspection device equipped.
JP6261698A 1994-09-30 1994-09-30 Defect inspection method and device therefor Pending JPH08101916A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6261698A JPH08101916A (en) 1994-09-30 1994-09-30 Defect inspection method and device therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6261698A JPH08101916A (en) 1994-09-30 1994-09-30 Defect inspection method and device therefor

Publications (1)

Publication Number Publication Date
JPH08101916A true JPH08101916A (en) 1996-04-16

Family

ID=17365478

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6261698A Pending JPH08101916A (en) 1994-09-30 1994-09-30 Defect inspection method and device therefor

Country Status (1)

Country Link
JP (1) JPH08101916A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970588B1 (en) 1999-09-30 2005-11-29 Omron Corporation Image processing apparatus, image processing method and visual inspection system
JP2007033192A (en) * 2005-07-26 2007-02-08 Canon Chemicals Inc Flaw detecting method of sheet and flaw detector
JP2013015359A (en) * 2011-07-01 2013-01-24 Tokuyama Corp Defect inspection method and defect inspection device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6970588B1 (en) 1999-09-30 2005-11-29 Omron Corporation Image processing apparatus, image processing method and visual inspection system
JP2007033192A (en) * 2005-07-26 2007-02-08 Canon Chemicals Inc Flaw detecting method of sheet and flaw detector
JP4520916B2 (en) * 2005-07-26 2010-08-11 キヤノン化成株式会社 Defect detection method and defect detection apparatus for blade product for image forming apparatus
JP2013015359A (en) * 2011-07-01 2013-01-24 Tokuyama Corp Defect inspection method and defect inspection device

Similar Documents

Publication Publication Date Title
JP4150390B2 (en) Appearance inspection method and appearance inspection apparatus
CN110570411A (en) mura detection method and device based on coefficient of variation
JP3185559B2 (en) Surface defect inspection equipment
CN111539927B (en) Detection method of automobile plastic assembly fastening buckle missing detection device
JP2002148195A (en) Surface inspection apparatus and surface inspection method
JP3265595B2 (en) Image processing method and apparatus
JP4320990B2 (en) Screen defect detection method and apparatus, and screen defect detection program
KR20010098460A (en) Appearance inspection method and appearance inspection apparatus having high inspection processing speed
JP3890844B2 (en) Appearance inspection method
US10788430B2 (en) Surface inspection apparatus and surface inspection method
JPH08101916A (en) Defect inspection method and device therefor
JP2541735B2 (en) Method and apparatus for diagnosing coating film deterioration
JP3127598B2 (en) Method for extracting density-varying constituent pixels in image and method for determining density-fluctuation block
JP2007057705A (en) Inspection method and inspection apparatus of display panel
JP2003329428A (en) Device and method for surface inspection
JP2004286708A (en) Defect detection apparatus, method, and program
JP3565060B2 (en) Inspection method for conductive balls
JP2002140695A (en) Inspection method and its device
JP2638121B2 (en) Surface defect inspection equipment
JP7300155B2 (en) Teaching device in solid preparation appearance inspection, and teaching method in solid preparation appearance inspection
JPH08189901A (en) Testing device using picture signal
JP3043530B2 (en) Dot pattern inspection equipment
JP2000121495A (en) Screen inspection method
JP5402182B2 (en) Appearance inspection method and appearance inspection apparatus
JP4121628B2 (en) Screen inspection method and apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Effective date: 20050309

Free format text: JAPANESE INTERMEDIATE CODE: A621

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050811

A977 Report on retrieval

Effective date: 20061220

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070116

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070522