[go: up one dir, main page]

JP2012007952A - Visual inspection device - Google Patents

Visual inspection device Download PDF

Info

Publication number
JP2012007952A
JP2012007952A JP2010143037A JP2010143037A JP2012007952A JP 2012007952 A JP2012007952 A JP 2012007952A JP 2010143037 A JP2010143037 A JP 2010143037A JP 2010143037 A JP2010143037 A JP 2010143037A JP 2012007952 A JP2012007952 A JP 2012007952A
Authority
JP
Japan
Prior art keywords
image data
filter image
luminance
red
green
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.)
Granted
Application number
JP2010143037A
Other languages
Japanese (ja)
Other versions
JP5466099B2 (en
Inventor
Hiroaki Matsukawa
裕章 松川
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.)
Panasonic Electric Works Co Ltd
Original Assignee
Panasonic Electric Works Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Panasonic Electric Works Co Ltd filed Critical Panasonic Electric Works Co Ltd
Priority to JP2010143037A priority Critical patent/JP5466099B2/en
Publication of JP2012007952A publication Critical patent/JP2012007952A/en
Application granted granted Critical
Publication of JP5466099B2 publication Critical patent/JP5466099B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

【課題】カラー画像に基づいて高精度に外観の良否判定ができる外観検査装置を提供する。
【解決手段】輝度平均値算出部12は、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ輝度平均値Avr,Avg,Avbを求める。平均値比較部13は、その求めた輝度平均値Avr,Avg,Avbから、ルックアップテーブルLTを使って、異物と背景色とのコントラストが最も大きいフィルタ画像データを選択する。そして、異物判定処理部14は、その選択した異物と背景色とのコントラストが最も大きいフィルタ画像データに基づいて画像処理を行う。従って、各フィルタ画像データDrf,Dgf.Dbfの中から、異物と背景色とのコントラストが最も大きいフィルタ画像データを使って画像処理を行い異物と背景色との判断を行うことから、閾値の設定も容易でかつ高精度の異物検出が可能となる。
【選択図】図1
An appearance inspection apparatus capable of determining the quality of an appearance with high accuracy based on a color image is provided.
A luminance average value calculation unit 12 obtains luminance average values Avr, Avg, Avb from filter image data Drf, Dgf, Dbf, respectively. The average value comparison unit 13 selects filter image data having the largest contrast between the foreign matter and the background color from the obtained luminance average values Avr, Avg, Avb using the lookup table LT. Then, the foreign matter determination processing unit 14 performs image processing based on the filter image data having the largest contrast between the selected foreign matter and the background color. Therefore, each filter image data Drf, Dgf. From Dbf, image processing is performed using the filter image data having the largest contrast between the foreign matter and the background color, and the foreign matter and the background color are determined. Therefore, the threshold value can be easily set and the foreign matter can be detected with high accuracy. It becomes possible.
[Selection] Figure 1

Description

本発明は、外観検査装置に関する。   The present invention relates to an appearance inspection apparatus.

従来、例えば、半導体ウェハ上に形成されたダイシング前の半導体チップについて、チップ毎にカラー撮像装置にて撮像し、その撮像して取得した画像データを画像処理してチップ上の異物の有無を判断し、良品かどうか判定する外観検査が行われている。   Conventionally, for example, a semiconductor chip before dicing formed on a semiconductor wafer is picked up by a color image pickup device for each chip, and image data obtained by picking up the image is processed to determine the presence or absence of foreign matter on the chip. In addition, an appearance inspection is performed to determine whether the product is non-defective.

このような、外観検査における良品の有無の判定は、例えば、複数の検査良品から取得された良品画像テータ群について位置合わせを行った上、同一座標を持つ画素毎に輝度の平均と標準偏差を算出しておく。そして、被検出品から取得された画像データについて位置合わせを行った上、同一座標を持つ画素毎に、その輝度と標準偏差を用いて定義される評価式により評価することにより良否判定を行うようにしていた(例えば、特許文献1)。   Such determination of the presence or absence of non-defective products in the visual inspection is performed by, for example, aligning the non-defective image data group obtained from a plurality of non-defective products and calculating the average and standard deviation of luminance for each pixel having the same coordinates. Calculate it. Then, after aligning the image data acquired from the detected product, pass / fail judgment is performed by evaluating each pixel having the same coordinates by using an evaluation formula defined using the brightness and standard deviation. (For example, Patent Document 1).

特開2005−265661号公報JP 2005-265661 A

ところで、一般に、この種の外観検査では、背景色は一定という前提の上で行われ、背景色が変わらないことを想定していた。しかしながら、良品のチップであっても、例えば、膜厚が僅かに異なることにより、チップの背景色の色味が異なって、良品のチップの範囲内において色味のばらつきが生じていた。このような場合、カラー撮像装置で撮像したカラー画像ではそのチップ毎で異なる背景色の色味に基づいて画素毎に輝度の平均と標準偏差を算出する場合には、標準偏差が大きくなる。   By the way, in general, in this type of appearance inspection, the background color is assumed to be constant, and it is assumed that the background color does not change. However, even in a non-defective chip, for example, the color of the background color of the chip is different due to a slight difference in film thickness, resulting in variations in color within the range of non-defective chips. In such a case, in the color image picked up by the color image pickup device, the standard deviation becomes large when the average luminance and the standard deviation are calculated for each pixel based on the color of the background color that is different for each chip.

従って、特許文献1のような場合、これら良品のチップの範囲内において背景色の色味のばらつきが大きい場合、標準偏差が大きくなることで検査精度が低くなることから、検査対象のチップの欠陥を見逃す虞があった。   Therefore, in the case of Patent Document 1, when the variation in the color of the background color is large within the range of these non-defective chips, the standard deviation becomes large and the inspection accuracy becomes low. There was a risk of overlooking.

また、カラー撮像装置を使用し、そのカラー画像に基づいて画像処理をする際、光の赤、緑、及び、青色成分の波長が異なるため、カラー撮像装置の撮像レンズの色収差によって、赤、緑及び青も各フィルタ画像の結像する焦点距離がそれぞれ若干ずれる。その結果、解像力が低下することから、これを補間するために高度な技術を必要としていた。   In addition, when a color imaging device is used and image processing is performed based on the color image, the red, green, and blue components of the light have different wavelengths. As for blue and blue, the focal lengths on which the filter images are formed are slightly shifted. As a result, since the resolving power is lowered, an advanced technique is required to interpolate this.

また、カラー撮像装置に赤、緑、及び、青のフィルタをベイヤー配列したイメージセンサを使用している場合、各フィルタ画像データについて補間処理が行われる。この補間処理を高精度におこなわないと、解像力が低下することから、これを補間するために複雑な補間処理を必要としていた。   In addition, when an image sensor in which a red, green, and blue filter is arranged in a Bayer array is used in the color imaging device, interpolation processing is performed on each filter image data. If this interpolation process is not performed with high accuracy, the resolving power will be reduced. Therefore, in order to interpolate this, a complicated interpolation process is required.

本発明は、カラー画像に基づいて高精度に外観の良否判定ができる外観検査装置を提供する。   The present invention provides an appearance inspection apparatus capable of accurately determining the quality of an appearance based on a color image.

本発明の外観検査装置は、ワークに対して光を照射する照明部と、前記ワークの所定領域を撮像する撮像部と、前記撮像部による撮像画像データを入力し画像処理して前記ワークの異物欠陥を検出する画像処理部とを有した外観検査装置において、前記画像処理部は、前記撮像部で撮像した得られたカラー画像データから赤、緑、及び、青のフィルタ画像データを作成するRGB画像データ生成部と、前記赤、緑、及び、青の各フィルタ画像データから検査領域の特徴量を算出する特徴量抽出部と、前記特徴量算出部が抽出した前記赤、緑、及び、青の各フィルタ画像データの特徴量を入力し、それら特徴量を比較して、異物を検出しやすい最適なフィルタ画像データを選び出すフィルタ画像比較部とを備え、前記フィルタ画像比較部が選択したフィルタ画像データを用いて画像処理による異物欠陥検出を行うことを特徴とする。   The appearance inspection apparatus according to the present invention includes an illumination unit that irradiates light to a workpiece, an imaging unit that images a predetermined area of the workpiece, and image processing performed by inputting captured image data from the imaging unit and performing foreign object processing. In the appearance inspection apparatus having an image processing unit that detects a defect, the image processing unit generates RGB filter image data of red, green, and blue from the color image data obtained by the imaging unit. An image data generation unit; a feature amount extraction unit that calculates a feature amount of an inspection region from each of the red, green, and blue filter image data; and the red, green, and blue extracted by the feature amount calculation unit A filter image comparison unit that inputs feature values of each of the filter image data, compares the feature amounts, and selects optimum filter image data that is easy to detect foreign matter, and the filter image comparison unit selects And performing foreign matter defect detection by image processing using the filtered image data.

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の輝度平均値を特徴量として算出する輝度平均値算出部であり、前記フィルタ画像比較部は、前記輝度平均値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの輝度平均値と、予め作成したルックアップテーブルとに基づいて、最適なフィルタ画像データを選択する平均値比較部であることを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit is a luminance average value calculation unit that calculates a luminance average value of an inspection region as a feature amount from the filter image data of red, green, and blue, and The filter image comparison unit is configured to obtain optimum filter image data based on the luminance average value of each of the red, green, and blue filter image data calculated by the luminance average value calculation unit and a lookup table created in advance. It is an average value comparison part which selects.

前記発明の外観検査装置において、前記フィルタ画像比較部は、前記輝度平均値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの輝度平均値と、予め作成したルックアップテーブルとに基づいて、前記ワークの色味異常として不良判定する。   In the appearance inspection apparatus according to the invention, the filter image comparison unit includes a luminance average value of the filter image data of red, green, and blue calculated by the luminance average value calculation unit, a lookup table created in advance, On the basis of the above, a defect is determined as the color abnormality of the workpiece.

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから低輝度値側の傾きを特徴量として算出する低輝度側傾き算出部であり、前記フィルタ画像比較部は、前記低輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの低輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する低輝度側傾き比較部であることを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and the slope on the low luminance value side from each density histogram As a feature amount, and the filter image comparison unit calculates a low intensity histogram of each of the red, green, and blue filter image data calculated by the low luminance side inclination calculation unit. A low-intensity side inclination comparison unit that compares the inclinations on the luminance value side and selects filter image data having the largest absolute value of the inclination as optimum filter image data for detecting low-luminance foreign matter. And

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから高輝度値側の傾きを特徴量として算出する高輝度側傾き算出部であり、前記フィルタ画像比較部は、前記高輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの高輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する高輝度側傾き比較部であることを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and the inclination on the high luminance value side from each density histogram Is calculated as a feature amount, and the filter image comparison unit calculates the height of the density histogram of each of the red, green, and blue filter image data calculated by the high luminance side inclination calculation unit. A high-intensity side inclination comparison unit that compares inclinations on the luminance value side and selects filter image data having the largest absolute value of the inclination as optimum filter image data for detecting high-intensity foreign matter. And

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから低輝度値側の傾きを特徴量として算出する低輝度側傾き算出部と、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから高輝度値側の傾きを特徴量として算出する高輝度側傾き算出部とを備え、前記フィルタ画像比較部は、前記低輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの低輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する低輝度側傾き比較部と、前記高輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの高輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する高輝度側傾き比較部とを備えたことを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and the slope on the low luminance value side from each density histogram A low luminance side inclination calculation unit that calculates the characteristic amount as a feature amount, and creates a density histogram of the inspection region from each of the red, green, and blue filter image data, and the inclination on the high luminance value side is calculated from the respective density histograms. A high-intensity side inclination calculation unit that calculates as a feature quantity, and the filter image comparison unit includes a low-contrast histogram of the red, green, and blue filter image data calculated by the low-intensity side inclination calculation unit. Compare the slopes on the brightness side and select the filter image data with the largest absolute value of the slope as the optimal filter image data for detecting low-intensity foreign objects The slope of the high brightness value side of the density histogram of each of the red, green, and blue filter image data calculated by the low brightness side slope calculation unit and the high brightness side slope calculation unit is compared. And a high-luminance side inclination comparison unit that selects filter image data having the largest absolute value as filter image data optimal for detecting a high-luminance foreign matter.

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最小輝度値を特徴量として算出する最小輝度値算出部であり、前記フィルタ画像比較部は、前記最小輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最小輝度値を比較して、その最小輝度値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する最小輝度値比較部であることを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and calculates a minimum luminance value from the density histogram as a feature amount. And the filter image comparison unit compares the minimum luminance values of the density histograms of the red, green, and blue filter image data calculated by the minimum luminance value calculation unit. The minimum luminance value comparison unit selects filter image data having the largest minimum luminance value as optimum filter image data for detecting a low-luminance foreign matter.

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最大輝度値を特徴量として算出する最大輝度値算出部であり、前記フィルタ画像比較部は、前記最大輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最大輝度値を比較して、その最大輝度値が最も小さなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する最大輝度値比較部であることを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and calculates a maximum luminance value from each of the density histograms as a feature amount. The filter image comparison unit compares the maximum luminance values of the density histograms of the red, green, and blue filter image data calculated by the maximum luminance value calculation unit. The filter image data having the smallest maximum luminance value is a maximum luminance value comparison unit that selects filter image data that is optimal for detecting high-luminance foreign matter.

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最小輝度値を特徴量として算出する最小輝度値算出部と、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最大輝度値を特徴量として算出する最大輝度値算出部とを備え、前記フィルタ画像比較部は、前記最小輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最小輝度値を比較して、その最小輝度値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する最小輝度値比較部と、前記最大輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最大輝度値を比較して、その最大輝度値が最も小さなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する最大輝度値比較部とを備えたことを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and calculates a minimum luminance value from the density histogram as a feature amount. A minimum luminance value calculation unit that calculates the maximum luminance value as a feature amount by creating a density histogram of the inspection area from each of the red, green, and blue filter image data. A value calculation unit, and the filter image comparison unit compares the minimum luminance values of the density histograms of the red, green, and blue filter image data calculated by the minimum luminance value calculation unit, and calculates the minimum A minimum luminance value comparison unit that selects filter image data having the largest luminance value as optimum filter image data for detecting low-luminance foreign matter, and Compares the maximum brightness values of the density histograms of the red, green, and blue filter image data calculated by the maximum brightness value calculation unit, and detects the filter image data with the smallest maximum brightness value and detects high brightness foreign matter And a maximum luminance value comparison unit that is selected as filter image data that is optimal for this.

前記発明の外観検査装置において、前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域のフーリエ・スペクトルを演算し、各フィルタ画像データのフーリエ・スペクトルから最大周波数成分を特徴量として算出する最大周波数成分算出部であり、前記フィルタ画像比較部は、前記最大周波数成分算出部が算出した前記赤、緑、及び、青の各フィルタ画像データのフーリエ・スペクトルの最大周波数成分を比較して、その最大周波数成分が最も大きなフィルタ画像データを、異物を検出するのに最適なフィルタ画像データとして選択する最大周波数成分比較部であることを特徴とする。   In the appearance inspection apparatus according to the invention, the feature amount extraction unit calculates a Fourier spectrum of an inspection region from each of the red, green, and blue filter image data, and calculates a maximum frequency from the Fourier spectrum of each filter image data. A maximum frequency component calculation unit that calculates a component as a feature amount, and the filter image comparison unit calculates a maximum Fourier spectrum of each of the red, green, and blue filter image data calculated by the maximum frequency component calculation unit. It is a maximum frequency component comparison unit that compares frequency components and selects filter image data having the largest maximum frequency component as optimum filter image data for detecting foreign matter.

本発明によれば、カラー画像に基づいて高精度に外観の良否判定ができる。   According to the present invention, it is possible to determine the quality of an appearance with high accuracy based on a color image.

外観検査装置のシステム構成を説明するためのシステム構成図である。It is a system block diagram for demonstrating the system configuration | structure of an external appearance inspection apparatus. 半導体チップを説明するための説明図である。It is explanatory drawing for demonstrating a semiconductor chip. ルックアップテーブルの構成を説明するための説明図である。It is explanatory drawing for demonstrating the structure of a look-up table. 第2実施形態の外観検査装置のシステム構成を示すシステム構成図である。It is a system configuration figure showing the system configuration of the appearance inspection device of a 2nd embodiment. 赤フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on red filter image data. 緑フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on green filter image data. 青フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on blue filter image data. 第3実施形態の外観検査装置のシステム構成を示すシステム構成図である。It is a system configuration figure showing the system configuration of the appearance inspection device of a 3rd embodiment. 赤フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on red filter image data. 緑フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on green filter image data. 青フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on blue filter image data. 第4実施形態の外観検査装置のシステム構成を示すシステム構成図である。It is a system configuration figure showing the system configuration of the appearance inspection device of a 4th embodiment. 赤フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on red filter image data. 緑フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on green filter image data. 青フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on blue filter image data. 第5実施形態の外観検査装置のシステム構成を示すシステム構成図である。It is a system configuration figure showing the system configuration of the appearance inspection device of a 5th embodiment. 赤フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on red filter image data. 緑フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on green filter image data. 青フィルタ画像データに基づく濃淡ヒストグラムを示す図である。It is a figure which shows the shading histogram based on blue filter image data. 第6実施形態の外観検査装置のシステム構成を示すシステム構成図である。It is a system configuration figure showing the system configuration of the appearance inspection device of a 6th embodiment.

(第1実施形態)
以下、本発明の外観検査装置を半導体ウェハ上に形成した半導体チップの外観検査装置に具体化した第1実施形態を図面に従って説明する。
(First embodiment)
Hereinafter, a first embodiment in which an appearance inspection apparatus according to the present invention is embodied in an appearance inspection apparatus for a semiconductor chip formed on a semiconductor wafer will be described with reference to the drawings.

図1において、外観検査装置1は検査テーブル2を備え、その検査テーブル2には、ワークとしての半導体ウェハWが載置されている。半導体ウェハWには、図2に示すように、ダイシング前の複数の半導体チップCPが区画形成されている。この半導体チップCPは、後工程において、チップ上に電子回路や機械要素が形成されて、MEMS(Micro Electro Mechanical Systems:微小電気機械素子)となる。本実施形態では、各半導体チップCPは、その4隅にダイシングマークAMが形成されているとともに、半導体チップCP内に四角形状の凹部3が形成されている。そして、凹部3の底部は四角形状に形成されるようになっている。   In FIG. 1, an appearance inspection apparatus 1 includes an inspection table 2, and a semiconductor wafer W as a workpiece is placed on the inspection table 2. As shown in FIG. 2, a plurality of semiconductor chips CP before dicing are partitioned on the semiconductor wafer W. This semiconductor chip CP is a MEMS (Micro Electro Mechanical Systems) in which electronic circuits and mechanical elements are formed on the chip in a later step. In the present embodiment, each semiconductor chip CP has dicing marks AM formed at the four corners thereof, and a rectangular recess 3 is formed in the semiconductor chip CP. And the bottom part of the recessed part 3 is formed in square shape.

半導体ウェハWを載置した検査テーブル2の上方位置には、照明部としての照明装置5が配置されている。照明装置5は、光源として白色LEDを備え、白色光を検査テーブル2上の半導体ウェハWに照射するようになっている。   An illumination device 5 as an illumination unit is disposed above the inspection table 2 on which the semiconductor wafer W is placed. The illumination device 5 includes a white LED as a light source, and irradiates the semiconductor wafer W on the inspection table 2 with white light.

検査テーブル2の上方位置には、撮像部としてのカラー撮像装置8が配置されている。カラー撮像装置8は、照明装置5の白色光が照射された半導体ウェハWの各半導体チップCPを撮像する。カラー撮像装置8は、CCD(Charge Coupled Device)イメージセンサ8aを備え、そのイメージセンサ8aの各画素(受光素子)毎に、R(赤)、G(緑)、B(青)のカラーフィルタのいずれかを配置して、カラー画像を撮像する。尚、本実施形態では、各素子毎のカラーフィルタの配置は、いわゆる、ベイヤー(Bayer)配列としている。   A color imaging device 8 as an imaging unit is disposed above the inspection table 2. The color imaging device 8 images each semiconductor chip CP of the semiconductor wafer W irradiated with white light from the illumination device 5. The color imaging device 8 includes a CCD (Charge Coupled Device) image sensor 8a, and R (red), G (green), and B (blue) color filters for each pixel (light receiving element) of the image sensor 8a. Any one of them is arranged to capture a color image. In the present embodiment, the arrangement of the color filters for each element is a so-called Bayer array.

そして、カラー撮像装置8で撮像した半導体ウェハWの各半導体チップCPのカラー画像データGDは、画像処理部としての画像処理装置10に出力される。
画像処理装置10は、カラー撮像装置8で撮像したカラー画像データGDを画像処理して半導体ウェハWの各半導体チップCPの欠陥の有無を検出して良否判定を行う。画像処理装置10は、RGB画像データ生成部11、輝度平均値算出部12、平均値比較部13、異物判定処理部14、記憶部15及びルックアップテーブルLTを有している。
Then, the color image data GD of each semiconductor chip CP of the semiconductor wafer W imaged by the color imaging device 8 is output to the image processing device 10 as an image processing unit.
The image processing device 10 performs image processing on the color image data GD imaged by the color imaging device 8 to detect the presence / absence of a defect in each semiconductor chip CP of the semiconductor wafer W, and performs pass / fail judgment. The image processing apparatus 10 includes an RGB image data generation unit 11, a luminance average value calculation unit 12, an average value comparison unit 13, a foreign matter determination processing unit 14, a storage unit 15, and a lookup table LT.

RGB画像データ生成部11は、カラー撮像装置8(CCDイメージセンサ8a)で撮像したカラー画像データGDを入力し、カラー画像データGDを分解して、赤フィルタ画像データDrf、緑フィルタ画像データDgf、青フィルタ画像データDbfを生成する。   The RGB image data generation unit 11 inputs color image data GD imaged by the color imaging device 8 (CCD image sensor 8a), decomposes the color image data GD, red filter image data Drf, green filter image data Dgf, Blue filter image data Dbf is generated.

詳述すると、イメージセンサ8aの赤のフィルタを配置した各画素(受光素子)からの画素データは、赤フィルタ画像データDrfとなる。また、緑のフィルタを配置した各画素(受光素子)からの画素データは、緑フィルタ画像データDgfとなる。さらに、青のフィルタを配置した各画素(受光素子)からの画素データは、青フィルタ画像データDbfとなる。   More specifically, pixel data from each pixel (light receiving element) in which the red filter of the image sensor 8a is arranged is red filter image data Drf. Further, pixel data from each pixel (light receiving element) in which the green filter is arranged becomes green filter image data Dgf. Further, pixel data from each pixel (light receiving element) in which the blue filter is arranged becomes blue filter image data Dbf.

このとき、本実施形態では、CCDイメージセンサ8aは、カラーフィルタについて、ベイヤー(Bayer)配列を採用している。そのため、イメージセンサ8aの全画素数(例えばN個)に対して、赤と青の画素数N/4、緑が画素数N/2となり、一様でなく数が異なる。   At this time, in the present embodiment, the CCD image sensor 8a employs a Bayer array for the color filter. Therefore, with respect to the total number of pixels (for example, N) of the image sensor 8a, the number of red and blue pixels is N / 4, and the number of green is N / 2.

そこで、RGB画像データ生成部11は、各画素の周辺の画素のデータを利用して補間処理を行い、N個の画素(即ち、イメージセンサの全画素)からなる赤フィルタ画像データDrf、緑フィルタ画像データDgf、及び、青フィルタ画像データDbfをそれぞれ生成する。   Therefore, the RGB image data generation unit 11 performs interpolation processing using the data of the pixels around each pixel, and performs red filter image data Drf, green filter including N pixels (that is, all pixels of the image sensor). Image data Dgf and blue filter image data Dbf are respectively generated.

RGB画像データ生成部11が作成した、それぞれN個の画素からなる赤フィルタ画像データDrf、緑フィルタ画像データDgf、及び、青フィルタ画像データDbfは、特徴量抽出部としての輝度平均値算出部12に出力される。   The red filter image data Drf, the green filter image data Dgf, and the blue filter image data Dbf each having N pixels, which are created by the RGB image data generation unit 11, are used as a luminance average value calculation unit 12 as a feature amount extraction unit. Is output.

輝度平均値算出部12は、赤フィルタ画像データDrf、緑フィルタ画像データDgf及び青フィルタ画像データDbfについて、半導体チップCPは、その4隅にダイシングマークAMが形成されているとともに、半導体チップCP内に四角形状の凹部3であって予め定めた検査領域にある各フィルタ画像データDrf,Dgf,Dbfにおける輝度値の輝度平均値Avr,Avg,Avbをそれぞれ求める。尚、各フィルタ画像データDrf,Dgf,Dbfの輝度値は、本実施形態では、8ビットのビットデータで構成され、0〜255の階調に区分されている。   The luminance average value calculation unit 12 has a semiconductor chip CP with dicing marks AM formed at four corners of the red filter image data Drf, the green filter image data Dgf, and the blue filter image data Dbf. The average luminance values Avr, Avg, and Avb of the luminance values in the filter image data Drf, Dgf, and Dbf in the rectangular indentation 3 in the predetermined inspection area are respectively obtained. In the present embodiment, the luminance values of the filter image data Drf, Dgf, and Dbf are configured by 8-bit bit data, and are divided into gradations of 0 to 255.

詳述すると、予め定めた検査領域にある赤フィルタ画像データDrfについて、その検査領域に属する画素の輝度値を合計し、検査領域にある画素数で割って、赤フィルタ画像データDrfに基づく輝度平均値Avrを求める。同様にして、緑フィルタ画像データDgf及び青フィルタ画像データDbfに基づく輝度平均値Avg,Avbもそれぞれ求める。   More specifically, for the red filter image data Drf in the predetermined inspection area, the luminance values of the pixels belonging to the inspection area are summed and divided by the number of pixels in the inspection area, and the luminance average based on the red filter image data Drf The value Avr is obtained. Similarly, average luminance values Avg and Avb based on the green filter image data Dgf and the blue filter image data Dbf are also obtained.

輝度平均値算出部12にて算出された赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfに対する輝度平均値Avr,Avg,Avbは、フィルタ画像比較部としての平均値比較部13に出力される。平均値比較部13は、この輝度平均値Avr,Avg,Avbと画像処理装置10内に設けられたルックアップテーブルLTに記憶された選定フィルタ画像データDsfと比較して、一致する選定フィルタ画像データDsfを検索する。   The luminance average values Avr, Avg, Avb for the red, green, and blue filter image data Drf, Dgf, Dbf calculated by the luminance average value calculation unit 12 are output to an average value comparison unit 13 as a filter image comparison unit. Is done. The average value comparison unit 13 compares the average brightness values Avr, Avg, Avb with the selected filter image data Dsf stored in the look-up table LT provided in the image processing apparatus 10, and matches the selected filter image data. Search for Dsf.

ルックアップテーブルLTは、図3に示すように、1つの半導体チップCPから取得されたカラー画像データGD毎に、予め定めた検査領域における赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfに対する輝度平均値Avr,Avg,Avbが記憶され、その輝度平均値Avr,Avg,Avbに対する選定フィルタ画像データDsfを記憶したテーブルである。   As shown in FIG. 3, the look-up table LT includes, for each color image data GD acquired from one semiconductor chip CP, red, green, and blue filter image data Drf, Dgf, Dbf in a predetermined inspection region. Is a table in which the average brightness values Avr, Avg, Avb are stored, and the selected filter image data Dsf for the average brightness values Avr, Avg, Avb are stored.

詳述すると、カラー撮像装置8にて撮像される半導体チップCPは、良品の範囲内にあっても僅かに膜厚が異なれば、半導体チップCPの凹部3に囲まれた四角枠内の色味が変わる。この場合、良品の範囲内にあってもこの色味の変化に基づいて、異物でないのに異物と誤検出し不良品と判断されてしまう。   More specifically, the color of the semiconductor chip CP imaged by the color imaging device 8 is within the rectangular frame surrounded by the recess 3 of the semiconductor chip CP if the film thickness is slightly different even if it is within the range of non-defective products. Changes. In this case, even if it is within the range of the non-defective product, based on the change in color, it is not a foreign material but is erroneously detected as a foreign material and is determined to be a defective product.

そこで、カラー撮像装置8にて取得したカラー画像データGDを赤、緑及び青に分解して得た、赤フィルタ画像データDrf、緑フィルタ画像データDgf及び青フィルタ画像データDbfの中のいずれのフィルタ画像データが検査領域内の異物と背景色とのコントラストが最も大きく、そのフィルタ画像データを使用して検査すれば高精度に検査できるかを検証した。そして、その輝度平均値Avr,Avg,Avbの組み合わせから検査に使用するフィルタ画像データを選定するために使用されるのがルックアップテーブルLTである。   Therefore, any of the red filter image data Drf, the green filter image data Dgf, and the blue filter image data Dbf obtained by decomposing the color image data GD acquired by the color imaging device 8 into red, green, and blue. It was verified whether the image data has the highest contrast between the foreign matter in the inspection area and the background color and can be inspected with high accuracy if inspection is performed using the filter image data. The lookup table LT is used to select filter image data to be used for inspection from the combination of the average luminance values Avr, Avg, and Avb.

ルックアップテーブルLTは、以下のように作成される。
つまり、まず、良品であって、色味が異なる全ての半導体チップCPを用意し、これら各半導体チップCPをカラー撮像装置8にて撮像する。そして、色味が異なる良品の各半導体チップCPについて、予め定めた検査領域における赤、緑及び青の各フィルタ画像データに対する輝度平均値Avr,Avg,Avbを求める。そして、その求めた各輝度平均値Avr,Avg,Avbの組み合わせが、色味が異なる良品の半導体チップCP毎にルックアップテーブルLTに記憶される。
The lookup table LT is created as follows.
That is, first, all the semiconductor chips CP that are non-defective products and different in color are prepared, and each of these semiconductor chips CP is imaged by the color imaging device 8. Then, for each of the non-defective semiconductor chips CP having different colors, luminance average values Avr, Avg, and Avb are obtained for the red, green, and blue filter image data in a predetermined inspection region. Then, the obtained combinations of the respective luminance average values Avr, Avg, Avb are stored in the lookup table LT for each good semiconductor chip CP having a different color.

そして、半導体チップCP毎の各フィルタ画像データDrf,Dgf.Dbfの輝度平均値Avr,Avg,Avbの組み合わせにおいて、赤フィルタ画像データDrf、緑フィルタ画像データDgf及び青フィルタ画像データDbfのいずれのフィルタ画像データが検査領域内の異物と背景色とのコントラストが最も大きく現れるのか検証する。そして、検証して、輝度平均値Avr,Avg,Avbの組み合わせにおいて、赤フィルタ画像データDrf、緑フィルタ画像データDgf及び青フィルタ画像データDbfの中のいずれが、検査領域内の異物と背景色とのコントラストが最も大きいフィルタ画像データかを求めて、そのコントラストが最も大きいフィルタ画像データを選定フィルタ画像データDsfとして記憶する。   Then, each filter image data Drf, Dgf. In the combination of the luminance average values Avr, Avg, and Avb of Dbf, any of the filter image data of the red filter image data Drf, the green filter image data Dgf, and the blue filter image data Dbf has a contrast between the foreign matter in the inspection region and the background color. Verify whether it appears the most. Then, by verifying, in the combination of the luminance average values Avr, Avg, and Avb, any of the red filter image data Drf, the green filter image data Dgf, and the blue filter image data Dbf is the foreign matter and the background color in the inspection region. The filter image data having the highest contrast is obtained, and the filter image data having the highest contrast is stored as the selected filter image data Dsf.

ここで、検査領域内の異物と背景色とのコントラストが最も大きいフィルタ画像データとした理由は、以後の異物に検出する際の、異物に対する背景色(色味)のコントラストが最も大きく、異物検出の際の閾値が容易に設定でき高精度に検査が可能となるからである。   Here, the reason why the filter image data has the largest contrast between the foreign matter in the inspection region and the background color is that the contrast of the background color (color) with respect to the foreign matter is the largest when detecting the foreign matter thereafter, and the foreign matter detection. This is because the threshold value in this case can be easily set and inspection can be performed with high accuracy.

また、ルックアップテーブルLTは、不良品となる半導体チップCPの色味(色味異常)の色味異常判定データNGが設けられている。色味異常とは、検査領域内の異物と背景色と外観検査が不能な色味であって、そのような色味を有する半導体チップCPは検査不能として選定フィルタ画像データDsfを選択せず色味異常判定データNGとする。   In addition, the look-up table LT is provided with color abnormality determination data NG for the color (color abnormality) of the semiconductor chip CP that is a defective product. The abnormal color is a color that cannot be visually inspected by the foreign matter, background color, and appearance in the inspection area. The semiconductor chip CP having such a color cannot be inspected, and the selected filter image data Dsf is not selected. It is set as taste abnormality determination data NG.

色味異常判定データNGは、異なる色味異常の全ての半導体チップCPを用意し、同様に、これら各半導体チップCPをカラー撮像装置8にて撮像する。そして、異なる色味異常の各半導体チップCPについて、予め定めた検査領域における赤、緑及び青の各フィルタ画像データに対する輝度平均値Avr,Avg,Avbを求める。そして、その求めた各輝度平均値Avr,Avg,Avbの組み合わせに対して、ルックアップテーブルLTに色味異常判定データNGとして記憶されるようになっている。   As the color abnormality determination data NG, all semiconductor chips CP having different color abnormalities are prepared, and each of these semiconductor chips CP is similarly imaged by the color imaging device 8. Then, for each of the semiconductor chips CP having different color abnormalities, average brightness values Avr, Avg, Avb are obtained for the respective filter image data of red, green, and blue in a predetermined inspection region. Then, the obtained luminance average values Avr, Avg, and Avb are stored as color abnormality determination data NG in the lookup table LT.

因みに、図3に示すルックアップテーブルLTにおいて、赤フィルタ画像データDrfの輝度平均値Avrが「55」、緑フィルタ画像データDgfの輝度平均値Avgが「170」、青フィルタ画像データDbfの輝度平均値Avbが「100」の場合は、選定フィルタ画像データDsfは、緑フィルタ画像データDgfとしている。   Incidentally, in the lookup table LT shown in FIG. 3, the average luminance value Avr of the red filter image data Drf is “55”, the average luminance value Avg of the green filter image data Dgf is “170”, and the average luminance of the blue filter image data Dbf is When the value Avb is “100”, the selected filter image data Dsf is green filter image data Dgf.

また、赤フィルタ画像データDrfの輝度平均値Avrが「205」、緑フィルタ画像データDgfの輝度平均値Avgが「110」、青フィルタ画像データDbfの輝度平均値Avbが「145」の場合は、選定フィルタ画像データDsfは、赤フィルタ画像データDrfとしている。   Further, when the average luminance value Avr of the red filter image data Drf is “205”, the average luminance value Avg of the green filter image data Dgf is “110”, and the average luminance value Avb of the blue filter image data Dbf is “145”, The selected filter image data Dsf is red filter image data Drf.

従って、平均値比較部13は、輝度平均値算出部12が算出した輝度平均値Avr,Avg,AvbとルックアップテーブルLTに記憶された選定フィルタ画像データDsfと比較して、一致する輝度平均値Avr,Avg,Avbがあると、その輝度平均値Avr,Avg,Avbに対する選定フィルタ画像データDsfを読み出す。つまり、選定フィルタ画像データDsfが赤フィルタ画像データDrfであれば、赤フィルタ画像データDrfを選定フィルタ画像データDsfとして選択する。   Therefore, the average value comparison unit 13 compares the luminance average values Avr, Avg, Avb calculated by the luminance average value calculation unit 12 with the selected filter image data Dsf stored in the lookup table LT, and matches the luminance average values. If there are Avr, Avg, and Avb, the selected filter image data Dsf for the luminance average values Avr, Avg, and Avb is read. That is, if the selected filter image data Dsf is the red filter image data Drf, the red filter image data Drf is selected as the selected filter image data Dsf.

そして、平均値比較部13において、選定フィルタ画像データDsfとして赤フィルタ画像データDrfが選択されると、異物判定処理部14は、この異物と背景色とのコントラストが最も大きい赤フィルタ画像データDrfを使って画像処理を行って、異物の検出を行う。   When the average value comparison unit 13 selects the red filter image data Drf as the selected filter image data Dsf, the foreign matter determination processing unit 14 selects the red filter image data Drf having the largest contrast between the foreign matter and the background color. Use it to perform image processing and detect foreign matter.

異物検出は、赤フィルタ画像データDrfの全画素の輝度値と予め定めた閾値と比較し、異物の大きさ形状を求めて異物検出し良品判定を行う。
このとき、異物判定処理部14は、異物と背景色とのコントラストが最も大きい赤フィルタ画像データDrfを使って画像処理を行い異物と背景色との判断を行うことから、閾値の設定も容易でかつ高精度の異物検出を行うことができる。
In the foreign object detection, the luminance value of all the pixels of the red filter image data Drf is compared with a predetermined threshold value, the size and shape of the foreign object are obtained, and the foreign object is detected and the non-defective product is determined.
At this time, since the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf having the largest contrast between the foreign matter and the background color and determines the foreign matter and the background color, the threshold value can be easily set. In addition, highly accurate foreign object detection can be performed.

また、選定フィルタ画像データDsfとして緑又は青フィルタ画像データDgf,Dbfが選択された場合も同様に、異物と背景色とのコントラストが最も大きい緑又は青フィルタ画像データDgf,Dbfを使って画像処理を行い、異物と背景色との判断を行うことから、閾値の設定も容易でかつ高精度の異物検出を行うことができる。   Similarly, when green or blue filter image data Dgf or Dbf is selected as the selected filter image data Dsf, image processing is performed using the green or blue filter image data Dgf or Dbf having the largest contrast between the foreign matter and the background color. Since the determination of the foreign matter and the background color is performed, the threshold value can be easily set and high-precision foreign matter detection can be performed.

そして、異物判定処理部14は、各半導体チップCPの異物検出を行い、その良品の有無を判定し、その判定結果を、記憶部15に記憶する。
尚、輝度平均値算出部12が算出した輝度平均値Avr,Avg,Avbの組み合わせが、ルックアップテーブルLTにおいて色味異常判定データNGであった場合には、半導体チップCPが色味異常であって、高精度の異物検出ができないとして、該半導体チップCPを不良品として判定する。
Then, the foreign matter determination processing unit 14 detects the foreign matter of each semiconductor chip CP, determines the presence / absence of the non-defective product, and stores the determination result in the storage unit 15.
When the combination of the luminance average values Avr, Avg, and Avb calculated by the luminance average value calculation unit 12 is the color abnormality determination data NG in the lookup table LT, the semiconductor chip CP is abnormal in color. Therefore, the semiconductor chip CP is determined as a defective product on the assumption that the foreign matter cannot be detected with high accuracy.

上記のように構成することによって、本実施形態は以下の効果を有する。
(1)本実施形態によれば、輝度平均値算出部12は、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ輝度平均値Avr,Avg,Avbを求めた。平均値比較部13は、その求めた輝度平均値Avr,Avg,Avbから、ルックアップテーブルLTを使って、異物と背景色とのコントラストが最も大きいフィルタ画像データを選択した。そして、異物判定処理部14は、その選択した異物と背景色とのコントラストが最も大きいフィルタ画像データに基づいて画像処理を行うようにした。
By configuring as described above, the present embodiment has the following effects.
(1) According to the present embodiment, the luminance average value calculation unit 12 calculates the luminance average values Avr, Avg, Avb from the respective filter image data Drf, Dgf, Dbf. The average value comparison unit 13 selects filter image data having the largest contrast between the foreign matter and the background color from the obtained luminance average values Avr, Avg, Avb using the lookup table LT. Then, the foreign matter determination processing unit 14 performs image processing based on the filter image data having the largest contrast between the selected foreign matter and the background color.

従って、各フィルタ画像データDrf,Dgf.Dbfの中から、異物と背景色とのコントラストが最も大きいフィルタ画像データを使って画像処理を行い異物と背景色との判断を行うことから、閾値の設定も容易でかつ高精度の異物検出を行うことができる。   Therefore, each filter image data Drf, Dgf. From Dbf, image processing is performed using the filter image data with the largest contrast between the foreign matter and the background color, and the foreign matter and the background color are judged. Therefore, it is easy to set the threshold and detect the foreign matter with high accuracy. It can be carried out.

(2)本実施形態によれば、ルックアップテーブルLTに、半導体チップCPの色味異常を検出するための、各フィルタ画像データDrf,Dgf,Dbfに対する輝度平均値Avr,Avg,Avbも記憶させたので、色味異常と判定された場合には、以後の異物判定処理部14による処理動作が省略できる。
(第2実施形態)
次に、第2実施形態について、図4に従って説明する。
(2) According to the present embodiment, the lookup table LT also stores the average luminance values Avr, Avg, Avb for the filter image data Drf, Dgf, Dbf for detecting the color abnormality of the semiconductor chip CP. Therefore, when it is determined that the color is abnormal, the subsequent processing operation by the foreign matter determination processing unit 14 can be omitted.
(Second Embodiment)
Next, a second embodiment will be described with reference to FIG.

第1実施形態の外観検査装置1は特徴量として赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfにおける輝度平均値Avr,Avg,Avbを求め、それに基づいて赤、緑又は青のフィルタ画像データDrf,Dgf,Dbfのいずれかのフィルタ画像データを使用して半導体チップCPの外観検査を行った。   The appearance inspection apparatus 1 according to the first embodiment obtains luminance average values Avr, Avg, Avb in the respective filter image data Drf, Dgf, Dbf of red, green, and blue as feature quantities, and filters of red, green, or blue are based on the obtained values. The appearance inspection of the semiconductor chip CP was performed using any one of the filter image data of the image data Drf, Dgf, and Dbf.

本実施形態の外観検査装置1は、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に濃淡ヒストグラムを作成し、その濃淡ヒストグラムに基づいて赤、緑又は青の各フィルタ画像データDrf,Dgf,Dbfのいずれかを選択し外観検査をする点に特徴を有している。   The appearance inspection apparatus 1 of the present embodiment creates a density histogram for each of the red, green, and blue filter image data Drf, Dgf, and Dbf, and each of the red, green, and blue filter image data Drf based on the density histogram. , Dgf, and Dbf, and a visual inspection is performed.

なお、説明の便宜上、第1実施形態と共通の部分については、同じ符号を付して詳細な説明を省略する。
図4において、RGB画像データ生成部11がカラー画像データGDに基づいて作成したそれぞれN個の画素からなる赤、緑、及び青の各フィルタ画像データDrf,Dgf,Dbfは、低輝度側傾き算出部12aに出力される。
For convenience of explanation, portions common to the first embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.
In FIG. 4, each of the filter image data Drf, Dgf, Dbf of red, green, and blue, each consisting of N pixels created by the RGB image data generation unit 11 based on the color image data GD, is calculated on the low luminance side inclination. Is output to the unit 12a.

特徴量抽出部としての低輝度側傾き算出部12aは、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfについて、それぞれ全画素の輝度値を求める。輝度値は、本実施形態では、8ビットのビットデータで構成され、0〜255の階調に区分されている。そして、低輝度側傾き算出部12aは、全画素の輝度値が求まると、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて濃淡ヒストグラムを作成する。   The low luminance side inclination calculating unit 12a as the feature amount extracting unit obtains luminance values of all the pixels for the red, green and blue filter image data Drf, Dgf and Dbf. In this embodiment, the luminance value is composed of 8-bit bit data, and is divided into gradations of 0 to 255. Then, when the luminance values of all the pixels are obtained, the low luminance side inclination calculating unit 12a calculates a density histogram based on the luminance values of all the pixels for each of the red, green, and blue filter image data Drf, Dgf, and Dbf. create.

図5、図6及び図7に、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて低輝度側傾き算出部12aが作成した濃淡ヒストグラムの一例を示す。   5, 6, and 7 show the density histograms created by the low luminance side inclination calculation unit 12 a based on the luminance values of all the pixels for each of the red, green, and blue filter image data Drf, Dgf, and Dbf. An example is shown.

図5は、赤フィルタ画像データDrfに基づく赤濃淡ヒストグラム21aであって、横軸が輝度値、縦軸は画素数である。尚、赤濃淡ヒストグラム21aから離間した低輝度側に存在する小さな小輝度分布21bは、低輝度異物(黒画素異物)によるヒストグラムである。   FIG. 5 is a red density histogram 21a based on the red filter image data Drf, where the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. A small small luminance distribution 21b existing on the low luminance side away from the red / dark histogram 21a is a histogram of low luminance foreign matter (black pixel foreign matter).

また、図6は、緑フィルタ画像データDgfに基づく緑濃淡ヒストグラム22aであって、同じく横軸が輝度値、縦軸は画素数である。そして、緑濃淡ヒストグラム22aから離間した低輝度側に存在する小さな小輝度分布22bは、低輝度異物(黒画素異物)によるヒストグラムである。   FIG. 6 is a green light / dark histogram 22a based on the green filter image data Dgf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. A small small luminance distribution 22b existing on the low luminance side away from the green / dark histogram 22a is a histogram of low luminance foreign matter (black pixel foreign matter).

また、図7は、青フィルタ画像データDbfに基づく青濃淡ヒストグラム23aであって、同じく横軸が輝度値、縦軸は画素数である。そして、青濃淡ヒストグラム23aから離間した低輝度側に存在する小さな小輝度分布23bは、低輝度異物(黒画素異物)によるヒストグラムである。   FIG. 7 is a blue shade histogram 23a based on the blue filter image data Dbf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. And the small small luminance distribution 23b which exists in the low-luminance side spaced apart from the blue shade histogram 23a is a histogram by a low-luminance foreign material (black pixel foreign material).

低輝度側傾き算出部12aは、赤、緑及び青の各濃淡ヒストグラム21a,22a,23aを作成すると、その各濃淡ヒストグラム21a,22a,23aの低輝度側の傾きS1(=tanθ1:但し、絶対値),S2(=tanθ2:但し、絶対値),S3(=tanθ3:但し、絶対値)を算出し、これら傾きS1,S2,S3を低輝度側傾き比較部13aに出力する。   When the low luminance side inclination calculation unit 12a creates the red, green, and blue gray histograms 21a, 22a, and 23a, the low luminance side slope S1 (= tan θ1: provided that the gray histograms 21a, 22a, and 23a are absolute Value), S2 (= tan θ2: where absolute value), S3 (= tan θ3: where absolute value) are calculated, and these gradients S1, S2, and S3 are output to the low luminance side gradient comparison unit 13a.

フィルタ画像比較部としての低輝度側傾き比較部13aは、これら傾きS1,S2,S3(絶対値)の大小を比較し、傾きが最も大きい濃淡ヒストグラムのフィルタ画像データを割り出す。これは、傾きが最も大きい濃淡ヒストグラムほど、隣接する低輝度異物による小輝度分布21b,22b,23bとの間のコントラストが大きく閾値Bk1を設定し易いからである。   The low luminance side inclination comparison unit 13a as the filter image comparison unit compares the inclinations S1, S2, and S3 (absolute values), and calculates filter image data of a grayscale histogram having the largest inclination. This is because the contrast between the low-intensity distributions 21b, 22b, and 23b due to the adjacent low-intensity foreign matter is large and the threshold Bk1 can be easily set as the grayscale histogram having the largest inclination.

そして、図5、図6及び図7の赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの各濃淡ヒストグラム21a,22a,23aにおいては、赤濃淡ヒストグラム21aの傾きS1(絶対値)が最も大きいことから赤フィルタ画像データDrfが選択される。   In each of the density histograms 21a, 22a, and 23a of the red, green, and blue filter image data Drf, Dgf, and Dbf shown in FIGS. 5, 6, and 7, the slope S1 (absolute value) of the red density histogram 21a is shown. The red filter image data Drf is selected because it is the largest.

この時、低輝度側傾き比較部13aは、赤濃淡ヒストグラム21aの最小輝度値Bmin1と隣接する低輝度異物による小輝度分布21bの最大輝度値Bmax1の中間の輝度値を外観検査のために使用する閾値Bk1として算出する。   At this time, the low luminance side inclination comparison unit 13a uses a luminance value intermediate between the minimum luminance value Bmin1 of the red / dark histogram 21a and the maximum luminance value Bmax1 of the small luminance distribution 21b due to the adjacent low luminance foreign matter for the appearance inspection. Calculated as the threshold value Bk1.

そして、低輝度側傾き比較部13aにおいて、赤フィルタ画像データDrfが選択されると、異物判定処理部14は、この赤フィルタ画像データDrfと閾値Bk1を使って画像処理を行って、低輝度異物(黒画素異物)の検出を行う。   Then, when the red filter image data Drf is selected in the low luminance side inclination comparison unit 13a, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk1 to obtain a low luminance foreign matter. Detection of (black pixel foreign matter) is performed.

低輝度異物検出は、赤フィルタ画像データDrfの全画素の輝度値に対して閾値Bk1を比較させ、その閾値Bk1以下の輝度値を持つ画素から低輝度異物の大きさ形状を求めて低輝度異物を検出し良品判定を行う。   The low-intensity foreign object detection is performed by comparing the threshold value Bk1 with the luminance values of all the pixels of the red filter image data Drf, and determining the size and shape of the low-intensity foreign substance from the pixels having the luminance value less than the threshold value Bk1 Is detected and a non-defective product is determined.

このとき、異物判定処理部14は、赤フィルタ画像データDrfとその赤フィルタ画像データDrfにおいて低輝度異物を高精度に抽出できる閾値Bk1とを使って画像処理を行って、低輝度異物と背景色との判断を行うことから、高精度の低輝度異物検出を行うことができる。   At this time, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk1 with which the low brightness foreign matter can be extracted with high accuracy in the red filter image data Drf, and thereby the low brightness foreign matter and the background color. Therefore, highly accurate low-intensity foreign object detection can be performed.

また、緑又は青のフィルタ画像データDgf,Dbfが選択された場合も同様に、低輝度異物の検出のための閾値が求められ、該閾値と緑又は青フィルタ画像データDgf,Dbfを使って画像処理を行い低輝度異物と背景色との判断を行うことから、高精度の低輝度異物検出を行うことができる。   Similarly, when green or blue filter image data Dgf or Dbf is selected, a threshold value for detecting a low-intensity foreign matter is obtained, and an image is obtained using the threshold value and the green or blue filter image data Dgf or Dbf. Since the low brightness foreign object and the background color are determined by performing the processing, it is possible to detect the low brightness foreign object with high accuracy.

そして、異物判定処理部14は、各半導体チップCPの低輝度異物検出を行い、その良品の有無を判定し、その判定結果を、記憶部15に記憶する。
上記のように構成することによって、本実施形態は以下の効果を有する。
Then, the foreign matter determination processing unit 14 performs low-luminance foreign matter detection of each semiconductor chip CP, determines the presence or absence of the non-defective product, and stores the determination result in the storage unit 15.
By configuring as described above, the present embodiment has the following effects.

(1)本実施形態によれば、低輝度側傾き算出部12aは、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ赤、緑及び青の各濃淡ヒストグラム21a,22a,23aを作成した。そして、低輝度側傾き算出部12aは、その各濃淡ヒストグラム21a,22a,23aの低輝度側の傾きS1,S2,S3を求めた。   (1) According to the present embodiment, the low luminance side inclination calculating unit 12a creates the respective red, green, and blue gray histograms 21a, 22a, and 23a from the respective filter image data Drf, Dgf, and Dbf. Then, the low luminance side inclination calculating unit 12a obtains the low luminance side inclinations S1, S2, and S3 of the respective grayscale histograms 21a, 22a, and 23a.

低輝度側傾き比較部13aは、これら傾きS1,S2,S3の大小を比較し、傾きが最も大きい濃淡ヒストグラムが隣接する低輝度異物による小輝度分布21b,22b,23bとの間において、コントラストが最も大きくて閾値Bk1が最も設定し易いとして傾きが最も大きい濃淡ヒストグラムのフィルタ画像データを選択した。   The low luminance side inclination comparison unit 13a compares the magnitudes of the inclinations S1, S2, and S3, and the contrast between the small luminance distributions 21b, 22b, and 23b due to the low luminance foreign matter adjacent to the grayscale histogram having the largest inclination is compared. The filter image data of the lightness and darkness histogram having the largest inclination because the threshold Bk1 is the largest and is most easily set was selected.

そして、異物判定処理部14は、その選択した異物と背景色とのコントラストが大きく閾値Bk1が最も設定し易いフィルタ画像データに基づいて画像処理を行うようにした。
従って、各フィルタ画像データDrf,Dgf.Dbfの中から、異物と背景色とのコントラストが大きく閾値Bk1が最も設定し易いフィルタ画像データを使って画像処理を行うことから、高精度の低輝度異物検出を行うことができる。
The foreign matter determination processing unit 14 performs image processing based on filter image data in which the contrast between the selected foreign matter and the background color is large and the threshold value Bk1 is most easily set.
Therefore, each filter image data Drf, Dgf. Since image processing is performed using filter image data in which the contrast between the foreign matter and the background color is large and the threshold value Bk1 is most easily set from Dbf, high-precision, low-luminance foreign matter detection can be performed.

(2)本実施形態によれば、傾きS1,S2,S3の大小を比較し、傾きが最も大きい濃淡ヒストグラムが隣接する低輝度異物による小輝度分布21b,22b,23bとの間において、閾値Bk1を設定するようにしたので、閾値の設定作業が非常に容易となる。   (2) According to the present embodiment, the magnitudes of the slopes S1, S2, and S3 are compared, and the threshold value Bk1 is compared with the small brightness distributions 21b, 22b, and 23b due to the adjacent low brightness foreign matter in the density histogram having the largest slope. Since the threshold value is set, it is very easy to set the threshold value.

尚、本実施形態では、閾値Bk1を最小輝度値Bmin1と隣接する小輝度分布21bの最大輝度値Bmax1の中間に設定したが、中間でなくても良く適宜変更してもよい。
(第3実施形態)
次に、第3実施形態について、図8に従って説明する。
In the present embodiment, the threshold value Bk1 is set to the middle between the minimum luminance value Bmin1 and the maximum luminance value Bmax1 of the adjacent small luminance distribution 21b.
(Third embodiment)
Next, a third embodiment will be described with reference to FIG.

第2実施形態の外観検査装置1は赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの濃淡ヒストグラム21a,22a,23aの低輝度側傾きS1,S2,S3を特徴量とした。そして、それらに基づいて赤、緑又は青のフィルタ画像データDrf,Dgf,Dbfのいずれかのフィルタ画像データから半導体チップCP上の低輝度異物(黒画素異物)の外観検査を行った。   The appearance inspection apparatus 1 according to the second embodiment uses the low luminance side slopes S1, S2, and S3 of the density histograms 21a, 22a, and 23a of the red, green, and blue filter image data Drf, Dgf, and Dbf as feature amounts. Based on these, the appearance inspection of the low-intensity foreign matter (black pixel foreign matter) on the semiconductor chip CP was performed from any one of the filter image data of red, green, or blue filter image data Drf, Dgf, Dbf.

本実施形態の外観検査装置1は、半導体チップCP上の高輝度異物(白画素異物)の外観検査をする点に特徴を有している。
なお、説明の便宜上、第2実施形態と共通の部分については、同じ符号を付して詳細な説明を省略する。
The appearance inspection apparatus 1 according to the present embodiment is characterized in that an appearance inspection of high-intensity foreign matter (white pixel foreign matter) on the semiconductor chip CP is performed.
For convenience of explanation, portions common to the second embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.

図8において、RGB画像データ生成部11がカラー画像データGDに基づいて作成したそれぞれN個の画素からなる赤、緑、及び青の各フィルタ画像データDrf,Dgf,Dbfは、高輝度側傾き算出部12bに出力される。   In FIG. 8, each of the filter image data Drf, Dgf, and Dbf of red, green, and blue, each consisting of N pixels, created by the RGB image data generation unit 11 based on the color image data GD, is calculated on the high luminance side inclination. Is output to the unit 12b.

特徴量抽出部としての高輝度側傾き算出部12bは、赤、緑及び青のフィルタ画像データについて、それぞれ全画素の輝度値を求める。輝度値は、本実施形態では、8ビットのビットデータで構成され、0〜255の階調に区分されている。そして、高輝度側傾き算出部12bは、全画素の輝度値が求まると、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて濃淡ヒストグラムを作成する。   The high luminance side inclination calculating unit 12b as the feature amount extracting unit obtains luminance values of all pixels for the red, green, and blue filter image data. In this embodiment, the luminance value is composed of 8-bit bit data, and is divided into gradations of 0 to 255. Then, when the luminance values of all the pixels are obtained, the high luminance side inclination calculating unit 12b obtains a density histogram based on the luminance values of all the pixels for each of the red, green, and blue filter image data Drf, Dgf, and Dbf. create.

図9、図10及び図11に、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて高輝度側傾き算出部12bが作成した濃淡ヒストグラムの一例を示す。   9, 10, and 11 show the density histograms created by the high luminance side inclination calculation unit 12 b based on the luminance values of all the pixels for each of the red, green, and blue filter image data Drf, Dgf, and Dbf. An example is shown.

図9は、赤フィルタ画像データDrfに基づく赤濃淡ヒストグラム31aであって、横軸が輝度値、縦軸は画素数である。尚、赤濃淡ヒストグラム31aから離間した高輝度側に存在する小さな小輝度分布31bは、高輝度異物(白画素異物)によるヒストグラムである。   FIG. 9 is a red density histogram 31a based on the red filter image data Drf, where the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. A small small luminance distribution 31b existing on the high luminance side away from the red / dark histogram 31a is a histogram of high luminance foreign matter (white pixel foreign matter).

また、図10は、緑フィルタ画像データDgfに基づく緑濃淡ヒストグラム32aであって、同じく横軸が輝度値、縦軸は画素数である。そして、緑濃淡ヒストグラム32aから離間した高輝度側に存在する小さな小輝度分布32bは、高輝度異物(白画素異物)によるヒストグラムである。   FIG. 10 is a green shade histogram 32a based on the green filter image data Dgf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. And the small small luminance distribution 32b which exists in the high-intensity side spaced apart from the green shade histogram 32a is a histogram by a high-intensity foreign material (white pixel foreign material).

また、図11は、青フィルタ画像データDbfに基づく青濃淡ヒストグラム33aであって、同じく横軸が輝度値、縦軸は画素数である。そして、青濃淡ヒストグラム33aから離間した高輝度側に存在する小さな小輝度分布33bは、高輝度異物(白画素異物)によるヒストグラムである。   FIG. 11 is a blue shade histogram 33a based on the blue filter image data Dbf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. And the small small luminance distribution 33b which exists in the high-intensity side spaced apart from the blue shade histogram 33a is a histogram by a high-intensity foreign material (white pixel foreign material).

高輝度側傾き算出部12bは、赤、緑及び青の各濃淡ヒストグラム31a,32a,33aを作成すると、その各濃淡ヒストグラム31a,32a,33aの高輝度側の傾きS4(=tanθ4:但し、絶対値),S5(=tanθ5:但し、絶対値),S6(=tanθ6:但し、絶対値)を算出し、これら傾きS4,S5,S6を高輝度側傾き比較部13bに出力する。   When the high-intensity side inclination calculation unit 12b creates the red, green, and blue density histograms 31a, 32a, and 33a, the high-intensity side inclination S4 (= tan θ4: absolute) of each of the density histograms 31a, 32a, and 33a. Value), S5 (= tan θ5: where absolute value), S6 (= tan θ6: where absolute value) are calculated, and these gradients S4, S5, and S6 are output to the high-luminance-side gradient comparison unit 13b.

フィルタ画像比較部としての高輝度側傾き比較部13bは、これら傾きS4,S5,S6(絶対値)の大小を比較し、傾きが最も大きい濃淡ヒストグラムのフィルタ画像データを割り出す。   The high-intensity side inclination comparison unit 13b as a filter image comparison unit compares the inclinations S4, S5, and S6 (absolute values), and calculates filter image data of a grayscale histogram having the largest inclination.

これは、傾きが最も大きい濃淡ヒストグラムほど、高輝度側に隣接する高輝度異物による小輝度分布31b,32b,33bとの間のコントラストが大きく閾値を設定し易いからである。   This is because the contrast between the small luminance distributions 31b, 32b, and 33b due to the high-intensity foreign matter adjacent to the high-luminance side is large and the threshold value can be easily set as the grayscale histogram having the largest inclination.

そして、図9、図10及び図11の赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの各濃淡ヒストグラム31a,32a,33aにおいては、赤濃淡ヒストグラム31aの傾きS4(絶対値)が最も大きいことから赤フィルタ画像データDrfが選択される。   In each of the density histograms 31a, 32a, and 33a of the red, green, and blue filter image data Drf, Dgf, and Dbf shown in FIGS. 9, 10, and 11, the slope S4 (absolute value) of the red density histogram 31a is obtained. The red filter image data Drf is selected because it is the largest.

この時、高輝度側傾き比較部13bは、赤濃淡ヒストグラム31aの最大輝度値Bmax2と隣接する高輝度異物による小輝度分布31bの最小輝度値Bmin2の中間の輝度値を外観検査のために使用する閾値Bk2として算出する。   At this time, the high luminance side inclination comparison unit 13b uses a luminance value intermediate between the maximum luminance value Bmax2 of the red / dark histogram 31a and the minimum luminance value Bmin2 of the small luminance distribution 31b due to the adjacent high luminance foreign matter for appearance inspection. Calculated as the threshold Bk2.

そして、高輝度側傾き比較部13bにおいて、赤フィルタ画像データDrfが選択されると、異物判定処理部14は、この赤フィルタ画像データDrfと閾値Bk2を使って画像処理を行って、高輝度異物の検出を行う。   Then, when the red filter image data Drf is selected in the high luminance side inclination comparison unit 13b, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk2 to obtain a high luminance foreign matter. Detection is performed.

高輝度異物検出は、赤フィルタ画像データDrfの全画素の輝度値に対して閾値Bk2を比較させ、その閾値Bk2以上の輝度値を持つ画素から高輝度異物の大きさ形状を求めて高輝度異物を検出し良品判定を行う。   In the high-intensity foreign matter detection, the threshold value Bk2 is compared with the luminance values of all the pixels of the red filter image data Drf, and the size and shape of the high-intensity foreign matter is obtained from the pixels having the luminance value equal to or higher than the threshold value Bk2. Is detected and non-defective product is judged.

このとき、異物判定処理部14は、赤フィルタ画像データDrfとその赤フィルタ画像データDrfにおいて高輝度異物を高精度に抽出できる閾値Bk2とを使って画像処理を行って、高輝度異物と背景色との判断を行うことから、高精度の高輝度異物検出を行うことができる。   At this time, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk2 from which the high brightness foreign matter can be extracted with high accuracy in the red filter image data Drf. Therefore, high-accuracy high-intensity foreign object detection can be performed.

また、緑又は青のフィルタ画像データDgf,Dbfが選択された場合も同様に、高輝度異物の検出のための閾値が求められ、該閾値と緑又は青フィルタ画像データDgf,Dbfを使って画像処理を行い高輝度異物と背景色との判断を行うことから、高精度の高輝度異物検出を行うことができる。   Similarly, when green or blue filter image data Dgf or Dbf is selected, a threshold value for detecting a high-intensity foreign object is obtained, and an image is obtained using the threshold value and the green or blue filter image data Dgf or Dbf. Since the process determines the high-intensity foreign object and the background color, highly accurate high-intensity foreign object detection can be performed.

そして、異物判定処理部14は、各半導体チップCPの高輝度異物検出を行い、その良品の有無を判定し、その判定結果を、記憶部15に記憶する。
上記のように構成することによって、本実施形態は以下の効果を有する。
Then, the foreign matter determination processing unit 14 performs high-intensity foreign matter detection of each semiconductor chip CP, determines whether there is a non-defective product, and stores the determination result in the storage unit 15.
By configuring as described above, the present embodiment has the following effects.

(1)本実施形態によれば、高輝度側傾き算出部12bは、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ赤、緑及び青の各濃淡ヒストグラム31a,32a,33aを作成した。そして、高輝度側傾き算出部12bは、その各濃淡ヒストグラム31a,32a,33aの高輝度側の傾きS4,S5,S6を求めた。   (1) According to the present embodiment, the high luminance side inclination calculating unit 12b creates the respective red, green, and blue gray histograms 31a, 32a, and 33a from the respective filter image data Drf, Dgf, and Dbf. Then, the high luminance side inclination calculating unit 12b calculates the high luminance side inclinations S4, S5, and S6 of the respective grayscale histograms 31a, 32a, and 33a.

高輝度側傾き比較部13bは、これら傾きS4,S5,S6の大小を比較し、傾きが最も大きい濃淡ヒストグラムが隣接する高輝度異物による小輝度分布31b,32b,33bとの間において、閾値Bk2が最も設定し易いとして傾きが最も大きい濃淡ヒストグラムのフィルタ画像データを選択した。   The high luminance side inclination comparison unit 13b compares the magnitudes of the inclinations S4, S5, and S6, and the threshold value Bk2 is compared with the small luminance distributions 31b, 32b, and 33b due to the adjacent high luminance foreign matter with the grayscale histogram having the largest inclination. The filter image data of the light and shade histogram having the largest inclination is selected because it is easy to set.

そして、異物判定処理部14は、その選択した異物と背景色との閾値Bk2が最も設定し易いフィルタ画像データに基づいて画像処理を行うようにした。
従って、各フィルタ画像データDrf,Dgf.Dbfの中から、異物と背景色との閾値Bk2が最も設定し易いフィルタ画像データを使って画像処理を行うことから、高精度の高輝度異物検出を行うことができる。
The foreign matter determination processing unit 14 performs image processing based on the filter image data in which the threshold Bk2 between the selected foreign matter and the background color is most easily set.
Therefore, each filter image data Drf, Dgf. Since image processing is performed using filter image data in which the threshold Bk2 between the foreign matter and the background color is most easily set from Dbf, high-accuracy high-intensity foreign matter detection can be performed.

(2)本実施形態によれば、傾きS4,S5,S6の大小を比較し、傾きが最も大きい濃淡ヒストグラムが隣接する高輝度異物の小輝度分布31b,32b,33bとの間において、閾値Bk2を設定するようにしたので、閾値の設定作業が非常に容易となる。   (2) According to the present embodiment, the gradients S4, S5, and S6 are compared, and the threshold Bk2 is compared with the small luminance distributions 31b, 32b, and 33b of the high-intensity foreign matter adjacent to the grayscale histogram having the largest gradient. Since the threshold value is set, it is very easy to set the threshold value.

尚、本実施形態では、閾値Bk2を最大輝度値Bmax2と隣接する小輝度分布31bの最小輝度値Bmin2の中間に設定したが、中間でなくても良く適宜変更してもよい。
(第4実施形態)
次に、第4実施形態について、図12に従って説明する。
In the present embodiment, the threshold value Bk2 is set to the middle between the maximum luminance value Bmax2 and the minimum luminance value Bmin2 of the adjacent small luminance distribution 31b.
(Fourth embodiment)
Next, a fourth embodiment will be described with reference to FIG.

第2実施形態の外観検査装置1は赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの特徴量として濃淡ヒストグラムの傾きS1,S2,S3とした。これに対して、本実施形態の外観検査装置1は、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの特徴量として最小輝度値とした点に特徴を有している。   The appearance inspection apparatus 1 of the second embodiment uses the gradients S1, S2, and S3 of the density histogram as the feature values of the filter image data Drf, Dgf, and Dbf for red, green, and blue. On the other hand, the appearance inspection apparatus 1 of the present embodiment is characterized in that the minimum luminance value is set as the feature amount of each of the filter image data Drf, Dgf, and Dbf of red, green, and blue.

なお、説明の便宜上、第2実施形態と共通の部分については、同じ符号を付して詳細な説明を省略する。
図12において、RGB画像データ生成部11がカラー画像データGDに基づいて作成したそれぞれN個の画素からなる赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfは、最小輝度値算出部12cに出力される。
For convenience of explanation, portions common to the second embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.
In FIG. 12, the RGB image data generation unit 11 generates red, green, and blue filter image data Drf, Dgf, and Dbf each consisting of N pixels based on the color image data GD. The minimum luminance value calculation unit 12c Is output.

特徴量抽出部としての最小輝度値算出部12cは、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfについて、それぞれ全画素の輝度値を求める。輝度値は、本実施形態では、8ビットのビットデータで構成され、0〜255の階調に区分されている。そして、最小輝度値算出部12cは、全画素の輝度値が求まると、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて濃淡ヒストグラムを作成する。   The minimum luminance value calculation unit 12c as a feature amount extraction unit obtains the luminance values of all the pixels for the red, green, and blue filter image data Drf, Dgf, and Dbf. In this embodiment, the luminance value is composed of 8-bit bit data, and is divided into gradations of 0 to 255. Then, when the luminance values of all the pixels are obtained, the minimum luminance value calculating unit 12c creates a density histogram for each of the filter image data Drf, Dgf, and Dbf for red, green, and blue based on the luminance values of all the pixels. To do.

図13、図14及び図15に、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて最小輝度値算出部12cが作成した濃淡ヒストグラムの一例を示す。   FIG. 13, FIG. 14 and FIG. 15 show an example of the density histogram created by the minimum luminance value calculation unit 12c based on the luminance values of all the pixels for each of the red, green and blue filter image data Drf, Dgf and Dbf. Indicates.

図13は、赤フィルタ画像データDrfに基づく赤濃淡ヒストグラム41aであって、横軸が輝度値、縦軸は画素数である。尚、赤濃淡ヒストグラム41aから離間した低輝度側に存在する小さな小輝度分布41bは、低輝度異物(黒画素異物)によるヒストグラムである。   FIG. 13 is a red density histogram 41a based on the red filter image data Drf, where the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. A small small luminance distribution 41b existing on the low luminance side away from the red / dark histogram 41a is a histogram of low luminance foreign matter (black pixel foreign matter).

また、図14は、緑フィルタ画像データDgfに基づく緑濃淡ヒストグラム42aであって、同じく横軸が輝度値、縦軸は画素数である。そして、緑濃淡ヒストグラム42aから離間した低輝度側に存在する小さな小輝度分布42bは、低輝度異物(黒画素異物)によるヒストグラムである。   FIG. 14 is a green light / dark histogram 42a based on the green filter image data Dgf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. And the small small luminance distribution 42b which exists in the low-luminance side spaced apart from the green shade histogram 42a is a histogram by a low-luminance foreign material (black pixel foreign material).

また、図15は、青フィルタ画像データDbfに基づく青濃淡ヒストグラム43aであって、同じく横軸が輝度値、縦軸は画素数である。そして、青濃淡ヒストグラム43aから離間した低輝度側に存在する小さな小輝度分布43bは、低輝度異物(黒画素異物)によるヒストグラムである。   FIG. 15 is a blue shade histogram 43a based on the blue filter image data Dbf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. And the small small luminance distribution 43b which exists in the low-luminance side spaced apart from the blue shade histogram 43a is a histogram by a low-luminance foreign material (black pixel foreign material).

最小輝度値算出部12cは、赤、緑及び青の各濃淡ヒストグラム41a,42a,43aを作成すると、その各濃淡ヒストグラム41a,42a,43aの最小輝度値Bmin3r,Bmin3g,Bmin3bを求め、これら最小輝度値Bmin3r,Bmin3g,Bmin3bを最小輝度値比較部13cに出力する。   When the minimum luminance value calculation unit 12c creates the red, green, and blue density histograms 41a, 42a, and 43a, the minimum brightness value Bmin3r, Bmin3g, and Bmin3b of each of the density histograms 41a, 42a, and 43a are obtained. The values Bmin3r, Bmin3g, and Bmin3b are output to the minimum luminance value comparison unit 13c.

フィルタ画像比較部としての最小輝度値比較部13cは、これら最小輝度値Bmin3r,Bmin3g,Bmin3bの大小を比較し、最小輝度値bが最も大きい濃淡ヒストグラムのフィルタ画像データを割り出す。   The minimum luminance value comparison unit 13c as the filter image comparison unit compares the minimum luminance values Bmin3r, Bmin3g, and Bmin3b, and calculates filter image data of a grayscale histogram having the largest minimum luminance value b.

これは、最小輝度値が最も大きい濃淡ヒストグラムほど、隣接する低輝度異物による小輝度分布41b,42b,43bとの間のコントラストが大きく閾値Bk3を設定し易いからである。   This is because the contrast between the small luminance distributions 41b, 42b, and 43b due to the adjacent low-intensity foreign matter is large and the threshold value Bk3 can be easily set as the grayscale histogram having the largest minimum luminance value.

そして、図13、図14及び図15の赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの各濃淡ヒストグラム41a,42a,43aにおいては、赤濃淡ヒストグラム41aの最小輝度値Bmin3rが最も大きいことから赤フィルタ画像データDrfが選択される。   In each of the density histograms 41a, 42a, and 43a of the red, green, and blue filter image data Drf, Dgf, and Dbf in FIGS. 13, 14, and 15, the minimum brightness value Bmin3r of the red density histogram 41a is the largest. Therefore, the red filter image data Drf is selected.

この時、最小輝度値比較部13cは、赤濃淡ヒストグラム41aの最小輝度値Bmin3rと隣接する低輝度異物による小輝度分布41bの最大輝度値Bmax3の中間の輝度値を外観検査のために使用する閾値Bk3として算出する。   At this time, the minimum luminance value comparison unit 13c uses a threshold value for using an intermediate luminance value for the appearance inspection between the minimum luminance value Bmin3r of the red / dark histogram 41a and the maximum luminance value Bmax3 of the small luminance distribution 41b due to the adjacent low luminance foreign matter. Calculate as Bk3.

そして、最小輝度値比較部13cにおいて、赤フィルタ画像データDrfが選択されると、異物判定処理部14は、この赤フィルタ画像データDrfと閾値Bk3を使って画像処理を行って、低輝度異物の検出を行う。   Then, when the red filter image data Drf is selected in the minimum luminance value comparison unit 13c, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk3, so that the low brightness foreign matter is detected. Perform detection.

低輝度異物検出は、赤フィルタ画像データDrfの全画素の輝度値に対して閾値Bk3を比較させ、その閾値Bk3以下の輝度値を持つ画素から低輝度異物の大きさ形状を求めて低輝度異物を検出し良品判定を行う。   The low-intensity foreign object detection is performed by comparing the threshold value Bk3 with the luminance values of all the pixels of the red filter image data Drf, and obtaining the size and shape of the low-intensity foreign substance from the pixels having the luminance value equal to or lower than the threshold value Bk3. Is detected and non-defective product is judged.

このとき、異物判定処理部14は、赤フィルタ画像データDrfとその赤フィルタ画像データDrfにおいて低輝度異物を高精度に抽出できる閾値Bk3とを使って画像処理を行って、低輝度異物と背景色との判断を行うことから、高精度の低輝度異物検出を行うことができる。   At this time, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk3 that can extract the low brightness foreign matter in the red filter image data Drf with high accuracy, and thereby the low brightness foreign matter and the background color. Therefore, highly accurate low-intensity foreign object detection can be performed.

また、緑又は青のフィルタ画像データDgf,Dbfが選択された場合も同様に、低輝度異物の検出のための閾値が求められ、該閾値と緑又は青フィルタ画像データDgf,Dbfを使って画像処理を行い低輝度異物と背景色との判断を行うことから、高精度の低輝度異物検出を行うことができる。   Similarly, when green or blue filter image data Dgf or Dbf is selected, a threshold value for detecting a low-intensity foreign matter is obtained, and an image is obtained using the threshold value and the green or blue filter image data Dgf or Dbf. Since the low brightness foreign object and the background color are determined by performing the processing, it is possible to detect the low brightness foreign object with high accuracy.

そして、異物判定処理部14は、各半導体チップCPの低輝度異物検出を行い、その良品の有無を判定し、その判定結果を、記憶部15に記憶する。
上記のように構成することによって、本実施形態は以下の効果を有する。
Then, the foreign matter determination processing unit 14 performs low-luminance foreign matter detection of each semiconductor chip CP, determines the presence or absence of the non-defective product, and stores the determination result in the storage unit 15.
By configuring as described above, the present embodiment has the following effects.

(1)本実施形態によれば、最小輝度値算出部12cは、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ赤、緑及び青の各濃淡ヒストグラム41a,42a,43aを作成した。そして、最小輝度値算出部12cは、その各濃淡ヒストグラム41a,42a,43aの最小輝度値Bmin3r,Bmin3g,Bmin3bを求めた。   (1) According to the present embodiment, the minimum luminance value calculation unit 12c creates the red, green, and blue gray histograms 41a, 42a, and 43a from the filter image data Drf, Dgf, and Dbf, respectively. Then, the minimum luminance value calculation unit 12c calculates the minimum luminance values Bmin3r, Bmin3g, and Bmin3b of the respective grayscale histograms 41a, 42a, and 43a.

最小輝度値比較部13cは、これら最小輝度値Bmin3r,Bmin3g,Bmin3bの大小を比較し、最小輝度値が最も大きい濃淡ヒストグラムが隣接する低輝度異物による小輝度分布41b,42b,43bとの間において、閾値Bk3が最も設定し易いとして最小輝度値が最も大きい濃淡ヒストグラムのフィルタ画像データを選択した。   The minimum luminance value comparison unit 13c compares the minimum luminance values Bmin3r, Bmin3g, and Bmin3b, and the density histogram having the largest minimum luminance value is compared with the small luminance distributions 41b, 42b, and 43b due to the adjacent low luminance foreign matter. Since the threshold value Bk3 is most easily set, the filter image data of the light and shade histogram having the largest minimum luminance value is selected.

そして、異物判定処理部14は、その選択した異物と背景色との閾値Bk3が最も設定し易いフィルタ画像データに基づいて画像処理を行うようにした。
従って、各フィルタ画像データDrf,Dgf.Dbfの中から、異物と背景色との閾値Bk3が最も設定し易いフィルタ画像データを使って画像処理を行うことから、高精度の低輝度異物検出を行うことができる。
The foreign matter determination processing unit 14 performs image processing based on the filter image data in which the threshold value Bk3 between the selected foreign matter and the background color is most easily set.
Therefore, each filter image data Drf, Dgf. Since image processing is performed using the filter image data in which the threshold Bk3 between the foreign matter and the background color is most easily set from Dbf, highly accurate low-luminance foreign matter detection can be performed.

(2)本実施形態によれば、最小輝度値Bmin3r,Bmin3g,Bmin3bの大小を比較し、最小輝度値が最も大きい濃淡ヒストグラムが隣接する低輝度異物の小輝度分布41b,42b,43bとの間において、閾値Bk3を設定するようにしたので、閾値の設定作業が非常に容易となる。   (2) According to the present embodiment, the magnitudes of the minimum luminance values Bmin3r, Bmin3g, and Bmin3b are compared, and the density histogram having the largest minimum luminance value is compared with the adjacent small luminance distributions 41b, 42b, and 43b of the low luminance foreign matter. Since the threshold value Bk3 is set, the threshold setting operation becomes very easy.

尚、本実施形態では、閾値Bk3を最小輝度値Bmin3rと隣接する小輝度分布41bの最大輝度値Bmax3の中間に設定したが、中間でなくても良く適宜変更してもよい。
(第5実施形態)
次に、第5実施形態について、図16に従って説明する。
In the present embodiment, the threshold Bk3 is set to the middle between the minimum luminance value Bmin3r and the maximum luminance value Bmax3 of the small luminance distribution 41b adjacent to the threshold Bk3.
(Fifth embodiment)
Next, a fifth embodiment will be described with reference to FIG.

第4実施形態の外観検査装置1は特徴量を濃淡ヒストグラムの最小輝度値とし低輝度異物(黒画素異物)を検査するのに対して、本実施形態の外観検査装置1は、特徴量を濃淡ヒストグラムの最大輝度値とし高輝度異物(白画素異物)を検査する点に特徴を有している。   The appearance inspection apparatus 1 according to the fourth embodiment inspects low-luminance foreign matter (black pixel foreign matter) using the feature amount as the minimum luminance value of the density histogram, whereas the appearance inspection device 1 according to the present embodiment uses the feature amount as light and shade. It is characterized in that a high-intensity foreign substance (white pixel foreign substance) is inspected as the maximum luminance value of the histogram.

なお、説明の便宜上、第4実施形態と共通の部分については、同じ符号を付して詳細な説明を省略する。
図16において、RGB画像データ生成部11がカラー画像データGDに基づいて作成したそれぞれN個の画素からなる赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfは、最大輝度値算出部12dに出力される。
For convenience of explanation, portions common to the fourth embodiment are denoted by the same reference numerals, and detailed description thereof is omitted.
In FIG. 16, each of the filter image data Drf, Dgf, and Dbf of red, green, and blue, each consisting of N pixels, created by the RGB image data generation unit 11 based on the color image data GD, is the maximum luminance value calculation unit 12d. Is output.

特徴量抽出部としての最大輝度値算出部12dは、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfについて、それぞれ全画素の輝度値を求める。輝度値は、本実施形態では、8ビットのビットデータで構成され、0〜255の階調に区分されている。そして、最大輝度値算出部12dは、全画素の輝度値が求まると、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて濃淡ヒストグラムを作成する。   The maximum luminance value calculation unit 12d as the feature amount extraction unit obtains the luminance values of all the pixels for the red, green, and blue filter image data Drf, Dgf, and Dbf. In this embodiment, the luminance value is composed of 8-bit bit data, and is divided into gradations of 0 to 255. When the luminance values of all the pixels are obtained, the maximum luminance value calculating unit 12d creates a density histogram based on the luminance values of all the pixels for each of the red, green, and blue filter image data Drf, Dgf, and Dbf. To do.

図17、図18及び図19に、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbf毎に、その全画素の輝度値に基づいて最大輝度値算出部12dが作成した濃淡ヒストグラムの一例を示す。   FIG. 17, FIG. 18 and FIG. 19 show an example of the density histogram created by the maximum luminance value calculation unit 12d based on the luminance values of all the pixels for each of the red, green and blue filter image data Drf, Dgf and Dbf. Indicates.

図17は、赤フィルタ画像データDrfに基づく赤濃淡ヒストグラム51aであって、横軸が輝度値、縦軸は画素数である。尚、赤濃淡ヒストグラム51aから離間した高輝度側に存在する小さな小輝度分布51bは、高輝度異物(白画素異物)によるヒストグラムである。   FIG. 17 is a red density histogram 51a based on the red filter image data Drf, where the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. A small small luminance distribution 51b existing on the high luminance side away from the red / dark histogram 51a is a histogram of high luminance foreign matter (white pixel foreign matter).

また、図18は、緑フィルタ画像データDgfに基づく緑濃淡ヒストグラム52aであって、同じく横軸が輝度値、縦軸は画素数である。そして、緑濃淡ヒストグラム52aから離間した高輝度側に存在する小さな小輝度分布52bは、高輝度異物(白画素異物)によるヒストグラムである。   FIG. 18 is a green light / dark histogram 52a based on the green filter image data Dgf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. A small small luminance distribution 52b existing on the high luminance side away from the green / dark histogram 52a is a histogram of high luminance foreign matter (white pixel foreign matter).

また、図19は、青フィルタ画像データDbfに基づく青濃淡ヒストグラム53aであって、同じく横軸が輝度値、縦軸は画素数である。そして、青濃淡ヒストグラム53aから離間した高輝度側に存在する小さな小輝度分布53bは、高輝度異物(白画素異物)によるヒストグラムである。   FIG. 19 shows a blue shade histogram 53a based on the blue filter image data Dbf. Similarly, the horizontal axis represents the luminance value and the vertical axis represents the number of pixels. And the small small luminance distribution 53b which exists in the high-intensity side spaced apart from the blue shade histogram 53a is a histogram by a high-intensity foreign material (white pixel foreign material).

最大輝度値算出部12dは、赤、緑及び青の各濃淡ヒストグラム51a,52a,53aを作成すると、その各濃淡ヒストグラム51a,52a,53aの最大輝度値Bmax4r,Bmax4g,Bmax4bを求め、これら最大輝度値Bmax4r,Bmax4g,Bmax4bを最大輝度値比較部13dに出力する。   When the maximum brightness value calculation unit 12d creates the respective density histograms 51a, 52a, and 53a for red, green, and blue, the maximum brightness values Bmax4r, Bmax4g, and Bmax4b of the respective density histograms 51a, 52a, and 53a are obtained, and these maximum brightness values are obtained. The values Bmax4r, Bmax4g, and Bmax4b are output to the maximum luminance value comparison unit 13d.

フィルタ画像比較部としての最大輝度値比較部13dは、これら最大輝度値Bmax4r,Bmax4g,Bmax4bの大小を比較し、最大輝度値が最も小さい濃淡ヒストグラムのフィルタ画像データを割り出す。   The maximum brightness value comparison unit 13d as the filter image comparison unit compares the maximum brightness values Bmax4r, Bmax4g, and Bmax4b, and calculates filter image data of a grayscale histogram having the smallest maximum brightness value.

これは、最大輝度値Bmax4r,Bmax4g,Bmax4bが最も小さい濃淡ヒストグラムほど、隣接する高輝度異物による小輝度分布51b,52b,53bとの間の閾値Bk4を設定し易いからである。   This is because the threshold value Bk4 between the small luminance distributions 51b, 52b, and 53b due to the adjacent high-intensity foreign matter is easier to set for the grayscale histogram having the smallest maximum luminance values Bmax4r, Bmax4g, and Bmax4b.

そして、図17、図18及び図19の赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの各濃淡ヒストグラム51a,52a,53aにおいては、赤濃淡ヒストグラム51aの最大輝度値Bmax4rが最も小さいことから赤フィルタ画像データDrfが選択される。   In each of the density histograms 51a, 52a, and 53a of the red, green, and blue filter image data Drf, Dgf, and Dbf in FIGS. 17, 18, and 19, the maximum luminance value Bmax4r of the red density histogram 51a is the smallest. Therefore, the red filter image data Drf is selected.

この時、最大輝度値比較部13dは、赤濃淡ヒストグラム51aの最大輝度値Bmax4rと隣接する高輝度異物による小輝度分布51bの最小輝度値Bmin4の中間の輝度値を外観検査のために使用する閾値Bk4として算出する。   At this time, the maximum luminance value comparison unit 13d uses a threshold value for using an intermediate luminance value for the appearance inspection between the maximum luminance value Bmax4r of the red / dark histogram 51a and the minimum luminance value Bmin4 of the small luminance distribution 51b due to the adjacent high luminance foreign matter. Calculate as Bk4.

そして、最大輝度値比較部13dにおいて、赤フィルタ画像データDrfが選択されると、異物判定処理部14は、この赤フィルタ画像データDrfと閾値Bk4を使って画像処理を行って、高輝度異物の検出を行う。   Then, when the red filter image data Drf is selected in the maximum luminance value comparison unit 13d, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and the threshold value Bk4, so that the high brightness foreign matter is detected. Perform detection.

高輝度異物検出は、赤フィルタ画像データDrfの全画素の輝度値に対して閾値Bk4を比較させ、その閾値Bk4以上の輝度値を持つ画素から高輝度異物の大きさ形状を求めて高輝度異物を検出し良品判定を行う。   In the high-intensity foreign matter detection, the threshold value Bk4 is compared with the luminance values of all the pixels of the red filter image data Drf, and the size and shape of the high-intensity foreign matter is obtained from the pixels having the luminance value equal to or higher than the threshold value Bk4. Is detected and a non-defective product is determined.

このとき、異物判定処理部14は、赤フィルタ画像データとその赤フィルタ画像データDrfにおいて高輝度異物を高精度に抽出できる閾値Bk4とを使って画像処理を行って、高輝度異物と背景色との判断を行うことから、高精度の高輝度異物検出を行うことができる。   At this time, the foreign matter determination processing unit 14 performs image processing using the red filter image data and the threshold value Bk4 with which the high brightness foreign matter can be extracted with high accuracy in the red filter image data Drf, so that the high brightness foreign matter and the background color are detected. Therefore, highly accurate high-intensity foreign matter detection can be performed.

また、緑又は青のフィルタ画像データDgf,Dbfが選択された場合も同様に、高輝度異物の検出のための閾値が求められ、該閾値と緑又は青フィルタ画像データDgf,Dbfを使って画像処理を行い高輝度異物と背景色との判断を行うことから、高精度の高輝度異物検出を行うことができる。   Similarly, when green or blue filter image data Dgf or Dbf is selected, a threshold value for detecting a high-intensity foreign object is obtained, and an image is obtained using the threshold value and the green or blue filter image data Dgf or Dbf. Since the process determines the high-intensity foreign object and the background color, highly accurate high-intensity foreign object detection can be performed.

そして、異物判定処理部14は、各半導体チップCPの高輝度異物検出を行い、その良品の有無を判定し、その判定結果を、記憶部15に記憶する。
上記のように構成することによって、本実施形態は以下の効果を有する。
Then, the foreign matter determination processing unit 14 performs high-intensity foreign matter detection of each semiconductor chip CP, determines whether there is a non-defective product, and stores the determination result in the storage unit 15.
By configuring as described above, the present embodiment has the following effects.

(1)本実施形態によれば、最大輝度値算出部12dは、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ赤、緑及び青の各濃淡ヒストグラム51a,52a,53aを作成した。そして、最大輝度値算出部12dは、その各濃淡ヒストグラム51a,52a,53aの最大輝度値Bmax4r,Bmax4g,Bmax4bを求めた。   (1) According to the present embodiment, the maximum luminance value calculation unit 12d creates the respective red, green, and blue gray histograms 51a, 52a, and 53a from the respective filter image data Drf, Dgf, and Dbf. Then, the maximum luminance value calculation unit 12d calculates the maximum luminance values Bmax4r, Bmax4g, and Bmax4b of the respective grayscale histograms 51a, 52a, and 53a.

最大輝度値比較部13dは、これら最大輝度値Bmax4r,Bmax4g,Bmax4bの大小を比較し、最大輝度値が最も小さい濃淡ヒストグラムが隣接する高輝度異物による小輝度分布51b,52b,53bとの間において、閾値Bk4が最も設定し易いとして最大輝度値が最も小さい濃淡ヒストグラムのフィルタ画像データを選択した。   The maximum luminance value comparison unit 13d compares the maximum luminance values Bmax4r, Bmax4g, and Bmax4b, and the density histogram having the smallest maximum luminance value is compared with the small luminance distributions 51b, 52b, and 53b due to the adjacent high luminance foreign matter. Since the threshold value Bk4 is most easily set, the filter image data of the light and shade histogram having the smallest maximum luminance value is selected.

そして、異物判定処理部14は、その選択した異物と背景色との閾値Bk4が最も設定し易いフィルタ画像データに基づいて画像処理を行うようにした。
従って、各フィルタ画像データDrf,Dgf.Dbfの中から、異物と背景色との閾値Bk4が最も設定し易いフィルタ画像データを使って画像処理を行うことから、高精度の高輝度異物検出を行うことができる。
The foreign matter determination processing unit 14 performs image processing based on the filter image data in which the threshold value Bk4 between the selected foreign matter and the background color is most easily set.
Therefore, each filter image data Drf, Dgf. Since image processing is performed using the filter image data in which the threshold Bk4 between the foreign matter and the background color is most easily set from Dbf, high-accuracy high-intensity foreign matter detection can be performed.

(2)本実施形態によれば、最大輝度値Bmax4r,Bmax4g,Bmax4bの大小を比較し、最大輝度値が最も小さい濃淡ヒストグラムが隣接する高輝度異物の小輝度分布51b,52b,53bとの間において、閾値Bk4を設定するようにしたので、閾値の設定作業が非常に容易となる。   (2) According to the present embodiment, the maximum brightness values Bmax4r, Bmax4g, and Bmax4b are compared, and the density histogram having the smallest maximum brightness value is compared with the adjacent small brightness distributions 51b, 52b, and 53b of the high brightness foreign matter. Since the threshold value Bk4 is set, the threshold setting operation becomes very easy.

尚、本実施形態では、閾値Bk4を最大輝度値Bmax4rと隣接する小輝度分布51bの最小輝度値Bmin4の中間に設定したが、中間でなくても良く適宜変更してもよい。
(第6実施形態)
次に、第6実施形態について、図20に従って説明する。
In the present embodiment, the threshold value Bk4 is set to the middle between the maximum luminance value Bmax4r and the minimum luminance value Bmin4 of the adjacent small luminance distribution 51b.
(Sixth embodiment)
Next, a sixth embodiment will be described with reference to FIG.

本実施形態の外観検査装置1は、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの特徴量としてフーリエ・スペクトルの最大周波数成分とした点に特徴を有している。
なお、説明の便宜上、上記各実施形態と共通の部分については、同じ符号を付して詳細な説明を省略する。
The appearance inspection apparatus 1 of the present embodiment is characterized in that the maximum frequency component of the Fourier spectrum is used as the feature amount of each of the filter image data Drf, Dgf, and Dbf of red, green, and blue.
For convenience of explanation, portions common to the above-described embodiments are denoted by the same reference numerals, and detailed description thereof is omitted.

図20において、RGB画像データ生成部11がカラー画像データGDに基づいて作成したそれぞれN個の画素からなる赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfは、最大周波数成分算出部12eに出力される。   In FIG. 20, each of the filter image data Drf, Dgf, and Dbf for red, green, and blue, each consisting of N pixels created by the RGB image data generation unit 11 based on the color image data GD, is represented by a maximum frequency component calculation unit 12e. Is output.

特徴量抽出部としての最大周波数成分算出部12eは、フーリエ変換回路を有し、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfについて、それぞれ各フィルタ画像データDrf,Dgf,Dbfをそれぞれフーリエ変換して周波数スペクトルを求める。   The maximum frequency component calculation unit 12e as the feature amount extraction unit includes a Fourier transform circuit, and the filter image data Drf, Dgf, Dbf for red, green, and blue filter image data Drf, Dgf, Dbf, respectively. The frequency spectrum is obtained by Fourier transform.

そして、最大周波数成分算出部12eは、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfについてフーリエ・スペクトルを求めると、その求めた周波数成分中の最も高い高周波成分(最大周波数成分Fr,Fg,Fb)を各フィルタ画像データDrf,Dgf,Dbfごとに求める。   When the maximum frequency component calculation unit 12e obtains a Fourier spectrum for each of the filter image data Drf, Dgf, and Dbf for red, green, and blue, the highest frequency component (the maximum frequency component Fr, Fg, Fb) is obtained for each filter image data Drf, Dgf, Dbf.

最大周波数成分算出部12eは、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfについての最大周波数成分Fr,Fg,Fbを求めると、これら最大周波数成分Fr,Fg,Fbを最大周波数成分比較部13eに出力する。   When the maximum frequency component calculation unit 12e obtains the maximum frequency components Fr, Fg, and Fb for the filter image data Drf, Dgf, and Dbf for red, green, and blue, the maximum frequency components Fr, Fg, and Fb are determined as the maximum frequency components. It outputs to the comparison part 13e.

フィルタ画像比較部としての最大周波数成分比較部13eは、これら最大周波数成分Fr,Fg,Fbの大小を比較し、最も高い最大周波数成分を持つフィルタ画像データを割り出す。   The maximum frequency component comparison unit 13e as the filter image comparison unit compares the maximum frequency components Fr, Fg, and Fb, and determines filter image data having the highest maximum frequency component.

これは、最も高い周波数成分を持つフィルタ画像データほど、隣接する画素間の濃淡差が大きく異物検出のための解像力が高くエッジ検出が優れているからである。
つまり、画像処理において、画像が鈍ることは、解像力が低いことを意味し、異物(エッジ)を検出しにくいことにつながる。これは、隣接画素間の濃淡の差分が小さい、即ち、微分値が小さくなり、画像のフーリエ・スペクトルにおける高周波成分が少なくなるとともに、最大周波数成分が小さいことを意味するからである。
This is because the filter image data having the highest frequency component has a larger density difference between adjacent pixels and a higher resolving power for detecting a foreign object and better edge detection.
That is, in the image processing, when the image is dull, it means that the resolving power is low, and it is difficult to detect a foreign object (edge). This is because the difference in shading between adjacent pixels is small, that is, the differential value is small, the high frequency component in the Fourier spectrum of the image is small, and the maximum frequency component is small.

因みに、このことは、光の赤、緑、及び青色成分の波長が異なるため、カラー撮像装置8の撮像レンズの色収差によって、各フィルタ画像の結像する焦点距離がそれぞれ若干ずれる。その結果、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの画像について、その解像力の違いが生ずる。   Incidentally, this is because the wavelengths of the red, green, and blue components of the light are different, and the focal length at which each filter image forms is slightly shifted due to the chromatic aberration of the imaging lens of the color imaging device 8. As a result, a difference in resolving power occurs between the red, green, and blue filter image data Drf, Dgf, and Dbf.

また、赤、緑、及び青のフィルタをベイヤー配列したイメージセンサ8aに基づく各フィルタ画像データDrf,Dgf,Dbfの補間処理によっても、赤、緑及び青の各フィルタ画像データDrf,Dgf,Dbfの画像について、その解像力の違いが生ずる。   The red, green and blue filter image data Drf, Dgf and Dbf are also interpolated by the filter image data Drf, Dgf and Dbf based on the image sensor 8a in which the red, green and blue filters are arranged in a Bayer array. Differences in resolution occur for images.

そして、最大周波数成分比較部13eは、例えば、最も高い周波数成分が赤フィルタ画像データDrfの最大周波数成分Frである場合、赤フィルタ画像データDrfを選択する。
最大周波数成分比較部13eが赤フィルタ画像データDrfを選択すると、異物判定処理部14は、この赤フィルタ画像データDrfと予め定めた閾値を使って画像処理を行って、異物の検出を行う。
Then, for example, when the highest frequency component is the maximum frequency component Fr of the red filter image data Drf, the maximum frequency component comparison unit 13e selects the red filter image data Drf.
When the maximum frequency component comparison unit 13e selects the red filter image data Drf, the foreign matter determination processing unit 14 performs image processing using the red filter image data Drf and a predetermined threshold value to detect foreign matters.

異物検出は、赤フィルタ画像データDrfの全画素の輝度値に対して閾値と比較して、異物の大きさ形状を求めて異物を検出し良品判定を行う。
このとき、異物判定処理部14は、解像力が高くエッジ検出に優れた赤フィルタ画像データを使って画像処理を行って高精度の異物検出を行うことができる。
In the foreign object detection, the luminance value of all the pixels of the red filter image data Drf is compared with a threshold value, the size and shape of the foreign object is obtained, the foreign object is detected, and the non-defective product is determined.
At this time, the foreign matter determination processing unit 14 can perform high-precision foreign matter detection by performing image processing using red filter image data having high resolving power and excellent edge detection.

上記のように構成することによって、本実施形態は以下の効果を有する。
(1)本実施形態によれば、最大周波数成分算出部12eは、各フィルタ画像データDrf,Dgf,Dbf毎にフーリエ・スペクトルを求め、その求めた周波数成分中の最も高い高周波成分(最大周波数成分Fr,Fg,Fb)を算出した。
By configuring as described above, the present embodiment has the following effects.
(1) According to the present embodiment, the maximum frequency component calculation unit 12e obtains a Fourier spectrum for each filter image data Drf, Dgf, Dbf, and the highest high frequency component (maximum frequency component) among the obtained frequency components. Fr, Fg, Fb) were calculated.

最大周波数成分比較部13eは、これら最大周波数成分Fr,Fg,Fbの大小を比較し、最も高い最大周波数成分を有するフィルタ画像データを選択した。
そして、異物判定処理部14は、隣接する画素間の濃淡差が大きく異物検出のための解像力が高くエッジ検出が優れたフィルタ画像データに基づいて画像処理を行うようにした。
The maximum frequency component comparison unit 13e compares the maximum frequency components Fr, Fg, and Fb, and selects filter image data having the highest maximum frequency component.
The foreign matter determination processing unit 14 performs image processing based on filter image data that has a large contrast between adjacent pixels and a high resolution for foreign matter detection and excellent edge detection.

従って、各フィルタ画像データDrf,Dgf.Dbfの中から、解像力が高くエッジ検出に優れたフィルタ画像データを使って画像処理を行うことから、高精度の異物検出を行うことができる。   Therefore, each filter image data Drf, Dgf. Since image processing is performed using filtered image data having high resolving power and excellent edge detection from among Dbf, highly accurate foreign object detection can be performed.

尚、本発明は、上記実施形態に限定されるものではなく以下のように実施してもよい。
(1)上記各実施形態では、使用したカラー撮像装置8は、イメージセンサ8aがカラーフィルタをベイヤー配列した単板式カラーCCD撮像素子からなる単板方式のカラー撮像装置であったが、分光プリズムを使って各色に分けて各色の画像データを取得するいわゆる3板方式のカラー撮像装置を使って実施してもよい。
In addition, this invention is not limited to the said embodiment, You may implement as follows.
(1) In each of the above embodiments, the color image pickup device 8 used is a single plate type color image pickup device in which the image sensor 8a is a single plate color CCD image pickup device in which color filters are arranged in a Bayer array. It is also possible to use a so-called three-plate type color image pickup device that acquires image data of each color separately for each color.

(2)上記第1実施形態では、各フィルタ画像データDrf,Dgf,Dbfからそれぞれ輝度平均値Avr,Avg,Avbを求め、ルックアップテーブルLTを使って、その求めた輝度平均値Avr,Avg,Avbの組み合わせに相当する選定フィルタ画像データを選択した。   (2) In the first embodiment, the average brightness values Avr, Avg, Avb are obtained from the filter image data Drf, Dgf, Dbf, respectively, and the obtained average brightness values Avr, Avg, Avg, Selection filter image data corresponding to the combination of Avb was selected.

これを、低輝度異物検出を行う場合には、各フィルタ画像データDrf,Dgf,Dbfから求めた輝度平均値Avr,Avg,Avbの中で最も輝度平均値が大きいフィルタ画像データ、即ち、低輝度異物と背景色(色味)のコントラストが最も大きくなるフィルタ画像データを使って、低輝度異物検出を行ってもよい。   In the case of detecting low-intensity foreign matter, filter image data having the largest luminance average value among the average luminance values Avr, Avg, Avb obtained from the respective filter image data Drf, Dgf, Dbf, that is, low luminance. Low-brightness foreign matter detection may be performed using filter image data in which the contrast between the foreign matter and the background color (color) is the largest.

反対に、高輝度異物検出を行う場合には、輝度平均値Avr,Avg,Avbの中で最も輝度平均値が小さいフィルタ画像データ、即ち、高輝度異物と背景色(色味)のコントラストが最も大きくなるフィルタ画像データを使って、高輝度異物検出を行うように実施してもよい。この場合、ルックアップテーブルLTを必要とせず、コストダウンを図ることができる。   On the contrary, when high-intensity foreign matter detection is performed, the filter image data having the smallest luminance average value among the average luminance values Avr, Avg, and Avb, that is, the contrast between the high-luminance foreign matter and the background color (color) is the highest. You may implement so that a high-intensity foreign material detection may be performed using the filter image data which becomes large. In this case, the look-up table LT is not required, and the cost can be reduced.

(3)上記第2実施形態では、特徴量として低輝度側の傾きS1,S2,S3を抽出し、これら傾きS1,S2,S3に基づいて各フィルタ画像データDrf,Dgf,Dbfのいずれかを選択して低輝度異物検出を行った。また、第3実施形態では、特徴量として高輝度側の傾きS4,S5,S6を抽出し、これら傾きS4,S5,S6に基づいて各フィルタ画像データDrf,Dgf,Dbfのいずれかを選択して高輝度異物検出を行った。   (3) In the second embodiment, the slopes S1, S2, and S3 on the low luminance side are extracted as feature quantities, and any one of the filter image data Drf, Dgf, and Dbf is extracted based on these slopes S1, S2, and S3. Selected to perform low-intensity foreign object detection. In the third embodiment, gradients S4, S5, and S6 on the high luminance side are extracted as feature amounts, and one of the filter image data Drf, Dgf, and Dbf is selected based on these gradients S4, S5, and S6. High-intensity foreign matter detection.

これを、1つの外観検査装置1で低輝度側の傾きS1,S2,S3と高輝度側の傾きS4,S5,S6を抽出する。そして、これら傾きS1〜S6に基づいて低輝度異物検出に適したフィルタ画像データ及び高輝度異物検出に適したフィルタ画像データを選択して、低輝度異物(黒画素異物)の検出と高輝度異物(白画素異物)の検出とをあわせて1つの外観検査装置1で実施してもよい。   One appearance inspection apparatus 1 extracts inclinations S1, S2, S3 on the low luminance side and inclinations S4, S5, S6 on the high luminance side. Based on these slopes S1 to S6, filter image data suitable for low-luminance foreign matter detection and filter image data suitable for high-luminance foreign matter detection are selected to detect low-luminance foreign matter (black pixel foreign matter) and high-luminance foreign matter. You may implement with the one external appearance inspection apparatus 1 combining the detection of (white pixel foreign material).

(4)上記第4実施形態では、特徴量として最小輝度値Bmin3r,Bmin3g,Bmin3bを抽出し、これら最小輝度値Bmin3r,Bmin3g,Bmin3bに基づいて各フィルタ画像データDrf,Dgf,Dbfのいずれかを選択して低輝度異物検出を行った。また、第5実施形態では、特徴量として最大輝度値Bmax4r,Bmax4g,Bmax4bを抽出し、これら最大輝度値Bmax4r,Bmax4g,Bmax4bに基づいて各フィルタ画像データDrf,Dgf,Dbfのいずれかを選択して高輝度異物検出を行った。   (4) In the fourth embodiment, the minimum luminance values Bmin3r, Bmin3g, and Bmin3b are extracted as feature quantities, and any one of the filter image data Drf, Dgf, and Dbf is extracted based on these minimum luminance values Bmin3r, Bmin3g, and Bmin3b. Selected to perform low-intensity foreign object detection. In the fifth embodiment, the maximum luminance values Bmax4r, Bmax4g, and Bmax4b are extracted as feature amounts, and any one of the filter image data Drf, Dgf, and Dbf is selected based on the maximum luminance values Bmax4r, Bmax4g, and Bmax4b. High-intensity foreign matter detection.

これを、1つの外観検査装置1で最小輝度値Bmin3r,Bmin3g,Bmin3bと最大輝度値Bmax4r,Bmax4g,Bmax4bを抽出する。そして、これら最小輝度値Bmin3r,Bmin3g,Bmin3bと最大輝度値Bmax4r,Bmax4g,Bmax4bに基づいて低輝度異物検出に適したフィルタ画像データ及び高輝度異物検出に適したフィルタ画像データを選択して、低輝度異物(黒画素異物)の検出と高輝度異物(白画素異物)の検出とをあわせて1つの外観検査装置1で実施してもよい。   From this, the minimum luminance values Bmin3r, Bmin3g, and Bmin3b and the maximum luminance values Bmax4r, Bmax4g, and Bmax4b are extracted by one visual inspection apparatus 1. Based on these minimum luminance values Bmin3r, Bmin3g, Bmin3b and maximum luminance values Bmax4r, Bmax4g, Bmax4b, filter image data suitable for low-luminance foreign matter detection and filter image data suitable for high-luminance foreign matter detection are selected and low The detection of the luminance foreign matter (black pixel foreign matter) and the detection of the high-intensity foreign matter (white pixel foreign matter) may be performed by a single appearance inspection apparatus 1.

(5)低輝度異物(黒画素異物)の検出を行う場合、上記第2実施形態と第4実施形態を同時に行い、閾値Bk1,Bk3の設定が容易なほうのフィルタ画像データを選択して低輝度異物の検出を行ってもよい。   (5) When detecting low-intensity foreign matter (black pixel foreign matter), the second embodiment and the fourth embodiment are simultaneously performed, and the filter image data for which the threshold values Bk1 and Bk3 are easier to set is selected. Luminance foreign matter may be detected.

(6)高輝度異物(白画素異物)の検出を行う場合、上記第3実施形態と第5実施形態を同時に行い、閾値Bk2,Bk4の設定が容易なほうのフィルタ画像データを選択して低輝度異物の検出を行ってもよい。   (6) When high-intensity foreign matter (white pixel foreign matter) is detected, the third embodiment and the fifth embodiment are simultaneously performed, and the filter image data for which the threshold values Bk2 and Bk4 are easier to set is selected. Luminance foreign matter may be detected.

1…外観検査装置、2…検査テーブル、3…凹部、5…照明装置、8…カラー撮像装置、8a…イメージセンサ、10…画像処理装置、11…RGB画像データ生成部、12…輝度平均値算出部、12a…低輝度側傾き算出部、12b…高輝度側傾き算出部、12c…最小輝度値算出部、12d…最大輝度値算出部、12e…最大周波数成分算出部、13…平均値比較部、13a…低輝度側傾き比較部、13b…高輝度側傾き比較部、13c…最小輝度値比較部、13d…最大輝度値比較部、13e…最大周波数成分比較部、14…異物判定処理部、15…記憶部、21a,31a,41a,51a…赤濃淡ヒストグラム、21b,31b,41b,51b…小輝度分布、22a,32a,42a,52a…緑濃淡ヒストグラム、22b,32b,42b,52b…小輝度分布、23a,33a,43a,53a…青濃淡ヒストグラム、23b,33b,43b,53b…小輝度分布、LT…ルックアップテーブル、Avr,Avg,Avb…輝度平均値、Bk1,Bk2,Bk3,Bk4…閾値、Bmax4r,Bmax4g,Bmax4b…最大輝度値、Bmin3r,Bmin3g,Bmin3b…最小輝度値、CP…半導体チップ、Drf…赤フィルタ画像データ、Dgf…緑フィルタ画像データ、Dbf…青フィルタ画像データ、Fr,Fg,Fb…最大周波数成分、GD…カラー画像データ(撮像画像データ)、S1,S2,S3…傾き(低輝度側)、S4,S5,S6…傾き(高輝度側)。   DESCRIPTION OF SYMBOLS 1 ... Appearance inspection apparatus, 2 ... Inspection table, 3 ... Recessed part, 5 ... Illumination apparatus, 8 ... Color imaging apparatus, 8a ... Image sensor, 10 ... Image processing apparatus, 11 ... RGB image data generation part, 12 ... Brightness average value Calculation unit, 12a ... Low luminance side inclination calculation unit, 12b ... High luminance side inclination calculation unit, 12c ... Minimum luminance value calculation unit, 12d ... Maximum luminance value calculation unit, 12e ... Maximum frequency component calculation unit, 13 ... Average value comparison , 13a ... Low luminance side inclination comparison unit, 13b ... High luminance side inclination comparison unit, 13c ... Minimum luminance value comparison unit, 13d ... Maximum luminance value comparison unit, 13e ... Maximum frequency component comparison unit, 14 ... Foreign substance determination processing unit 15a, 31a, 41a, 51a ... red density histogram, 21b, 31b, 41b, 51b ... small luminance distribution, 22a, 32a, 42a, 52a ... green density histogram, 22b, 3 b, 42b, 52b ... small luminance distribution, 23a, 33a, 43a, 53a ... blue density histogram, 23b, 33b, 43b, 53b ... small luminance distribution, LT ... look-up table, Avr, Avg, Avb ... luminance average value, Bk1, Bk2, Bk3, Bk4 ... Threshold, Bmax4r, Bmax4g, Bmax4b ... Maximum brightness value, Bmin3r, Bmin3g, Bmin3b ... Minimum brightness value, CP ... Semiconductor chip, Drf ... Red filter image data, Dgf ... Green filter image data, Dbf ... Blue filter image data, Fr, Fg, Fb ... Maximum frequency components, GD ... Color image data (captured image data), S1, S2, S3 ... Inclination (low luminance side), S4, S5, S6 ... Inclination (high luminance) side).

Claims (10)

ワークに対して光を照射する照明部と、
前記ワークの所定領域を撮像する撮像部と、
前記撮像部による撮像画像データを入力し画像処理して前記ワークの異物欠陥を検出する画像処理部と
を有した外観検査装置において、
前記画像処理部は、
前記撮像部で撮像した得られたカラー画像データから赤、緑、及び、青のフィルタ画像データを作成するRGB画像データ生成部と、
前記赤、緑、及び、青の各フィルタ画像データから検査領域の特徴量を算出する特徴量抽出部と、
前記特徴量算出部が抽出した前記赤、緑、及び、青の各フィルタ画像データの特徴量を入力し、それら特徴量を比較して、異物を検出しやすい最適なフィルタ画像データを選び出すフィルタ画像比較部と
を備え、前記フィルタ画像比較部が選択したフィルタ画像データを用いて画像処理による異物欠陥検出を行うことを特徴とする外観検査装置。
An illumination unit that emits light to the workpiece;
An imaging unit for imaging a predetermined area of the workpiece;
In an appearance inspection apparatus having an image processing unit that inputs imaged image data by the imaging unit and performs image processing to detect a foreign object defect of the workpiece,
The image processing unit
RGB image data generation unit for creating red, green, and blue filter image data from the color image data obtained by the imaging unit;
A feature amount extraction unit that calculates a feature amount of an inspection region from each of the red, green, and blue filter image data;
A filter image that inputs the feature values of the filter image data of red, green, and blue extracted by the feature amount calculation unit, compares the feature amounts, and selects the optimum filter image data that is easy to detect foreign matter. A visual inspection apparatus, comprising: a comparison unit, wherein foreign object defects are detected by image processing using filter image data selected by the filter image comparison unit.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の輝度平均値を特徴量として算出する輝度平均値算出部であり、
前記フィルタ画像比較部は、前記輝度平均値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの輝度平均値と、予め作成したルックアップテーブルとに基づいて、最適なフィルタ画像データを選択する平均値比較部であることを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature amount extraction unit is a luminance average value calculation unit that calculates a luminance average value of an inspection region as a feature amount from the filter image data of red, green, and blue,
The filter image comparison unit is configured to obtain an optimum filter image based on a luminance average value of each of the red, green, and blue filter image data calculated by the luminance average value calculation unit and a lookup table created in advance. An appearance inspection apparatus, which is an average value comparison unit for selecting data.
請求項2に記載の外観検査装置において、
前記フィルタ画像比較部は、前記輝度平均値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの輝度平均値と、予め作成したルックアップテーブルとに基づいて、前記ワークの色味異常として不良判定することを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 2,
The filter image comparison unit, based on the average brightness value of each of the red, green, and blue filter image data calculated by the average brightness value calculation unit, and a lookup table created in advance, the color of the work An appearance inspection apparatus characterized by determining a defect as a taste abnormality.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから低輝度値側の傾きを特徴量として算出する低輝度側傾き算出部であり、
前記フィルタ画像比較部は、前記低輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの低輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する低輝度側傾き比較部であることを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature amount extraction unit creates a density histogram of an inspection region from each of the red, green, and blue filter image data, and calculates a low brightness value-side slope as a feature amount from each density histogram A side inclination calculator,
The filter image comparison unit compares the gradients on the low luminance value side of the density histograms of the red, green, and blue filter image data calculated by the low luminance side gradient calculation unit, and the absolute value of the gradient An appearance inspection apparatus, which is a low-luminance side inclination comparison unit that selects filter image data having the largest filter image data as optimal filter image data for detecting low-luminance foreign matter.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから高輝度値側の傾きを特徴量として算出する高輝度側傾き算出部であり、
前記フィルタ画像比較部は、前記高輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの高輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する高輝度側傾き比較部であることを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature amount extraction unit creates a density histogram of an inspection region from each of the red, green, and blue filter image data, and calculates a gradient on the high brightness value side as a feature amount from each density histogram A side inclination calculator,
The filter image comparison unit compares the gradients on the high luminance value side of the gray histograms of the red, green, and blue filter image data calculated by the high luminance side inclination calculating unit, and calculates the absolute value of the inclination. A high-intensity side inclination comparison unit that selects filter image data having the largest filter image data as optimum filter image data for detecting high-intensity foreign matter.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、
前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから低輝度値側の傾きを特徴量として算出する低輝度側傾き算出部と、
前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから高輝度値側の傾きを特徴量として算出する高輝度側傾き算出部と
を備え、
前記フィルタ画像比較部は、
前記低輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの低輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する低輝度側傾き比較部と、
前記高輝度側傾き算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの高輝度値側の傾きを比較して、その傾きの絶対値が最も大きなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する高輝度側傾き比較部と
を備えたことを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature amount extraction unit includes:
A low-intensity side inclination calculation unit that creates a density histogram of an inspection region from each of the red, green, and blue filter image data, and calculates the inclination on the low-luminance value side as a feature amount from each of the density histograms;
A high-intensity-side inclination calculating unit that creates a density histogram of an inspection region from each of the red, green, and blue filter image data, and calculates the inclination on the high-luminance value side as a feature amount from each of the density histograms. ,
The filter image comparison unit
Comparing the slopes on the low brightness value side of the density histograms of the red, green, and blue filter image data calculated by the low brightness side slope calculation unit, the filter image data having the largest absolute value of the slope is obtained. A low-luminance side slope comparison unit that selects filter image data that is optimal for detecting low-luminance foreign matter,
Comparing the slopes on the high brightness value side of the density histogram of the red, green, and blue filter image data calculated by the high brightness side slope calculation unit, the filter image data having the largest absolute value of the slope is obtained. An appearance inspection apparatus comprising: a high-luminance side inclination comparing unit that selects filter image data that is optimal for detecting high-luminance foreign matter.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最小輝度値を特徴量として算出する最小輝度値算出部であり、
前記フィルタ画像比較部は、前記最小輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最小輝度値を比較して、その最小輝度値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する最小輝度値比較部であることを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature quantity extraction unit creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and calculates a minimum brightness value as a feature quantity from each density histogram. And
The filter image comparison unit compares the minimum luminance values of the density histograms of the red, green, and blue filter image data calculated by the minimum luminance value calculation unit, and the filter image having the largest minimum luminance value. An appearance inspection apparatus, which is a minimum luminance value comparison unit that selects data as optimum filter image data for detecting low-luminance foreign matter.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最大輝度値を特徴量として算出する最大輝度値算出部であり、
前記フィルタ画像比較部は、前記最大輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最大輝度値を比較して、その最大輝度値が最も小さなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する最大輝度値比較部であることを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature quantity extraction unit creates a density histogram of an inspection region from each of the red, green, and blue filter image data, and calculates a maximum brightness value as a feature quantity from each density histogram And
The filter image comparison unit compares the maximum luminance values of the density histograms of the red, green, and blue filter image data calculated by the maximum luminance value calculation unit, and the filter image having the smallest maximum luminance value. An appearance inspection apparatus, which is a maximum luminance value comparison unit that selects data as optimum filter image data for detecting high-intensity foreign matter.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、
前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最小輝度値を特徴量として算出する最小輝度値算出部と、
前記赤、緑、及び、青の各フィルタ画像データから検査領域の濃淡ヒストグラムをそれぞれ作成し、その各濃淡ヒストグラムから最大輝度値を特徴量として算出する最大輝度値算出部と
を備え、
前記フィルタ画像比較部は、
前記最小輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最小輝度値を比較して、その最小輝度値が最も大きなフィルタ画像データを、低輝度異物を検出するのに最適なフィルタ画像データとして選択する最小輝度値比較部と、
前記最大輝度値算出部が算出した前記赤、緑、及び、青の各フィルタ画像データの濃淡ヒストグラムの最大輝度値を比較して、その最大輝度値が最も小さなフィルタ画像データを、高輝度異物を検出するのに最適なフィルタ画像データとして選択する最大輝度値比較部と
を備えたことを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature amount extraction unit includes:
A minimum brightness value calculation unit that creates a density histogram of an inspection area from each of the red, green, and blue filter image data, and calculates a minimum brightness value as a feature amount from each density histogram;
A maximum brightness value calculation unit that creates a density histogram of an inspection region from each of the filter image data of red, green, and blue, and calculates a maximum brightness value as a feature amount from each density histogram, and
The filter image comparison unit
The minimum luminance value calculated by the minimum luminance value calculating unit is compared with the minimum luminance value of the density histogram of each filter image data of red, green, and blue, and the filter image data having the largest minimum luminance value is compared with the low luminance foreign matter. A minimum luminance value comparison unit that is selected as filter image data that is optimal for detection;
The maximum luminance value of the red, green, and blue filter image data calculated by the maximum luminance value calculation unit is compared, and the filter image data having the smallest maximum luminance value is compared with the high luminance foreign matter. An appearance inspection apparatus comprising: a maximum luminance value comparison unit that is selected as filter image data that is optimal for detection.
請求項1に記載の外観検査装置において、
前記特徴量抽出部は、前記赤、緑、及び、青の各フィルタ画像データから検査領域のフーリエ・スペクトルを演算し、各フィルタ画像データのフーリエ・スペクトルから最大周波数成分を特徴量として算出する最大周波数成分算出部であり、
前記フィルタ画像比較部は、前記最大周波数成分算出部が算出した前記赤、緑、及び、青の各フィルタ画像データのフーリエ・スペクトルの最大周波数成分を比較して、その最大周波数成分が最も大きなフィルタ画像データを、異物を検出するのに最適なフィルタ画像データとして選択する最大周波数成分比較部であることを特徴とする外観検査装置。
The appearance inspection apparatus according to claim 1,
The feature amount extraction unit calculates a Fourier spectrum of an inspection region from each filter image data of red, green, and blue, and calculates a maximum frequency component as a feature amount from the Fourier spectrum of each filter image data. A frequency component calculator,
The filter image comparison unit compares the maximum frequency components of the Fourier spectrum of the red, green, and blue filter image data calculated by the maximum frequency component calculation unit, and the filter having the largest maximum frequency component An appearance inspection apparatus, which is a maximum frequency component comparison unit that selects image data as filter image data that is optimal for detecting foreign matter.
JP2010143037A 2010-06-23 2010-06-23 Appearance inspection device Expired - Fee Related JP5466099B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010143037A JP5466099B2 (en) 2010-06-23 2010-06-23 Appearance inspection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010143037A JP5466099B2 (en) 2010-06-23 2010-06-23 Appearance inspection device

Publications (2)

Publication Number Publication Date
JP2012007952A true JP2012007952A (en) 2012-01-12
JP5466099B2 JP5466099B2 (en) 2014-04-09

Family

ID=45538678

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010143037A Expired - Fee Related JP5466099B2 (en) 2010-06-23 2010-06-23 Appearance inspection device

Country Status (1)

Country Link
JP (1) JP5466099B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101752529B1 (en) 2014-08-29 2017-06-29 주식회사 엘지화학 Apparatus for inspecting tape adhered to secondary battery and method thereof
KR20180090007A (en) * 2017-02-02 2018-08-10 엘지이노텍 주식회사 Particle detecting sensor and air cleaning device having the same
JP2023039957A (en) * 2018-01-31 2023-03-22 株式会社ニチレイフーズ Food inspection assisting system, food inspection assisting apparatus and computer program
CN117274748A (en) * 2023-11-16 2023-12-22 国网四川省电力公司电力科学研究院 Lifelong learning power model training and detection method based on outlier suppression

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITBO20150180A1 (en) * 2015-04-14 2016-10-14 Sacmi Cooperativa Mecc Imola Soc Coop A R L APPARATUS AND METHOD OF OPTICAL INSPECTION OF OBJECTS, IN PARTICULAR METALLIC LIDS.

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03239954A (en) * 1990-02-19 1991-10-25 Kyodo Printing Co Ltd Method and device for inspecting pattern member
JPH0682377A (en) * 1990-12-04 1994-03-22 Toshiba Corp Semiconductor visual inspection equipment
JP2007102270A (en) * 2005-09-30 2007-04-19 Omron Corp Image processing device
JP2009080004A (en) * 2007-09-26 2009-04-16 Mitsubishi Electric Engineering Co Ltd Inspection device
WO2009133849A1 (en) * 2008-04-28 2009-11-05 株式会社ニコン Inspection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03239954A (en) * 1990-02-19 1991-10-25 Kyodo Printing Co Ltd Method and device for inspecting pattern member
JPH0682377A (en) * 1990-12-04 1994-03-22 Toshiba Corp Semiconductor visual inspection equipment
JP2007102270A (en) * 2005-09-30 2007-04-19 Omron Corp Image processing device
JP2009080004A (en) * 2007-09-26 2009-04-16 Mitsubishi Electric Engineering Co Ltd Inspection device
WO2009133849A1 (en) * 2008-04-28 2009-11-05 株式会社ニコン Inspection device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101752529B1 (en) 2014-08-29 2017-06-29 주식회사 엘지화학 Apparatus for inspecting tape adhered to secondary battery and method thereof
KR20180090007A (en) * 2017-02-02 2018-08-10 엘지이노텍 주식회사 Particle detecting sensor and air cleaning device having the same
KR102588527B1 (en) 2017-02-02 2023-10-12 엘지이노텍 주식회사 Particle detecting sensor and air cleaning device having the same
JP2023039957A (en) * 2018-01-31 2023-03-22 株式会社ニチレイフーズ Food inspection assisting system, food inspection assisting apparatus and computer program
US11830179B2 (en) 2018-01-31 2023-11-28 Nichirei Foods Inc. Food inspection assisting system, food inspection assisting apparatus and computer program
CN117274748A (en) * 2023-11-16 2023-12-22 国网四川省电力公司电力科学研究院 Lifelong learning power model training and detection method based on outlier suppression
CN117274748B (en) * 2023-11-16 2024-02-06 国网四川省电力公司电力科学研究院 Lifelong learning power model training and detection method based on outlier suppression

Also Published As

Publication number Publication date
JP5466099B2 (en) 2014-04-09

Similar Documents

Publication Publication Date Title
JP4707605B2 (en) Image inspection method and image inspection apparatus using the method
US7978903B2 (en) Defect detecting method and defect detecting device
JP2006200972A (en) Image defect inspection method, image defect inspection device, and external appearance inspection device
US20150051860A1 (en) Automatic optical appearance inspection by line scan apparatus
JP2013183282A (en) Defective pixel correction apparatus, method for controlling the same, and program for causing computer to execute the method
JP5466099B2 (en) Appearance inspection device
JP4230880B2 (en) Defect inspection method
US20060222232A1 (en) Appearance inspection apparatus and appearance inspection method
JP2006303491A (en) Method of inspecting wafer
KR102853085B1 (en) Method and apparatus for detecting defects on substrate
KR101261016B1 (en) method and apparatus for automatic optical inspection of flat panel substrate
US20090046922A1 (en) Surface Inspecting Apparatus
US20060093235A1 (en) Image processing method and image processing apparatus
CN107256835B (en) A bump defect detection method
KR20150137474A (en) Vision inspecting method using color image separation
JP4190243B2 (en) Electronic circuit component visual inspection method, visual inspection apparatus, and electronic circuit component manufacturing method.
JP4195980B2 (en) Appearance inspection method and appearance inspection apparatus using color image
JP2009097959A (en) Defect detecting device and defect detection method
JP4354173B2 (en) Appearance inspection equipment for electronic circuit components
JP4244046B2 (en) Image processing method and image processing apparatus
JP2014062837A (en) Defect inspection device and defect reviewing device
JP2007155610A (en) Appearance inspection apparatus and appearance inspection method
JP5239275B2 (en) Defect detection method and defect detection apparatus
JP4354174B2 (en) Manufacturing method for electronic circuit components
JPH08327497A (en) Method for inspecting color liquid crystal display panel

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20120116

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130109

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131015

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131213

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: 20140114

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140123

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