JP5231779B2 - Appearance inspection device - Google Patents
Appearance inspection device Download PDFInfo
- Publication number
- JP5231779B2 JP5231779B2 JP2007262220A JP2007262220A JP5231779B2 JP 5231779 B2 JP5231779 B2 JP 5231779B2 JP 2007262220 A JP2007262220 A JP 2007262220A JP 2007262220 A JP2007262220 A JP 2007262220A JP 5231779 B2 JP5231779 B2 JP 5231779B2
- Authority
- JP
- Japan
- Prior art keywords
- light irradiation
- unit
- imaging
- pixel
- inspected
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Description
本発明は、検査対象物の表面に発生する傷などの欠陥を検出する外観検査装置に関するものである。 The present invention relates to an appearance inspection apparatus for detecting defects such as scratches generated on the surface of an inspection object.
従来から、シート状物(一例としては感光フィルムやコーディング紙)などの検査対象物(被検査物)の表面に発生した、傷などの欠陥(凹凸欠陥)を検出する外観検査装置(表面検査装置)が提案されている(例えば、特許文献1参照)。 Conventionally, an appearance inspection device (surface inspection device) that detects defects (unevenness defects) such as scratches generated on the surface of an inspection object (inspection object) such as a sheet-like material (for example, a photosensitive film or coding paper). ) Has been proposed (see, for example, Patent Document 1).
上記特許文献1の外観検査装置は、検査対象物の被検査面(表面)に光を照射する光照射手段と、被検査面で反射された光照射手段の光または被検査面を透過した光を受光する受光手段と、受光手段の出力信号に基づいて被検査面に存在する欠陥を検出する検査手段とを有している。
The appearance inspection apparatus of
また、受光手段の代わりにカメラ装置などの撮像手段を用いた外観検査装置が提案されている。この種の外観検査装置は、図10(a)に示すように、検査対象物100の被検査面110に光L1を照射して、撮像手段(図示せず)により被検査面110を撮像し、撮像手段から得られた濃淡画像における画素の濃度差に基づいて、被検査面110における欠陥120の検出を行う。
Further, an appearance inspection apparatus using an imaging unit such as a camera device instead of the light receiving unit has been proposed. As shown in FIG. 10A, this type of appearance inspection apparatus irradiates the
例えば、図10(a)に示すように、欠陥120が線状の傷(傷欠陥)である場合、欠陥120は、被検査面110に平行する面内において欠陥120の幅方向に沿った方向の光に対しては、欠陥120が発生していない被検査面の部位(以下、「良品部」と称する)とは異なる反射特性を示すことになる。つまり、欠陥120による反射光L2の光量の分布は、上記良品部による反射光L2の光量の分布と異なるため、欠陥120による反射光L2の光量と上記良品部による反射光L2の光量との差が大きくなる方向が存在する。当該方向に撮像手段の撮像面Sが位置したときには、撮像面Sに入射する欠陥120による反射光L2と、上記良品部による反射光L2とにおいて光量の差が大きくなるので、このときに撮像手段より得られた濃淡画像では、欠陥120による反射光L2を受光した画素と上記良品部による反射光L2を受光した画素とで濃度差が大きいから、濃淡画像における画素の濃度差によって欠陥120の検出が可能となる。
しかしながら、上述したような欠陥120は、図10(b)に示すように、光の照射方向と幅方向との角度が90度に近付けば近付くほど、上記良品部と同様の反射特性を示す、つまり、欠陥120による反射光L2の光量の分布と上記良品部による反射光L2の光量の分布とがほぼ同じになってしまうことが実験により確かめられている。
However, as shown in FIG. 10B, the
このような場合は、何れの方向においても欠陥120による反射光L2の光量と上記良品部による反射光L2の光量との差が小さくなるので、当然に、撮像面Sに入射する欠陥120による反射光L2と上記良品部による反射光L2とにおいて光量の差が小さくなり、このときに撮像手段より得られた濃淡画像では、欠陥120による反射光L2を受光した画素と上記良品部による反射光L2を受光した画素との濃度差が小さいから、濃淡画像における画素の濃度差によって欠陥120を検出することが困難になる。
In such a case, the difference between the light amount of the reflected light L2 due to the
このような問題は、もともと光の反射量が少ない微小な欠陥(例えば5μ程度の大きさの欠陥)120において特に顕著であり、従来の外観検査装置では、微小な欠陥を検出することが困難であり、微小な欠陥を検出することができるように検出精度の改善が望まれていた。 Such a problem is particularly noticeable in a minute defect (for example, a defect having a size of about 5 μm) 120 that originally has a small amount of reflected light, and it is difficult for a conventional appearance inspection apparatus to detect the minute defect. There has been a desire to improve detection accuracy so that minute defects can be detected.
本発明は上述の点に鑑みて為されたもので、その目的は、簡単な構成で、欠陥検出の高速化および高精度化が図れる外観検査装置を提供することにある。 The present invention has been made in view of the above points, and an object of the present invention is to provide an appearance inspection apparatus capable of increasing the speed and accuracy of defect detection with a simple configuration.
上記の課題を解決するために、請求項1の発明では、検査対象物の被検査面の一部を撮像する撮像手段および撮像手段で撮像する被検査面の一部に光を照射する光照射手段を有し、検査対象物に対して相対的に移動することで撮像手段により被検査面の全部を撮像する撮像部と、撮像部の撮像手段より得られた濃淡画像に基づいて被検査面の欠陥を検出する検査部とを備え、検査部は、濃淡画像から濃度差が所定の閾値以上の画素を抽出する画素抽出手段と、画素抽出手段で抽出された画素同士を画素の隣接画素内で連結して連結領域を作成する画素連結手段と、画素連結手段で作成された連結領域のサイズが所定値以上であれば連結領域を欠陥によるものと判別する欠陥判別手段とを有し、撮像部は、撮像手段と光照射手段との組を複数組備え、各々の撮像手段は、それぞれの撮像範囲が互いに重ならない位置に配置され、各々の光照射手段は、それぞれの光照射方向が被検査面に平行する面内において互いに交差する位置に配置されており、1組の撮像手段及び光照射手段は、検査対象物の移動方向に対して直交するように配置され、他の組の撮像手段及び光照射手段は、検査対象物の移動方向に対して45度の角度に配置されており、撮像手段は、濃淡画像における垂直方向が被検査面に平行する面内において撮像手段に対応する光照射手段の光照射方向に沿った方向となる形に配置され、画素抽出手段は、濃淡画像の画素の濃度差を算出するにあたっては、濃淡画像の水平方向における画素の濃度差を強調する3行3列のフィルタを用いて濃淡画像をフィルタ処理することにより濃度差を算出することを特徴とする。
In order to solve the above-described problems, in the invention of
請求項1の発明によれば、各撮像手段から得られる濃淡画像は被検査面に対する光照射方向がそれぞれ異なっているので、ある方向からの光では検出し難い欠陥であっても別の方向からの光によって検出することができるから、撮像手段と光照射手段との組を複数設けるだけの簡単な構成で、欠陥検出の高精度化が図れ、また濃淡画像から濃度差が所定の閾値以上の画素を抽出し、抽出した画素同士を当該画素の隣接画素内で連結して連結領域を作成し、連結領域のサイズが所定値以上であれば当該連結領域を欠陥によるものと判別するという簡単な処理で欠陥の検出を行っているから、欠陥検出の高速化が図れて、欠陥検出をリアルタイムで行えるようになる。また、一方の光照射手段は、被検査面に平行する面内において光照射方向が、検査対象物の移動方向に平行する形に配置されているので、一方の光照射手段に対応する撮像手段の濃淡画像では、長さ方向と検査対象物の移動方向との間の角度が45度〜135度(225度〜315度)である線状の欠陥が検出し易くなり、他方の光照射手段は、被検査面に平行する面内において光照射方向が検査対象物の移動方向に平行する方向と45度の角度をなす形に配置されているので、他方の光照射手段に対応する撮像手段の濃淡画像では、長さ方向と検査対象物の移動方向との間の角度が90度〜180度(270度〜360度)である線状の欠陥が検出し易くなるから、欠陥検出の高精度化が図れる。さらに、所定方向に対する長さ方向の角度が±45度の範囲内である欠陥を強調することができるから、欠陥検出の高精度化が図れる。また、フィルタを用いた演算処理を付加するだけのソフトウェア的な変更だけで欠陥検出の高精度化が図れるので、光照射手段として光量が多いものを用いるなどのハードウェア的な変更をしなくて済むから、低コスト化が図れる。さらに、撮像手段を、濃淡画像における垂直方向が被検査面に平行する面内において撮像手段に対応する光照射手段の光照射方向に沿った方向となる形に配置した場合、濃淡画像の水平方向に対する長さ方向の角度が±45度の範囲内にある欠陥を検出することができるものの、濃淡画像の水平方向に対する欠陥の長さ方向の角度が±45度に近付くにつれて欠陥が濃淡画像に現れ難くなるが、フィルタとして濃淡画像の水平方向における画素の濃度差を強調するフィルタを用いることで、濃淡画像の垂直方向に対する長さ方向の角度が±45度の範囲内である欠陥を強調しているので、濃淡画像の水平方向に対する長さ方向の角度が±45度に近付くにつれて欠陥が濃淡画像に現れ難くなることを抑制できるから、欠陥検出の高精度化が図れる。その上、フィルタとして最小単位の3行3列のフィルタを用いているので、画素の濃度差に隣接画素の画素値(輝度値)変化を敏感に反映させることができるから、比較的微小な欠陥に対する検出精度の向上が図れる。また、フィルタを用いた演算処理を付加するだけのソフトウェア的な変更だけで欠陥検出の高精度化が図れるので、光照射手段が照射する光の光量を向上させるなどのハードウェア的な変更をしなくて済むから、低コスト化が図れる。 According to the first aspect of the present invention, since the gray image obtained from each imaging means has different light irradiation directions with respect to the surface to be inspected, even if it is a defect that is difficult to detect with light from a certain direction, Therefore, it is possible to increase the accuracy of defect detection with a simple configuration by providing a plurality of pairs of imaging means and light irradiation means, and the density difference from the grayscale image is equal to or greater than a predetermined threshold value. Simple extraction of pixels, connecting the extracted pixels within adjacent pixels to create a connected area, and determining that the connected area is due to a defect if the size of the connected area is greater than or equal to a predetermined value Since the defect is detected by the processing, the defect detection can be accelerated and the defect can be detected in real time. In addition, since the one light irradiation means is arranged in a shape in which the light irradiation direction is parallel to the moving direction of the inspection object in a plane parallel to the surface to be inspected, the imaging means corresponding to the one light irradiation means In the grayscale image, a linear defect whose angle between the length direction and the moving direction of the inspection object is 45 degrees to 135 degrees (225 degrees to 315 degrees) can be easily detected, and the other light irradiation means Is arranged in such a manner that the light irradiation direction forms an angle of 45 degrees with the direction parallel to the moving direction of the object to be inspected in a plane parallel to the surface to be inspected, so that the imaging means corresponding to the other light irradiation means In the grayscale image, it is easy to detect a linear defect whose angle between the length direction and the moving direction of the inspection object is 90 to 180 degrees (270 to 360 degrees). Accuracy can be achieved. Furthermore, since it is possible to emphasize a defect whose length direction angle with respect to the predetermined direction is within a range of ± 45 degrees, it is possible to improve the accuracy of defect detection. In addition, since the accuracy of defect detection can be improved only by software change that only adds arithmetic processing using a filter, there is no need to make hardware changes such as using a light source with a large amount of light. Therefore, the cost can be reduced. Further, when the imaging unit is arranged in a shape in which the vertical direction in the grayscale image is in a direction along the light irradiation direction of the light irradiation unit corresponding to the imaging unit in a plane parallel to the surface to be inspected, the horizontal direction of the grayscale image Although it is possible to detect a defect whose length direction angle is within a range of ± 45 degrees, the defect appears in the grayscale image as the defect length direction angle with respect to the horizontal direction of the grayscale image approaches ± 45 degrees. Although it becomes difficult, by using a filter that enhances the pixel density difference in the horizontal direction of the grayscale image as a filter, the defect whose lengthwise angle with respect to the vertical direction of the grayscale image is within the range of ± 45 degrees is emphasized. Therefore, it is possible to prevent defects from becoming difficult to appear in the grayscale image as the angle in the length direction with respect to the horizontal direction of the grayscale image approaches ± 45 degrees, so that the accuracy of defect detection can be improved. . In addition, since the filter of the minimum unit of 3 rows and 3 columns is used as a filter, a change in pixel value (luminance value) of an adjacent pixel can be sensitively reflected in a density difference between pixels. The detection accuracy can be improved. Moreover, since the accuracy of defect detection can be improved only by software changes that only add arithmetic processing using filters, hardware changes such as improving the amount of light emitted by the light irradiation means are performed. This eliminates the need for cost reduction.
請求項2の発明では、検査対象物の被検査面の一部を撮像する撮像手段および撮像手段で撮像する被検査面の一部に光を照射する光照射手段を有し、検査対象物に対して相対的に移動することで撮像手段により被検査面の全部を撮像する撮像部と、撮像部の撮像手段より得られた濃淡画像に基づいて被検査面の欠陥を検出する検査部とを備え、検査部は、濃淡画像から濃度差が所定の閾値以上の画素を抽出する画素抽出手段と、画素抽出手段で抽出された画素同士を画素の隣接画素内で連結して連結領域を作成する画素連結手段と、画素連結手段で作成された連結領域のサイズが所定値以上であれば連結領域を欠陥によるものと判別する欠陥判別手段とを有し、撮像部は、撮像手段と光照射手段との組を複数組備え、各々の撮像手段は、それぞれの撮像範囲が互いに重ならない位置に配置され、各々の光照射手段は、それぞれの光照射方向が被検査面に平行する面内において互いに交差する位置に配置されており、1組の撮像手段及び光照射手段は、検査対象物の移動方向に対して直交するように配置され、他の組の撮像手段及び光照射手段は、検査対象物の移動方向に対して45度の角度に配置されており、撮像手段は、濃淡画像における垂直方向が被検査面に平行する面内において撮像手段に対応する光照射手段の光照射方向に沿った方向となる形に配置され、画素抽出手段は、濃淡画像の画素の濃度差を算出するにあたっては、濃淡画像の垂直方向における画素の濃度差を強調する3行3列の第1のフィルタと、濃淡画像の水平方向における画素の濃度差を強調する3行3列の第2のフィルタとを用いて濃淡画像をフィルタ処理することにより濃度差を算出し、フィルタ処理を行うにあたっては、第1のフィルタによるフィルタ処理と第2のフィルタによるフィルタ処理とを順次行うことを特徴とする。
In the invention of
請求項2の発明によれば、各撮像手段から得られる濃淡画像は被検査面に対する光照射方向がそれぞれ異なっているので、ある方向からの光では検出し難い欠陥であっても別の方向からの光によって検出することができるから、撮像手段と光照射手段との組を複数設けるだけの簡単な構成で、欠陥検出の高精度化が図れ、また濃淡画像から濃度差が所定の閾値以上の画素を抽出し、抽出した画素同士を当該画素の隣接画素内で連結して連結領域を作成し、連結領域のサイズが所定値以上であれば当該連結領域を欠陥によるものと判別するという簡単な処理で欠陥の検出を行っているから、欠陥検出の高速化が図れて、欠陥検出をリアルタイムで行えるようになる。また、一方の光照射手段は、被検査面に平行する面内において光照射方向が、検査対象物の移動方向に平行する形に配置されているので、一方の光照射手段に対応する撮像手段の濃淡画像では、長さ方向と検査対象物の移動方向との間の角度が45度〜135度(225度〜315度)である線状の欠陥が検出し易くなり、他方の光照射手段は、被検査面に平行する面内において光照射方向が検査対象物の移動方向に平行する方向と45度の角度をなす形に配置されているので、他方の光照射手段に対応する撮像手段の濃淡画像では、長さ方向と検査対象物の移動方向との間の角度が90度〜180度(270度〜360度)である線状の欠陥が検出し易くなるから、欠陥検出の高精度化が図れる。さらに、所定方向に対する長さ方向の角度が±45度の範囲内である欠陥を強調することができるから、欠陥検出の高精度化が図れる。また、フィルタを用いた演算処理を付加するだけのソフトウェア的な変更だけで欠陥検出の高精度化が図れるので、光照射手段として光量が多いものを用いるなどのハードウェア的な変更をしなくて済むから、低コスト化が図れる。さらに、撮像手段を、濃淡画像における垂直方向が被検査面に平行する面内において撮像手段に対応する光照射手段の光照射方向に沿った方向となる形に配置した場合、濃淡画像の水平方向に対する長さ方向の角度が±45度の範囲内にある欠陥を検出することができるものの、濃淡画像の水平方向に対する欠陥の長さ方向の角度が±45度に近付くにつれて欠陥が濃淡画像に現れ難くなるが、フィルタとして濃淡画像の水平方向における画素の濃度差を強調する第1のフィルタおよび濃淡画像の水平方向における画素の濃度差を強調する第2のフィルタを用いることで、濃淡画像の垂直方向に対する長さ方向の角度が±45度の範囲内である欠陥および濃淡画像の水平方向に対する長さ方向の角度が±45度の範囲内である欠陥それぞれを強調することで、被検査面に発生する欠陥全てを強調しているから、欠陥検出の高精度化が図れる。その上、フィルタとして最小単位の3行3列のフィルタを用いているので、画素の濃度差に隣接画素の画素値(輝度値)変化を敏感に反映させることができるから、比較的微小な欠陥に対する検出精度の向上が図れる。また、フィルタを用いた演算処理を付加するだけのソフトウェア的な変更だけで欠陥検出の高精度化が図れるので、光照射手段が照射する光の光量を向上させるなどのハードウェア的な変更をしなくて済むから、低コスト化が図れる。
According to the invention of
請求項3の発明では、請求項1または2の発明において、上記検査対象物は被検査面が金属製のものであって、上記光照射手段の主光線と上記被検査面との角度と、上記撮像手段の光軸と上記被検査面との角度とは異なる角度であり、上記光照射手段の主光線と上記被検査面との交点と、上記撮像手段の光軸と上記被検査面との交点とは異なる位置であることを特徴とする。
In the invention of
請求項3の発明によれば、直接的に光が照射される場合に比べれば、欠陥からの反射光量は少なくなるが、周囲に対して欠陥のエッジ部分からの反射光が強調されるから、欠陥の形状がより明確になり、その結果、比較的小さい欠陥(微小な欠陥)であっても検出することが可能となる。
According to the invention of
本発明は、簡単な構成で、欠陥検出の高速化および高精度化が図れるという効果を奏する。 The present invention has an effect that it is possible to increase the speed and accuracy of defect detection with a simple configuration.
(実施形態1)
本実施形態の外観検査装置は、可撓性を有するシート状(帯状)のフレキシブル基板の両面に銅箔を形成してなる銅張積層板を検査対象物100とするものである。つまり、検査対象物100は被検査面110が金属製のものである。
(Embodiment 1)
The visual inspection apparatus according to the present embodiment uses a copper-clad laminate formed by forming copper foil on both surfaces of a flexible sheet-like (strip-shaped) flexible substrate as the
検査対象物100は、図1(a)に示すように、所定間隔を隔てて並置されたロール200,210間に架設される形で、各ロール200,210に巻かれており、ロール210,200それぞれが所定方向に回転することによって、検査対象物100がロール200側からロール210側に移動する(流れる)ようになっている。したがって、検査対象物100は幅方向に直交する長さ方向に沿って移動される。
As shown in FIG. 1 (a), the
外観検査装置は、図1(a),(b)に示すように、検査対象物100の被検査面110の一部を撮像する撮像手段3および当該撮像手段3で撮像する被検査面110の一部に光を照射する光照射手段4を有した撮像部1と、撮像部1の撮像手段3より得られた濃淡画像に基づいて被検査面110の欠陥120を検出する検査部2とを備えている。
As shown in FIGS. 1A and 1B, the appearance inspection apparatus includes an
撮像手段3は、例えば、CCDイメージセンサなどの撮像素子(図示せず)と、撮像素子から出力される画像をデジタルデータに変換して濃淡画像を生成して出力するA/Dコンバータ(図示せず)とで構成されたカメラ装置からなる。また、このような撮像手段3は、撮像素子の撮像面S(図3参照)に光を集光するレンズなどの光学系(図示せず)や、撮像素子などを収納する装置本体30などを備えている。本実施形態における撮像手段3は、撮像素子として画素が一列に並べられたリニアイメージセンサ(リニアセンサ、ラインセンサ、一次元センサともいう)を用いた所謂ラインスキャンカメラであり、1次元の濃淡画像を出力する。ここで、撮像手段3は、画素の並列方向が濃淡画像の水平方向Xとなるように設定されている。
The image pickup means 3 includes, for example, an image pickup device (not shown) such as a CCD image sensor, and an A / D converter (not shown) that converts the image output from the image pickup device into digital data to generate a grayscale image and output it. 2) and a camera device composed of In addition, the
なお、撮像手段3は、撮像素子として、エリアイメージセンサ(エリアセンサ、二次元センサともいう)を用いた所謂エリアセンサカメラであってもよい。ただし、ラインスキャンカメラのほうが、エリアセンサカメラよりも分解能が高く、画像取り込み速度が速い(高速性が良好)という利点がある。また、ラインスキャンカメラは、1スキャン毎に画像データが作成されるため、エリアセンサカメラに比べて同期が取り易く、上述したような連続して流れる検査対象物100の検査のような連続処理が容易に行えるという利点がある。また、上記撮像素子としては、CCDイメージセンサの代わりにCOMSイメージセンサを用いるようにしてもよい。また、一般に、システム・オン・チップ(SoC)技術により製造されたCMOSイメージセンサは、パッケージ内にA/Dコンバータなどの処理回路を備えているので、CCDイメージセンサを用いる場合とは異なりA/Dコンバータを別途設けなくてもよい。
The
光照射手段4は、図2(a),(b)に示すように、直管型の放電灯(冷陰極管など)などの線状光源(空間的に線状の発光領域を形成する光源)からなるランプ40と、厚み方向一面側が開口しランプ40が収納される長尺箱状の筐体41と、筐体41の一面開口を閉塞する形で筐体41に取り付けられ筐体41内に収納されたランプ40が放射する光を筐体41外に出射する透光カバー42とを備え、所定方向に光を照射するようになっている。したがって、被検査面110は、光照射手段4によって線状に照らされる。なお、ランプ40としては、発光ダイオード(LED)や有機EL素子などにより形成された線状光源など種々の線状光源を用いることができるが、ランプ40に用いる線状光源としては、長手方向において光の放射が一様である線状光源を用いることが好ましい。ところで、撮像手段3としてエリアカメラセンサを用いた場合には、撮像手段3の撮像範囲全体を照らすことができるように、ランプ40としては、線状光源ではなく面状光源などを用いる。
As shown in FIGS. 2A and 2B, the light irradiation means 4 is a linear light source such as a straight tube type discharge lamp (such as a cold cathode tube) (a light source that forms a spatially linear light emitting region). ), A long box-
撮像部1は、図1および図2に示すように、撮像手段3と光照射手段4との組を複数組(本実施形態では2組)備えている。なお、以下の説明では、複数の撮像手段3を区別するために、必要に応じて撮像手段3を符号3A,3Bで表し、複数の光照射手段4を区別するために、必要に応じて光照射手段4を符号4A,4Bで表す。
As shown in FIGS. 1 and 2, the
光照射手段4Aは、ランプ40の長さ方向が、被検査面110に平行するとともに、被検査面110に平行する面(以下、「平行面」と称する)内において検査対象物100の移動方向M(図1(a)における下方向)に直交する形に配置されている。つまり、光照射手段4Aは、光照射方向が上記平行面内において移動方向Mに平行する形に配置されている。また、光照射手段4Aのランプ40の発光領域の長さは、検査対象物100の幅方向において被検査面110の全面を照らすことができる長さに設定されている。
In the light irradiation means 4A, the length direction of the
一方、光照射手段4Bは、ランプ40の長さ方向が、被検査面110に平行するとともに、上記平行面内において検査対象物100の移動方向Mに平行する方向と45度の角度をなす形に配置されており、光照射手段4Bの光照射方向は、上記平行面内において移動方向Mに平行する方向と45度の角度をなす。また、光照射手段4Bのランプ40の発光領域の長さは、被検査面110内で検査対象物100の幅方向と45度の角度をなす方向において、被検査面110の全面を照らすことができる長さに設定されている。
On the other hand, the light irradiation means 4B has a shape in which the length direction of the
このように、各光照射手段4は、それぞれの光照射方向が被検査面110に平行する面内において互いに交差する位置に配置されている。なお、図示例では、光照射手段4Aは、光照射手段4Bよりもロール200側(検査対象物100の流れの上流側)に位置している。また、光照射手段4の長さ方向に直交する面内における光照射手段4の主光線Lと被検査面110との間の角度は、欠陥が目立つように比較的浅い(一例としては30度)に設定している。
Thus, each light irradiation means 4 is arrange | positioned in the position which each light irradiation direction cross | intersects in the surface parallel to the to-
撮像手段3Aは、図3(a)に示すように、撮像素子の撮像面S(撮像手段3Bの撮像面Sと区別するために図3(a),(b)では符号S1で表す)の長手方向(濃淡画像の水平方向Xに対応する方向)が、上記平行面内において、検査対象物100の移動方向M(図3(a)における下方向)に直交する形に配置されている。つまり、撮像手段3Aは、撮像面S1の長手方向が、上記平行面内において、光照射手段4Aのランプ40の長さ方向に平行する形に配置されている(撮像手段3Aは、濃淡画像における垂直方向が上記平行面内において撮像手段3Aに対応する光照射手段4Aの光照射方向に沿った方向となる形に配置されている)。
As shown in FIG. 3A, the
また、撮像手段3Aは、図2(a)に示すように、光照射手段4Aによって照らされた被検査面110の全体が撮像素子の撮像範囲内に収まるように、被検査面110との距離が調整されている。加えて、撮像手段3Aは、図2(b)に示すように、撮像手段3Aの光軸O(撮像手段3Bの光軸Oと区別するために図2(b)では符号O1で表す)と被検査面110との交点と、光照射手段4Aの主光線P(光照射手段4Aの主光線Pと区別するために図2(b)では符号P1で表す)と被検査面110との交点とが同じ位置(厳密に同じという意味ではなく、同じとみなせる範囲であればよい)にするように配置されている。
Further, as shown in FIG. 2A, the
撮像手段3Bは、図3(b)に示すように、被検査面110に平行する面内において、撮像素子の撮像面S(撮像手段3Aの撮像面Sと区別するために図3(b)では符号S2で表す)の長手方向(濃淡画像の水平方向Xに対応する方向)と、検査対象物100の移動方向Mと平行する方向との角度θが45度となる形に配置されている。つまり、撮像手段3Bは、撮像面S2の長手方向が、上記平行面内において、光照射手段4Bのランプ40の長さ方向に平行する位置に配置されている(撮像手段3Bは、濃淡画像における垂直方向が上記平行面内において撮像手段3Bに対応する光照射手段4Bの光照射方向に沿った方向となる形に配置されている)。
As shown in FIG. 3 (b), the imaging means 3B is arranged in a plane parallel to the
また、撮像手段3Bは、図2(a)に示すように、光照射手段4Bによって照らされた被検査面110の全体が撮像素子の撮像範囲内に収まるように、被検査面110との距離が調整されている。加えて、撮像手段3Bは、図2(b)に示すように、撮像手段3Bの光軸O(撮像手段3Aの光軸Oと区別するために図3(b)では符号S2で表す)と被検査面110との交点と、光照射手段4Bの主光線P(光照射手段4Aの主光線Pと区別するために図2(b)では符号P2で表す)と被検査面110との交点とが同じ位置にするように配置されている。
Further, as shown in FIG. 2A, the
そして、各撮像手段3A,3Bは、図1および図2に示すように、それぞれの撮像範囲が互いに重ならない位置に配置されている。図示例では、撮像手段3Aは、撮像手段3Bよりもロール210側(検査対象物100の流れの上流側)に位置している。
And each imaging means 3A, 3B is arrange | positioned in the position where each imaging range does not mutually overlap as shown in FIG.1 and FIG.2. In the illustrated example, the
撮像部1は、ロール200,210に対しては相対変位しないが、検査対象物100は、ロール200,210間を移動するため、結果として、撮像部1は検査対象物100に対して相対的に移動する。そして、各撮像手段3は、検査対象物100の被検査面110の一部を撮像するものであるが、撮像部1は検査対象物100に対して相対的に移動するため、各撮像手段3によって被検査面110の全部が撮像される。
Although the
撮像部1は上述したように撮像手段3と光照射手段4との組を2組備えており、光照射手段4Aは、上記平行面内で検査対象物100の移動方向Mに平行する方向から被検査面110に光を照射し、光照射手段4Bは、上記平行面内で光照射手段4Aの光照射方向と45度の角度をなす方向から被検査面110に光を照射するから、各撮像手段3からは、被検査面110に対する光照射方向がそれぞれ異なる濃淡画像が得られる。
As described above, the
検査部2は、図1(b)に示すように、複数(図示例では2つ)の撮像手段3が接続される入力手段5と、各種RAMなどのメモリからなる記憶手段6と、濃淡画像から濃度差(濃度変化)が所定の閾値以上の画素を抽出する画素抽出手段7と、画素抽出手段7で抽出された画素同士を当該画素の隣接画素内で連結して連結領域(連結成分ともいう)を作成する画素連結手段8と、画素連結手段8で作成された連結領域が被検査面110の欠陥によるものか否かを判別する欠陥判別手段9とを有している。なお、画素抽出手段7、画素連結手段8、および欠陥判別手段9は、マイクロコンピュータ(マイコン)やCPUなどのハードウェアと、当該ハードウェアと共同するソフトウェアなどにより実現されている。
As shown in FIG. 1B, the
入力手段5は、各撮像手段3が出力する濃淡画像を受信して、各撮像手段3から受け取った濃淡画像を、各撮像手段3の識別番号や、その撮像順を示す番号などの情報を有するラベルを付して記憶手段6に格納する。
The
画素抽出手段7は、記憶手段6に記憶された撮像手段3の濃淡画像から、当該濃淡画像の画素の濃度差を算出する処理を行うが、本実施形態では撮像手段3としてラインスキャンカメラを利用しているから、撮像手段3から得られる濃淡画像は、サイズがm×1(mは水平方向の画素数)の1次元の濃淡画像である。そのため、画素抽出手段7は、濃度差を算出する前処理として、これら1次元の濃淡画像を撮像順に並べてm×n(nは垂直方向の画素数)の2次元の濃淡画像を作成する。
The
このように2次元の濃淡画像を作成した後に、画素抽出手段7は、作成した2次元の濃淡画像の各画素の濃度差を算出する。画素抽出手段7は、濃度差を算出するにあたっては、例えば、微分フィルタ(差分フィルタ)を濃淡画像の各画素に適用することにより局所空間微分を行い、各画素における水平方向(横方向)Xの微分値dx、および垂直方向(縦方向)Yの微分値dyをそれぞれ求める。上記微分フィルタとしては、例えば、マスクサイズが3×3(3行3列)のPrewittフィルタ(Prewittオペレータともいう)を用いている。ここで、図4に示すように、中央の画素(注目画素)を画素Aとし、その8近傍の画素それぞれを画素B〜Iとし、各画素A〜Iにおける画素値をそれぞれa〜iとすると、注目画素における水平方向Xの微分値dxは、(d+f+i)−(b+e+g)で与えられ、垂直方向Yの微分値dyは、(g+h+i)−(b+c+d)で与えられる。なお、図4における右方向を水平方向Xにおける正方向、図4における下方向を垂直方向Yにおける正方向としている。
After creating the two-dimensional gray image in this way, the
そして、画素抽出手段7は、上述したようにして算出した微分値dx,dyにより画素の濃度差を算出する。ここで、画素の濃度差は、(dx2+dy2)1/2で与えられ、このようにして算出した濃度差を所定の閾値と比較することにより、濃度差が所定の閾値以上である画素を抽出し、その抽出結果を記憶手段6に格納する。
Then, the
また、画素抽出手段7は、濃淡画像の画素値の変化方向を示す微分方向値の算出を行い、その算出結果を記憶手段6に格納する。ここで、微分方向値は、dx,dyがいずれも0でなければ、arctan(dy/dx)で表すことができ、dx,dyそれぞれの符号(正負)を加味すれば、微分方向値は、0度以上360度未満の値で表される。本実施形態では、微分方向値を22.5度刻みの8方向で表すように(すなわち、方向精度を8方向に)している。
The
画素連結手段8は、画素抽出手段7による画素の抽出結果、および微分方向値の算出結果を利用して、連結領域を作成する。例えば、画素連結手段8は、画素抽出手段7で抽出された画素の一つに注目し、当該画素の隣接画素(例えば図4における8近傍の隣接画素B〜I)に、画素抽出手段7で抽出された別の画素が存在するか否かを判別し、別の画素が存在した場合には、当該別の画素を注目している画素の連結候補とする。次に、画素連結手段8は、注目している画素の微分方向値を考慮して、上記別の画素との間に連続性があるか否かの評価を行う。一例としては、画素連結手段8は、注目している画素の微分方向値を用いて、注目している画素の画素値の変化方向に直交する方向、つまり画素値の変化が小さい方向を算出し、当該方向側(例えば、当該方向を中心とする±45度の範囲)において注目している画素と上記別の画素とが隣接していれば連続性があるとし、隣接していなければ連続性がないと判別する。そして、連続性があると判別した場合には、注目している画素と上記別の画素とを連結して連結領域を作成し、連続性がないと判別した場合には、注目している画素と上記別の画素との連結は行わない。画素連結手段8は、このような連結作業を画素抽出手段7で抽出された画素それぞれに行い、連結領域を作成した際には、当該連結領域に関する情報を記憶手段6に格納する。なお、このように画素を他の画素と連結する処理は従来周知であるから詳細な説明を省略する。また、本実施形態では、隣接画素を8近傍の隣接画素としたが、4近傍の隣接画素としてもよく、好適なものを採用すればよい。
The pixel connection unit 8 creates a connection region using the pixel extraction result by the
欠陥判別手段9は、記憶手段6に格納されている連結領域に関する情報から当該連結領域のサイズを算出し、連結領域のサイズ(例えば、連結領域の長さや、面積など)が所定値以上であれば、当該連結領域は被検査面110に発生した欠陥120によるものと判別する。なお、上記所定値は、被検査面110に発生する欠陥120の実際上のサイズや、検査対象物100の種類、撮像手段3の解像度など種々の条件を考慮して好適な値に設定すればよい。
The defect determination means 9 calculates the size of the connected area from the information related to the connected area stored in the storage means 6, and the size of the connected area (for example, the length or area of the connected area) is greater than or equal to a predetermined value. For example, it is determined that the connection region is due to the
そして、欠陥判別手段9は、画素連結手段8で作成された連結領域が欠陥120によるものであると判別した場合には、被検査面110に欠陥120が発生していることを報知する報知信号を外部装置(図示せず)に出力する。なお、欠陥判別手段9は、必要に応じて、欠陥120によるものと判別した連結領域に関する情報(被検査面110上の位置情報)を上記外部装置に出力するようしてもよい。
When the defect determination unit 9 determines that the connection area created by the pixel connection unit 8 is due to the
次に、本実施形態の外観検査装置の動作について図5に示すフローチャートを参照して簡単に説明する。動作が開始されると、入力手段5には、撮像部1の各撮像手段3が撮像した1次元の濃淡画像が入力され、入力手段5は、入力された1次元の濃淡画像を撮像手段3の識別番号や、その撮像順を示す番号などの情報を持たせたラベルを付して記憶手段6に格納する(ステップS1)。
Next, the operation of the appearance inspection apparatus according to the present embodiment will be briefly described with reference to the flowchart shown in FIG. When the operation is started, a one-dimensional gray image captured by each
次に、画素抽出手段7は、記憶手段6に記憶されている撮像手段3毎の1次元の濃淡画像から、撮像手段3毎に2次元の濃淡画像を作成し、この2次元の濃淡画像に上述した微分フィルタを用いてフィルタ処理を行って各画素の微分値dx,dyを算出し(ステップS2)、その後に、画素抽出手段7は、濃度差が所定の閾値以上の画素の抽出を行うとともに、抽出した画素毎に微分方向値の算出を行い、画素の抽出結果および微分方向値の算出結果を記憶手段6に格納する(ステップS3)。
Next, the
次に、画素連結手段8は、記憶手段6に格納された画素の抽出結果および微分方向値の算出結果を読み出し、これらを基にして連結領域を作成し、作成した連結領域にラベリングをして記憶手段6に格納する(ステップS4)。 Next, the pixel connecting unit 8 reads out the pixel extraction result and the calculation result of the differential direction value stored in the storage unit 6, creates a connected region based on these results, and labels the created connected region. Store in the storage means 6 (step S4).
次に、欠陥判別手段9は、記憶手段6に格納されている連結領域に関する情報を用いて、上述したように連結領域が欠陥120によるものか否かの判別を行い、その判別結果を上記外部装置に出力する(ステップS5)。
Next, the defect determination means 9 determines whether or not the connected area is caused by the
上述したステップS1〜S5が繰り返されることで、検査対象物100の外観検査が行われる。
The appearance inspection of the
ところで、欠陥120が線状の傷(傷欠陥)である場合、欠陥120は、欠陥120の幅方向に沿った方向の光に対しては、良品部とは異なる反射特性を示すものの、光の照射方向と幅方向との角度が90度に近付けば近付くほど、上記良品部と同様の反射特性を示すことが確かめられており、このような欠陥120を検出するにあたっては、欠陥120の幅方向に対して±45度の範囲の方向から光を照射するのが望ましく、±45度を越えると、欠陥120の検出が困難となる。
By the way, when the
本実施形態の外観検査装置では、一方の光照射手段4Aは、光照射方向が上記平行面内において検査対象物100の移動方向Mに平行する形に配置されているので、一方の光照射手段4Aに対応する撮像手段3Aの濃淡画像では、検査対象物の移動方向Mと長さ方向との間の角度が45度〜135度(あるいは225度〜315度)である線状の欠陥120が検出し易くなり、他方の光照射手段4Bは、光照射方向が上記平行面内において検査対象物100の移動方向Mに平行する方向と45度の角度をなす形に配置されているので、他方の光照射手段4Bに対応する撮像手段3Bの濃淡画像では、検査対象物の移動方向Mと長さ方向との間の角度が90度〜180度(あるいは270度〜360度)である線状の欠陥が検出し易くなる。そのため、撮像手段3Aの濃淡画像で検出し難い欠陥120、例えば長さ方向と移動方向Mとの間の角度が90度であるような欠陥120であっても、撮像手段3Bの濃淡画像で検出することができる。
In the appearance inspection apparatus according to the present embodiment, one
以上述べた本実施形態の外観検査装置によれば、各撮像手段3から得られる濃淡画像は被検査面110に対する光照射方向がそれぞれ異なっているので、ある方向からの光では検出し難い欠陥120であっても別の方向からの光によって検出することができるから、撮像手段3と光照射手段4との組を複数設けるだけの簡単な構成で、欠陥検出の高精度化が図れ、また濃淡画像から濃度差が所定の閾値以上の画素を抽出し、抽出した画素同士を当該画素の隣接画素内で連結して連結領域を作成し、連結領域のサイズが所定値以上であれば当該連結領域を欠陥120によるものと判別するという簡単な処理で欠陥の検出を行っているから、欠陥検出の高速化が図れて、欠陥検出をリアルタイムで行えるようになる。
According to the appearance inspection apparatus of the present embodiment described above, the gray images obtained from the respective imaging means 3 have different light irradiation directions with respect to the
ところで、本実施形態では、上記角度θを45度としているが、これはあくまでも一例であって、角度θは45度以外であってもよい。ただし、角度θを45度とするほうが、撮像手段3と光照射手段4との組の数を最小値に抑えながらも、欠陥120の検出精度を向上できて、効率が最も良いため好ましい。
Incidentally, in the present embodiment, the angle θ is set to 45 degrees, but this is merely an example, and the angle θ may be other than 45 degrees. However, it is preferable to set the angle θ to 45 degrees because the detection accuracy of the
なお、本実施形態における撮像部1は、撮像手段3と光照射手段4との組を2組備えているが、これらの組は3組としてもよいし、さらにそれ以上の組としてもよい。また、各光照射手段4の光照射方向間の角度も45度に限られるものではなく、状況に応じて好適な値を採用すればよい。また、本実施形態の外観検査装置では、撮像部1が固定され、検査対象物100が移動されるようになっているが、逆に、検査対象物100が固定されており、撮像部1が移動するようにしてもよい。これらの点は後述する実施形態2,3においても同様である。
In addition, although the
(実施形態2)
本実施形態の外観検査装置は、撮像部1における撮像手段3と光照射手段4との位置関係が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については同一の符号を付して説明を省略する。
(Embodiment 2)
The appearance inspection apparatus according to the present embodiment is different from the first embodiment in the positional relationship between the
本実施形態における撮像部1は、図6に示すように、撮像手段3と光照射手段4との位置関係が実施形態1と異なっている。すなわち、実施形態1においては、図2(b)に示すように、光照射手段4の主光線Pと被検査面110との交点と、撮像手段3の光軸Oと被検査面110との交点とが同じ位置となるようにしていたが、本実施形態においては、図6に示すように、検査対象物100の幅方向(被検査面110の幅方向)を法線方向とする面に平行する面内における光照射手段4の主光線Pと被検査面110との角度θ1と、撮像手段3の光軸Oと被検査面110との角度θ2とは異なる角度とするとともに、光照射手段4の主光線Pと被検査面110との交点の位置と、撮像手段3の光軸Oと被検査面110との交点の位置とを検査対象物100の長さ方向(被検査面110の長さ方向)において距離tだけずらしている。つまり、光照射手段4の主光線Pと被検査面110との交点と、撮像手段3の光軸Oと被検査面110との交点とは異なる位置としている。なお、上記角度θ1,θ2および距離tは、被検査面110に発生する欠陥120の実際上のサイズや、検査対象物100の種類、撮像手段3の解像度など種々の条件を考慮して好適な値に設定すればよい。
As shown in FIG. 6, the
実施形態1の場合、図7(a)に示すように、撮像手段3の光軸O上に欠陥120が位置しているとき(撮像面Sに欠陥120が写っているとき)は、欠陥120には、光照射手段4の主光線Pが照射される。そのため、欠陥120には光照射手段4から被検査面110に直接的に照射された光(入射光)L1が入射され、被検査面110で反射された入射光L1からなる反射光L2が撮像手段3の撮像面Sに入射される。
In the case of the first embodiment, as shown in FIG. 7A, when the
一方、本実施形態の場合、図7(b)に示すように、撮像手段3の光軸O上に欠陥120が位置しているとき(撮像面Sに欠陥120が写っているとき)は、欠陥120には、光照射手段4の主光線Pが照射されない。そのため、欠陥120には、光照射手段4から被検査面110に直接的に照射された光(入射光)L1が被検査面110で拡散されてなる拡散光L3が入射され、欠陥120で反射された拡散光L3が撮像手段3の撮像面Sに入射される。この場合、被検査面110で反射された入射光L1からなる反射光L2は撮像手段3の撮像面Sに入射されない。
On the other hand, in the case of the present embodiment, as shown in FIG. 7B, when the
以上述べた外観検査装置では、撮像手段3の撮像範囲内の被検査面110の欠陥120には、光照射手段4から直接的に照射された光ではなく、光照射手段4から撮像手段3の撮像範囲内の被検査面110に間接的に照射された光が照射されるので、直接的に光が照射される場合に比べれば、欠陥120からの反射光量は少なくなるが、周囲に対して欠陥120のエッジ部分(欠陥120と良品部との境界部分)からの反射光が強調される(欠陥120のエッジ部分によって反射される光が周囲に対して相対的に増加する)から、欠陥120の形状がより明確になる。
In the appearance inspection apparatus described above, the
したがって、本実施形態の外観検査装置によれば、欠陥120の検出精度が向上し、その結果、比較的小さい欠陥(微小な欠陥)であっても検出することが可能となる。
Therefore, according to the appearance inspection apparatus of this embodiment, the detection accuracy of the
(実施形態3)
本実施形態の外観検査装置は、検査部2における画素抽出手段7の動作が実施形態1と異なっており、その他の構成は実施形態1と同様であるから、同様の構成については同一の符号を付して説明を省略する。
(Embodiment 3)
In the appearance inspection apparatus of this embodiment, the operation of the
本実施形態における画素抽出手段7は、濃淡画像の画素の濃度差を算出するにあたっては、実施形態1で述べたようなPrewittフィルタではなく、所定方向における画素の濃度差を強調するフィルタを用いて濃淡画像をフィルタ処理することにより濃度差を算出する。具体的には、画素抽出手段7は、上記フィルタとして、濃淡画像の垂直方向Yにおける画素の濃度差を強調する3行3列の第1のフィルタと、濃淡画像の水平方向Xにおける画素の濃度差を強調する3行3列の第2のフィルタとを用い、フィルタ処理を行うにあたっては、第1のフィルタによるフィルタ処理を行った後に、上記第2のフィルタによるフィルタ処理を行う。なお、その他の動作は実施形態1と同様であるから説明を省略する。
In calculating the pixel density difference of the grayscale image, the
第1のフィルタおよび第2のフィルタとしては、例えば、マスクサイズが3×3(3行3列)のSobelフィルタ(Sobelオペレータともいう)を用いている。ここで、図9(a),(b)に示すように、中央の画素(注目画素)を画素Aとし、その8近傍の画素それぞれを画素B〜Iとし、各画素A〜Iにおける画素値をそれぞれa〜iとすると、第1のフィルタを用いたフィルタ処理によれば、注目画素における画素値(濃度差)は、(g+2*h+i)−(b+2*c+d)で与えられる。また、第2のフィルタを用いたフィルタ処理によれば、注目画素における画素値(濃度差)は、(d+2*f+i)−(b+2*e+g)で与えられる。なお、図4における右方向を水平方向Xにおける正方向、図4における下方向を垂直方向Yにおける正方向としている。 As the first filter and the second filter, for example, a Sobel filter (also referred to as a Sobel operator) having a mask size of 3 × 3 (3 rows × 3 columns) is used. Here, as shown in FIGS. 9A and 9B, the center pixel (target pixel) is the pixel A, the pixels in the vicinity of the eight pixels are the pixels B to I, and the pixel values in the pixels A to I are the same. Are a to i, respectively, the pixel value (density difference) at the target pixel is given by (g + 2 * h + i) − (b + 2 * c + d) according to the filter processing using the first filter. Further, according to the filter processing using the second filter, the pixel value (density difference) at the target pixel is given by (d + 2 * f + i) − (b + 2 * e + g). Note that the right direction in FIG. 4 is the positive direction in the horizontal direction X, and the downward direction in FIG.
そして、本実施形態における画素抽出手段7は、第1のフィルタによるフィルタ処理を行った後に、第2のフィルタによるフィルタ処理を行う(つまり、第1のフィルタによってフィルタ処理された濃淡画像に対して第2のフィルタによるフィルタ処理を行う)ことで得られた各画素の画素値を濃度差として用い、このようにして算出した濃度差を所定の閾値と比較することにより、濃度差が所定の閾値以上である画素を抽出し、その抽出結果を記憶手段6に格納する。 Then, the pixel extraction means 7 in the present embodiment performs the filtering process by the second filter after performing the filtering process by the first filter (that is, for the grayscale image filtered by the first filter). by the second filter performs a filtering process by) using the pixel value of each pixel obtained by the density difference by, comparing the density difference calculated in this way with a predetermined threshold value, the concentration difference is a predetermined Pixels that are equal to or greater than the threshold value are extracted, and the extraction result is stored in the storage means 6.
一方、微分方向値を算出するにあたっては、濃淡画像に第2のフィルタ処理を行うことによって得られる注目画素の画素値を微分値dxとして用い、濃淡画像に第1のフィルタ処理を行うことによって得られる注目画素の画素値を微分値dyとして用いている。すなわち、本実施形態における微分値dxは、(d+2*f+i)−(b+2*e+g)であり、微分値dyは、(g+2*h+i)−(b+2*c+d)である。 On the other hand, that when issues calculate the differential direction value, the pixel value of the pixel of interest is obtained by performing the second filtering with a differential value dx in the grayscale image, by performing a first filtering the grayscale image The obtained pixel value of the target pixel is used as the differential value dy. That is, the differential value dx in this embodiment is (d + 2 * f + i) − (b + 2 * e + g), and the differential value dy is (g + 2 * h + i) − (b + 2 * c + d).
次に、本実施形態の外観検査装置の動作について図8に示すフローチャートを参照して簡単に説明する。動作が開始されると、入力手段5には、撮像部1の各撮像手段3が撮像した1次元の濃淡画像が入力され、入力手段5は、入力された1次元の濃淡画像を撮像手段3の識別番号や、その撮像順を示す番号などの情報を持たせたラベルを付して記憶手段6に格納する(ステップS1)。
Next, the operation of the appearance inspection apparatus according to the present embodiment will be briefly described with reference to the flowchart shown in FIG. When the operation is started, a one-dimensional gray image captured by each
次に、画素抽出手段7は、記憶手段6に記憶されている撮像手段3毎の1次元の濃淡画像から、撮像手段毎に2次元の濃淡画像を作成し、この2次元の濃淡画像に第1のフィルタを用いてフィルタ処理を行い(ステップS2A)、その後に、第2のフィルタを用いてフィルタ処理を行う(ステップS2B)。画素抽出手段7は、第1および第2のフィルタ処理が行われた濃淡画像から濃度差が所定の閾値以上の画素の抽出を行うとともに、抽出した画素毎に微分方向値の算出を行い、画素の抽出結果および微分方向値の算出結果を記憶手段6に格納する(ステップS3)。
Next, the
次に、画素連結手段8は、記憶手段6に格納された画素の抽出結果および微分方向値の算出結果を読み出し、これらを基にして連結領域を作成し、作成した連結領域にラベリングをして記憶手段6に格納する(ステップS4)。 Next, the pixel connecting unit 8 reads out the pixel extraction result and the calculation result of the differential direction value stored in the storage unit 6, creates a connected region based on these results, and labels the created connected region. Store in the storage means 6 (step S4).
次に、欠陥判別手段9は、記憶手段6に格納されている連結領域に関する情報を用いて、上述したように連結領域が欠陥120によるものか否かの判別を行い、その判別結果を上記外部装置に出力する(ステップS5)。
Next, the defect determination means 9 determines whether or not the connected area is caused by the
上述したステップS1〜S5が繰り返されることで、検査対象物100の外観検査が行われる。
The appearance inspection of the
本実施形態における外観検査装置では、撮像手段3を、濃淡画像における垂直方向Yが上記平行面内において撮像手段3に対応する光照射手段4の光照射方向に沿った方向となる形に配置しているから、濃淡画像の水平方向Xに対する長さ方向の角度が±45度の範囲内にある欠陥120を検出することができる。
In the appearance inspection apparatus according to the present embodiment, the
そして、本実施形態における画素抽出手段7では、濃淡画像の垂直方向Yにおける画素の濃度差を強調する第1のフィルタを用いることによって、図9(a)に示すように、濃淡画像の水平方向Xに対する長さ方向の角度が±45度の範囲内である欠陥120を強調しているから、このような欠陥120を濃淡画像にさらに現れ易くすることができる。
Then, in the
一方、撮像手段3が、濃淡画像における垂直方向Yが上記平行面内において撮像手段3に対応する光照射手段4の光照射方向に沿った方向となる形に配置されていると、上述したように、濃淡画像の水平方向Xに対する長さ方向の角度が±45度の範囲内にある欠陥120を検出することはできるものの、濃淡画像の水平方向Xに対する欠陥120の長さ方向の角度が±45度に近付くにつれて欠陥120が濃淡画像に現れ難くなる。
On the other hand, when the
しかしながら、画素抽出手段7では、濃淡画像の水平方向Xにおける画素の濃度差を強調する第2のフィルタを用いることによって、図9(b)に示すように、濃淡画像の垂直方向Yに対する長さ方向の角度が±45度の範囲内である欠陥120を強調しているので、濃淡画像の水平方向Xに対する長さ方向の角度が±45度に近付くにつれて欠陥120が濃淡画像に現れ難くなることを抑制できる。
However, the pixel extraction means 7 uses the second filter that emphasizes the pixel density difference in the horizontal direction X of the grayscale image, so that the length of the grayscale image in the vertical direction Y is shown in FIG. 9B. Since the
つまり、本実施形態の外観検査装置によれば、濃淡画像の水平方向Xにおける画素の濃度差を強調する第2のフィルタと、濃淡画像の垂直方向Yにおける画素の濃度差を強調する第1のフィルタとを用いることで、被検査面110に発生する欠陥120全てを強調しているから、欠陥検出の高精度化が図れる。その上、フィルタとして最小単位の3行3列のフィルタを用いているので、画素の濃度差に隣接画素の画素値(輝度値)変化を敏感に反映させることができるから、比較的微小な欠陥に対する検出精度の向上が図れる。また、フィルタを用いた演算処理を付加するだけのソフトウェア的な変更だけで欠陥検出の高精度化が図れるので、光照射手段が照射する光の光量を向上させるなどのハードウェア的な変更をしなくて済むから、低コスト化が図れる。
That is, according to the appearance inspection apparatus of the present embodiment, the second filter that emphasizes the pixel density difference in the horizontal direction X of the grayscale image and the first filter that emphasizes the pixel density difference in the vertical direction Y of the grayscale image. By using the filter, all the
ところで、本実施形態における画素抽出手段7では、第1のフィルタによるフィルタ処理を行った後に、第2のフィルタによるフィルタ処理を行っているが、これはフィルタ処理を同時に行うと、一方向(例えば水平方向X)における画素値の変動(濃度差)が大きい場合に、このような画素値の変動の影響を受けて他方向(例えば垂直方向Y)における濃度差の強調が十分に行えなくなるおそれがあるからである。したがって、第1のフィルタによるフィルタ処理と第2のフィルタによるフィルタ処理とは、順序が逆であってもよい。 By the way, in the pixel extraction means 7 in this embodiment, after performing the filter process by the first filter, the filter process by the second filter is performed. When the variation (density difference) of the pixel value in the horizontal direction X) is large, there is a possibility that the density difference in the other direction (for example, the vertical direction Y) cannot be sufficiently enhanced due to the influence of the variation of the pixel value. Because there is. Therefore, the order of the filtering process by the first filter and the filtering process by the second filter may be reversed.
なお、本実施形態における画素抽出手段7では、濃淡画像の垂直方向Yにおける濃度差を強調する第1のフィルタと、濃淡画像の水平方向Xにおける濃度差を強調する第2のフィルタとの両方を用いているが、撮像手段3が、濃淡画像における垂直方向Yが上記平行面内において当該撮像手段3に対応する光照射手段4の光照射方向に沿った方向となる形に配置されている場合には、画素抽出手段7は、濃淡画像の水平方向Xにおける画素の濃度差のみを強調する、すなわち第2のフィルタのみを用いるものであってもよい。
It should be noted that the pixel extraction means 7 in the present embodiment uses both the first filter that emphasizes the density difference in the vertical direction Y of the grayscale image and the second filter that emphasizes the density difference in the horizontal direction X of the grayscale image. Although used, the imaging means 3 is arranged in such a manner that the vertical direction Y in the grayscale image is in the direction along the light irradiation direction of the light irradiation means 4 corresponding to the imaging means 3 in the parallel plane. Alternatively, the
このようにすれば、撮像手段3が、濃淡画像における垂直方向Yが上記平行面内において撮像手段3に対応する光照射手段4の光照射方向に沿った方向となる形に配置されている場合でも、濃淡画像の水平方向Xに対する長さ方向の角度が±45度に近付くにつれて欠陥120が濃淡画像に現れ難くなることを抑制できるから、欠陥検出の高精度化が図れる。
In this case, the
また、画素抽出手段7は、濃淡画像の垂直方向Yにおける画素の濃度差のみを強調する、すなわち第1のフィルタのみを用いるものであってもよく、この場合、上記のように配置された撮像手段3の検出対象である濃淡画像の水平方向Xに対する長さ方向の角度が±45度の範囲内にある欠陥120の検出精度を向上できる。
Further, the pixel extraction means 7 may emphasize only the density difference of the pixels in the vertical direction Y of the grayscale image, that is, use only the first filter. In this case, the imaging arranged as described above may be used. The detection accuracy of the
このように本実施形態における画素抽出手段7では、必ずしも第1のフィルタと第2のフィルタの両方を用いる必要はなく、少なくとも一方を用いるものであればよい。 Thus, in the pixel extraction means 7 in this embodiment, it is not always necessary to use both the first filter and the second filter, as long as at least one is used.
また、本実施形態における画素抽出手段7では、水平方向Xにおける画素の濃度差と、垂直方向Yにおける画素の濃度差とを強調するようにしているが、画素の濃度差を強調する方向は、上記2方向に限定されるものではなく、状況に応じて好適な方向とすることができる。つまり、画素抽出手段7は、濃淡画像の画素の濃度差を算出するにあたっては、所定方向における画素の濃度差を強調するフィルタを用いて濃淡画像をフィルタ処理することにより濃度差を算出するようになっていればよい。このようにすれば、所定方向に対する長さ方向の角度が±45度の範囲内である欠陥120を強調することができるから、欠陥検出の高精度化が図れる。
Further, in the
なお、本実施形態における検査部2は、実施形態1だけではなく、実施形態2にも採用できる。
The
1 撮像部
2 検査部
3,3A,3B 撮像手段
4,4A,4B 光照射手段
7 画素抽出手段
8 画素連結手段
9 欠陥判別手段
100 検査対象物
110 被検査面
120 欠陥
O,O1,O2 光軸
P,P1,P2 主光線
DESCRIPTION OF
Claims (3)
前記検査部は、濃淡画像から濃度差が所定の閾値以上の画素を抽出する画素抽出手段と、前記画素抽出手段で抽出された画素同士を前記画素の隣接画素内で連結して連結領域を作成する画素連結手段と、前記画素連結手段で作成された連結領域のサイズが所定値以上であれば前記連結領域を欠陥によるものと判別する欠陥判別手段とを有し、
前記撮像部は、前記撮像手段と前記光照射手段との組を複数組備え、
各々の前記撮像手段は、それぞれの撮像範囲が互いに重ならない位置に配置され、
各々の前記光照射手段は、それぞれの光照射方向が被検査面に平行する面内において互いに交差する位置に配置されており、
1組の前記撮像手段及び前記光照射手段は、検査対象物の移動方向に対して直交するように配置され、他の組の前記撮像手段及び前記光照射手段は、検査対象物の移動方向に対して45度の角度に配置されており、
前記撮像手段は、濃淡画像における垂直方向が前記被検査面に平行する面内において前記撮像手段に対応する前記光照射手段の光照射方向に沿った方向となる形に配置され、
前記画素抽出手段は、前記濃淡画像の画素の濃度差を算出するにあたっては、前記濃淡画像の水平方向における画素の濃度差を強調する3行3列のフィルタを用いて前記濃淡画像をフィルタ処理することにより濃度差を算出することを特徴とする外観検査装置。 An imaging unit that images a part of the inspection target surface of the inspection object and a light irradiation unit that irradiates light to a part of the inspection surface imaged by the imaging unit, and moves relative to the inspection object An imaging unit that images the entire surface to be inspected by the imaging unit, and an inspection unit that detects a defect on the surface to be inspected based on a grayscale image obtained from the imaging unit of the imaging unit,
The inspection unit creates a connected region by connecting a pixel extraction unit that extracts a pixel having a density difference equal to or greater than a predetermined threshold from a grayscale image and the pixels extracted by the pixel extraction unit within adjacent pixels of the pixel. Pixel connecting means, and if the size of the connected area created by the pixel connecting means is greater than or equal to a predetermined value, the defect determining means for determining that the connected area is caused by a defect,
The imaging unit includes a plurality of sets of the imaging unit and the light irradiation unit,
Each of the imaging means is arranged at a position where the respective imaging ranges do not overlap each other,
Each of the light irradiation means is disposed at a position where each light irradiation direction intersects each other in a plane parallel to the surface to be inspected,
One set of the imaging means and the light irradiation means are arranged so as to be orthogonal to the moving direction of the inspection object, and the other set of the imaging means and the light irradiation means are arranged in the movement direction of the inspection object. It is arranged at an angle of 45 degrees
The imaging means is arranged in a shape in which a vertical direction in a grayscale image is a direction along a light irradiation direction of the light irradiation means corresponding to the imaging means in a plane parallel to the surface to be inspected.
In calculating the density difference of the pixels of the grayscale image, the pixel extraction means filters the grayscale image using a 3 × 3 filter that emphasizes the pixel density difference in the horizontal direction of the grayscale image. An appearance inspection apparatus characterized in that a density difference is calculated .
前記検査部は、濃淡画像から濃度差が所定の閾値以上の画素を抽出する画素抽出手段と、前記画素抽出手段で抽出された画素同士を前記画素の隣接画素内で連結して連結領域を作成する画素連結手段と、前記画素連結手段で作成された連結領域のサイズが所定値以上であれば前記連結領域を欠陥によるものと判別する欠陥判別手段とを有し、
前記撮像部は、前記撮像手段と前記光照射手段との組を複数組備え、
各々の前記撮像手段は、それぞれの撮像範囲が互いに重ならない位置に配置され、
各々の前記光照射手段は、それぞれの光照射方向が被検査面に平行する面内において互いに交差する位置に配置されており、
1組の前記撮像手段及び前記光照射手段は、検査対象物の移動方向に対して直交するように配置され、他の組の前記撮像手段及び前記光照射手段は、検査対象物の移動方向に対して45度の角度に配置されており、
前記撮像手段は、濃淡画像における垂直方向が前記被検査面に平行する面内において前記撮像手段に対応する前記光照射手段の光照射方向に沿った方向となる形に配置され、
前記画素抽出手段は、前記濃淡画像の画素の濃度差を算出するにあたっては、前記濃淡画像の垂直方向における画素の濃度差を強調する3行3列の第1のフィルタと、前記濃淡画像の水平方向における画素の濃度差を強調する3行3列の第2のフィルタとを用いて前記濃淡画像をフィルタ処理することにより濃度差を算出し、前記フィルタ処理を行うにあたっては、前記第1のフィルタによるフィルタ処理と前記第2のフィルタによるフィルタ処理とを順次行うことを特徴とする外観検査装置。 An imaging unit that images a part of the inspection target surface of the inspection object and a light irradiation unit that irradiates light to a part of the inspection surface imaged by the imaging unit, and moves relative to the inspection object An imaging unit that images the entire surface to be inspected by the imaging unit, and an inspection unit that detects a defect on the surface to be inspected based on a grayscale image obtained from the imaging unit of the imaging unit,
The inspection unit creates a connected region by connecting a pixel extraction unit that extracts a pixel having a density difference equal to or greater than a predetermined threshold from a grayscale image and the pixels extracted by the pixel extraction unit within adjacent pixels of the pixel. Pixel connecting means, and if the size of the connected area created by the pixel connecting means is greater than or equal to a predetermined value, the defect determining means for determining that the connected area is caused by a defect,
The imaging unit includes a plurality of sets of the imaging unit and the light irradiation unit,
Each of the imaging means is arranged at a position where the respective imaging ranges do not overlap each other,
Each of the light irradiation means is disposed at a position where each light irradiation direction intersects each other in a plane parallel to the surface to be inspected,
One set of the imaging means and the light irradiation means are arranged so as to be orthogonal to the moving direction of the inspection object, and the other set of the imaging means and the light irradiation means are arranged in the movement direction of the inspection object. It is arranged at an angle of 45 degrees
The imaging means is arranged in a shape in which a vertical direction in a grayscale image is a direction along a light irradiation direction of the light irradiation means corresponding to the imaging means in a plane parallel to the surface to be inspected.
In calculating the density difference of the pixels of the grayscale image, the pixel extraction means is configured to emphasize a density difference of the pixels in the vertical direction of the grayscale image with a first filter of 3 rows and 3 columns, and a horizontal of the grayscale image. A density difference is calculated by filtering the gray image using a second filter of 3 rows and 3 columns that emphasizes the density difference of the pixels in the direction, and the first filter appearance inspection device characterized by sequentially performing the filtering process filtering and by the second filter by.
前記光照射手段の主光線と前記被検査面との角度と、前記撮像手段の光軸と前記被検査面との角度とは異なる角度であり、
前記光照射手段の主光線と前記被検査面との交点と、前記撮像手段の光軸と前記被検査面との交点とは異なる位置であることを特徴とする請求項1または2記載の外観検査装置。 The inspection object has a surface to be inspected made of metal,
And angle of the principal ray and the surface to be inspected of the light irradiation unit, an angle different from the angle between the optical axis and the surface to be inspected of the image pickup means,
And the intersection between the principal ray and the surface to be inspected of the light irradiation unit, according to claim 1 or 2 appearance, wherein the said optical axis and the intersection between the surface to be inspected is a different position of the image pickup means Inspection device .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007262220A JP5231779B2 (en) | 2007-10-05 | 2007-10-05 | Appearance inspection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007262220A JP5231779B2 (en) | 2007-10-05 | 2007-10-05 | Appearance inspection device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2009092472A JP2009092472A (en) | 2009-04-30 |
JP5231779B2 true JP5231779B2 (en) | 2013-07-10 |
Family
ID=40664603
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007262220A Expired - Fee Related JP5231779B2 (en) | 2007-10-05 | 2007-10-05 | Appearance inspection device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5231779B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5297245B2 (en) * | 2009-03-26 | 2013-09-25 | パナソニック株式会社 | Object surface inspection equipment |
CN112995655A (en) * | 2021-03-04 | 2021-06-18 | 上海创功通讯技术有限公司 | Stray light inspection method and equipment |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4318776B2 (en) * | 1998-10-26 | 2009-08-26 | 大日本印刷株式会社 | Nonuniformity inspection method and apparatus |
JP2001255275A (en) * | 2000-03-13 | 2001-09-21 | Kawasaki Steel Corp | Surface defect inspection method and device |
JP2004309287A (en) * | 2003-04-07 | 2004-11-04 | Nippon Sheet Glass Co Ltd | Defect detection device and defect detection method |
JP2005083906A (en) * | 2003-09-09 | 2005-03-31 | Asahi Kasei Engineering Kk | Defect detector |
JP2005249415A (en) * | 2004-03-01 | 2005-09-15 | Seiko Epson Corp | Stain defect detecting method and stain defect detector |
JP2006258662A (en) * | 2005-03-17 | 2006-09-28 | Hitachi Maxell Ltd | Surface inspection method |
-
2007
- 2007-10-05 JP JP2007262220A patent/JP5231779B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2009092472A (en) | 2009-04-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI484161B (en) | Defect inspection system and filming device for defect inspection, image processing device for defect inspection, image processing program for defect inspection, recording media, and image processing method for defect inspection used therein | |
JP6549396B2 (en) | Region detection apparatus and region detection method | |
JP6079948B1 (en) | Surface defect detection device and surface defect detection method | |
JP4930748B2 (en) | Film inspection apparatus and method | |
JP2009513984A (en) | Apparatus and method for inspecting a composite structure for defects | |
JP2015511310A (en) | Segmentation for wafer inspection | |
JP2020008501A (en) | Surface defect detection device and surface defect detection method | |
JP4517826B2 (en) | Liquid level detection method | |
JP2009293999A (en) | Wood defect detector | |
JP2013134666A (en) | Binary image generation device, classification device, binary image generation method, and classification method | |
JP5333607B2 (en) | Radiation image processing apparatus and radiation image processing program | |
JP5231779B2 (en) | Appearance inspection device | |
JP2013205091A (en) | Film inspection system, and film inspection method | |
JP6031751B2 (en) | Glass substrate inspection apparatus and glass substrate manufacturing method | |
JP6628185B2 (en) | Inspection method for transparent objects | |
JPWO2014112653A1 (en) | Image generating apparatus, defect inspection apparatus, and defect inspection method | |
JP6035124B2 (en) | Defect inspection apparatus and defect inspection method | |
JP2004361085A (en) | Visual examination device | |
JP2008026186A (en) | Method and apparatus for detecting gaps by image processing | |
JP7293907B2 (en) | Visual inspection management system, visual inspection management device, visual inspection management method and program | |
JP2009264800A (en) | Surface inspecting method and surface inspecting device | |
JP6185539B2 (en) | Optical connector ferrule end face inspection device and inspection program | |
JP2010044010A (en) | Method for detecting defect of mesh- or wire-embedded glass | |
JP2005265828A (en) | Flaw detection method and apparatus | |
JP4967132B2 (en) | Defect inspection method for object surface |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20100419 |
|
RD04 | Notification of resignation of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7424 Effective date: 20100816 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20111124 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20111213 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20120112 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120213 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20120612 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20120810 |
|
TRDD | Decision of grant or rejection written | ||
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130226 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130322 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20160329 Year of fee payment: 3 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |