JP2012058091A - Surface inspection device - Google Patents

Surface inspection device Download PDF

Info

Publication number
JP2012058091A
JP2012058091A JP2010201998A JP2010201998A JP2012058091A JP 2012058091 A JP2012058091 A JP 2012058091A JP 2010201998 A JP2010201998 A JP 2010201998A JP 2010201998 A JP2010201998 A JP 2010201998A JP 2012058091 A JP2012058091 A JP 2012058091A
Authority
JP
Japan
Prior art keywords
reference light
pixel value
value
light position
processing means
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
JP2010201998A
Other languages
Japanese (ja)
Inventor
Norio Miyazato
憲夫 宮里
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.)
IPRO LLC
Original Assignee
IPRO LLC
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 IPRO LLC filed Critical IPRO LLC
Priority to JP2010201998A priority Critical patent/JP2012058091A/en
Publication of JP2012058091A publication Critical patent/JP2012058091A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To improve angle detection sensitivity and to widen a detectable angle range.SOLUTION: A zonal surface light source is configured so that chevron-shaped luminance distributions of mutually different wavelength regions overlap with each other, and the angle of an inspection surface is detected in two stages on the basis of a pixel value distribution corresponding to the chevron-shaped luminance distribution of a photographed image of each wavelength region. In the first stage, on the basis of a size relation among the pixel values of R, G and B and curve approximation information, an in-cycle reference light position x on a light source surface is determined. In the second stage, on the basis of the value of lightness and the curve approximation information, to which cycle i the in-cycle reference light position x belongs, that is, a cycle start point position Xi, is obtained. Then, the reference light position X=Xi+x is converted to a detection angle on an inspection line.

Description

本発明は、光の正反射を利用して検査面の角度を検出する表面検査装置に関する。   The present invention relates to a surface inspection apparatus that detects the angle of an inspection surface using regular reflection of light.

図8及び図9に示すように、検査面10、例えば車の塗装面の微細な凹凸欠陥を検出するために、照明装置20と撮像装置30とが不図示のロボットアームに取り付けられている。検査面10に対し照明装置20と撮像装置30とを一体的に図示矢印方向へ相対的に移動させながら、照明装置20から射出した光の検査面10上の正反射光を撮像装置30で撮像する。検査面10上の凹凸部11の傾斜面での正反射光を撮像したとき、その画素に対応する照明装置20の光源面21上の光射出点(参照光点)は、上記移動に伴うこの傾斜面の角度変化に応じて変化する。   As shown in FIGS. 8 and 9, the illumination device 20 and the imaging device 30 are attached to a robot arm (not shown) in order to detect minute irregularities on the inspection surface 10, for example, a painted surface of a car. While the illumination device 20 and the imaging device 30 are integrally moved relative to the inspection surface 10 in the direction of the arrow shown in the figure, the imaging device 30 captures regular reflection light on the inspection surface 10 of light emitted from the illumination device 20. To do. When the regular reflection light on the inclined surface of the concavo-convex portion 11 on the inspection surface 10 is imaged, the light emission point (reference light point) on the light source surface 21 of the illuminating device 20 corresponding to the pixel is this It changes according to the angle change of the inclined surface.

そこで、下記特許文献1では、光源面21の走査方向一端Aから他端Bまでの範囲の輝度分布を、図13(A)に示すよう勾配を持たせることにより、参照光点の位置変化を画素値の変化に対応させ、画素値の変化に基づいて塗装欠陥を検出している。   Therefore, in Patent Document 1 below, the luminance distribution in the range from one end A to the other end B in the scanning direction of the light source surface 21 is given a gradient as shown in FIG. Corresponding to the change of the pixel value, the coating defect is detected based on the change of the pixel value.

凹凸部11の傾斜角が比較的大きいと、重度の欠陥と判定される。一方、この傾斜角が比較的小さくても、欠陥部分の面積が広ければ重度の欠陥と判定する必要がある。   If the inclination angle of the concavo-convex portion 11 is relatively large, it is determined as a severe defect. On the other hand, even if the inclination angle is relatively small, it is necessary to determine that the defect is a severe defect if the area of the defect portion is large.

しかし、小さな傾斜角の場合、参照光点の位置変化量が小さいので、SN比が小さくなり、欠陥を検出することができない(検出感度が低い)。輝度勾配を大きくすると、検出可能な角度範囲に対応したAB間の幅が狭くなり、検出対象の角度によっては、検出感度が低下したり、見逃したりすることがあった。   However, when the tilt angle is small, the positional change amount of the reference light spot is small, so the SN ratio becomes small and a defect cannot be detected (detection sensitivity is low). When the brightness gradient is increased, the width between AB corresponding to the detectable angle range becomes narrow, and depending on the angle of the detection target, the detection sensitivity may be lowered or overlooked.

このような問題を解決するために、下記特許文献2では、光源面21にスリットを配置してAB間の輝度分布を図13(B)に示すようにして、明部と暗部の境界領域の輝度勾配を大きくしている。暗部では欠陥を検出できないため、撮像装置30を2台並設して、一方の撮像装置30から見た暗部が他方の撮像装置30から見た明部となるようにしている。   In order to solve such a problem, in Patent Document 2 below, a slit is arranged on the light source surface 21 and the luminance distribution between AB is shown in FIG. The brightness gradient is increased. Since a defect cannot be detected in the dark part, two imaging devices 30 are arranged side by side so that the dark part viewed from one imaging apparatus 30 becomes the bright part viewed from the other imaging apparatus 30.

しかし、この条件が満たされるのは一部の領域であり、盲点が生ずる。また、明部では輝度分布がフラットになり、上記の原理では欠陥を検出できない。   However, this condition is met in some areas, resulting in blind spots. Also, the brightness distribution is flat in the bright area, and defects cannot be detected by the above principle.

一方、下記特許文献3では、照明装置20として、図11(C)に示すようなR(赤)とB(青)とG(緑)の輝度分布のものを用い、検査面10に対し照明装置20を平行に配置し、撮像装置30をその光軸が検査面10と垂直になるように配置し、凹凸部11の上部でのBの正反射光量と、この上部の一端側でのRの正反射光量と、他端側でのGの正反射光量とを、画像から読み取り、これら正反射光量の大小の組み合わせに基づいて凹凸欠陥や異物などの欠陥の種類を判定している。   On the other hand, in Patent Document 3 below, an illumination device 20 having a luminance distribution of R (red), B (blue), and G (green) as shown in FIG. The apparatus 20 is arranged in parallel, the imaging apparatus 30 is arranged so that the optical axis thereof is perpendicular to the inspection surface 10, the B regular reflection light quantity at the upper part of the concavo-convex part 11, and the R at one end side of this upper part. The regular reflection light amount and the G regular reflection light amount on the other end side are read from the image, and the type of defect such as a concave-convex defect or a foreign matter is determined based on the combination of the magnitudes of these regular reflection light amounts.

しかしながら、凹凸欠陥における傾斜角がどの程度であるかを検出することができない。   However, it is not possible to detect how much the inclination angle in the concavo-convex defect is.

下記特許文献4では、赤色から青色に向かって徐々に波長が変化する光を、その波長の変化が入射角が変化する方向に沿って生じるようにした照明装置を用い、はんだ付け部からの正反射光の撮影画像から、はんだ付け部の色彩を演算で求め、これに基づきはんだの表面状態の適否を判別している。   In Patent Document 4 below, a light whose wavelength gradually changes from red to blue is used in an illumination device in which the change in wavelength occurs along the direction in which the incident angle changes. From the photographed image of the reflected light, the color of the soldered portion is obtained by calculation, and based on this, the suitability of the solder surface state is determined.

しかし、赤色から青色に向かって徐々に波長が変化する光を用いているので、小さな傾斜角の場合、参照光点の位置変化量が小さい。このため、SN比が小さく、上記引用文献1と同様の問題が生ずる。   However, since the light whose wavelength gradually changes from red to blue is used, the position change amount of the reference light spot is small in the case of a small inclination angle. For this reason, the SN ratio is small, and the same problem as in the cited document 1 occurs.

特開平5−209734号公報Japanese Patent Laid-Open No. 5-209734 特開平11−63959号公報Japanese Patent Laid-Open No. 11-63959 特開2010−112941号公報JP 2010-112941 A 特開2009−128303号公報JP 2009-128303 A

本発明の目的は、上記問題点に鑑み、角度検出感度を向上させることが可能な表面検査装置を提供することにある。   In view of the above problems, an object of the present invention is to provide a surface inspection apparatus capable of improving angle detection sensitivity.

本発明の他の目的は、角度検出感度を向上させつつ角度検出感度のむらを低減することが可能な表面検査装置を提供することにある。   Another object of the present invention is to provide a surface inspection apparatus capable of reducing the unevenness of the angle detection sensitivity while improving the angle detection sensitivity.

本発明のさらに他の目的は、角度検出感度を向上させるとともに検出可能な角度範囲を広くすることが可能な表面検査装置を提供することにある。   Still another object of the present invention is to provide a surface inspection apparatus capable of improving the angle detection sensitivity and widening the detectable angle range.

本発明のさらに他の目的は、角度検出感度を向上させつつ角度検出感度のむらを低減するとともに検出可能な角度範囲を広くすることが可能な表面検査装置を提供することにある。   It is still another object of the present invention to provide a surface inspection apparatus that can improve the angle detection sensitivity, reduce the unevenness of the angle detection sensitivity, and widen the detectable angle range.

本発明の第1態様では、
波長域が互いに異なる複数の帯状光源が並設されている照明手段と、
該照明手段から射出され光検査面で正反射されて入射した光を、該複数の波長域のそれぞれに分光する分光手段と、
該分光された光のそれぞれが結像されるイメージセンサを備えた撮像手段と、
該撮像手段で撮像された画像のデータに基づいて検査面の角度を検出する画像処理手段と、
を備えた表面検査装置であって、
該照明手段は、該複数の帯状光源の光源面上の、帯状光源長手方向と直角な方向の線に沿った参照光位置に対する輝度分布が、該複数の帯状光源のそれぞれについて帯状光源面の中点から離れるにつれて輝度が小さくなり、且つ、隣り合う帯状光源の輝度分布が少なくとも輝度のピーク位置まで重なり合うように構成され、
該画像処理手段は、同一参照光位置に対応する、該複数の波長域のそれぞれに対応した画素値について、最大画素値の波長域と2番目に大きい画素値の波長域との組み合わせに基づいて参照光位置が含まれる範囲を決定し、該最大画素値に基づいて又は該最大画素値と該2番目に大きい画素値とに基づいて、該範囲内での参照光位置を決定し、参照光位置と該角度との関係とに基づいて、該角度を求める第1処理手段を有する。
In the first aspect of the present invention,
Illumination means in which a plurality of strip light sources having different wavelength ranges are arranged in parallel,
Spectroscopic means for splitting the light emitted from the illumination means and regularly reflected by the light inspection surface into each of the plurality of wavelength ranges;
Imaging means comprising an image sensor on which each of the split light is imaged;
Image processing means for detecting an angle of the inspection surface based on data of an image picked up by the image pickup means;
A surface inspection apparatus comprising:
The illumination means has a luminance distribution with respect to a reference light position along a line perpendicular to the longitudinal direction of the strip light source on the light source surface of the plurality of strip light sources. The brightness decreases as the distance from the point decreases, and the brightness distribution of adjacent strip light sources is configured to overlap at least to the peak position of the brightness,
The image processing means, based on a combination of the wavelength range of the maximum pixel value and the wavelength range of the second largest pixel value, for pixel values corresponding to each of the plurality of wavelength ranges corresponding to the same reference light position A range including the reference light position is determined, a reference light position within the range is determined based on the maximum pixel value or based on the maximum pixel value and the second largest pixel value, and the reference light First processing means for obtaining the angle based on the relationship between the position and the angle is provided.

本発明による表面検査装置の第2態様では、第1態様において、該画像処理手段の該第1処理手段は、該2番目に大きい画素値と該最大画素値との比の値に基づいて、該範囲内での該参照光位置を決定する。   In a second aspect of the surface inspection apparatus according to the present invention, in the first aspect, the first processing means of the image processing means is based on a ratio value between the second largest pixel value and the maximum pixel value. The reference beam position within the range is determined.

本発明による表面検査装置の第3態様では、第2態様において、該画像処理手段の該第1処理手段は、参照光位置に対する、該複数の波長域のそれぞれに対応した、明度に依存しないように規格化した画素値の分布について、各ピーク画素値での、該ピーク画素値の波長域と異なる波長域の規格化画素値が略0になるように、各規格化画素値から所定値をオフセット値として減算し、該減算の後に、該比の値に基づいて、該範囲内での参照光位置を決定する。   In a third aspect of the surface inspection apparatus according to the present invention, in the second aspect, the first processing means of the image processing means does not depend on lightness corresponding to each of the plurality of wavelength ranges with respect to a reference light position. The distribution of pixel values normalized to a predetermined value from each normalized pixel value so that the normalized pixel value in a wavelength region different from the wavelength region of the peak pixel value at each peak pixel value is substantially zero. Subtraction is performed as an offset value, and after the subtraction, a reference light position within the range is determined based on the value of the ratio.

本発明による表面検査装置の第4態様では、第3態様において、基準位置からの参照光位置が該比の値に比例するように該比の値に乗ぜられる補正値を、明度に依存しないように規格化した最大画素値の関数又は該比の関数として近似的に求めるための情報が格納された記憶手段をさらに備え、
該画像処理手段の該第1処理手段は、該比の値に該補正値を乗じて、該参照光位置を決定する。
In the fourth aspect of the surface inspection apparatus according to the present invention, in the third aspect, the correction value multiplied by the ratio value so that the reference light position from the reference position is proportional to the ratio value does not depend on the lightness. Further comprising storage means for storing information for obtaining approximately as a function of the maximum pixel value normalized to or a function of the ratio,
The first processing unit of the image processing unit determines the reference light position by multiplying the ratio value by the correction value.

本発明による表面検査装置の第5態様では、第1態様において、該撮像手段で撮像される画像の、該複数の波長域のそれぞれの該輝度分布に対応した、該量に対する画素値分布について、同一参照光位置に対応した、該複数の波長域のそれぞれの画素値のうちの最大画素値の、明度に依存しないように規格化したものの分布を、近似的に求めるための第1情報が格納された第1近似式情報記憶手段をさらに備え、
該画像処理手段の該第1処理手段は、該第1情報に基づく、該最大画素値の規格化画素値分布の近似式における該範囲内での規格化最大画素値に対応した参照光位置を求める。
In a fifth aspect of the surface inspection apparatus according to the present invention, in the first aspect, the pixel value distribution with respect to the amount corresponding to the luminance distribution of each of the plurality of wavelength regions of the image captured by the imaging unit, First information for approximating the distribution of the maximum pixel value of each of the plurality of wavelength ranges corresponding to the same reference light position, normalized so as not to depend on lightness, is stored. A first approximate expression information storage means,
The first processing means of the image processing means calculates a reference light position corresponding to the normalized maximum pixel value within the range in the approximate expression of the normalized pixel value distribution of the maximum pixel value based on the first information. Ask.

本発明による表面検査装置の第6態様では、第2乃至5態様のいずれか1つにおいて、該照明手段は、該波長域が互いに異なる複数の帯状光源が複数組並設され、組毎に該輝度分布が異なり、該複数の組について互いに対応する組内参照光位置に対する該画像の画素値の比が該組内参照光位置によらず略一定であり、
該参照光位置に対する、同一参照光位置に対応した、該複数の波長域のそれぞれの画素値に基づく明度の分布を各組について近似的に求めるための、又は、明度に関し隣り合う組の明度分布を区別する境界線を近似的に求めるための第2情報が格納された第2近似式情報記憶手段を備え、
該画像処理手段は、同一参照光位置に対応する、該複数の波長域のそれぞれに対応した画素値を該組に依存しないように規格化して該第1処理手段により組内の該参照光位置を求め、
該画像処理手段はさらに、該第2情報に基づく、該明度の分布又は該境界線の近似式と該組内の参照光位置とに基づいて該組内の参照光位置がどの組であるかを決定し、該組内の参照光位置と該決定した組とに基づいて、全範囲における参照光位置を求める第2処理手段を有する。
In a sixth aspect of the surface inspection apparatus according to the present invention, in any one of the second to fifth aspects, the illuminating unit includes a plurality of strip-shaped light sources having different wavelength ranges arranged in parallel. The luminance distribution is different, and the ratio of the pixel value of the image to the in-group reference light position corresponding to each other for the plurality of sets is substantially constant regardless of the in-group reference light position,
Lightness distribution of the sets adjacent to each other with respect to the lightness, or approximately the lightness distribution based on the respective pixel values of the plurality of wavelength ranges corresponding to the same light reference position, A second approximate expression information storage means storing second information for approximately obtaining a boundary line for distinguishing between
The image processing means normalizes the pixel values corresponding to each of the plurality of wavelength ranges corresponding to the same reference light position so as not to depend on the set, and the first processing means performs the reference light position in the set. Seeking
The image processing means further determines which set of reference light positions in the set is based on the brightness distribution or the approximate expression of the boundary line based on the second information and the reference light position in the set. And second processing means for determining the reference light position in the entire range based on the reference light position in the set and the determined set.

上記第1態様の構成によれば、複数の帯状光源の光源面上の、帯状光源長手方向と直角な方向の線に沿った参照光位置に対する輝度分布が、該複数の帯状光源のそれぞれについて帯状光源面の中点から離れるにつれて輝度が小さくなり、且つ、隣り合う帯状光源の輝度分布が少なくとも輝度のピーク位置まで重なり合うように構成され、同一参照光位置に対応する、該複数の波長域のそれぞれに対応した画素値について、最大画素値の波長域と2番目に大きい画素値の波長域との組み合わせに基づいて参照光位置が含まれる範囲を決定し、該最大画素値に基づいて又は該最大画素値と該2番目に大きい画素値とに基づいて、該範囲内での参照光位置を決定し、参照光位置と該角度との関係とに基づいて、該角度を求めるので、角度検出感度を向上させることができるという効果を奏する。   According to the configuration of the first aspect, the luminance distribution with respect to the reference light position along the line perpendicular to the longitudinal direction of the strip light source on the light source surface of the plurality of strip light sources is strip-shaped for each of the plurality of strip light sources. Each of the plurality of wavelength ranges corresponding to the same reference light position is configured such that the brightness decreases as it moves away from the midpoint of the light source surface, and the brightness distribution of the adjacent strip light sources overlaps at least to the peak position of the brightness. Is determined based on the combination of the wavelength range of the maximum pixel value and the wavelength range of the second largest pixel value, and the range including the reference light position is determined based on the maximum pixel value or the maximum pixel value. The reference light position within the range is determined based on the pixel value and the second largest pixel value, and the angle is obtained based on the relationship between the reference light position and the angle. The An effect that it is possible to above.

上記第2態様の構成によれば、該2番目に大きい画素値と該最大画素値との比の値に基づいて、該範囲内での該参照光位置を決定するので、画素値分布の全範囲について、角度検出感度を向上させつつ角度検出感度のむらを低減することが可能となるという効果を奏する。   According to the configuration of the second aspect, the reference light position in the range is determined based on the ratio value between the second largest pixel value and the maximum pixel value. With respect to the range, there is an effect that it is possible to reduce the unevenness of the angle detection sensitivity while improving the angle detection sensitivity.

上記第3態様の構成によれば、参照光位置に対する、該複数の波長域のそれぞれに対応した規格化画素値の分布について、各ピーク画素値での、該ピーク画素値の波長域と異なる波長域の画素値が略0になるように、各規格化画素値から所定値をオフセット値として減算し、該減算の後に、該比の値に基づいて、該範囲内での参照光位置を決定するので、SN比の低い信号を除去して角度検出誤差を低減できるとともに、計算が簡単になって画像処理速度を向上させることもできるという効果を奏する。   According to the configuration of the third aspect, with respect to the distribution of standardized pixel values corresponding to each of the plurality of wavelength regions with respect to the reference light position, the wavelength different from the wavelength region of the peak pixel value at each peak pixel value A predetermined value is subtracted from each normalized pixel value as an offset value so that the pixel value of the area becomes substantially zero, and after the subtraction, the reference light position within the range is determined based on the value of the ratio Therefore, it is possible to reduce the angle detection error by removing a signal having a low S / N ratio, and it is possible to simplify the calculation and improve the image processing speed.

上記第4態様の構成によれば、該比の値に補正値を乗じて参照光位置を決定するので、角度検出感度のむらをさらに低減することができるという効果を奏する。   According to the configuration of the fourth aspect, since the reference light position is determined by multiplying the value of the ratio by the correction value, there is an effect that unevenness in angle detection sensitivity can be further reduced.

上記第5態様の構成によれば、同一参照光位置に対応した、該複数の波長域のそれぞれの画素値のうちの最大画素値の規格化画素値分布を近似的に求めるための第1情報に基づく、該最大画素値の規格化画素値分布の近似式における該範囲内での規格化最大画素値に対応した参照光位置を求めるので、より高いSN比で角度を検出することができ、これにより角度検出感度を向上させることができるという効果を奏する。   According to the configuration of the fifth aspect, the first information for approximately obtaining the normalized pixel value distribution of the maximum pixel value among the pixel values of the plurality of wavelength ranges corresponding to the same reference light position. The reference light position corresponding to the standardized maximum pixel value within the range in the approximate expression of the standardized pixel value distribution of the maximum pixel value based on is obtained, so that the angle can be detected with a higher SN ratio, As a result, the angle detection sensitivity can be improved.

上記第6態様の構成によれば、該波長域が互いに異なる複数の帯状光源が複数組並設され、組毎に該輝度分布が異なり、該複数の組について互いに対応する組内参照光位置に対する該画像の画素値の比が該組内参照光位置によらず略一定である照明手段を備え、同一参照光位置に対応する、該複数の波長域のそれぞれに対応した画素値を該組に依存しないように規格化して第1処理手段により組内の該参照光位置を求め、第2情報に基づく、明度の分布又はその境界線の近似式と該組内の参照光位置とに基づいて該組内の参照光位置がどの組であるかを決定し、該組内の参照光位置と該決定した組とに基づいて、全範囲における参照光位置を求めるので、角度検出感度を向上させるとともに検出可能な角度範囲を広くすることができるという効果を奏する。   According to the configuration of the sixth aspect, a plurality of band-shaped light sources having different wavelength ranges are arranged in parallel, the luminance distribution is different for each group, and the plurality of sets correspond to the in-group reference light positions corresponding to each other. Illumination means in which a ratio of pixel values of the image is substantially constant regardless of the reference light position in the set, and pixel values corresponding to each of the plurality of wavelength ranges corresponding to the same reference light position are assigned to the set The reference light position in the set is obtained by normalization so as not to depend on the first processing means, and based on the distribution of brightness or an approximate expression of the boundary line based on the second information and the reference light position in the set Since the reference light position in the set is determined and the reference light position in the entire range is obtained based on the reference light position in the set and the determined set, the angle detection sensitivity is improved. And the detectable angle range can be widened Achieve the results.

本発明の他の目的、特徴的な構成及び効果は、以下の説明を特許請求の範囲及び図面の記載と関係づけて読むことにより明らかになる。   Other objects, characteristic configurations and effects of the present invention will become apparent from the following description read in connection with the appended claims and the drawings.

本発明の実施例1に係る表面検査装置の概略構成図である。It is a schematic block diagram of the surface inspection apparatus which concerns on Example 1 of this invention. 主に撮像装置の概略構成を示す照明撮像装置概略斜視図である。It is a schematic perspective view of an illumination imaging apparatus mainly showing a schematic configuration of the imaging apparatus. (A)は照明装置の概略構成を示す側面図、(B)は(A)中のLEDアレイ部の正面図である。(A) is a side view which shows schematic structure of an illuminating device, (B) is a front view of the LED array part in (A). 図3中の任意の同色LED1列の接続図である。FIG. 4 is a connection diagram of arbitrary one color LED row in FIG. 3. (A)は光源面上の走査方向に沿った参照光位置Xに対するR、G、Bのそれぞれの輝度Yを示す線図であり、(B)は検査面の角度を変えて参照光位置Xを図1のAB間で変化させたときの撮像装置のR、G、Bに対応したラインセンサのそれぞれの特定点画素値の変化を示す線図であり、(C)は(B)のデータに基づいた、参照光位置Xに対する明度を示す線図である。(A) is a diagram showing the luminance Y of each of R, G, and B with respect to the reference light position X along the scanning direction on the light source surface, and (B) shows the reference light position X by changing the angle of the inspection surface. 2 is a diagram showing changes in pixel values of specific points of line sensors corresponding to R, G, and B of the imaging apparatus when A is changed between AB in FIG. 1, and (C) is data of (B) It is a diagram which shows the brightness with respect to the reference light position X based on this. (A)は画素値に基づいて周期内参照光位置xを決定する方法を説明する線図であり、(B)は(A)の画素値を規格化した線図であり、(C)は(B)の各周期内参照光位置xに対応した、R、B、Gのうちの最大画素値の線図であり、(D)は周期内参照光位置xに対する各周期での明度Vを示す線図である。(A) is a diagram explaining a method for determining a reference light position x within a period based on a pixel value, (B) is a diagram obtained by normalizing the pixel value of (A), and (C) is a diagram. It is a diagram of the maximum pixel value among R, B, and G corresponding to the reference light position x in each cycle in (B), and (D) shows the brightness V in each cycle with respect to the reference light position x in the cycle. FIG. 図1の検査点角度検出部で実行される、R、G、Bの画素値から検査ライン上の任意の点の傾斜角を求める処理の概略フローチャートである。2 is a schematic flowchart of processing for obtaining an inclination angle of an arbitrary point on an inspection line from R, G, and B pixel values, which is executed by the inspection point angle detection unit of FIG. 1. 検査面に対し照明装置と撮像装置とを一体的に図示矢印方向へ相対的に移動させたときに、撮影画像に対応した光源面上の参照光位置Xが変化する様子を示す説明図である。It is explanatory drawing which shows a mode that the reference light position X on the light source surface corresponding to a picked-up image changes, when an illuminating device and an imaging device are integrally moved relatively to the illustration arrow direction with respect to a test | inspection surface. . 検査面に対し照明装置と撮像装置とを一体的に図示矢印方向へ相対的に移動させたときに、撮影画像に対応した光源面上の参照光位置Xが変化する様子を示す説明図である。It is explanatory drawing which shows a mode that the reference light position X on the light source surface corresponding to a picked-up image changes, when an illuminating device and an imaging device are integrally moved relatively to the illustration arrow direction with respect to a test | inspection surface. . (A)は検査面上の凹凸部側面図、(B)はこの凹凸部を図8及び図9のように走査したときに図1の角度情報記憶部に格納される角度分布の説明図である。(A) is a side view of the uneven portion on the inspection surface, and (B) is an explanatory view of the angle distribution stored in the angle information storage portion of FIG. 1 when the uneven portion is scanned as shown in FIGS. is there. 本発明の実施例2に係り、(A)は照明装置の概略構成を示す側面図、(B)は(A)中のNDフィルタのAB間の透過率を示す特性図、(C)は参照光位置Xを(A)のAB間で変化させたときのR、B及びGに対応したラインセンサのそれぞれの特定点画素値の変化を示す線図であり、(C)は光整形拡散板上の参照光位置Xに対する明度を示す線図である。(A) is a side view showing a schematic configuration of a lighting device, (B) is a characteristic diagram showing transmittance between AB of an ND filter in (A), and (C) is a reference relating to Example 2 of the present invention. It is a diagram which shows the change of the pixel value of each specific point of the line sensor corresponding to R, B, and G when changing the light position X between AB of (A), (C) is a light shaping diffuser plate It is a diagram which shows the brightness with respect to the upper reference light position X. FIG. 本発明の実施例3に係り、(A)はオフセット減算説明図、(B)は各画素から(A)のオフセットを減算した後の、周期内参照光位置xに対する画素値分布を示す線図、(C)及び(D)は近似計算説明図である。FIG. 4A is an explanatory diagram of offset subtraction according to a third embodiment of the present invention, and FIG. 5B is a diagram illustrating a pixel value distribution with respect to an intra-period reference light position x after subtracting the offset of (A) from each pixel. , (C) and (D) are approximate calculation explanatory diagrams. (A)〜(C)はいずれも背景技術の問題点説明図であって、照明装置の参照光位置Xに対する輝度分布を示す線図である。(A)-(C) are all explanatory drawing of the problem of background art, Comprising: It is a diagram which shows the luminance distribution with respect to the reference light position X of an illuminating device.

図1は、本発明に係る表面検査装置の実施例を示す概略構成図である。   FIG. 1 is a schematic configuration diagram showing an embodiment of a surface inspection apparatus according to the present invention.

検査面10は、例えば車の塗装面であり、その微細な凹凸欠陥を検出するために、照明装置20と撮像装置30とを備えた照明撮像装置LIDが不図示のロボットアームに取り付けられている。検査面10に対し照明装置20と撮像装置30とを一体的に図示矢印方向へ相対的に移動させながら、照明装置20から射出した光の検査面10上の正反射光を、撮像装置30で撮像する。   The inspection surface 10 is, for example, a painted surface of a car, and an illumination imaging device LID provided with an illumination device 20 and an imaging device 30 is attached to a robot arm (not shown) in order to detect the fine unevenness defect. . While the illuminating device 20 and the imaging device 30 are integrally moved relative to the inspection surface 10 in the direction of the arrow shown in FIG. Take an image.

図3(A)は、照明装置20の概略構成を示す側面図である。図3(B)は照明装置20を構成するLEDアレイ部の正面図である。   FIG. 3A is a side view illustrating a schematic configuration of the lighting device 20. FIG. 3B is a front view of the LED array portion constituting the illumination device 20.

照明装置20では、矩形の熱伝導良導体である基板22上に、複数のLEDランプ23が列間を狭められるように千鳥格子状に配設されている。各LEDランプ23は、基板22に固着された小基板230と、小基板230上に固着されたLED231と、LED231のアノードとカソードにそれぞれ導通した端子部とを備えている。LEDアレイは、図3中にR(赤)、G(緑)及びB(青)で示す、波長域が比較的狭い単色のR列、G列及びB列がこの順に、周期的に配置されてLEDアレイ部が構成されている。全てのR列は製造上のばらつきを除き互いに同一特性のLEDを備え、G列及びB列についても同様である。   In the lighting device 20, a plurality of LED lamps 23 are arranged in a staggered pattern on a substrate 22 that is a rectangular heat conductive good conductor so as to narrow the space between rows. Each LED lamp 23 includes a small substrate 230 fixed to the substrate 22, an LED 231 fixed on the small substrate 230, and terminal portions respectively connected to the anode and the cathode of the LED 231. In the LED array, R (red), G (green), and B (blue) in FIG. 3, monochromatic R rows, G rows, and B rows having relatively narrow wavelength ranges are periodically arranged in this order. The LED array unit is configured. All R rows are provided with LEDs having the same characteristics except for manufacturing variations, and the same applies to the G row and the B row.

3色LED列240〜246はいずれも、1組の互いに接近したR列、G列及びB列からなる。LEDアレイ部に対向して透明基板25が並設され、透明基板25上にシート状の光整形拡散板26が接合されている。透明基板25のLED側の面の走査方向両端部には、LEDアレイの一端部のR列及び他端部のB列のそれぞれの半分を遮光するように遮光板270、271が接着されている。図3中の位置A及びBはそれぞれ、図1、図2、図8及び図9中の位置A、Bに対応している。   Each of the three-color LED rows 240 to 246 includes a pair of R row, G row, and B row that are close to each other. A transparent substrate 25 is juxtaposed facing the LED array portion, and a sheet-shaped light shaping diffusion plate 26 is bonded onto the transparent substrate 25. Light shielding plates 270 and 271 are bonded to both ends in the scanning direction of the LED side surface of the transparent substrate 25 so as to shield each half of the R row at one end and the B row at the other end of the LED array. . Positions A and B in FIG. 3 correspond to positions A and B in FIGS. 1, 2, 8, and 9, respectively.

各LED列は図4に示すように、隣合うLED231が直列接続され、これに更に可変抵抗器28が直列接続され、この直列接続回路に所定の定電圧が印加され、可変抵抗器28の抵抗値によりLED列の発光量が調整される。図1中の輝度調整装置28Gは、各LED列の可変抵抗器28を備えている。   As shown in FIG. 4, adjacent LED 231 is connected in series to each LED row, and a variable resistor 28 is further connected in series to this, and a predetermined constant voltage is applied to this series connection circuit, and the resistance of the variable resistor 28 is The light emission amount of the LED array is adjusted by the value. The brightness adjusting device 28G in FIG. 1 includes a variable resistor 28 for each LED row.

光整形拡散板26(Light Shaping Diffusers)は、光をその屈折機能で拡散させるとともに整形するものであり、例えば、サーフェス・レリーフ・ホログラムパターンにより、表面にマイクロレンズのようなものをランダムに形成したものである。光整形拡散板26は、同一色のLED列の方向の拡散角がこれと直角な方向のそれよりも充分大きくなるように光を整形して、光整形拡散板26上でのLED列に平行な方向の線上で輝度が略均一になるようにする。これにより、各LED列に対応して光整形拡散板26の面に帯状光源が形成される。ここで拡散角とは、輝度が最大値の半分になる全角であり、LEDの放射角に依存する。   The light shaping diffuser 26 is for diffusing and shaping light by its refraction function. For example, a surface, a relief, or a hologram pattern is used to randomly form a microlens on the surface. Is. The light shaping diffusion plate 26 shapes the light so that the diffusion angle in the direction of the LED row of the same color is sufficiently larger than that in the direction perpendicular thereto, and is parallel to the LED row on the light shaping diffusion plate 26. The luminance is made substantially uniform on a line in a different direction. Thereby, a strip-shaped light source is formed on the surface of the light shaping diffusion plate 26 corresponding to each LED row. Here, the diffusion angle is a full angle at which the luminance is half of the maximum value, and depends on the emission angle of the LED.

照明装置20は、複数の帯状光源の光源面上の、帯状光源長手方向と直角な方向の線に沿った参照光位置Xに対する輝度分布、即ちAB間の輝度分布が、該複数の帯状光源のそれぞれについて帯状光源面の中点から離れるにつれて輝度が小さくなり、且つ、隣り合う帯状光源の輝度分布が少なくとも輝度のピーク位置まで重なり合うように構成されており、この輝度分布は、例えば図5(A)に示す如くなる。   The illumination device 20 has a luminance distribution with respect to the reference light position X along a line perpendicular to the longitudinal direction of the strip light source on the light source surface of the plurality of strip light sources, that is, a luminance distribution between ABs. For each, the luminance decreases as the distance from the middle point of the band-shaped light source surface increases, and the luminance distribution of the adjacent band-shaped light sources overlaps at least to the peak position of the luminance. ) As shown.

輝度のピーク値に関しては、このように3色LED列毎に段階的に変化するように、輝度調整装置28Gが調整される。図5(A)中のR0、G0及びB0はそれぞれ3色LED列240のR列、G列及びB列に対応した帯状面光源の輝度分布曲線であり、R1、G1及びB1はそれぞれ3色LED列241のR列、G列及びB列に対応した帯状面光源の輝度分布である。   Regarding the luminance peak value, the luminance adjusting device 28G is adjusted so as to change stepwise for each of the three-color LED rows. In FIG. 5A, R0, G0, and B0 are the luminance distribution curves of the band-like surface light sources corresponding to the R row, G row, and B row of the three-color LED row 240, respectively, and R1, G1, and B1 are each three colors. It is a luminance distribution of the strip-shaped surface light source corresponding to the R row, G row, and B row of the LED row 241.

次に、撮像装置30の概略構成を、図2を参照して説明する。   Next, a schematic configuration of the imaging device 30 will be described with reference to FIG.

撮像装置30では、検査面10上の検査ライン12で反射された光が結像レンズ300を介してダイクロイックプリズム301でR、B及びGの光に分光され、それぞれラインセンサ30R、30G及び30B上に結像される。検査ライン12での正反射に対応した入射光の、図1に示す光源面21の走査方向AB間における位置(参照光位置)は、検査面10上の検査ライン12での角度により定まる。例えば、検査ライン12の位置の凹凸部の接平面S0〜S2に、光源面21上の参照光点RP0〜RP2が対応する。接平面の角度を連続的に一方向へ変化させたときの、光源面21上のAB間の例えば中央ラインに対応する、ラインセンサ30R、30G及び30Bのそれぞれの中央点画素値は、図5(B)に示すように変化する。   In the imaging device 30, the light reflected by the inspection line 12 on the inspection surface 10 is split into R, B, and G light by the dichroic prism 301 via the imaging lens 300, and the light is reflected on the line sensors 30 R, 30 G, and 30 B, respectively. Is imaged. The position (reference light position) of the incident light corresponding to the regular reflection at the inspection line 12 in the scanning direction AB of the light source surface 21 shown in FIG. 1 is determined by the angle at the inspection line 12 on the inspection surface 10. For example, the reference light spots RP0 to RP2 on the light source surface 21 correspond to the tangent planes S0 to S2 of the uneven portion at the position of the inspection line 12. The center point pixel values of the line sensors 30R, 30G, and 30B corresponding to, for example, the center line between AB on the light source surface 21 when the angle of the tangent plane is continuously changed in one direction are shown in FIG. It changes as shown in (B).

図5(B)中のDR0、DG0、DB0、DR1、DG1及びDB1はそれぞれ、図5(A)中のR0、G0、B0、R1、G1及びB1に対応している。図5(B)中の横軸は、図5(A)と同じく図1のAB間の参照光位置Xである。   DR0, DG0, DB0, DR1, DG1, and DB1 in FIG. 5B correspond to R0, G0, B0, R1, G1, and B1 in FIG. 5A, respectively. The horizontal axis in FIG. 5B is the reference light position X between AB in FIG. 1 as in FIG.

実際には、光源面21からの射出角に依存する輝度や、検査ライン12での反射角や、波長に依存する反射率等のパラメータで、参照光位置Xに対応した画素値が異なるが、結果として図5(B)のような関係が成立するように、輝度調整装置28Gを調整する。図5(A)は、説明の簡単化のために上記パラメータを無視して表したものである。   Actually, the pixel value corresponding to the reference light position X differs depending on parameters such as the luminance depending on the emission angle from the light source surface 21, the reflection angle on the inspection line 12, and the reflectance depending on the wavelength. As a result, the brightness adjusting device 28G is adjusted so that the relationship as shown in FIG. FIG. 5A shows the above parameters ignored for simplicity of explanation.

図5(B)中の小黒点は、1周期内参照光位置xが互いに等しい任意の点を示す。これらの点が、点線で示す1直線上に存在するように、輝度調整装置28Gが調整されている(実際の調整結果は、許容範囲内でこれらの点が略1直線上に存在すればよい)。このような規則的な周期性を利用して、参照光位置Xの計算を、後述のように簡単化している。   A small black dot in FIG. 5B indicates an arbitrary point in which the reference light positions x in one cycle are equal to each other. The brightness adjusting device 28G is adjusted so that these points are on a straight line indicated by a dotted line (the actual adjustment result is that these points should be on a substantially straight line within an allowable range. ). Utilizing such regular periodicity, the calculation of the reference beam position X is simplified as will be described later.

図3(A)で遮光板270及び271を設けた理由は、端部領域においてもSN比を所定値以上に保つことにより参照光位置xの検出誤差を低減するとともに、周期性を確保して、処理を簡単化するためである。図6(A)は図5(B)中の1周期分を示す。   The reason why the light shielding plates 270 and 271 are provided in FIG. 3A is that the detection error of the reference light position x is reduced and the periodicity is ensured by keeping the SN ratio equal to or higher than the predetermined value even in the end region. This is to simplify the processing. FIG. 6A shows one cycle in FIG.

次に、本実施例での参照光位置決定原理を説明する。本実施例では参照光位置Xを2段階で求める。第1段階では、図6(A)に示す1周期内の参照光位置xを求め、第2段階ではこの周期内参照光位置xが、図5(C)に示す画素明度分布のどの周期i(iは図5(C)に示す0〜4の範囲の整数値)に含まれるかを決定し、この周期iの始点位置Xiに周期内参照光位置xを加算したXi+xを、参照光位置Xとして求める。すなわち、階層的に参照光位置Xを決定する。ここに画素明度Vは、簡単化のためV=DR+DG+DBとする。明度Vは、ラインセンサ30R、30B及び30Gの相対的感度に応じてR、G、Bの画素値に重み付けしたものであってもよい。   Next, the principle of determining the reference light position in this embodiment will be described. In this embodiment, the reference light position X is obtained in two stages. In the first stage, the reference light position x in one cycle shown in FIG. 6A is obtained, and in the second stage, the reference light position x in the period is determined by which period i of the pixel brightness distribution shown in FIG. (I is an integer value in the range of 0 to 4 shown in FIG. 5C) is determined, and Xi + x obtained by adding the intra-period reference light position x to the start position Xi of the period i is referred to as the reference light position. Find as X. That is, the reference light position X is determined hierarchically. Here, the pixel brightness V is set to V = DR + DG + DB for simplification. The brightness V may be obtained by weighting the R, G, and B pixel values in accordance with the relative sensitivities of the line sensors 30R, 30B, and 30G.

1).第1段階
1周期内参照光位置xに対応するR、B、Gの1組の画素値のうち、画素値が大きいほどSN比が大きい。検出誤差を小さくするために、この最大画素値のみを用いて周期内参照光位置xを求めたい。図6(A)において、例えばBの画素値が最大でこの値がD0である場合、Bの画素値がD0となる周期内参照光位置xは、2点存在する。R、B、Gの1組の画素値のうち2番目に大きい画素値がGであれば登り曲線上の画素値に対応する周期内参照光位置xを求め、Rであれば下り曲線上の画素値に対応する周期内参照光位置xを求める。
1). First Stage Of the set of R, B, and G pixel values corresponding to the reference light position x in one cycle, the SN ratio increases as the pixel value increases. In order to reduce the detection error, it is desired to obtain the in-period reference light position x using only this maximum pixel value. In FIG. 6A, for example, when the B pixel value is maximum and this value is D0, there are two reference light positions x in the period where the B pixel value becomes D0. If the second largest pixel value of a set of pixel values of R, B, and G is G, the in-period reference light position x corresponding to the pixel value on the uphill curve is obtained, and if R, R is on the down curve. An intra-period reference light position x corresponding to the pixel value is obtained.

これを一般化すれば、図6(A)に示すように、R、G、Bの画素値のピーク点P0、P1、P2、P3のxと、隣り合うピーク点間の画素値の交点C0、C1、C2のxとを境界点とする6つの領域に、1周期を分割する。そして、図6(C)に示すようなRGB1組内最大画素値の曲線を、曲線、折れ線又は直線で近似するための複数の画素値を、予め測定し、周期内参照光位置xと対応させておき、次のようにして周期内参照光位置xを求める。   If this is generalized, as shown in FIG. 6A, the pixel value intersection point C0 between the peak points P0, P1, P2, and P3 of the R, G, and B pixel values and the adjacent peak points. , C1, and C2 are divided into six regions having a boundary point as one boundary. Then, a plurality of pixel values for approximating the curve of the maximum pixel value in the RGB1 set as shown in FIG. 6C with a curve, a broken line or a straight line are measured in advance, and are associated with the reference light position x in the period. The in-period reference light position x is obtained as follows.

図6(C)は、どの周期であるかに依らず一律的に周期内参照光位置xを求めるために、周期内参照光位置xに対応したR、G及びBの画素値DR、DG及びDBが規格化されている。種々の規格化が考えられるが、本実施例では、これらDR、DG及びDBをそれぞれ、r=DR/V、g=DG/V、b=DB/Vと明度に依存しないよう規格化する。   FIG. 6C shows the R, G, and B pixel values DR, DG, and R corresponding to the intra-period reference light position x in order to obtain the intra-period reference light position x uniformly regardless of the period. DB is standardized. Various standardizations are conceivable, but in this embodiment, these DR, DG, and DB are standardized so as not to depend on lightness, such as r = DR / V, g = DG / V, and b = DB / V, respectively.

(1)最大画素値がRであれば領域A0又はA6であると決定し、2番目に大きい画素値がGであれば領域A0、すなわち曲線P0−C0上の点であるとして周期内参照光位置xを求め、2番目に大きい画素値がBであれば領域A6、すなわち曲線C2−P3上の点であるとして周期内参照光位置xを求める。   (1) If the maximum pixel value is R, it is determined that the region is A0 or A6. If the second largest pixel value is G, the region A0, that is, a point on the curve P0-C0, is regarded as a point on the cycle. The position x is obtained, and if the second largest pixel value is B, the in-period reference light position x is obtained assuming that the point is on the area A6, that is, the curve C2-P3.

(2)最大画素値がGであれば領域A1又はA2であると決定し、2番目に大きい画素値がRであれば領域A1、すなわち曲線C0−P1上の点であるとして周期内参照光位置xを求め、2番目に大きい画素値がBであれば領域A2、すなわち曲線P1−C1上の点であるとして周期内参照光位置xを求める。   (2) If the maximum pixel value is G, it is determined that the region is A1 or A2, and if the second largest pixel value is R, the region A1, that is, a point on the curve C0-P1, is assumed to be a point on the cycle. The position x is obtained, and if the second largest pixel value is B, the intra-period reference light position x is obtained assuming that the point is on the area A2, that is, the curve P1-C1.

以下同様であり、以上のことから容易に理解できるので、その説明を省略する。   The same applies to the following, and can be easily understood from the above description, so the description thereof is omitted.

なお、隣り合うピーク点間の画素値の交点C0、C1、C2の高さは、勾配が比較的大きく且つSN比が比較的大きい部分を用いた方が角度検出感度を高くすることができることから、ピーク点の略半値であることが好ましい。   Note that the heights of the intersections C0, C1, and C2 of pixel values between adjacent peak points can increase the angle detection sensitivity by using a portion having a relatively large gradient and a relatively large SN ratio. It is preferably about half the peak point.

2).第2段階
図6(D)は、図5(C)を、図6(C)に対応して1周期に纏めて表したものである。周期内参照光位置xでの明度V(x)が、どの曲線に最も近いかを判定することで、周期内参照光位置xがどの周期であるかを決定する。換言すれば、図6(D)中の上下に隣り合う曲線の中点を結ぶ曲線を図6(E)に示すような周期判定用境界線とし、どの境界線間(V=0とV=∞の境界線も想定する。)に明度V(x)が含まれるかで、周期内参照光位置xがどの周期であるかを決定する。
2). Second Stage FIG. 6 (D) shows FIG. 5 (C) in one period corresponding to FIG. 6 (C). By determining which curve the lightness V (x) at the intra-period reference light position x is closest to, the period of the intra-period reference light position x is determined. In other words, a curve connecting the midpoints of adjacent curves in FIG. 6D is a boundary line for period determination as shown in FIG. 6E, and between which boundary lines (V = 0 and V = The period of the reference light position x in the period is determined based on whether the brightness V (x) is included in the boundary line ∞.

以上のような参照光位置決定原理によれば、波長域が互いに異なる山形輝度分布が互いに重なり合うように帯状面光源を構成し、各波長域の撮影画像の該山形輝度分布に対応する画素値分布に基づいて検査面の角度を検出するので、従来の図13(A)に示すような勾配よりも大きな勾配を用いることができ、これにより検出願度が向上するという効果を奏する。さらに、周期毎に明度Vを異ならせて周期内参照光位置xがどの周期であるかを決定するので、検査可能な角度範囲を広げることができるという効果を奏する。   According to the reference light position determination principle as described above, the band-shaped surface light source is configured so that the mountain-shaped luminance distributions having different wavelength regions overlap each other, and the pixel value distribution corresponding to the mountain-shaped luminance distribution of the captured image in each wavelength region Since the angle of the inspection surface is detected based on the above, a gradient larger than the conventional gradient shown in FIG. 13A can be used, and this brings about the effect that the detection desire rate is improved. Furthermore, since the lightness V is varied for each period to determine which period the reference light position x within the period is, the effect of widening the inspectable angle range is achieved.

図1に戻って、入力部41は、制御部40に対する設定値及び指示の入力用であり、表示部42はこの入力を対話的に行うと共に指示に応じて欠陥情報等を表示させるためのものである。近似式情報記憶部43には、上述の図6(C)及び、図6(D)又は図6(E)の曲線を、曲線、折れ線又は直線で近似的に決定するための曲線近似情報として、測定点(x,d)及び(V,x)が複数格納されている。すなわち、近似式情報記憶部43には、撮像装置30で撮像される画像の、複数の波長域のそれぞれの輝度分布に対応した、xに対する画素値分布について、同一参照光位置xに対応した、該複数の波長域のそれぞれの画素値のうちの最大画素値の画素値分布を近似的に求めるための情報と、xに対する明度Vの分布又は明度に関し隣り合う組の明度分布を区別する境界線を各周期について近似的に求めるための情報とが格納されている。   Returning to FIG. 1, the input unit 41 is for inputting set values and instructions to the control unit 40, and the display unit 42 is used to interactively perform this input and display defect information and the like according to the instructions. It is. In the approximate expression information storage unit 43, as the curve approximation information for approximately determining the curve of FIG. 6C and FIG. 6D or 6E as a curve, a broken line, or a straight line. A plurality of measurement points (x, d) and (V, x) are stored. That is, the approximate expression information storage unit 43 corresponds to the same reference light position x with respect to the pixel value distribution with respect to x corresponding to the luminance distribution of each of a plurality of wavelength ranges of the image captured by the imaging device 30. Information for approximately obtaining the pixel value distribution of the maximum pixel value among the pixel values of the plurality of wavelength ranges, and a boundary line for distinguishing between the distribution of the brightness V with respect to x or the brightness distribution of adjacent groups with respect to the brightness Is stored for the purpose of approximating for each period.

通常、参照光位置xに対応した規格化画素値分布が、該複数の波長域について略同一であり、また、画素分布がピーク値の軸に関し対称であるので、近似式情報を大幅に削減することができる。   Usually, the normalized pixel value distribution corresponding to the reference light position x is substantially the same for the plurality of wavelength ranges, and the pixel distribution is symmetric with respect to the axis of the peak value, so that the approximate expression information is greatly reduced. be able to.

参照光位置xの替わりに、xに対応した量、例えば基準面に対する検査ライン12での角度であってもよい。この情報は、近似式の係数などであってもよいことは勿論である。   Instead of the reference light position x, an amount corresponding to x, for example, an angle at the inspection line 12 with respect to the reference plane may be used. Of course, this information may be a coefficient of an approximate expression.

制御部40は、不図示のロボットアームから、検査面10に対する照明撮像装置LIDの位置情報を取得する。制御部40は、撮像装置30に制御信号を供給して、ラインセンサ30R、30G及び30Bから画像データを画像メモリ44にDMA(ダイレクトメモリアクセス)転送させる。この転送後に、検査点角度検出部45に対するレディ信号を活性にする。検査点角度検出部45は、この活性化に応答して、各画素(R、G、Bの画素値DR、DG、DBの1組)について図7に示す処理を開始する。以下、括弧内は図中のステップ識別符号である。   The control unit 40 acquires position information of the illumination imaging device LID with respect to the inspection surface 10 from a robot arm (not shown). The control unit 40 supplies a control signal to the imaging device 30 to transfer image data from the line sensors 30R, 30G, and 30B to the image memory 44 by DMA (direct memory access). After this transfer, the ready signal for the inspection point angle detector 45 is activated. In response to this activation, the inspection point angle detection unit 45 starts the process shown in FIG. 7 for each pixel (one set of R, G, and B pixel values DR, DG, and DB). In the following, the step identification codes in the figure are in parentheses.

(S10)明度V=DR+DG+DBを求める。   (S10) The brightness V = DR + DG + DB is obtained.

(S11)画素値DR、DG及びDBを上述のように明度Vで規格化する。   (S11) The pixel values DR, DG, and DB are normalized with the brightness V as described above.

(S12)画素値DR、DG及びDBの間の大小関係と近似式情報記憶部43内の、図6(C)に対応した情報とに基づいて、上述のように周期内参照光位置xを決定する。   (S12) Based on the magnitude relationship among the pixel values DR, DG, and DB and the information corresponding to FIG. 6C in the approximate expression information storage unit 43, the intra-period reference light position x is determined as described above. decide.

(S13)明度Vの値と近似式情報記憶部43内の、図6(D)に対応した情報とに基づいて、周期内参照光位置xがどの周期iに属するかを決定する。すなわち、周期始点位置Xiを求める。   (S13) Based on the value of brightness V and the information corresponding to FIG. 6D in the approximate expression information storage unit 43, it is determined to which period i the intra-period reference light position x belongs. That is, the cycle start point position Xi is obtained.

(S14)実験又は計算により定めた、参照光位置Xと検査ライン12での基準面に対する傾斜角(検出角θ)との関係に基づいて、参照光位置Xをこの検出角θに変換する。   (S14) Based on the relationship between the reference light position X and the inclination angle (detection angle θ) with respect to the reference plane in the inspection line 12 determined by experiment or calculation, the reference light position X is converted into this detection angle θ.

検査点角度検出部45は、撮像装置30での画素位置に対応した検査ライン12上の各点での検出角θを、照明撮像装置LIDの位置・姿勢情報と共に角度情報記憶部46に格納し(第1段階の角度マップを角度情報記憶部46内に作成し)、制御部40に対し角度検出完了信号を活性にする。   The inspection point angle detection unit 45 stores the detection angle θ at each point on the inspection line 12 corresponding to the pixel position in the imaging device 30 in the angle information storage unit 46 together with the position / posture information of the illumination imaging device LID. (A first-stage angle map is created in the angle information storage unit 46), and an angle detection completion signal is activated for the control unit 40.

このような処理を、検査面10に対し照明撮像装置LIDを相対的に走査させながら繰り返すことにより、検査面10上の角度分布が角度情報記憶部46内に得られる。   By repeating such processing while scanning the illumination imaging device LID relative to the inspection surface 10, an angle distribution on the inspection surface 10 is obtained in the angle information storage unit 46.

表面欠陥検出部47は、上記処理と平行して、角度情報記憶部46内の情報に基づき、良面(検出角が比較的緩やかに変化する広い範囲の面)に対する欠陥点の角度を、両者の検出角度差により求める(第2段階の角度マップを角度情報記憶部46内に作成する)。   In parallel with the above processing, the surface defect detection unit 47 determines the angle of the defect point with respect to a good surface (a wide range of surfaces where the detection angle changes relatively slowly) based on information in the angle information storage unit 46. (A second-stage angle map is created in the angle information storage unit 46).

このような処理により、例えば図10(A)に示すような凹凸部11が形成された検査面10に対し、図8及び図9に示すように照明撮像装置LIDを矢印方向へ走査することにより、図10(B)に示すような角度情報を取得することができる。図10(B)は第2段階の角度マップの概略を視覚的に示すものであり、その升目は、検査面10上の、撮像装置30の対応する、R、G、Bの1組の画素点に対応している。図11(B)中の互いに異なるハッチングを施した部分は、互いに検出角が異なることを示している。白抜き部分は、良面を示している。図10(C)に示すような凹凸部11Aが形成された検査面10についての角度マップの概略を視覚的に図10(D)に示す。黒塗り部分は、傾斜角が大きいために参照光点が光源面21上に存在しなかった部分であり、その両側の角度分布から当該部分を判定でき、それぞれの側の角度より絶対値が大きい角度をこの角度マップに記入しておく。   By performing such processing, for example, the illumination imaging device LID is scanned in the direction of the arrow as shown in FIGS. 8 and 9 with respect to the inspection surface 10 on which the uneven portion 11 as shown in FIG. 10A is formed. Angle information as shown in FIG. 10B can be acquired. FIG. 10B visually shows an outline of the angle map of the second stage, and the grid is a set of R, G, B pixels corresponding to the imaging device 30 on the inspection surface 10. It corresponds to the point. The hatched portions in FIG. 11B indicate that the detection angles are different from each other. A white portion indicates a good surface. An outline of the angle map for the inspection surface 10 on which the uneven portion 11A as shown in FIG. 10C is formed is visually shown in FIG. The blacked portion is a portion where the reference light spot does not exist on the light source surface 21 due to the large inclination angle, and the portion can be determined from the angle distribution on both sides thereof, and the absolute value is larger than the angle on each side. The angle is entered in this angle map.

表面欠陥検出部47は次いで、角度情報記憶部46内の欠陥点の角度の分布と欠陥部サイズとに基づいて、欠陥部毎に重度又は軽度の欠陥であるか否かを判定し、その結果を欠陥情報記憶部48に格納するとともに、表示部42に表示させ、欠陥の程度に応じて作業者に警報で報知する。   Next, the surface defect detection unit 47 determines whether each defect part is a severe or minor defect based on the distribution of the angle of defect points in the angle information storage unit 46 and the defect part size, and the result Is stored in the defect information storage unit 48 and is displayed on the display unit 42 to notify the worker with an alarm according to the degree of the defect.

従来では塗装欠陥検査を人と装置とで行い、装置が低感度であったことから、自動検査のレベルが人のそれに至らず、人の検査負担を軽減出来ていなかったが、本実施例1によれば、角度検出感度が高く且つ比較的広い範囲で角度を検出できるので、その画像処理により表面欠陥検出をより確実かつ正確に行うことが可能となり、これにより、人の検査負担を軽減させて、自動車等の製造コスト低減に寄与するところが大きい。   Conventionally, since the inspection of coating defects was performed by a person and an apparatus, and the apparatus was low in sensitivity, the level of automatic inspection did not reach that of humans, and the human inspection burden could not be reduced. Therefore, the angle detection sensitivity is high and the angle can be detected in a relatively wide range, so that it is possible to more reliably and accurately detect surface defects by the image processing, thereby reducing the human inspection burden. Therefore, it greatly contributes to reducing the manufacturing cost of automobiles and the like.

図11は、本発明の実施例2の説明図である。   FIG. 11 is an explanatory diagram of Embodiment 2 of the present invention.

この実施例2では、図11(A)に示すように、照明装置20Aにおいて、透明基板25にND(Neutral Density)フィルタ29が接合されている。NDフィルタ29は、図11(B)に示すように、照明装置20AのAB間で透過率が直線的に変化している。   In Example 2, as shown in FIG. 11A, an ND (Neutral Density) filter 29 is bonded to the transparent substrate 25 in the illumination device 20A. As shown in FIG. 11B, the transmittance of the ND filter 29 linearly changes between ABs of the illumination device 20A.

NDフィルタ29を用いずに検査ライン12の傾斜角を連続的に変化させたときの撮像装置30での画素値のピーク値が図11(C)に示すよう一定になるように、各LEDに電流を供給する。この条件の下でNDフィルタ29を用いることにより、画素値の明度Vは図11(D)に示すように、参照光位置Xに対し略直線的に変化する。図11(D)中の小黒点は、周期内参照光位置xが互いに同一な点を示しており、実施例1と同様にしてどの周期に属するかを定めることができる。周期内参照光位置xについても、上記実施例1と同じ方法で求めることができる。   Each LED is adjusted so that the peak value of the pixel value in the imaging device 30 when the inclination angle of the inspection line 12 is continuously changed without using the ND filter 29 is constant as shown in FIG. Supply current. By using the ND filter 29 under these conditions, the brightness V of the pixel value changes substantially linearly with respect to the reference light position X as shown in FIG. Small black dots in FIG. 11D indicate points where the in-cycle reference light positions x are the same, and it is possible to determine which cycle belongs in the same manner as in the first embodiment. The intra-period reference light position x can also be obtained by the same method as in the first embodiment.

他の点は、実施例1と同一である。   The other points are the same as those in the first embodiment.

上記実施例1、2では、画素値のピークレベル付近でカーブが緩やかになるため、角度検出感度が低下する。部分的に感度が低下すると、全体としての検出誤差が大きくなるので、できるだけ角度検出感度を参照光位置に依存しないようにした方が好ましい。   In the first and second embodiments, since the curve becomes gentle near the peak level of the pixel value, the angle detection sensitivity decreases. If the sensitivity partially decreases, the detection error as a whole increases. Therefore, it is preferable to make the angle detection sensitivity as independent of the reference light position as possible.

そこで、本実施例ではこの問題を解決するため、上記第1段階での処理の替わりに、次のように隣り合う2色を考慮して周期内参照光位置xを求める。   Therefore, in this embodiment, in order to solve this problem, instead of the processing in the first stage, the in-period reference light position x is obtained in consideration of two adjacent colors as follows.

まず、図12(A)に示すような1周期について、足部交点を結んだ直線のレベルofsを各規格化画素値r、g、bから減算することにより、図12(B)に示すような画素値分布にして、SN比の低い部分を除去する。これにより、領域A0〜A5のそれぞれについて隣り合う2色のみでxを算出できるので、計算が簡単になるとともに画像処理速度を向上されることもできる。   First, as shown in FIG. 12B, the level ofs of the straight line connecting the foot intersections is subtracted from each normalized pixel value r, g, b for one cycle as shown in FIG. A portion having a low S / N ratio is removed with a smooth pixel value distribution. As a result, x can be calculated using only two adjacent colors for each of the regions A0 to A5, so that the calculation is simplified and the image processing speed can be improved.

ここで、領域A0について、比DG/DRはxと1対1に対応している。DG/DR=(DG/V)/(DR/V)であるので、比DG/DRは規格化されている。そこで、x=C*DG/DR(=C*g/r)により、xを近似的に求める。ここに「*」は乗算記号である。係数Cは、簡単化のため、定数であるとする。この式の意味を分かりやすくするために、図12(C)に示すように、各画素値曲線を点線のように直線近似して考える。   Here, for the region A0, the ratio DG / DR has a one-to-one correspondence with x. Since DG / DR = (DG / V) / (DR / V), the ratio DG / DR is standardized. Therefore, x is approximately obtained by x = C * DG / DR (= C * g / r). Here, “*” is a multiplication symbol. The coefficient C is assumed to be a constant for simplification. In order to make the meaning of this expression easy to understand, as shown in FIG. 12C, each pixel value curve is considered by linear approximation like a dotted line.

ここで、領域A0での上記直線近似は、DGを0〜1の範囲に規格化したパラメータp及びxの範囲を0〜1の範囲に規格化したパラメータqを用いてq=p/(1−p)と表すことができる。図12(D)中の直線q=p、q=1−pはそれぞれ上式右辺のg(x)及びr(x)に対応している。範囲0≦p≦0.5では、図12(D)に実線で示すようにほぼ直線的に変化する。図12(C)において、領域A0では両端を除き、画素値rが対応する近似直線より僅か大きく、画素値gが対応する近似直線より僅か小さい程度であるので、xは、ほぼ図12(D)に示す実線のように略直線となる。   Here, the above linear approximation in the region A0 is performed by using the parameter p obtained by normalizing the DG in the range of 0 to 1 and the parameter q obtained by normalizing the range of x in the range of 0 to 1, q = p / (1 -P). The straight lines q = p and q = 1−p in FIG. 12D correspond to g (x) and r (x) on the right side of the above equation, respectively. In the range 0 ≦ p ≦ 0.5, it changes almost linearly as shown by the solid line in FIG. In FIG. 12C, in the region A0, except for both ends, the pixel value r is slightly larger than the corresponding approximate line and the pixel value g is slightly smaller than the corresponding approximate line. It becomes a substantially straight line as shown by the solid line in FIG.

この近似式の利点は、領域A0の画素値ピーク点付近も含めて比g/rに関しxが略直線的に変化するので、実施例1の場合よりも角度検出感度が向上する点である。   The advantage of this approximate expression is that the angle detection sensitivity is improved as compared with the case of the first embodiment because x changes substantially linearly with respect to the ratio g / r including the vicinity of the pixel value peak point in the region A0.

C*g/rがrに関し線形に変化するように、Cを規格化画素値rの関数C(r)として実験的に求めておくことにより、角度検出感度をさらに向上させる。C(r)の値は、領域A0の幅x0に略等しく、領域A0の両端でx0となる。   The angle detection sensitivity is further improved by experimentally obtaining C as a function C (r) of the normalized pixel value r so that C * g / r changes linearly with respect to r. The value of C (r) is substantially equal to the width x0 of the region A0 and becomes x0 at both ends of the region A0.

他の領域についても同様にしてxを求める。すなわち、一般に、以下のようにしてxを求める。   X is similarly obtained for other regions. That is, generally, x is obtained as follows.

DR≧DGのとき(領域A0)、x=C(r)*g/r
DG>DRのとき(領域A1)、x=C(g)*(2−r/g)
DG>DBのとき(領域A2)、x=C(g)(*(2+b/g)
DB>DGのとき(領域A3)、x=C(b)*(4−g/b)
以下、同様である。関数C(規格化画素値)は、各色について略同一である。
When DR ≧ DG (region A0), x = C (r) * g / r
When DG> DR (area A1), x = C (g) * (2-r / g)
When DG> DB (area A2), x = C (g) (* (2 + b / g)
When DB> DG (area A3), x = C (b) * (4-g / b)
The same applies hereinafter. The function C (normalized pixel value) is substantially the same for each color.

係数Cを定数で近似する場合、図1の曲線近似情報記憶部43には、第2段階のみについての曲線近似情報を格納すればよく、構成が簡単になる。上式のように関数C(規格化画素値)を用いる場合には、これを近似的に求めるための情報を曲線近似情報記憶部43に格納しておく。   When the coefficient C is approximated by a constant, the curve approximation information storage unit 43 in FIG. 1 only needs to store curve approximation information for the second stage, and the configuration is simplified. When the function C (standardized pixel value) is used as in the above equation, information for approximately obtaining the function C is stored in the curve approximation information storage unit 43.

なお、係数Cを、上記各領域について、対応する最大画素値と2番目に大きい画素値の比の関数とすることにより、最大画素値付近での角度検出感度を更に向上させてもよい。 また、一般に、周期内参照光位置xを、上記各領域について、対応する最大画素値と2番目に大きい画素値の比ρの関数x(ρ)で表し、この関数の曲線を近似的に求めるための情報を曲線近似情報記憶部43に格納し、この情報とρとの値からxを求める構成であってもよい。例えば、DR≧DGのとき(領域A0)、x=C(ρ)*ρ、ρ=g/rなるx(ρ)は、この一般化した関数の表現形態の1つである。   Note that the angle detection sensitivity in the vicinity of the maximum pixel value may be further improved by using the coefficient C as a function of the ratio between the corresponding maximum pixel value and the second largest pixel value for each region. In general, the intra-period reference light position x is represented by a function x (ρ) of the ratio ρ between the corresponding maximum pixel value and the second largest pixel value for each of the above-described regions, and a curve of this function is approximately obtained. The information for this may be stored in the curve approximation information storage unit 43, and x may be obtained from the value of this information and ρ. For example, when DR ≧ DG (region A0), x (ρ) where x = C (ρ) * ρ and ρ = g / r is one of the expression forms of this generalized function.

次に、m=MIN(DR,DG,DB)、M=MIN(DR,DG,DB)のとき、HSB色空間での飽和度Sは、S=(M−m)/Mと表される。ここに、MIN及びMAXはそれぞれ、括弧内の画素値のうちの最小値及び最大値である。   Next, when m = MIN (DR, DG, DB) and M = MIN (DR, DG, DB), the saturation degree S in the HSB color space is expressed as S = (M−m) / M. . Here, MIN and MAX are the minimum value and the maximum value among the pixel values in parentheses, respectively.

飽和度Sは、正反射しているとき1となり、正反射していないときは値が低くなるので、正反射であるか否かを飽和度Sで判定する。ごみなどは光を拡散させるので飽和度Sが小さくなり、ごみなどの判定にも飽和度Sを用いる。   The saturation S is 1 when the regular reflection is performed, and the value is low when the regular reflection is not performed. Therefore, the saturation S determines whether or not the regular reflection is performed. Since dust or the like diffuses light, the saturation S becomes small, and the saturation S is also used for determination of dust or the like.

他の点は、実施例1と同一である。   The other points are the same as those in the first embodiment.

本実施例3によれば、角度検出感度が高く且つ検出対象の角度に対する感度が安定し、さらに、比較的広い範囲で角度を検出できるので、その画像処理により表面欠陥検出をより確実かつ正確に行うことが可能となり、これにより、人の検査負担をさらに軽減させて、自動車等の製造コスト低減に寄与するところが大きい。   According to the third embodiment, the angle detection sensitivity is high, the sensitivity to the angle of the detection target is stable, and the angle can be detected in a relatively wide range. Therefore, the surface defect detection can be performed more reliably and accurately by the image processing. This makes it possible to further reduce the human inspection burden and contribute to the reduction of the manufacturing cost of automobiles and the like.

以上において、本発明の好適な実施例を説明したが、本発明には他にも種々の変形例が含まれ、上記各実施例で述べた構成要素の他の組み合わせ、各構成要素の機能を実現する他の構成を用いたもの、当業者であればこれらの構成又は機能から想到するであろう他の構成も、本発明に含まれる。   In the above, preferred embodiments of the present invention have been described. However, the present invention includes various modifications, and other combinations of the components described in the above embodiments and functions of the components. Other configurations that use other configurations, and other configurations that would be conceived by those skilled in the art from these configurations or functions are also included in the present invention.

例えば、請求項1の「参照光位置に対応した該角度」は、通常の「角度」の単位に限定されず、角度に対応した表現形態のものであればよく、参照光位置自体であってもよい。   For example, “the angle corresponding to the reference light position” in claim 1 is not limited to a normal unit of “angle”, and may be an expression corresponding to the angle, and may be the reference light position itself. Also good.

また、実施例3の処理方法で画素値のピーク付近の領域の角度を検出し、実施例1の処理方法でその他の領域の角度を検出する構成であってもよい。   Moreover, the structure of detecting the angle of the area | region near the peak of a pixel value with the processing method of Example 3, and detecting the angle of another area | region with the processing method of Example 1 may be sufficient.

また、上記規則的な周期性を考慮せずに、それぞれの不規則な周期について図6(C)の関係を予め定めておく構成であってもよい。この場合、可変抵抗器28を固定抵抗としてもよい。この不規則な周期は、例えば、図5(C)で周期0〜4の曲線を互いに入れ替えたものになるものであってもよい。   Moreover, the structure of FIG.6 (C) may be predetermined about each irregular period, without considering the said regular periodicity. In this case, the variable resistor 28 may be a fixed resistor. This irregular cycle may be, for example, one obtained by exchanging the curves of cycles 0 to 4 in FIG.

また、上記原理から、R、B、GのLED列の並び順は任意でよい。さらに、R、G、BのLEDにさらに赤外のLEDを加えてもよい。この場合、上記原理から1周期を6列(6は、4個から2個を取り出す組み合わせの数)のLED列とすることができる。LEDの色は2色以上であればよい。   From the above principle, the arrangement order of the R, B, and G LED rows may be arbitrary. Further, an infrared LED may be added to the R, G, and B LEDs. In this case, from the above principle, one cycle can be made into six columns (6 is the number of combinations in which two are extracted from four). The color of the LED may be two or more colors.

さらに、遮光板270及び271を設けずに、この部分に対応した単色帯状面光源面上の参照光位置も検出する構成であってもよい。この場合も、図10(D)のような角度マップを得ることができる。   Further, the configuration may be such that the reference light position on the monochromatic belt-like surface light source surface corresponding to this portion is also detected without providing the light shielding plates 270 and 271. Also in this case, an angle map as shown in FIG. 10D can be obtained.

また、照明装置20又は撮像装置30と検査面10との間の距離をパラメータとして、上記曲線近似情報を記憶部43に格納し、この距離に応じて角度を検出する構成であってもよい。   Moreover, the structure which stores the said curve approximation information in the memory | storage part 43 by using the distance between the illuminating device 20 or the imaging device 30, and the test | inspection surface 10 as a parameter, and detects an angle according to this distance may be sufficient.

また、実施例2でNDフィルタ29を用いずに、発散角が比較的大きい赤外のLEDも基板22上に配置し、光整形拡散板26での輝度分布が図11に示すようにAB間で勾配を持つようにし、上述の明度Vの替わりに、赤外の検出画素値を用い、図11(D)で説明した上記処理と同様にして周期始点位置Xiを求める構成であってもよい。   Further, an infrared LED having a relatively large divergence angle is also arranged on the substrate 22 without using the ND filter 29 in the second embodiment, and the luminance distribution on the light shaping diffusion plate 26 is between AB as shown in FIG. The gradient start point position Xi may be obtained in the same manner as the above-described processing described with reference to FIG. 11D by using an infrared detection pixel value instead of the lightness V described above. .

さらに、照明装置は、光源面での、走査方向に沿った輝度分布が、山形で、隣り合う波長域輝度分布が重なり合う帯状面光源を用いたものであればよく、LEDの替わりにレーザダイオードを用いたり、光整形拡散板26として半円柱マイクロレンズアレイを用いたものであってもよい。   Furthermore, the illumination device may be a device that uses a band-shaped surface light source in which the luminance distribution along the scanning direction on the light source surface is mountain-shaped and the adjacent wavelength band luminance distributions overlap, and a laser diode is used instead of the LED. It may be used, or a semi-cylindrical microlens array may be used as the light shaping diffusion plate 26.

また、ラインセンサの画素位置に応じて、上記第2段階での明度Vを補正、例えばVを定数倍したもので、どの周期であるかを判別することにより、ラインセンサの画素毎の感度のばらつきや帯状光源の長手方向に沿った輝度のばらつきを補正する構成であってもよい。   Further, the brightness V in the second stage is corrected according to the pixel position of the line sensor, for example, by multiplying V by a constant, and by determining which period it is, the sensitivity of each pixel of the line sensor is increased. It may be configured to correct variations and luminance variations along the longitudinal direction of the strip-shaped light source.

また、画像処理により、本実施例で述べた欠陥以外の欠陥も検出する構成であってもよい。   Moreover, the structure which detects the defect other than the defect described in the present Example by image processing may be sufficient.

また、上記実施例では理解を容易にするために撮像装置30が1次元カメラである場合を説明したが、2次元カメラであってもよい。この場合、検査ライン12を複数としそれぞれにエリアセンサ上のラインを対応させ、各ラインにつき上記同様に処理をすればよい。   In the above embodiment, the case where the imaging device 30 is a one-dimensional camera has been described for easy understanding. However, a two-dimensional camera may be used. In this case, a plurality of inspection lines 12 may be used, each line corresponding to the area sensor may be associated with each line, and the same processing as described above may be performed for each line.

LID 照明撮像装置
10 検査面
11 凹凸部
12 検査ライン
20、20A 照明装置
21 光源面
231 LED
240〜246 3色LED列
25 透明基板
26 光整形拡散板
30 撮像装置
30R、30G、30B ラインセンサ
40 制御部
43 近似式情報記憶部
44 画像メモリ
45 検査点角度検出部
46 角度情報記憶部
47 表面欠陥検出部
48 欠陥情報記憶部
RP0〜RP2 参照光点
S0〜S2 接平面
LID illumination imaging device 10 inspection surface 11 uneven portion 12 inspection line 20, 20A illumination device 21 light source surface 231 LED
240 to 246 Three-color LED array 25 Transparent substrate 26 Light shaping diffusion plate 30 Imaging device 30R, 30G, 30B Line sensor 40 Control unit 43 Approximation expression information storage unit 44 Image memory 45 Inspection point angle detection unit 46 Angle information storage unit 47 Surface Defect detection unit 48 Defect information storage unit RP0 to RP2 Reference light spot S0 to S2 Tangent plane

Claims (6)

波長域が互いに異なる複数の帯状光源が並設されている照明手段と、
該照明手段から射出され光検査面で正反射されて入射した光を、該複数の波長域のそれぞれに分光する分光手段と、
該分光された光のそれぞれが結像されるイメージセンサを備えた撮像手段と、
該撮像手段で撮像された画像のデータに基づいて検査面の角度を検出する画像処理手段と、
を備えた表面検査装置であって、
該照明手段は、該複数の帯状光源の光源面上の、帯状光源長手方向と直角な方向の線に沿った参照光位置に対する輝度分布が、該複数の帯状光源のそれぞれについて帯状光源面の中点から離れるにつれて輝度が小さくなり、且つ、隣り合う帯状光源の輝度分布が少なくとも輝度のピーク位置まで重なり合うように構成され、
該画像処理手段は、同一参照光位置に対応する、該複数の波長域のそれぞれに対応した画素値について、最大画素値の波長域と2番目に大きい画素値の波長域との組み合わせに基づいて参照光位置が含まれる範囲を決定し、該最大画素値に基づいて又は該最大画素値と該2番目に大きい画素値とに基づいて、該範囲内での参照光位置を決定し、参照光位置に対応した該角度を求める第1処理手段を有する、
ことを特徴とする表面検査装置。
Illumination means in which a plurality of strip light sources having different wavelength ranges are arranged in parallel,
Spectroscopic means for splitting the light emitted from the illumination means and regularly reflected by the light inspection surface into each of the plurality of wavelength ranges;
Imaging means comprising an image sensor on which each of the split light is imaged;
Image processing means for detecting an angle of the inspection surface based on data of an image picked up by the image pickup means;
A surface inspection apparatus comprising:
The illumination means has a luminance distribution with respect to a reference light position along a line perpendicular to the longitudinal direction of the strip light source on the light source surface of the plurality of strip light sources. The brightness decreases as the distance from the point decreases, and the brightness distribution of adjacent strip light sources is configured to overlap at least to the peak position of the brightness,
The image processing means, based on a combination of the wavelength range of the maximum pixel value and the wavelength range of the second largest pixel value, for pixel values corresponding to each of the plurality of wavelength ranges corresponding to the same reference light position A range including the reference light position is determined, a reference light position within the range is determined based on the maximum pixel value or based on the maximum pixel value and the second largest pixel value, and the reference light First processing means for determining the angle corresponding to the position;
A surface inspection apparatus characterized by that.
該画像処理手段の該第1処理手段は、該2番目に大きい画素値と該最大画素値との比の値に基づいて、該範囲内での該参照光位置を決定する、
ことを特徴とする請求項1に記載の表面検査装置。
The first processing means of the image processing means determines the reference light position within the range based on a value of a ratio between the second largest pixel value and the maximum pixel value;
The surface inspection apparatus according to claim 1.
該画像処理手段の該第1処理手段は、参照光位置に対する、該複数の波長域のそれぞれに対応した、明度に依存しないように規格化した画素値の分布について、各ピーク画素値での、該ピーク画素値の波長域と異なる波長域の規格化画素値が略0になるように、各規格化画素値から所定値をオフセット値として減算し、該減算の後に、該比の値に基づいて、該範囲内での参照光位置を決定する、
ことを特徴とする請求項2に記載の表面検査装置。
The first processing means of the image processing means, for each peak pixel value, with respect to a distribution of pixel values corresponding to each of the plurality of wavelength regions and normalized so as not to depend on lightness with respect to a reference light position, A predetermined value is subtracted as an offset value from each normalized pixel value so that a normalized pixel value in a wavelength region different from the wavelength region of the peak pixel value becomes approximately 0, and after the subtraction, based on the value of the ratio Determining a reference beam position within the range,
The surface inspection apparatus according to claim 2.
基準位置からの参照光位置が該比の値に比例するように該比の値に乗ぜられる補正値を、明度に依存しないように規格化した最大画素値の関数又は該比の関数として近似的に求めるための情報が格納された記憶手段をさらに備え、
該画像処理手段の該第1処理手段は、該比の値に該補正値を乗じて、該参照光位置を決定する、
ことを特徴とする請求項3に記載の表面検査装置。
The correction value multiplied by the ratio value so that the reference light position from the reference position is proportional to the ratio value is approximated as a function of the maximum pixel value normalized so as not to depend on lightness or a function of the ratio. Further comprising storage means for storing information required for
The first processing means of the image processing means multiplies the value of the ratio by the correction value to determine the reference light position;
The surface inspection apparatus according to claim 3.
該撮像手段で撮像される画像の、該複数の波長域のそれぞれの該輝度分布に対応した、該量に対する画素値分布について、同一参照光位置に対応した、該複数の波長域のそれぞれの画素値のうちの最大画素値の、明度に依存しないように規格化したものの分布を、近似的に求めるための第1情報が格納された第1近似式情報記憶手段をさらに備え、
該画像処理手段の該第1処理手段は、該第1情報に基づく、該最大画素値の規格化画素値分布の近似式における該範囲内での規格化最大画素値に対応した参照光位置を求める、
ことを特徴とする請求項1に記載の表面検査装置。
Each pixel of the plurality of wavelength regions corresponding to the same reference light position with respect to the pixel value distribution corresponding to the amount corresponding to the luminance distribution of each of the plurality of wavelength regions of the image captured by the imaging unit A first approximate expression information storage means for storing first information for approximately obtaining a distribution of the maximum pixel value of the values normalized so as not to depend on lightness;
The first processing means of the image processing means calculates a reference light position corresponding to the normalized maximum pixel value within the range in the approximate expression of the normalized pixel value distribution of the maximum pixel value based on the first information. Ask,
The surface inspection apparatus according to claim 1.
該照明手段は、該波長域が互いに異なる複数の帯状光源が複数組並設され、組毎に該輝度分布が異なり、該複数の組について互いに対応する組内参照光位置に対する該画像の画素値の比が該組内参照光位置によらず略一定であり、
該参照光位置に対する、同一参照光位置に対応した、該複数の波長域のそれぞれの画素値に基づく明度の分布を各組について近似的に求めるための、又は、明度に関し隣り合う組の明度分布を区別する境界線を近似的に求めるための第2情報が格納された第2近似式情報記憶手段を備え、
該画像処理手段は、同一参照光位置に対応する、該複数の波長域のそれぞれに対応した画素値を該組に依存しないように規格化して該第1処理手段により組内の該参照光位置を求め、
該画像処理手段はさらに、該第2情報に基づく、該明度の分布又は該境界線の近似式と該組内の参照光位置とに基づいて該組内の参照光位置がどの組であるかを決定し、該組内の参照光位置と該決定した組とに基づいて、全範囲における参照光位置を求める第2処理手段を有する、
ことを特徴とする請求項2乃至5のいずれか1つに記載の表面検査装置。
The illumination means includes a plurality of band-like light sources having different wavelength ranges arranged in parallel, the luminance distribution is different for each group, and the pixel values of the image with respect to in-group reference light positions corresponding to the plurality of groups Is substantially constant regardless of the reference beam position in the group,
Lightness distribution of the sets adjacent to each other with respect to the lightness, or approximately the lightness distribution based on the respective pixel values of the plurality of wavelength ranges corresponding to the same light reference position, A second approximate expression information storage means storing second information for approximately obtaining a boundary line for distinguishing between
The image processing means normalizes the pixel values corresponding to each of the plurality of wavelength ranges corresponding to the same reference light position so as not to depend on the set, and the first processing means performs the reference light position in the set. Seeking
The image processing means further determines which set of reference light positions in the set is based on the brightness distribution or the approximate expression of the boundary line based on the second information and the reference light position in the set. And a second processing means for obtaining a reference light position in the entire range based on the reference light position in the set and the determined set.
The surface inspection apparatus according to any one of claims 2 to 5, wherein
JP2010201998A 2010-09-09 2010-09-09 Surface inspection device Pending JP2012058091A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010201998A JP2012058091A (en) 2010-09-09 2010-09-09 Surface inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010201998A JP2012058091A (en) 2010-09-09 2010-09-09 Surface inspection device

Publications (1)

Publication Number Publication Date
JP2012058091A true JP2012058091A (en) 2012-03-22

Family

ID=46055364

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010201998A Pending JP2012058091A (en) 2010-09-09 2010-09-09 Surface inspection device

Country Status (1)

Country Link
JP (1) JP2012058091A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114175A (en) * 2013-12-10 2015-06-22 リコーエレメックス株式会社 Inspection device and inspection method
JP2015125069A (en) * 2013-12-26 2015-07-06 リコーエレメックス株式会社 Inspection device and inspection method
JP2019519767A (en) * 2016-05-30 2019-07-11 ボブスト メックス ソシエテ アノニムBobst Mex SA Image capture system and method for determining the position of an embossed structure on a sheet element
JP2019138682A (en) * 2018-02-07 2019-08-22 オムロン株式会社 Image inspection device and lighting device
JP2020148664A (en) * 2019-03-14 2020-09-17 オムロン株式会社 Image inspection device and image inspection method
WO2024014273A1 (en) * 2022-07-13 2024-01-18 パナソニックIpマネジメント株式会社 Inspection system, and method for correcting angle of inclination of object surface using same

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2015114175A (en) * 2013-12-10 2015-06-22 リコーエレメックス株式会社 Inspection device and inspection method
JP2015125069A (en) * 2013-12-26 2015-07-06 リコーエレメックス株式会社 Inspection device and inspection method
JP2019519767A (en) * 2016-05-30 2019-07-11 ボブスト メックス ソシエテ アノニムBobst Mex SA Image capture system and method for determining the position of an embossed structure on a sheet element
US11448501B2 (en) 2016-05-30 2022-09-20 Bobst Mex Sa Image capturing system and a method for determining the position of an embossed structure on a sheet element
JP2019138682A (en) * 2018-02-07 2019-08-22 オムロン株式会社 Image inspection device and lighting device
JP7027926B2 (en) 2018-02-07 2022-03-02 オムロン株式会社 Image inspection equipment and lighting equipment
JP2020148664A (en) * 2019-03-14 2020-09-17 オムロン株式会社 Image inspection device and image inspection method
WO2020184567A1 (en) * 2019-03-14 2020-09-17 オムロン株式会社 Image inspection device and image inspection method
JP7164836B2 (en) 2019-03-14 2022-11-02 オムロン株式会社 Image inspection device and image inspection method
WO2024014273A1 (en) * 2022-07-13 2024-01-18 パナソニックIpマネジメント株式会社 Inspection system, and method for correcting angle of inclination of object surface using same

Similar Documents

Publication Publication Date Title
CN1831519B (en) Brightness measuring apparatus and measuring method thereof
JP2012058091A (en) Surface inspection device
US7092105B2 (en) Method and apparatus for measuring the three-dimensional surface shape of an object using color informations of light reflected by the object
CN101943571B (en) Board inspection apparatus and method
US20150317816A1 (en) Method and system for detecting known measurable object features
US20190327454A1 (en) Method for the generation of a correction model of a camera for the correction of an aberration
JP6339133B2 (en) Multispectral illumination apparatus and imaging system
JP4799268B2 (en) Unevenness inspection apparatus and unevenness inspection method
JP4679313B2 (en) Surface smoothness measuring device
KR20130046515A (en) Color lighting control method for improving image quality of vision system
JP5363043B2 (en) Eye movement measurement device
CA2521857A1 (en) Method and apparatus for quantifying visual showthrough of printed images on the reverse of planar objects
JPH11510973A (en) Video system for endoscope
US7365301B2 (en) Three-dimensional shape detecting device, image capturing device, and three-dimensional shape detecting program
US7391522B2 (en) Three-dimensional shape detecting device, image capturing device, and three-dimensional shape detecting program
TWI460419B (en) Method of checking an inspection apparatus and method of establishing a measurement variable of the inspection apparatus
CN106817543A (en) Processing unit, processing system, image pick-up device and processing method
JP6781969B1 (en) Measuring device and measuring method
JP3339221B2 (en) Surface direction detector
CN111189840A (en) Paper defect detection method with near-field uniform illumination
CN107193428B (en) Optical touch screen, touch positioning method thereof and optical distortion calibration method
CN117480355A (en) Automatic calibration according to epipolar line distance in projection pattern
JP3058777B2 (en) Paint surface inspection method and apparatus using image signal
JP2000018919A (en) Imaging device, optical measuring apparatus, and optical system inspecting apparatus
JP5768349B2 (en) Slit light intensity distribution design method and light cutting uneven surface wrinkle detecting device