JP6015606B2 - Inspection method and inspection apparatus - Google Patents

Inspection method and inspection apparatus Download PDF

Info

Publication number
JP6015606B2
JP6015606B2 JP2013192195A JP2013192195A JP6015606B2 JP 6015606 B2 JP6015606 B2 JP 6015606B2 JP 2013192195 A JP2013192195 A JP 2013192195A JP 2013192195 A JP2013192195 A JP 2013192195A JP 6015606 B2 JP6015606 B2 JP 6015606B2
Authority
JP
Japan
Prior art keywords
inspection
value
luminance
image
inspected
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2013192195A
Other languages
Japanese (ja)
Other versions
JP2015059766A (en
JP2015059766A5 (en
Inventor
聡文 森
聡文 森
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.)
Sony Corp
Original Assignee
Sony Corp
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 Sony Corp filed Critical Sony Corp
Priority to JP2013192195A priority Critical patent/JP6015606B2/en
Publication of JP2015059766A publication Critical patent/JP2015059766A/en
Publication of JP2015059766A5 publication Critical patent/JP2015059766A5/ja
Application granted granted Critical
Publication of JP6015606B2 publication Critical patent/JP6015606B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本開示は、被検査体を撮影した画像に基づいてその被検査体を検査する検査方法、およびそのような検査方法により被検査体を検査する検査装置に関する。   The present disclosure relates to an inspection method for inspecting an object to be inspected based on an image obtained by imaging the object to be inspected, and an inspection apparatus for inspecting an object to be inspected by such an inspection method.

被検査体の検査を行う際、しばしば、その被検査体を撮影した画像に基づいて画像処理を行うことにより、その被検査体の良否判断が行われる。これにより、例えば検査員が目視によりその被検査体の検査を行う場合に比べ、客観的かつ効率的な検査が可能になる。   When the inspection object is inspected, the quality of the inspection object is often determined by performing image processing based on an image obtained by photographing the inspection object. Thereby, compared with the case where an inspector inspects the inspected object visually, for example, an objective and efficient inspection becomes possible.

このような被検査体の検査装置について、様々な技術が開示されている。例えば、特許文献1には、表示装置の検査において、その表示装置の表示画像を撮影し、その撮影画像に基づいて、マハラノビスの距離を利用して表示画像の良否判断を行う画像処理装置が開示されている。   Various techniques are disclosed for such an inspection apparatus for an object to be inspected. For example, Patent Document 1 discloses an image processing apparatus that captures a display image of a display device in an inspection of the display device, and determines the quality of the display image using the Mahalanobis distance based on the captured image. Has been.

特開2004−101338号公報JP 2004-101338 A

このように、被検査体の検査は、効率的に行われることが望ましく、さらなる効率性の向上が期待されている。   Thus, it is desirable that the inspection of the object to be inspected is performed efficiently, and further improvement in efficiency is expected.

本開示はかかる問題点に鑑みてなされたもので、その目的は、被検査体の検査を効率的に行うことができる検査方法および検査装置を提供することにある。   The present disclosure has been made in view of such problems, and an object thereof is to provide an inspection method and an inspection apparatus capable of efficiently inspecting an object to be inspected.

本開示の検査方法は、被検査体を撮影することにより得られ、輝度情報の値が所定方向に連続的に変化する輝度変化領域を有する撮影画像を取得し、撮影画像における画素ごとの輝度情報に基づいてヒストグラムを求め、輝度変化領域における画素ごとの輝度情報に基づいて、輝度変化領域での所定方向における隣り合う画素間の輝度情報の値の差の最大値および最小値を求め、ヒストグラム、最大値、および最小値に基づいてマハラノビスの平方距離を検査値として求め、その検査値に基づいて被検査体を検査するものである。
The inspection method of the present disclosure is obtained by photographing an object to be inspected, obtains a photographed image having a brightness change region in which the value of brightness information continuously changes in a predetermined direction, and brightness information for each pixel in the photographed image Based on the luminance information for each pixel in the luminance change region, to determine the maximum value and the minimum value of the difference in luminance information value between adjacent pixels in a predetermined direction in the luminance change region, the histogram , The square distance of Mahalanobis is obtained as an inspection value based on the maximum value and the minimum value, and the object to be inspected is inspected based on the inspection value .

本開示の検査装置は、画像処理部と、検査部とを備えている。画像処理部は、被検査体を撮影することにより得られ、輝度情報の値が所定方向に連続的に変化する輝度変化領域を有する撮影画像における画素ごとの輝度情報に基づいてヒストグラムを求めるとともに、輝度変化領域における画素ごとの輝度情報に基づいて、輝度変化領域での所定方向における隣り合う画素間の輝度情報の値の差の最大値および最小値を求めるものである。検査部は、ヒストグラム、最大値、および最小値に基づいてマハラノビスの平方距離を検査値として求め、その検査値に基づいて被検査体を検査するものである。

The inspection apparatus according to the present disclosure includes an image processing unit and an inspection unit. The image processing unit obtains a histogram based on luminance information for each pixel in a captured image having a luminance change region in which the value of luminance information is continuously changed in a predetermined direction, obtained by imaging the object to be inspected , Based on the luminance information for each pixel in the luminance change region, the maximum value and the minimum value of the difference in luminance information values between adjacent pixels in a predetermined direction in the luminance change region are obtained. The inspection unit obtains the Mahalanobis square distance as an inspection value based on the histogram , the maximum value, and the minimum value, and inspects the object to be inspected based on the inspection value .

本開示の検査方法および検査装置では、被検査体を撮影した撮影画像に基づいて、その被検査体が検査される。その際、撮影画像における画素ごとの輝度情報に基づいてヒストグラムが求められ、そのヒストグラムに基づいて被検査体が検査される。   In the inspection method and the inspection apparatus of the present disclosure, the object to be inspected is inspected based on a captured image obtained by photographing the object to be inspected. At that time, a histogram is obtained based on the luminance information for each pixel in the captured image, and the object to be inspected is inspected based on the histogram.

本開示の検査方法および検査装置によれば、ヒストグラムに基づいて被検査体を検査するようにしたので、被検査体の検査を効率的に行うことができる。なお、ここに記載された効果は必ずしも限定されるものではなく、本開示中に記載されたいずれの効果があってもよい。   According to the inspection method and the inspection apparatus of the present disclosure, since the inspection object is inspected based on the histogram, the inspection object can be efficiently inspected. In addition, the effect described here is not necessarily limited, and there may be any effect described in the present disclosure.

本開示の実施の形態に係る検査装置の一構成例を表すブロック図である。It is a block diagram showing the example of 1 composition of the inspection device concerning an embodiment of this indication. 検査用画像の一例を表す説明図である。It is explanatory drawing showing an example of the image for a test | inspection. ヒストグラムの一例を表す説明図である。It is explanatory drawing showing an example of a histogram. 図2に示した輝度変化部分における輝度情報の一例を示す説明図である。It is explanatory drawing which shows an example of the luminance information in the luminance change part shown in FIG. 図2に示した輝度変化部分における差分の一例を示す説明図である。It is explanatory drawing which shows an example of the difference in the brightness | luminance change part shown in FIG. ヒストグラムの他の例を表す説明図である。It is explanatory drawing showing the other example of a histogram. 図2に示した輝度変化部分における輝度情報の他の例を示す説明図である。It is explanatory drawing which shows the other example of the luminance information in the luminance change part shown in FIG. 図2に示した輝度変化部分における差分の他の例を示す説明図である。It is explanatory drawing which shows the other example of the difference in the brightness | luminance change part shown in FIG. 検査装置の一動作例を表す流れ図である。It is a flowchart showing the example of 1 operation of an inspection device. 図7に示した統計データ算出処理の一動作例を表す流れ図である。8 is a flowchart illustrating an operation example of the statistical data calculation process illustrated in FIG. 7. 図7に示したしきい値決定処理の一動作例を表す流れ図である。FIG. 8 is a flowchart illustrating an operation example of the threshold value determination process illustrated in FIG. 7. 図7に示した検査処理の一動作例を表す流れ図である。8 is a flowchart illustrating an operation example of the inspection process illustrated in FIG. 7.

以下、本開示の実施の形態について、図面を参照して詳細に説明する。なお、説明は以下の順序で行う。
1.実施の形態
2.応用例
Hereinafter, embodiments of the present disclosure will be described in detail with reference to the drawings. The description will be given in the following order.
1. Embodiment 2. FIG. Application examples

<1.実施の形態>
[構成例]
図1は、実施の形態に係る検査装置の一構成例を表すものである。検査装置1は、液晶ディスプレイや有機EL(Electro-Luminescence)ディスプレイなどの画像表示装置9に表示される表示画像を良否判断することにより、画像表示装置9の検査を行うものである。なお、本開示の実施の形態に係る検査方法は、本実施の形態により具現化されるので、併せて説明する。検査装置1は、撮影部10と、画像処理部20と、判定部30とを備えている。
<1. Embodiment>
[Configuration example]
FIG. 1 illustrates a configuration example of an inspection apparatus according to an embodiment. The inspection device 1 inspects the image display device 9 by determining whether the display image displayed on the image display device 9 such as a liquid crystal display or an organic EL (Electro-Luminescence) display is acceptable. The inspection method according to the embodiment of the present disclosure is embodied by the present embodiment, and will be described together. The inspection apparatus 1 includes an imaging unit 10, an image processing unit 20, and a determination unit 30.

撮影部10は、例えばカメラなどを用いて構成されるものであり、画像表示装置9に表示された所定の検査用画像Qを撮影するものである。   The imaging unit 10 is configured using, for example, a camera or the like, and images a predetermined inspection image Q displayed on the image display device 9.

図2は、画像表示装置9に表示される検査用画像Qの一例を表すものである。検査用画像Qは、複数の輝度変化部分Q1を有している。輝度変化部分Q1は、水平方向(図の横方向)において輝度が連続的に変化する部分である。この例では、垂直方向(図の縦方向)において、8つの輝度変化部分Q1が並んで設けられている。輝度変化部分Q1のそれぞれでは、様々な色について、輝度を連続的に変化させている。具体的には、8つの輝度変化部分Q1は、この例では、上から、黄色、シアン色、緑色、白色、白色、マゼンタ色、赤色、青色のそれぞれについて、輝度を連続的に変化させている。その際、隣り合う輝度変化部分Q1において、輝度が変化する方向が互いに反対方向になるように設定されている。具体的には、例えば、一番上の黄色についての輝度変化部分Q1では、右にいくほど輝度が高く、上から2番目のシアン色についての輝度変化部分Q1では、左に行くほど輝度が高くなっている。その他の輝度変化部分Q1についても同様である。このように、検査用画像Qには、様々な色が含まれており、かつ、各色についての輝度の変化が含まれている。このような検査用画像Qを検査対象である画像表示装置9に表示させることにより、画像表示装置9により良否判断をしやすくするとともに、例えば、その表示画像に不具合がある場合に、目視によりどのような不具合であるかを確認しやすくすることができるようになっている。   FIG. 2 shows an example of the inspection image Q displayed on the image display device 9. The inspection image Q has a plurality of luminance change portions Q1. The luminance change portion Q1 is a portion where the luminance continuously changes in the horizontal direction (the horizontal direction in the figure). In this example, eight luminance change portions Q1 are provided side by side in the vertical direction (vertical direction in the figure). In each of the luminance change portions Q1, the luminance is continuously changed for various colors. Specifically, in this example, the eight luminance changing portions Q1 continuously change the luminance for each of yellow, cyan, green, white, white, magenta, red, and blue from the top. . At that time, in the adjacent luminance change portion Q1, the direction in which the luminance changes is set to be opposite to each other. Specifically, for example, in the luminance change portion Q1 for the top yellow, the luminance increases toward the right, and in the luminance change portion Q1 for the second cyan color from the top, the luminance increases toward the left. It has become. The same applies to the other luminance change portions Q1. As described above, the inspection image Q includes various colors and includes a change in luminance for each color. By displaying such an inspection image Q on the image display device 9 that is the inspection object, the image display device 9 makes it easy to judge whether the image is good or not. It is possible to make it easier to check whether such a problem exists.

撮影部10は、画像表示装置9に表示されたこのような検査用画像Qを撮影し、撮影画像Pを取得する。撮影画像Pは、赤色(R)の輝度情報IR、緑色(G)の輝度情報IG、および青色(B)の輝度情報IBを、それぞれN画素分有するものである。その際、撮影画像Pの画素数と検査用画像Qの画素数とは必ずしも一致している必要はない。具体的には、撮影画像Pの1画素が、検査用画像Qの1画素と対応するようにしてもよいし、撮影画像Pの1画素が、検査用画像Qの複数の画素と対応するようにしてもよい。そして、撮影部10は、この撮影画像Pを画像処理部20に供給するようになっている。   The imaging unit 10 captures such an inspection image Q displayed on the image display device 9 and acquires a captured image P. The captured image P has red (R) luminance information IR, green (G) luminance information IG, and blue (B) luminance information IB for N pixels. At that time, the number of pixels of the captured image P and the number of pixels of the inspection image Q do not necessarily need to match. Specifically, one pixel of the captured image P may correspond to one pixel of the inspection image Q, and one pixel of the captured image P corresponds to a plurality of pixels of the inspection image Q. It may be. The photographing unit 10 supplies the photographed image P to the image processing unit 20.

画像処理部20は、撮影部10から供給された撮影画像Pに基づいて、ヒストグラム情報IHを求めるものである。具体的には、画像処理部20は、撮影画像Pに含まれるN個の赤色(R)の輝度情報に基づいて、赤色の輝度情報についてのヒストグラムHRを生成し、撮影画像Pに含まれるN個の緑色(G)の輝度情報に基づいて、緑色の輝度情報についてのヒストグラムHGを生成し、撮影画像Pに含まれるN個の青色(B)の輝度情報に基づいて、青色の輝度情報についてのヒストグラムHBを生成する。その際、画像処理部20は、赤色、緑色、青色の輝度情報のそれぞれについて、輝度情報の値の全範囲をk個の輝度クラスCCに分け、輝度クラスCCごとに度数を得ることによりヒストグラムHR,HG,HBを生成するようになっている。   The image processing unit 20 obtains the histogram information IH based on the captured image P supplied from the imaging unit 10. Specifically, the image processing unit 20 generates a histogram HR for red luminance information based on N pieces of red (R) luminance information included in the captured image P, and includes N included in the captured image P. A histogram HG for the green luminance information is generated based on the green (G) luminance information, and the blue luminance information is determined based on the N blue (B) luminance information included in the captured image P. The histogram HB is generated. At that time, the image processing unit 20 divides the entire range of the luminance information value into k luminance classes CC for each of the red, green, and blue luminance information, and obtains the frequency for each luminance class CC to obtain the histogram HR. , HG, HB are generated.

図3は、ヒストグラムHRの一例を表すものである。なお、ここでは、ヒストグラムHRの一例を示すが、ヒストグラムHG,HBについても同様である。この例では、16個(k=16)の輝度クラスCCを設定している。ヒストグラムHR,HG,HBは、画像表示装置9の表示特性や不良画素の有無により変化するものである。つまり、ヒストグラムHR,HG,HBは、検査対象である画像表示装置9の特徴を表す、いわば特徴量である。   FIG. 3 shows an example of the histogram HR. Although an example of the histogram HR is shown here, the same applies to the histograms HG and HB. In this example, 16 (k = 16) luminance classes CC are set. The histograms HR, HG, and HB change depending on the display characteristics of the image display device 9 and the presence or absence of defective pixels. That is, the histograms HR, HG, and HB are so-called feature amounts that represent the features of the image display device 9 that is the inspection target.

画像処理部20は、このようなヒストグラムHR,HG,HBを生成し、これらをヒストグラム情報IHとして、判定部30に供給する。すなわち、画像処理部20は、48個(=16×3)のパラメータをヒストグラム情報IHとして判定部30に供給するようになっている。   The image processing unit 20 generates such histograms HR, HG, and HB, and supplies these to the determination unit 30 as histogram information IH. That is, the image processing unit 20 supplies 48 (= 16 × 3) parameters to the determination unit 30 as the histogram information IH.

また、画像処理部20は、撮影画像Pに含まれる輝度変化部分Q1に基づいて、差分情報ΔIを求める機能をも有している。具体的には、画像処理部20は、例えば、図2に示した8つの輝度変化部分Q1のうち、上から5番目の白色についての輝度変化部分Q1に基づいて、水平方向における隣り合う画素間の赤色の輝度情報IRの値の差分ΔIRを求めてその最大値MAXRおよび最小値MINRを取得する。また、画像処理部20は、同様に、その輝度変化部分Q1に基づいて、水平方向における隣り合う画素間の緑色の輝度情報IGの値の差分ΔIGを求めてその最大値MAXGおよび最小値MINGを取得し、水平方向における隣り合う画素間の青色の輝度情報IBの値の差分ΔIBを求めてその最大値MAXBおよび最小値MINBを取得するようになっている。   The image processing unit 20 also has a function of obtaining the difference information ΔI based on the luminance change portion Q1 included in the captured image P. Specifically, the image processing unit 20 determines, for example, between adjacent pixels in the horizontal direction based on the luminance change portion Q1 for the fifth white color from the top among the eight luminance change portions Q1 illustrated in FIG. The difference ΔIR between the values of the red luminance information IR is obtained, and the maximum value MAXR and the minimum value MINR are obtained. Similarly, the image processing unit 20 obtains the difference ΔIG in the value of the green luminance information IG between adjacent pixels in the horizontal direction based on the luminance change portion Q1, and obtains the maximum value MAXG and the minimum value MING. The difference ΔIB between the values of blue luminance information IB between adjacent pixels in the horizontal direction is obtained, and the maximum value MAXB and the minimum value MINB are acquired.

図4Aは、輝度変化部分Q1の水平方向における輝度情報IRの値を表すものであり、図4Bは、隣り合う画素間の赤色の輝度情報IRの値の差分ΔIRを表すものである。なお、ここでは、輝度情報IRおよび差分ΔIRの一例を示すが、輝度情報IGおよび差分ΔIG、ならびに輝度情報IBおよび差分ΔIBについても同様である。この例では、図4Aに示したように、輝度情報IRは、水平方向の画素座標に応じて線形に変化している。これにより、輝度情報IRの値の差分ΔIRは、図4Bに示したように一様になる。画像処理部20は、この差分ΔIRのうちの最大値MAXRと最小値MINRとを取得するようになっている。最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINBは、画像表示装置9の表示特性や不良画素の有無により変化するものである。つまり、最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINBは、検査対象である画像表示装置9の特徴量である。   FIG. 4A shows the value of the luminance information IR in the horizontal direction of the luminance change portion Q1, and FIG. 4B shows the difference ΔIR in the value of the red luminance information IR between adjacent pixels. Here, an example of the luminance information IR and the difference ΔIR is shown, but the same applies to the luminance information IG and the difference ΔIG, and the luminance information IB and the difference ΔIB. In this example, as shown in FIG. 4A, the luminance information IR changes linearly according to the pixel coordinates in the horizontal direction. As a result, the difference ΔIR between the values of the luminance information IR becomes uniform as shown in FIG. 4B. The image processing unit 20 acquires the maximum value MAXR and the minimum value MINR out of the difference ΔIR. The maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB vary depending on the display characteristics of the image display device 9 and the presence / absence of defective pixels. That is, the maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB are feature quantities of the image display device 9 to be inspected.

画像処理部20は、このようにして、最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINBを取得し、これらを差分情報ΔIとして判定部30に供給する。すなわち、画像処理部20は、6個(=2×3)のパラメータを差分情報ΔIとして判定部に供給するようになっている。   In this way, the image processing unit 20 acquires the maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB, and supplies them to the determination unit 30 as difference information ΔI. That is, the image processing unit 20 supplies six (= 2 × 3) parameters as difference information ΔI to the determination unit.

このように、画像処理部20は、ヒストグラムHR,HG,HB(この例では48個のパラメータ)をヒストグラム情報IHとして、判定部30に供給するとともに、最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINB(この例では6個のパラメータ)を差分情報ΔIとして判定部30に供給する。すなわち、画像処理部20は、画像表示装置9についての2種類の特徴量を、判定部30に供給するようになっている。   In this manner, the image processing unit 20 supplies the histograms HR, HG, and HB (48 parameters in this example) as the histogram information IH to the determination unit 30, and also includes the maximum values MAXR, MAXG, MAXB, and the minimum value MINR. , MING, MINB (six parameters in this example) are supplied to the determination unit 30 as difference information ΔI. That is, the image processing unit 20 supplies two types of feature amounts for the image display device 9 to the determination unit 30.

この画像処理部20は、ハードウェアで構成するようにしてもよいし、ソフトウェアで構成するようにしてもよい。すなわち、画像処理部20において行われるこのような演算は、一般的な画像処理演算と比較して簡単な演算であり、演算負荷が小さいため、ハードウェアで構成することを要せず、ソフトウェアで構成することができる。   The image processing unit 20 may be configured by hardware or software. That is, such an operation performed in the image processing unit 20 is a simple operation as compared with a general image processing operation, and has a small operation load. Can be configured.

判定部30は、ヒストグラム情報IHおよび差分情報ΔIに基づいて、MTS(Mahalanobis Taguchi System)法を用いて、マハラノビスの平方距離を求め、このマハラノビスの平方距離に基づいて、撮影画像Pを良否判断(良画像または不良画像に分類)することにより、その撮影画像Pに係る画像表示装置9を検査するものである。   The determination unit 30 obtains the Mahalanobis square distance based on the histogram information IH and the difference information ΔI using the MTS (Mahalanobis Taguchi System) method, and determines whether the captured image P is good or bad based on the Mahalanobis square distance ( The image display device 9 related to the captured image P is inspected by classifying it into a good image or a defective image.

また、判定部30は、画像表示装置9の検査の前段階として、その検査をするために必要な情報を生成する処理(後述する統計データ算出処理およびしきい値決定処理)をも行うようになっている。   Further, the determination unit 30 also performs processing (statistical data calculation processing and threshold value determination processing, which will be described later) for generating information necessary for the inspection as a preliminary stage of the inspection of the image display device 9. It has become.

[動作および作用]
続いて、本実施の形態の検査装置1の動作および作用について説明する。
[Operation and Action]
Then, operation | movement and an effect | action of the test | inspection apparatus 1 of this Embodiment are demonstrated.

(全体動作概要)
まず、図1を参照して、検査装置1の全体動作概要を説明する。画像表示装置9に表示された検査用画像Qを撮影して撮影画像Pを取得し、その撮影画像Pを画像処理部20に供給する。画像処理部20は、撮影画像Pに基づいて、ヒストグラム情報IHおよび差分情報ΔIを求め、これらを判定部30に供給する。判定部30は、ヒストグラム情報IHおよび差分情報ΔIに基づいてマハラノビスの平方距離を求め、このマハラノビスの平方距離に基づいて、撮影画像Pを良否判断(良画像または不良画像に分類)することにより、その撮影画像Pに係る画像表示装置9を検査する。
(Overview of overall operation)
First, an overall operation outline of the inspection apparatus 1 will be described with reference to FIG. The inspection image Q displayed on the image display device 9 is captured to acquire a captured image P, and the captured image P is supplied to the image processing unit 20. The image processing unit 20 obtains the histogram information IH and the difference information ΔI based on the captured image P, and supplies these to the determination unit 30. The determination unit 30 obtains the Mahalanobis square distance based on the histogram information IH and the difference information ΔI, and determines whether the captured image P is good or bad (classifies as a good image or a bad image) based on the Mahalanobis square distance. The image display device 9 related to the captured image P is inspected.

(ヒストグラム情報IHおよび差分情報ΔI)
画像処理部20は、撮影画像Pに基づいて、ヒストグラム情報IHおよび差分情報ΔIを求める。以下に、その動作例をいくつか説明する。
(Histogram information IH and difference information ΔI)
Based on the captured image P, the image processing unit 20 obtains histogram information IH and difference information ΔI. Several examples of the operation will be described below.

図5は、ヒストグラムHRの一例を表すものであり、(A)は撮影画像Pが良画像である場合を示し、(B)は撮影画像Pが不良画像である場合を示す。このように、画像表示装置9の表示特性や不良画素の有無により、ヒストグラムHR,HG,HBに違いが現れる。その際、図5に示したように、複数の輝度クラスCCにおいて度数に違いが生じる。   FIG. 5 shows an example of the histogram HR, where (A) shows a case where the captured image P is a good image, and (B) shows a case where the captured image P is a defective image. Thus, differences appear in the histograms HR, HG, and HB depending on the display characteristics of the image display device 9 and the presence or absence of defective pixels. In that case, as shown in FIG. 5, a difference arises in the frequency in a plurality of luminance classes CC.

検査装置1では、ヒストグラムHR,HG,HBに基づいて撮影画像Pの良否判断を行うようにしたので、撮影画像Pの違いを効率的に検出することができる。すなわち、ヒストグラムHR,HG,HBにおける全ての輝度クラスCCにおける度数の合計値は、撮影画像Pの画素数Nと一致し、固定値である。よって、例えば、撮影画像Pにおけるある画素の輝度情報が所望の輝度情報からずれていた場合には、その所望の輝度情報が属する輝度クラスCCにおける度数が減少するとともに、所望の輝度情報からずれた実際の輝度情報が属する輝度クラスCCにおける度数が増大する。つまり、1つの画素の不具合が2つの輝度クラスCCの度数の変化として現れることとなる。これにより、撮影画像Pの違いを検出する際の検出感度を高めることができ、撮影画像Pの違いを効率的に検出することができる。   In the inspection apparatus 1, since the quality of the captured image P is determined based on the histograms HR, HG, and HB, the difference in the captured image P can be detected efficiently. That is, the total value of the frequencies in all luminance classes CC in the histograms HR, HG, and HB matches the number N of pixels of the captured image P and is a fixed value. Therefore, for example, when the luminance information of a certain pixel in the captured image P deviates from the desired luminance information, the frequency in the luminance class CC to which the desired luminance information belongs decreases and deviates from the desired luminance information. The frequency in the luminance class CC to which the actual luminance information belongs increases. That is, a defect of one pixel appears as a change in the frequency of the two luminance classes CC. Thereby, the detection sensitivity at the time of detecting the difference of the picked-up image P can be raised, and the difference of the picked-up image P can be detected efficiently.

撮影画像Pの違いを検出する際の検出感度は、輝度クラスCCの数により調整することが可能である。具体的には、輝度クラスCCを増やすと検出感度を高めることができ、輝度クラスCCを減らすと検出感度を下げることができる。これは、輝度クラスCCが多い方が、各輝度クラスCCにおける輝度情報の値の幅が狭くなるため、各輝度クラスCCにおいて、度数の増加と減少とが相殺される可能性が低いからである。   The detection sensitivity at the time of detecting the difference in the captured image P can be adjusted by the number of luminance classes CC. Specifically, increasing the luminance class CC can increase the detection sensitivity, and decreasing the luminance class CC can decrease the detection sensitivity. This is because, as the luminance class CC is larger, the range of the luminance information value in each luminance class CC becomes narrower, so that the increase and decrease in frequency are less likely to be offset in each luminance class CC. .

輝度クラスCCを多くして検出感度を高める場合には、各輝度クラスCCにおける輝度情報の値の幅CWが小さくなる。この場合、幅CWが以下の式を満たすようにする必要がある。
CW > σ ・・・(1)
ここで、σは、映像表示装置9における同じ表示画像を繰り返し撮影した場合の、撮影画像Pにおける各画素の輝度情報のばらつき(標準偏差)である。この式を満たすように各輝度クラスCCにおける輝度情報の値の幅CWを設定することにより、各輝度クラスCCにおける度数が、測定ばらつきの影響をうけるおそれを低減することができる。また、輝度クラスCCを多くする場合には、判定部30における処理量が増大するため、この処理量も考慮して輝度クラスCCの数を決定するのが望ましい。
When the detection sensitivity is increased by increasing the luminance class CC, the width CW of the luminance information value in each luminance class CC is reduced. In this case, the width CW needs to satisfy the following expression.
CW> σ (1)
Here, σ is a variation (standard deviation) in luminance information of each pixel in the captured image P when the same display image is repeatedly captured on the video display device 9. By setting the width CW of the value of the luminance information in each luminance class CC so as to satisfy this equation, it is possible to reduce the possibility that the frequency in each luminance class CC is affected by measurement variations. In addition, when the luminance class CC is increased, the processing amount in the determination unit 30 increases. Therefore, it is desirable to determine the number of luminance classes CC in consideration of this processing amount.

図6Aは、撮影画像Pが不良画像である場合における、輝度変化部分Q1の水平方向における輝度情報IRの値を表すものであり、図6Bは、差分ΔIRを示す。この例では、図6Aに示したように、ある画素において、輝度情報IRが所望の値より低い値になっており(部分W1)、これにより、差分ΔIRには、この画素付近において、最大値MAXRおよび最小値MINRが現れる。この最大値MAXRは、撮影画像Pが良画像である場合(図4B)のものよりも大きい値になり、最小値MINRは、撮影画像Pが不良画像である場合(図4B)のものよりも小さい値になる。このように、画像表示装置9の表示特性や不良画素の有無により、最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINBに違いが現れる。   FIG. 6A shows the value of the luminance information IR in the horizontal direction of the luminance change portion Q1 when the captured image P is a defective image, and FIG. 6B shows the difference ΔIR. In this example, as shown in FIG. 6A, the luminance information IR is lower than a desired value in a certain pixel (part W1), so that the difference ΔIR has a maximum value near this pixel. MAXR and minimum MINR appear. The maximum value MAXR is larger than that when the captured image P is a good image (FIG. 4B), and the minimum value MINR is greater than that when the captured image P is a defective image (FIG. 4B). Small value. Thus, differences appear in the maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB depending on the display characteristics of the image display device 9 and the presence or absence of defective pixels.

検査装置1では、最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINBに基づいて撮影画像Pの良否判断を行うようにしたので、撮影画像Pにおける一部の画素における輝度情報の違いを高感度で検出することができる。すなわち、図6Aに示したような不良が生じた場合、図4B,図6Bに示したように、2つのパラメータ(最大値MAXRおよび最小値MINR)において大きな違いが生じる。なお、ヒストグラムHRでは、例えば、ある1つの輝度クラスCCにおける度数が1つ減少し、他の1つの輝度クラスCCにおける度数が1つ増加するだけであるため、ヒストグラムHRの違いは少ないものとなる。このように、最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINBに基づいて撮影画像Pを良否判断するようにしたので、一部の画素における輝度情報の違いを高感度に検出することができる。   In the inspection apparatus 1, the quality of the captured image P is determined based on the maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB. It can be detected with high sensitivity. That is, when the defect shown in FIG. 6A occurs, as shown in FIGS. 4B and 6B, there is a great difference between the two parameters (maximum value MAXR and minimum value MINR). In the histogram HR, for example, the frequency in one luminance class CC is decreased by one, and the frequency in another luminance class CC is only increased by one, so that the difference in the histogram HR is small. . As described above, the quality of the captured image P is determined based on the maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB, so that a difference in luminance information in some pixels is detected with high sensitivity. Can do.

このように、検査装置1では、ヒストグラム情報IH(ヒストグラムHR,HG,HB)に基づいて撮影画像Pの良否判断を行うことにより、撮影画像P全体における不具合の有無を検出し、差分情報ΔI(最大値MAXR,MAXG,MAXBおよび最小値MINR,MING,MINB)に基づいて撮影画像Pの良否判断を行うことにより、一部の画素における不具合の有無を検出する。これにより、撮影画像Pの全体から細部にわたり、効率的に不具合の有無を調べることができる。具体的には、例えば、検査員が検査する場合には、例えば検査員がいわゆる限度見本を見ながら目視で撮影画像Pを検査する。このような目視による検査は、検査に時間を要し、検査コストが高くなるおそれがある。また、客観的な判断が難しく、検査員の主観的な判断が入るおそれがあるとともに、検査ミスにより不良品が良品と判断されるおそれがある。さらに、あらかじめ想定していない不良が生じた場合には、適切に判断できないおそれがある。一方、本実施の形態に係る検査装置1では、ヒストグラム情報IHおよび差分情報ΔIに基づいて、撮影画像Pの良否判断を行うようにしている。これにより、定量化された情報に基づいて検査が行われる、客観的な判断が可能となり、短時間かつ低コストで画一的に判断することができ、不良品が良品と判断されるおそれを低減することができる。また、あらかじめ想定していない不良が生じた場合でも、その不良がヒストグラム情報IHおよび差分情報ΔIにより定量的に表されるため、そのような不良品が良品と判定されるおそれを低減することができる。   In this way, the inspection apparatus 1 detects the presence or absence of defects in the entire captured image P by performing pass / fail judgment of the captured image P based on the histogram information IH (histograms HR, HG, HB), and detects the difference information ΔI ( Based on the maximum values MAXR, MAXG, MAXB and the minimum values MINR, MING, MINB), the presence or absence of a defect in some pixels is detected by making a pass / fail judgment on the captured image P. Accordingly, it is possible to efficiently check the presence or absence of defects from the entire captured image P to the details. Specifically, for example, when an inspector inspects, for example, the inspector visually inspects the captured image P while looking at a so-called limit sample. Such visual inspection requires time for inspection and may increase the inspection cost. In addition, it is difficult to make an objective judgment, and there is a possibility that a subjective judgment of an inspector may be entered. Further, a defective product may be judged as a non-defective product due to an inspection mistake. Furthermore, when a defect that is not assumed in advance occurs, there is a possibility that it cannot be determined appropriately. On the other hand, in the inspection apparatus 1 according to the present embodiment, the quality of the captured image P is determined based on the histogram information IH and the difference information ΔI. This makes it possible to make objective judgments based on the quantified information, make it possible to make a judgment in a short time and at a low cost, and determine that a defective product may be judged as a good product. Can be reduced. Further, even when a defect that is not assumed in advance occurs, the defect is quantitatively represented by the histogram information IH and the difference information ΔI, so that the possibility of determining such a defective product as a non-defective product can be reduced. it can.

(検出装置1の詳細動作)
図7は、検査装置1の動作例を表すものである。検査装置1では、画像表示装置9の検査処理(ステップS3)を行う前に、あらかじめ、統計データ算出処理(ステップS1)と、しきい値決定処理(ステップS2)を行い、しきい値MDth 2(後述)決定する。そして、検査処理(ステップS3)では、このしきい値MDth 2を用いて、画像表示装置9の検査を行う。以下に、各処理について詳細に説明する。
(Detailed operation of the detection device 1)
FIG. 7 illustrates an operation example of the inspection apparatus 1. In the inspection apparatus 1, before performing the inspection process (step S3) of the image display apparatus 9, the statistical data calculation process (step S1) and the threshold value determination process (step S2) are performed in advance, and the threshold value MD th 2 Determined later. Then, in the inspection process (step S3), and using this threshold MD th 2, inspecting the image display device 9. Hereinafter, each process will be described in detail.

図8は、統計データ算出処理を表すものである。統計データ算出処理では、検査員により良品と判定された複数の映像表示装置(良品標本)に基づいて、平均ベクトルAVEおよび共分散逆行列Rを求める。以下に、この統計データ算出処理について詳細に説明する。   FIG. 8 shows statistical data calculation processing. In the statistical data calculation process, an average vector AVE and a covariance inverse matrix R are obtained based on a plurality of video display devices (non-defective samples) determined to be non-defective by the inspector. The statistical data calculation process will be described in detail below.

まず、撮影部10は、良品標本に表示された検査用画像Qを撮影して撮影画像Pを取得する(ステップS11)。そして、撮影部10は、その撮影画像Pを画像処理部20に供給する。   First, the imaging unit 10 acquires the captured image P by capturing the inspection image Q displayed on the non-defective sample (step S11). Then, the photographing unit 10 supplies the photographed image P to the image processing unit 20.

次に、画像処理部20は、撮影画像Pに基づいてヒストグラム情報IHおよび差分情報ΔIを求める(ステップS12)。そして、画像処理部20は、これらのヒストグラム情報IHおよび差分情報ΔIを判定部30に供給する。   Next, the image processing unit 20 calculates histogram information IH and difference information ΔI based on the captured image P (step S12). Then, the image processing unit 20 supplies the histogram information IH and the difference information ΔI to the determination unit 30.

次に、判定部30は、ヒストグラム情報IH(この例では48個のパラメータ)および差分情報ΔI(この例では6個のパラメータ)に含まれる合計54個のパラメータを、判定部30内のメモリに格納する(ステップS13)。   Next, the determination unit 30 stores a total of 54 parameters included in the histogram information IH (48 parameters in this example) and the difference information ΔI (6 parameters in this example) in the memory in the determination unit 30. Store (step S13).

検査装置1は、このステップS11〜S13を、M個(例えば100個程度)の良品標本に対して繰り返して行う。その際、良品の標本空間において、同じ密度でサンプリングするように、繰り返して行う(ステップS14)。   The inspection apparatus 1 repeats steps S11 to S13 for M (for example, about 100) non-defective samples. At that time, the process is repeatedly performed so that sampling is performed at the same density in the non-defective sample space (step S14).

このステップS11〜S14により、判定部30のメモリには、M個の良品標本から得られたパラメータが格納される。判定部30は、このパラメータに基づいて、特徴ベクトルXを生成する(ステップS15)。この特徴ベクトルXは、次式で表されるものである。
X = (X123 … X54) ・・・(2)
Xi= {xi,1i,2i,3 … xi,M} ・・・(3)
このXi(i=1〜54)は、54個のパラメータのうちのある1つのパラメータについての、良品標本M個分のデータの集合を表している。
Through these steps S11 to S14, the parameters obtained from the M non-defective samples are stored in the memory of the determination unit 30. The determination unit 30 generates a feature vector X based on this parameter (step S15). This feature vector X is expressed by the following equation.
X = (X 1 X 2 X 3 ... X 54 ) (2)
Xi = {x i, 1 x i, 2 x i, 3 ... X i, M } (3)
This Xi (i = 1 to 54) represents a set of data for M non-defective samples for one parameter out of 54 parameters.

次に、判定部30は、この特徴ベクトルXに基づいて平均ベクトルAVEを算出する(ステップS16)。この平均ベクトルAVEは、次式で表されるものである。
AVE=(A123 … A54) ・・・(4)
ここで、Ai(i=1〜54)は、式(3)に示した集合Xiに含まれるM個分のデータの平均値である。
Next, the determination unit 30 calculates an average vector AVE based on the feature vector X (step S16). This average vector AVE is expressed by the following equation.
AVE = (A 1 A 2 A 3 ... A 54 ) (4)
Here, Ai (i = 1 to 54) is an average value of M pieces of data included in the set Xi shown in Expression (3).

次に、判定部30は、特徴ベクトルXおよび平均ベクトルAVEに基づいて、共分散行列Cを算出し、共分散逆行列Rを求める(ステップS17)。この共分散行列Cは、次式で表されるものである。

Figure 0006015606
この共分散行列Cに基づいて、共分散逆行列Rを求める。この共分散逆行列Rは、次式で表されるものである。
R=C-1/54 ・・・(7)
ここで、C-1は、共分散行列Cの逆行列であり、次式で表されるものである。
Figure 0006015606
式(7)で示したように、共分散行列Cの逆行列を、パラメータの数(54)で割るようにしたので、54次元における距離が1となる単位空間で評価することができるようになるため、計算を容易にすることができる。 Next, the determination unit 30 calculates a covariance matrix C based on the feature vector X and the average vector AVE to obtain a covariance inverse matrix R (step S17). This covariance matrix C is expressed by the following equation.
Figure 0006015606
Based on this covariance matrix C, a covariance inverse matrix R is obtained. This covariance inverse matrix R is expressed by the following equation.
R = C −1 / 54 (7)
Here, C −1 is an inverse matrix of the covariance matrix C, and is expressed by the following equation.
Figure 0006015606
As shown in Equation (7), the inverse matrix of the covariance matrix C is divided by the number of parameters (54), so that it can be evaluated in a unit space with a distance of 1 in 54 dimensions. Therefore, calculation can be facilitated.

以上で、このフローは終了する。   Thus, this flow ends.

図9は、しきい値決定処理を表すものである。しきい値決定処理では、検査員により不良品と判定された1つの映像表示装置(不良品標本)、ならびに統計データ算出処理によって求められた平均ベクトルAVEおよび共分散逆行列Rに基づいて、画像表示装置9を検査する際にしきい値として用いるマハラノビスの平方距離MDth 2を決定する。以下に、このしきい値決定処理について詳細に説明する。 FIG. 9 shows threshold value determination processing. In the threshold value determination process, an image is displayed based on one video display device (defective product sample) determined to be defective by the inspector, and the average vector AVE and covariance inverse matrix R obtained by the statistical data calculation process. The Mahalanobis square distance MD th 2 used as a threshold when the display device 9 is inspected is determined. Hereinafter, the threshold value determination process will be described in detail.

まず、判定部30は、撮影部10は、不良品標本に表示された検査用画像Qを撮影して撮影画像Pを取得する(ステップS21)。そして、撮影部10は、その撮影画像Pを画像処理部20に供給する。   First, in the determination unit 30, the imaging unit 10 acquires the captured image P by capturing the inspection image Q displayed on the defective specimen (step S21). Then, the photographing unit 10 supplies the photographed image P to the image processing unit 20.

次に、画像処理部20は、撮影画像Pに基づいてヒストグラム情報IHおよび差分情報ΔIを求める(ステップS22)。そして、画像処理部20は、これらのヒストグラム情報IHおよび差分情報ΔIを判定部30に供給する。   Next, the image processing unit 20 obtains histogram information IH and difference information ΔI based on the captured image P (step S22). Then, the image processing unit 20 supplies the histogram information IH and the difference information ΔI to the determination unit 30.

次に、判定部30は、ヒストグラム情報IH(この例では48個のパラメータ)および差分情報ΔI(この例では6個のパラメータ)に含まれる合計54個のパラメータに基づいて、特徴ベクトルXNGを生成する(ステップS23)。 Next, the determination unit 30 calculates the feature vector X NG based on a total of 54 parameters included in the histogram information IH (48 parameters in this example) and the difference information ΔI (6 parameters in this example). Generate (step S23).

次に、判定部30は、ステップS23により求めた特徴ベクトルXNGと、統計データ算出処理のステップS16,S17により求めた平均ベクトルAVEおよび共分散逆行列Rとに基づいて、特徴ベクトルXNGと平均ベクトルAVEとのマハラノビスの平方距離MDNG 2を算出する(ステップS24)。このマハラノビスの平方距離MDNG 2は、次式で表されるものである。
MDNG 2=(XNG−AVE)R(XNG−AVE)T ・・・(9)
Next, the determination unit 30, a feature vector X NG obtained in step S23, determined by the step S16, S17 statistics calculation average based on the vector AVE and covariance inverse matrix R, and the feature vector X NG The Mahalanobis square distance MD NG 2 with the average vector AVE is calculated (step S24). This Mahalanobis square distance MD NG 2 is represented by the following equation.
MD NG 2 = (X NG −AVE) R (X NG −AVE) T (9)

次に、判定部30は、しきい値として用いるマハラノビスの平方距離MDth 2を決定する(ステップS25)。このしきい値MDth 2は、以下の式を満たすように決定される。
MDth 2 < MDNG 2 ・・・(10)
Next, the determination unit 30 determines the Mahalanobis square distance MD th 2 used as a threshold value (step S25). This threshold value MD th 2 is determined so as to satisfy the following expression.
MD th 2 <MD NG 2 (10)

以上で、このフローは終了する。   Thus, this flow ends.

なお、この例では、1つの不良品標本を用いたが、複数の不良品標本を準備できる場合には、それぞれについて、式(9)を用いてマハラノビスの平方距離MDNG 2を求め、それらのうちの最小のものを選択することができる。 In this example, one defective sample is used. However, when a plurality of defective samples can be prepared, the Mahalanobis square distance MD NG 2 is obtained for each using Equation (9). The smallest of them can be selected.

検査装置1は、このようにして、統計データ算出処理(図8)およびしきい値決定処理(図9)を行うことにより、しきい値MDth 2を決定する。そして、検査装置1は、このしきい値MDth 2を用いて、画像表示装置9の検査を行う。 The inspection apparatus 1 thus determines the threshold value MD th 2 by performing the statistical data calculation process (FIG. 8) and the threshold value determination process (FIG. 9). Then, the inspection apparatus 1 inspects the image display apparatus 9 using the threshold value MD th 2 .

図10は、画像表示装置9の検査処理を表すものである。この検査処理では、検査対象である画像表示装置9(標本)の撮影画像Pに基づいて、マハラノビスの平方距離MD2を求め、このマハラノビスの平方距離MD2としきい値MDth 2を比較することにより画像表示装置9を検査する。以下に、この検査処理について詳細に説明する。 FIG. 10 shows an inspection process of the image display device 9. In this test process, it based on the captured image P of the image display device 9 to be inspected (specimen), obtains the Mahalanobis squared distance MD 2, comparing the squared distance MD 2 and threshold MD th 2 of the Mahalanobis Thus, the image display device 9 is inspected. Hereinafter, this inspection process will be described in detail.

まず、判定部30は、撮影部10は、標本に表示された検査用画像Qを撮影して撮影画像Pを取得する(ステップS31)。そして、撮影部10は、その撮影画像Pを画像処理部20に供給する。   First, in the determination unit 30, the imaging unit 10 acquires the captured image P by capturing the inspection image Q displayed on the specimen (step S31). Then, the photographing unit 10 supplies the photographed image P to the image processing unit 20.

次に、画像処理部20は、撮影画像Pに基づいてヒストグラム情報IHおよび差分情報ΔIを求める(ステップS32)。そして、画像処理部20は、これらのヒストグラム情報IHおよび差分情報ΔIを判定部30に供給する。   Next, the image processing unit 20 obtains histogram information IH and difference information ΔI based on the captured image P (step S32). Then, the image processing unit 20 supplies the histogram information IH and the difference information ΔI to the determination unit 30.

次に、判定部30は、ヒストグラム情報IH(この例では48個のパラメータ)および差分情報ΔI(この例では6個のパラメータ)に含まれる合計54個のパラメータに基づいて、特徴ベクトルXSを生成する(ステップS33)。 Next, the determination unit 30 calculates the feature vector X S based on a total of 54 parameters included in the histogram information IH (48 parameters in this example) and the difference information ΔI (6 parameters in this example). Generate (step S33).

次に、判定部30は、ステップS33により求めた特徴ベクトルXSと、統計データ算出処理のステップS16,S17により求めた平均ベクトルAVEおよび共分散逆行列Rとに基づいて、特徴ベクトルXSと平均ベクトルAVEとのマハラノビスの平方距離MD2を算出する(ステップS34)。このマハラノビスの平方距離MD2は、次式で表されるものである。
MD2=(XS−AVE)R(XS−AVE)T ・・・(11)
Next, the determination unit 30, a feature vector X S obtained in step S33, based on the mean vector AVE and covariance inverse matrix R calculated by the statistical data calculating process step S16, S17 of the feature vectors X S calculating the Mahalanobis squared distance MD 2 between the average vector AVE (step S34). Squared distance MD 2 of this Mahalanobis is represented by the following formula.
MD 2 = (X S -AVE) R (X S -AVE) T (11)

次に、判定部30は、ステップS34により求めたマハラノビスの平方距離MD2を、しきい値決定処理のステップS25により求めたしきい値MDth 2と比較する(ステップS35)。マハラノビスの平方距離MD2がしきい値MDth 2よりも小さい(MD2<MDth 2)場合には、標本は良品であると判定し(ステップS36)、マハラノビスの平方距離MD2がしきい値MDth 2以上(MD2≧MDth 2)である場合には、標本は不良品であると判定する(ステップS37)。 Next, the determination unit 30, Mahalanobis square distance MD 2 obtained in step S34, is compared with a threshold value MD th 2 obtained in step S25 in the threshold determination process (step S35). If squared distance MD 2 Mahalanobis is smaller than the threshold value MD th 2 (MD 2 <MD th 2) determines that the sample is good (step S36), Mahalanobis squared distance MD 2 is sill If the value is MD th 2 or more (MD 2 ≧ MD th 2 ), the sample is determined to be defective (step S37).

以上で、このフローは終了する。   Thus, this flow ends.

[効果]
以上のように本実施の形態では、ヒストグラム情報に基づいて撮影画像の良否判断を行うようにしたので、撮影画像の違いを効率的に検出することができる。
[effect]
As described above, in the present embodiment, the quality of the captured image is determined based on the histogram information, so that the difference between the captured images can be detected efficiently.

本実施の形態では、差分情報に基づいて撮影画像の良否判断を行うようにしたので、撮影画像における一部の画素における輝度情報の違いを高感度で検出することができる。   In the present embodiment, since the quality of the captured image is determined based on the difference information, it is possible to detect a difference in luminance information in some pixels in the captured image with high sensitivity.

本実施の形態では、ヒストグラム情報および差分情報に基づいて撮影画像の良否判断を行うようにしたので、撮影画像の全体から細部にわたり、短時間かつ低コストで検査を行うことができ、また、不良品が良品と判断されるおそれを低減することができる。また、あらかじめ想定していない不良が生じた場合でも、良品と判定されるおそれを低減することができる。   In the present embodiment, the quality of the captured image is determined based on the histogram information and the difference information. Therefore, the entire captured image can be inspected in a short time and at a low cost. The risk that a non-defective product is determined to be a non-defective product can be reduced. Moreover, even when a defect that is not assumed in advance occurs, the risk of being judged as a non-defective product can be reduced.

[変形例1]
上記実施の形態では、ヒストグラム情報および差分情報に基づいて撮影画像の良否判断を行ったが、これに限定されるものではなく、これに代えて、例えば、差分情報を取得せずに、ヒストグラム情報に基づいて撮影画像の良否判断を行ってもよい。この場合でも、撮影画像P全体における不具合の有無を検出することができる。
[Modification 1]
In the above embodiment, the quality of the captured image is determined based on the histogram information and the difference information. However, the present invention is not limited to this, and instead, for example, the histogram information is obtained without acquiring the difference information. The quality of the captured image may be determined based on the above. Even in this case, it is possible to detect the presence or absence of defects in the entire captured image P.

[変形例2]
上記実施の形態では、輝度情報の値の全範囲を16個の輝度クラスCCに分けたが、これに限定されるものではなく、これに代えて、15以下または16以上の輝度クラスCCに分けてもよい。同様に、上記実施の形態では、ヒストグラム情報および差分情報が合計で54個のパラメータを有するようにしたが、これに限定されるものではなく、これに代えて、53以下または55以上のパラメータを有するようにしてもよい。
[Modification 2]
In the above embodiment, the entire range of luminance information values is divided into 16 luminance classes CC. However, the present invention is not limited to this. Instead, it is divided into 15 or less luminance classes CC or more. May be. Similarly, in the above embodiment, the histogram information and difference information have a total of 54 parameters. However, the present invention is not limited to this. Instead, 53 or less parameters or 55 or more parameters are used. You may make it have.

<2.応用例>
上記の実施の形態等では、画像処理装置9に表示される表示画像を検査するようにしたが、これに限定されるものではなく、様々なものの検査に用いることが可能である。具体的には、例えば、物品の外観検査に用いることができる。この場合には、例えば、物品の色にむらがないかどうか、また、物品に模様が施されている場合に、その模様の一部が欠けていないかなどを検査することができる。また、物品の大きさが適切であるかを検査することも可能である。
<2. Application example>
In the above-described embodiment and the like, the display image displayed on the image processing device 9 is inspected. However, the present invention is not limited to this, and can be used for various inspections. Specifically, for example, it can be used for appearance inspection of articles. In this case, for example, it is possible to inspect whether or not the color of the article is uneven and whether or not a part of the pattern is missing when the article is patterned. It is also possible to inspect whether the size of the article is appropriate.

以上、実施の形態および変形例、ならびにそれらの具体的な応用例を挙げて本技術を説明したが、本技術はこれらの実施の形態等には限定されず、種々の変形が可能である。   As described above, the present technology has been described with the embodiment and the modified examples, and specific application examples thereof. However, the present technology is not limited to the embodiments and the like, and various modifications can be made.

例えば、上記の実施の形態等では、図2に示した検査用画像Qを用いたが、これに限定されるものではなく、様々な色が含まれており、かつ、各色についての輝度の変化が含まれている画像であれば、どのような画像を用いてもよい。   For example, in the above-described embodiment and the like, the inspection image Q shown in FIG. 2 is used. However, the present invention is not limited to this, and various colors are included, and the luminance change for each color. Any image may be used as long as it contains an image.

また、例えば、画像処理部20は、赤色(R)、緑色(G)、および青色(B)の輝度情報を用いて画像処理を行うようにしたが、これに限定されるものではなく、これに代えて、例えば、シアン色、マゼンタ色、黄色の輝度情報を用いて画像処理を行うようにしてもよい。   Further, for example, the image processing unit 20 performs the image processing using the luminance information of red (R), green (G), and blue (B), but is not limited to this. Instead, for example, image processing may be performed using luminance information of cyan, magenta, and yellow.

また、例えば、上記の実施の形態等では、画像処理部20は、赤色(R)、緑色(G)、および青色(B)の輝度情報を用いて画像処理を行うようにしたが、これに限定されるものではなく、これに代えて、例えば、シアン色、マゼンタ色、黄色の輝度情報を用いて画像処理を行うようにしてもよい。   Further, for example, in the above-described embodiment and the like, the image processing unit 20 performs image processing using luminance information of red (R), green (G), and blue (B). For example, the image processing may be performed using luminance information of cyan, magenta, and yellow instead.

なお、マハラノビスの平方距離は、例えば音質の検査に応用することもできる。この参考例では、具体的には、例えば、スピーカを検査対象とし、そのスピーカから検査用の音を発させる。検査用の音源としては、例えばホワイトノイズやピンクノイズを用いることができる。そして、このスピーカが発した音を高速フーリエ変換(FFT;Fast Fourier Transform)してスペクトルを取得する。このスペクトルは、本実施の形態に係るヒストグラムに対応するものである。このスペクトルの各値を特徴量として、マハラノビスの平方距離を求めることにより、音質の検査を行うことができる。   The square distance of Mahalanobis can also be applied to sound quality inspection, for example. In this reference example, specifically, for example, a speaker is an inspection target, and a sound for inspection is emitted from the speaker. As a sound source for inspection, for example, white noise or pink noise can be used. Then, the sound emitted from the speaker is subjected to a fast Fourier transform (FFT) to obtain a spectrum. This spectrum corresponds to the histogram according to the present embodiment. The sound quality can be inspected by obtaining the Mahalanobis square distance using each value of this spectrum as a feature amount.

なお、本明細書に記載された効果はあくまで例示であって限定されるものでは無く、また他の効果があってもよい。   In addition, the effect described in this specification is an illustration to the last, and is not limited, Moreover, there may exist another effect.

なお、本技術は以下のような構成とすることができる。   In addition, this technique can be set as the following structures.

(1)被検査体を撮影した撮影画像を取得し、
前記撮影画像における画素ごとの輝度情報に基づいてヒストグラムを求め、
前記ヒストグラムに基づいて前記被検査体を検査する
検査方法。
(1) Obtaining a photographed image of the inspected object,
Obtain a histogram based on luminance information for each pixel in the captured image,
An inspection method for inspecting the object to be inspected based on the histogram.

(2)前記ヒストグラムに基づいてマハラノビスの平方距離を検査値として求め、その検査値に基づいて前記被検査体を検査する
前記(1)に記載の検査方法。
(2) The inspection method according to (1), wherein a square distance of Mahalanobis is obtained as an inspection value based on the histogram, and the inspection object is inspected based on the inspection value.

(3)前記撮影画像は、輝度情報の値が所定方向に連続的に変化する輝度変化領域を有し、
前記輝度変化領域における画素ごとの輝度情報に基づいて、前記輝度変化領域での前記所定方向における隣り合う画素間の輝度情報の値の差の最大値および最小値を求め、
前記ヒストグラムに加えて、前記最大値および前記最小値にも基づいて、マハラノビスの平方距離を前記検査値として求める
前記(2)に記載の検査方法。
(3) The captured image has a luminance change region in which the value of luminance information continuously changes in a predetermined direction;
Based on the luminance information for each pixel in the luminance change region, to determine the maximum value and the minimum value of the difference in luminance information value between adjacent pixels in the predetermined direction in the luminance change region,
The inspection method according to (2), wherein a Mahalanobis square distance is obtained as the inspection value based on the maximum value and the minimum value in addition to the histogram.

(4)前記撮影画像は、複数色のそれぞれについて、輝度情報を有し、
前記複数色のそれぞれについて、前記ヒストグラムと、前記最大値および前記最小値とを求める
前記(3)に記載の検査方法。
(4) The captured image has luminance information for each of a plurality of colors,
The inspection method according to (3), wherein the histogram, the maximum value, and the minimum value are obtained for each of the plurality of colors.

(5)複数の基準被検査体の基準撮影画像を取得し、
前記基準撮影画像に基づいてマハラノビスの平方距離を基準値として求め、
前記検査値と前記基準値とを比較することにより、前記被検査体を検査する
前記(1)から(4)のいずれかに記載の検査方法。
(5) Acquire reference photographed images of a plurality of reference inspected objects,
Obtain the square distance of Mahalanobis as a reference value based on the reference photographed image,
The inspection method according to any one of (1) to (4), wherein the inspection object is inspected by comparing the inspection value with the reference value.

(6)前記複数の基準被検査体は、複数の良品と、1つの不良品とを含む
前記(5)に記載の検査方法。
(6) The inspection method according to (5), wherein the plurality of reference inspection objects include a plurality of non-defective products and one defective product.

(7)前記被検査体を撮影して前記撮影画像を取得する
前記(1)から(6)のいずれかに記載の検査方法。
(7) The inspection method according to any one of (1) to (6), wherein the object to be inspected is captured to acquire the captured image.

(8)前記被検査体は表示装置であり、
前記撮影画像は、前記表示装置の表示画面を撮影した画像である
前記(1)から(7)のいずれかに記載の検査方法。
(8) The inspected object is a display device;
The inspection method according to any one of (1) to (7), wherein the captured image is an image obtained by capturing a display screen of the display device.

(9)前記被検査体の検査結果に基づいて、前記被検査体を複数のグループに分類する
前記(1)から(8)のいずれかに記載の検査方法。
(9) The inspection method according to any one of (1) to (8), wherein the inspection object is classified into a plurality of groups based on an inspection result of the inspection object.

(10)被検査体を撮影した撮影画像における画素ごとの輝度情報に基づいてヒストグラムを求める画像処理部と、
前記ヒストグラムに基づいて前記被検査体を検査する検査部と
を備えた検査装置。
(10) An image processing unit that obtains a histogram based on luminance information for each pixel in a captured image obtained by capturing an inspected object;
An inspection apparatus comprising: an inspection unit that inspects the object to be inspected based on the histogram.

(11)前記検査部は、前記ヒストグラムに基づいてマハラノビスの平方距離を検査値として求め、その検査値に基づいて前記被検査体を検査する
前記(10)に記載の検査装置。
(11) The inspection apparatus according to (10), wherein the inspection unit determines a Mahalanobis square distance as an inspection value based on the histogram, and inspects the inspection object based on the inspection value.

1…検査装置、9…画像表示装置、10…撮影部、20…画像処理部、30…判定部、AVE…平均ベクトル、CC…輝度クラス、IH…ヒストグラム情報、ΔI…差分情報、IR,IG,IB…輝度情報、MAXR,MAXG,MAXB…最大値、MINR,MING,MINB…最小値、P…撮影画像、Q…検査用画像、Q1…輝度変化部分、R…共分散逆行列、X,XNG,XS…特徴ベクトル、MD2,MDNG 2,MDth 2…マハラノビスの平方距離。 DESCRIPTION OF SYMBOLS 1 ... Inspection apparatus, 9 ... Image display apparatus, 10 ... Imaging part, 20 ... Image processing part, 30 ... Determination part, AVE ... Average vector, CC ... Luminance class, IH ... Histogram information, [Delta] I ... Difference information, IR, IG , IB ... Luminance information, MAXR, MAXG, MAXB ... Maximum value, MINR, MING, MINB ... Minimum value, P ... Photographed image, Q ... Inspection image, Q1 ... Luminance change part, R ... Covariance inverse matrix, X, X NG , X S ... feature vector, MD 2 , MD NG 2 , MD th 2 ... square distance of Mahalanobis.

Claims (8)

被検査体を撮影することにより得られ、輝度情報の値が所定方向に連続的に変化する輝度変化領域を有する撮影画像を取得し、
前記撮影画像における画素ごとの輝度情報に基づいてヒストグラムを求め、
前記輝度変化領域における画素ごとの輝度情報に基づいて、前記輝度変化領域での前記所定方向における隣り合う画素間の輝度情報の値の差の最大値および最小値を求め、
前記ヒストグラム、前記最大値、および前記最小値に基づいてマハラノビスの平方距離を検査値として求め、その検査値に基づいて前記被検査体を検査する
検査方法。
Obtaining a photographed image having a luminance change region obtained by photographing the object to be inspected, and the value of luminance information continuously changing in a predetermined direction ,
Obtain a histogram based on luminance information for each pixel in the captured image,
Based on the luminance information for each pixel in the luminance change region, to determine the maximum value and the minimum value of the difference in luminance information value between adjacent pixels in the predetermined direction in the luminance change region,
An inspection method for obtaining a square distance of Mahalanobis as an inspection value based on the histogram , the maximum value, and the minimum value, and inspecting the object to be inspected based on the inspection value .
前記撮影画像は、複数色のそれぞれについて、輝度情報を有し、
前記複数色のそれぞれについて、前記ヒストグラムと、前記最大値および前記最小値とを求める
請求項1に記載の検査方法。
The captured image has luminance information for each of a plurality of colors,
Obtain the histogram, the maximum value, and the minimum value for each of the plurality of colors.
The inspection method according to claim 1 .
複数の基準被検査体の基準撮影画像を取得し、
前記基準撮影画像に基づいてマハラノビスの平方距離を基準値として求め、
前記検査値と前記基準値とを比較することにより、前記被検査体を検査する
請求項1または請求項2に記載の検査方法。
Acquire reference images of multiple reference objects,
Obtain the square distance of Mahalanobis as a reference value based on the reference photographed image,
The inspection object is inspected by comparing the inspection value with the reference value.
The inspection method according to claim 1 or 2 .
前記複数の基準被検査体は、複数の良品と、1つの不良品とを含む
請求項3に記載の検査方法。
The plurality of reference inspected objects include a plurality of non-defective products and one defective product.
The inspection method according to claim 3 .
前記被検査体を撮影して前記撮影画像を取得する
請求項1から請求項4のいずれか一項に記載の検査方法。
The inspection method according to any one of claims 1 to 4 , wherein the object to be inspected is acquired to acquire the captured image.
前記被検査体は表示装置であり、
前記撮影画像は、前記表示装置の表示画面を撮影した画像である
請求項1から請求項5のいずれか一項に記載の検査方法。
The object to be inspected is a display device,
The inspection method according to claim 1, wherein the captured image is an image obtained by capturing a display screen of the display device.
前記被検査体の検査結果に基づいて、前記被検査体を複数のグループに分類する
請求項1から請求項6のいずれか一項に記載の検査方法。
The inspection method according to any one of claims 1 to 6 , wherein the inspection object is classified into a plurality of groups based on an inspection result of the inspection object.
被検査体を撮影することにより得られ、輝度情報の値が所定方向に連続的に変化する輝度変化領域を有する撮影画像における画素ごとの輝度情報に基づいてヒストグラムを求めるとともに、前記輝度変化領域における画素ごとの輝度情報に基づいて、前記輝度変化領域での前記所定方向における隣り合う画素間の輝度情報の値の差の最大値および最小値を求める画像処理部と、
前記ヒストグラム、前記最大値、および前記最小値に基づいてマハラノビスの平方距離を検査値として求め、その検査値に基づいて前記被検査体を検査する検査部と
を備えた検査装置。
Obtaining a histogram based on luminance information for each pixel in a captured image having a luminance change region in which the value of luminance information is continuously changed in a predetermined direction, obtained by photographing the object to be inspected, and in the luminance change region An image processing unit for obtaining a maximum value and a minimum value of a difference in value of luminance information between adjacent pixels in the predetermined direction in the luminance change region based on luminance information for each pixel ;
An inspection apparatus comprising: an inspection unit that obtains a Mahalanobis square distance as an inspection value based on the histogram , the maximum value, and the minimum value, and inspects the object to be inspected based on the inspection value .
JP2013192195A 2013-09-17 2013-09-17 Inspection method and inspection apparatus Active JP6015606B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013192195A JP6015606B2 (en) 2013-09-17 2013-09-17 Inspection method and inspection apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013192195A JP6015606B2 (en) 2013-09-17 2013-09-17 Inspection method and inspection apparatus

Publications (3)

Publication Number Publication Date
JP2015059766A JP2015059766A (en) 2015-03-30
JP2015059766A5 JP2015059766A5 (en) 2015-05-21
JP6015606B2 true JP6015606B2 (en) 2016-10-26

Family

ID=52817423

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013192195A Active JP6015606B2 (en) 2013-09-17 2013-09-17 Inspection method and inspection apparatus

Country Status (1)

Country Link
JP (1) JP6015606B2 (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003016443A (en) * 2001-07-02 2003-01-17 Konica Corp Method, device, and chart image for image quality evaluation
JP4218291B2 (en) * 2002-09-09 2009-02-04 セイコーエプソン株式会社 Image processing device
JP2005252451A (en) * 2004-03-02 2005-09-15 Sony Corp Image quality inspection method and image quality inspection apparatus
JP2008152188A (en) * 2006-12-20 2008-07-03 Funai Electric Co Ltd Liquid crystal display device and color irregularity inspection system

Also Published As

Publication number Publication date
JP2015059766A (en) 2015-03-30

Similar Documents

Publication Publication Date Title
JP5647878B2 (en) Steel pipe internal corrosion analysis apparatus and steel pipe internal corrosion analysis method
JP6325520B2 (en) Unevenness inspection system, unevenness inspection method, and unevenness inspection program
WO2016038982A1 (en) Defect quantification method, defect quantification device, and defect evaluation value display device
TW201724017A (en) Method, image processing system and computer-readable recording medium for item defect inspection
JP2005172559A (en) Method and device for detecting line defect on panel
JP2005165387A (en) Method and device for detecting stripe defective of picture and display device
JP2010008159A (en) Visual inspection processing method
CN113016023B (en) Information processing method and computer-readable non-transitory recording medium
JP2006155579A (en) Image processing method and image processing apparatus
JP2015215199A (en) Self-luminous material image processing apparatus and self-luminous material image processing method
JP6015606B2 (en) Inspection method and inspection apparatus
JP2005283197A (en) Detecting method and system for streak defect of screen
CN115861259A (en) Lead frame surface defect detection method and device based on template matching
JP6034529B1 (en) Surface condition diagnostic equipment
JP2005252451A (en) Image quality inspection method and image quality inspection apparatus
JP5288154B2 (en) Image quality inspection device
JP2022125593A (en) Abnormality detecting method and abnormality detecting device
JP6114559B2 (en) Automatic unevenness detector for flat panel display
JP2010164446A (en) Visual inspection method of item to be inspected and program
JP2005003474A (en) Method, apparatus and program for evaluating color display panel
KR102372027B1 (en) Foreign material detecting device and method for camera module using contrast
KR102655139B1 (en) Camera module false feature classification method and system according to image segmentation inspection
JP2004101338A (en) Image processing method and image processing apparatus as well as program of the image processing method
JP2004219072A (en) Method and apparatus for detecting streak defect of screen
KR100939600B1 (en) Product-quality inspection system and method thereof

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20150331

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150331

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160126

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160314

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160912

R151 Written notification of patent or utility model registration

Ref document number: 6015606

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250