JP2014106109A - Inspection device, inspection method, inspection program and recording medium - Google Patents

Inspection device, inspection method, inspection program and recording medium Download PDF

Info

Publication number
JP2014106109A
JP2014106109A JP2012259052A JP2012259052A JP2014106109A JP 2014106109 A JP2014106109 A JP 2014106109A JP 2012259052 A JP2012259052 A JP 2012259052A JP 2012259052 A JP2012259052 A JP 2012259052A JP 2014106109 A JP2014106109 A JP 2014106109A
Authority
JP
Japan
Prior art keywords
inspection
pixel
difference value
reference image
image
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2012259052A
Other languages
Japanese (ja)
Inventor
Keisuke Nakamura
圭介 中村
Masakazu Yanase
正和 柳瀬
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP2012259052A priority Critical patent/JP2014106109A/en
Priority to PCT/JP2013/080759 priority patent/WO2014084056A1/en
Publication of JP2014106109A publication Critical patent/JP2014106109A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/84Systems specially adapted for particular applications
    • G01N21/88Investigating the presence of flaws or contamination
    • G01N21/95Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
    • G01N21/956Inspecting patterns on the surface of objects
    • G01N2021/95638Inspecting patterns on the surface of objects for PCB's
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30121CRT, LCD or plasma display
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30148Semiconductor; IC; Wafer

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Biochemistry (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Quality & Reliability (AREA)
  • Analytical Chemistry (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an inspection device, an inspection method, an inspection program and a recording medium capable of suppressing the processing time of defect inspection for inspecting the presence/absence of the defect of an object to be inspected from becoming excessively long, and accurately inspecting the presence/absence of the defect.SOLUTION: An inspection device (100) compares an image for inspection acquired by an imaging part (1) with a reference image preliminarily stored in a reference image storage part (221) to inspect the presence/absence of the defect of an object to be inspected. A determination part (216) defines the pixels under consideration of the reference image and the respective pixels of a peripheral pixel group as the candidates of pixels to be compared with respect to the pixels under consideration of one image for inspection to determine whether or not the pixels under consideration of the image for inspection are normal pixels. A calculating operation control part (217) allows a difference value calculation part (215) to end a difference value calculating operation to the pixels under consideration of one image for inspection when it is determined that the pixels under consideration of the image for inspection are normal pixels by the determination part (216).

Description

本発明は、被検査体の欠陥の有無を検査するための検査装置、検査方法、検査プログラム、および該検査プログラムを記録した記録媒体に関する。   The present invention relates to an inspection apparatus, an inspection method, an inspection program, and a recording medium on which the inspection program is recorded, for inspecting the presence or absence of defects on an inspection object.

液晶パネルディスプレイ、フォトマスクなどに搭載される回路パターンが形成された回路基板などの被検査体は、表面などに異物の付着や凹凸などの欠陥が存在すると、特性が変化してしまうので、不良品として取り扱われる。そこで、被検査体の出荷前に、欠陥の有無の検査を行う必要がある。   Inspected objects such as circuit boards on which circuit patterns to be mounted on liquid crystal panel displays, photomasks, etc., have defects such as adhesion of foreign matter or irregularities on the surface, etc. Treated as a good product. Therefore, it is necessary to inspect the presence or absence of defects before shipment of the object to be inspected.

従来から、被検査体を撮像して取得した検査用画像と、予め準備しておいた被検査体の欠陥が無い状態を表す基準画像とを比較することで、被検査体の欠陥の有無を検査する検査装置が提案されている。このような検査装置では、検査用画像と基準画像とに差異が認められない場合には、検査用画像に対応する被検査体が欠陥の無い良品として判定され、検査用画像と基準画像とに差異が認められる場合には、検査用画像に対応する被検査体が欠陥を有する不良品として判定される。   Conventionally, the inspection image acquired by imaging the inspection object is compared with a reference image that represents a state in which the inspection object is prepared in advance, so that the presence or absence of the defect of the inspection object is determined. An inspection apparatus for inspecting has been proposed. In such an inspection apparatus, when there is no difference between the inspection image and the reference image, the inspection object corresponding to the inspection image is determined as a non-defective product, and the inspection image and the reference image are determined. When the difference is recognized, the inspection object corresponding to the inspection image is determined as a defective product having a defect.

検査装置において被検査体を撮像して検査用画像を取得するときに、被検査体に光を照射する照明装置の経年劣化などの影響で、欠陥とは関係のない輝度値のむら、すなわち、ノイズが検査用画像に発生してしまう場合がある。検査用画像において、欠陥に対応する画素の輝度値とノイズが生じた画素の輝度値とに差があまりないとき、上記の検査装置では、欠陥に対応する画素とノイズが生じた画素とを区別することができず、その結果、被検査体の欠陥の有無を精確に検査することができないという問題がある。   When an inspection object is imaged in an inspection device to obtain an inspection image, luminance unevenness that is not related to defects, i.e., noise, due to the influence of aging deterioration of a lighting device that irradiates light to the inspection object, i.e., noise May occur in the inspection image. In the inspection image, when there is not much difference between the luminance value of the pixel corresponding to the defect and the luminance value of the pixel in which noise occurs, the above inspection apparatus distinguishes the pixel corresponding to the defect and the pixel in which noise occurs. As a result, there is a problem that the presence or absence of a defect in the inspection object cannot be accurately inspected.

このような問題点を解決する技術として、たとえば特許文献1には、検査用画像を構成する各画素から一画素ずつ注目画素を選択し、その選択した注目画素(以下、「検査用画像注目画素」という)と、検査用画像注目画素に対応する基準画像の注目画素(以下、「基準画像注目画素」という)、および基準画像注目画素に隣接する周辺画素群(基準画像注目画素に対して1画素ずれた位置の複数の画素からなる画素群)との輝度値を比較して、被検査体の欠陥の有無を検査する技術が記載されている。   As a technique for solving such a problem, for example, in Patent Document 1, a pixel of interest is selected pixel by pixel from each pixel constituting an inspection image, and the selected pixel of interest (hereinafter referred to as “inspection image attention pixel”). ”), A target pixel of the reference image corresponding to the inspection image target pixel (hereinafter referred to as“ reference image target pixel ”), and a peripheral pixel group adjacent to the reference image target pixel (one for the reference image target pixel). A technique for inspecting the presence or absence of a defect in an object to be inspected is described by comparing luminance values with a pixel group consisting of a plurality of pixels at positions shifted by pixels.

特許文献1に記載される技術によれば、1つの検査用画像注目画素に対して、基準画像注目画素と周辺画素群の各画素との合計9個の画素について、それぞれ輝度値の差分値を算出し、基準画像における輝度値の差分値が最小の画素と、検査用画像注目画素とを比較して、検査用画像注目画素が被検査体の欠陥に対応する画素であるか否かを判定することで、被検査体の欠陥の有無を検査することができる。   According to the technique described in Patent Document 1, with respect to one inspection image attention pixel, the luminance value difference value is obtained for each of a total of nine pixels, that is, the reference image attention pixel and each pixel in the peripheral pixel group. Calculate and compare the pixel with the smallest luminance value difference in the reference image and the inspection image attention pixel to determine whether the inspection image attention pixel is a pixel corresponding to the defect of the inspection object By doing this, it is possible to inspect for the presence or absence of a defect in the inspection object.

特開2001−84379号公報JP 2001-84379 A

近年、被検査体の一例である回路基板は、回路パターンの微細化が益々進んでいる。このような回路基板を被検査体とした場合には、回路パターンの微細化に応じて、検査用画像および基準画像として、高精細の画像を用いて欠陥の有無を検査する必要がある。   In recent years, circuit patterns as an example of an object to be inspected have been increasingly miniaturized circuit patterns. When such a circuit board is used as an object to be inspected, it is necessary to inspect for the presence or absence of defects using a high-definition image as an inspection image and a reference image in accordance with miniaturization of a circuit pattern.

検査用画像および基準画像として高精細の画像を用いて欠陥の有無を検査するときに、特許文献1に記載される技術のように、検査用画像注目画素と、基準画像注目画素および該基準画像注目画素に対して1画素ずれた位置の周辺画素群の各画素との輝度値を比較することで欠陥の有無を検査する場合には、被検査体の欠陥の有無を精確に検査することができないおそれがある。   When inspecting the presence or absence of a defect using a high-definition image as an inspection image and a reference image, as in the technique described in Patent Document 1, an inspection image attention pixel, a reference image attention pixel, and the reference image When inspecting the presence / absence of a defect by comparing the luminance value with each pixel in a peripheral pixel group at a position shifted by one pixel with respect to the target pixel, it is possible to accurately inspect the presence / absence of a defect in the inspection object. It may not be possible.

すなわち、被検査体を撮像して検査用画像を取得するときに、被検査体が載置されるステージの振動などによって、基準画像に対して検査用画像の位置がずれる場合がある。基準画像に対する検査用画像の位置ずれ幅が1画素分の長さを超える場合、検査用画像注目画素と、基準画像注目画素および該基準画像注目画素に対して1画素ずれた位置の周辺画素群の各画素との輝度値を比較することで欠陥の有無を検査する特許文献1に記載される技術では、欠陥に対応する画素と位置ずれが生じた画素とを区別することができず、その結果、被検査体の欠陥の有無を精確に検査することができないという課題がある。   That is, when the inspection object is imaged to acquire an inspection image, the position of the inspection image may be shifted from the reference image due to vibration of a stage on which the inspection object is placed. When the positional deviation width of the inspection image with respect to the reference image exceeds the length of one pixel, the inspection image attention pixel, the reference image attention pixel, and a peripheral pixel group at a position shifted by one pixel from the reference image attention pixel In the technique described in Patent Document 1 in which the presence or absence of a defect is inspected by comparing the luminance value with each of the pixels, the pixel corresponding to the defect cannot be distinguished from the pixel in which the positional deviation has occurred. As a result, there is a problem that it is impossible to accurately inspect the presence or absence of a defect in the inspection object.

たとえば、検査用画像における検査用画像注目画素と比較する基準画像の周辺画素群の範囲を、基準画像注目画素に対して1画素ずれた位置から、2画素ずれた位置、3画素ずれた位置と拡大することによって、基準画像に対して検査用画像の位置ずれが発生した場合であっても、被検査体の欠陥の有無を精確に検査することができる。   For example, the range of the peripheral pixel group of the reference image to be compared with the inspection image target pixel in the inspection image is a position shifted by two pixels from a position shifted by one pixel with respect to the reference image target pixel, and a position shifted by three pixels. By enlarging, it is possible to accurately inspect for the presence or absence of a defect in the object to be inspected even when the inspection image is misaligned with respect to the reference image.

しかしながら、特許文献1に記載される技術では、1つの検査用画像注目画素に対して、基準画像注目画素と周辺画素群の各画素とについて、それぞれ輝度値の差分値を算出し、その算出された各差分値を用いて被検査体の欠陥の有無が検査されるので、検査用画像における検査用画像注目画素と比較する基準画像の周辺画素群の範囲を、基準画像注目画素に対して1画素ずれた位置からN画素ずれた位置まで拡大した場合、欠陥検査の処理時間が(2N+1)/3倍になってしまい、処理時間が極端に長くなってしまう。たとえば、検査用画像注目画素と比較する基準画像の周辺画素群の範囲を、基準画像注目画素に対して1画素ずれた位置から5画素ずれた位置まで拡大した場合、欠陥検査の処理時間が(2×5+1)/3≒13.4倍になってしまう。 However, in the technique described in Patent Document 1, the difference value of the luminance value is calculated for each reference image target pixel and each pixel in the peripheral pixel group for one inspection image target pixel. Since each difference value is inspected for the presence or absence of a defect in the inspection object, the range of the peripheral pixel group of the reference image to be compared with the inspection image attention pixel in the inspection image is set to 1 for the reference image attention pixel. If it expanded from a position shifted pixel positions to displaced N pixel, the processing time of the defect inspection (2N + 1) becomes a 2/3 2 times the processing time becomes extremely long. For example, when the range of the peripheral pixel group of the reference image to be compared with the inspection image target pixel is expanded from a position shifted by 1 pixel to a position shifted by 5 pixels with respect to the reference image target pixel, the processing time of defect inspection ( 2 × 5 + 1) 2/ 3 2 ≒ becomes 13.4 times.

本発明の目的は、被検査体の欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができるとともに、欠陥の有無を精確に検査することができる検査装置、検査方法、検査プログラム、および該検査プログラムを記録した記録媒体を提供することである。   An object of the present invention is to provide an inspection apparatus and an inspection method capable of suppressing an excessively long processing time for defect inspection for inspecting the presence or absence of defects in an inspection object and accurately inspecting for the presence or absence of defects. And an inspection program and a recording medium on which the inspection program is recorded.

本発明は、被検査体の欠陥の有無を検査するための検査装置であって、
被検査体の欠陥の有無を検査する基準となる、被検査体の欠陥が無い状態を表す基準画像を予め記憶する基準画像記憶部と、
被検査体を撮像し、検査用画像を取得する撮像部と、
前記検査用画像を構成する画素から、予め定める第1の順序に従って1つの検査用画像注目画素を選択する検査用画像注目画素選択部と、
前記基準画像を構成する画素から、前記検査用画像注目画素に対応する基準画像注目画素を選択する基準画像注目画素選択部と、
前記基準画像を構成する画素のうち、前記基準画像注目画素の周囲の所定範囲内に位置する画素からなる周辺画素群を抽出する周辺画素群抽出部と、
前記検査用画像注目画素の輝度値に対する、前記基準画像注目画素および前記周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する差分値算出部と、
前記差分値算出部によって前記第2の順序に従って前記差分値が算出されるごとに、前記差分値の絶対値が、予め定める閾値以下であるか否かを判定する判定部と、
前記差分値算出部の差分値算出動作を制御する算出動作制御部であって、前記判定部によって前記差分値の絶対値が前記閾値以下であると判定されたときには、前記検査用画像注目画素に対する、前記第2の順序に従った前記差分値算出部の差分値算出動作を終了させる算出動作制御部と、を備えることを特徴とする検査装置である。
The present invention is an inspection apparatus for inspecting the presence or absence of defects in an object to be inspected,
A reference image storage unit that stores in advance a reference image representing a state in which there is no defect in the inspection object, which is a reference for inspecting the presence or absence of the defect in the inspection object;
An imaging unit that images the object to be inspected and obtains an image for inspection;
An inspection image attention pixel selection unit that selects one inspection image attention pixel from a pixel constituting the inspection image in accordance with a predetermined first order;
A reference image attention pixel selection unit that selects a reference image attention pixel corresponding to the inspection image attention pixel from pixels constituting the reference image;
A peripheral pixel group extraction unit that extracts a peripheral pixel group composed of pixels located within a predetermined range around the reference image target pixel among the pixels constituting the reference image;
A difference value calculation unit that calculates a difference value between luminance values of the reference image target pixel and the peripheral pixel group with respect to a luminance value of the inspection image target pixel according to a predetermined second order;
A determination unit that determines whether or not an absolute value of the difference value is equal to or less than a predetermined threshold every time the difference value is calculated according to the second order by the difference value calculation unit;
A calculation operation control unit that controls a difference value calculation operation of the difference value calculation unit, and when the determination unit determines that the absolute value of the difference value is equal to or less than the threshold value, And a calculation operation control unit that ends the difference value calculation operation of the difference value calculation unit according to the second order.

また本発明の検査装置において、前記差分値算出部は、前記差分値として、正負の符号付きの差分値を算出するように構成され、
前記判定部は、前記差分値算出部が前記閾値よりも大きい絶対値の第1の差分値を算出した後に、該第1の差分値と正負の符号が異なる第2の差分値を算出した場合に、前記検査用画像注目画素が正常画素であると判定することを特徴とする。
In the inspection apparatus of the present invention, the difference value calculation unit is configured to calculate a difference value with a positive / negative sign as the difference value,
The determination unit calculates a second difference value having a positive / negative sign different from the first difference value after the difference value calculation unit calculates a first difference value having an absolute value larger than the threshold value. In addition, it is determined that the inspection image target pixel is a normal pixel.

また本発明は、前記検査装置によって実行される、被検査体の欠陥の有無を検査するための検査方法であって、
基準画像記憶部が、被検査体の欠陥の有無を検査する基準となる、被検査体の欠陥が無い状態を表す基準画像を予め記憶する基準画像記憶ステップと、
撮像部が、被検査体を撮像し、検査用画像を取得する撮像ステップと、
検査用画像注目画素選択部が、前記検査用画像を構成する画素から、予め定める第1の順序に従って1つの検査用画像注目画素を選択する検査用画像注目画素選択ステップと、
基準画像注目画素選択部が、前記基準画像を構成する画素から、前記検査用画像注目画素に対応する基準画像注目画素を選択する基準画像注目画素選択ステップと、
周辺画素群抽出部が、前記基準画像を構成する画素のうち、前記基準画像注目画素の周囲の所定範囲内に位置する画素からなる周辺画素群を抽出する周辺画素群抽出ステップと、
差分値算出部が、前記検査用画像注目画素の輝度値に対する、前記基準画像注目画素および前記周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する差分値算出ステップと、
判定部が、前記差分値算出部によって前記第2の順序に従って前記差分値が算出されるごとに、前記差分値の絶対値が、予め定める閾値以下であるか否かを判定する判定ステップと、
算出動作制御部が、前記差分値算出部の差分値算出動作を制御する算出動作制御ステップであって、前記判定部によって前記差分値の絶対値が前記閾値以下であると判定されたときには、前記検査用画像注目画素に対する、前記第2の順序に従った前記差分値算出部の差分値算出動作を終了させる算出動作制御ステップと、を含むことを特徴とする検査方法である。
Further, the present invention is an inspection method for inspecting the presence or absence of a defect of an object to be inspected, which is executed by the inspection apparatus,
A reference image storage step in which a reference image storage unit stores in advance a reference image representing a state in which there is no defect in the inspection object, which serves as a reference for inspecting the presence or absence of a defect in the inspection object;
An imaging step in which the imaging unit images the object to be inspected and obtains an image for inspection;
An inspection image attention pixel selection step in which an inspection image attention pixel selection unit selects one inspection image attention pixel from a pixel constituting the inspection image according to a predetermined first order;
A reference image attention pixel selection step in which a reference image attention pixel selection unit selects a reference image attention pixel corresponding to the inspection image attention pixel from pixels constituting the reference image;
A peripheral pixel group extracting unit that extracts a peripheral pixel group composed of pixels located within a predetermined range around the reference image attention pixel among the pixels constituting the reference image; and
The difference value calculation unit calculates a difference value between the luminance values of the reference image attention pixel and the peripheral pixel group with respect to the luminance value of the inspection image attention pixel according to a predetermined second order. Steps,
A determination step of determining whether or not the absolute value of the difference value is equal to or less than a predetermined threshold every time the difference value is calculated according to the second order by the difference value calculation unit;
The calculation operation control unit controls the difference value calculation operation of the difference value calculation unit, and when the determination unit determines that the absolute value of the difference value is equal to or less than the threshold value, A calculation operation control step of ending the difference value calculation operation of the difference value calculation unit according to the second order with respect to the inspection image attention pixel.

また本発明は、コンピュータに、前記検査方法を実行させるための検査プログラムである。   The present invention is also an inspection program for causing a computer to execute the inspection method.

また本発明は、前記検査プログラムを記録したコンピュータ読取り可能な記録媒体である。   The present invention is also a computer-readable recording medium on which the inspection program is recorded.

本発明によれば、検査装置は、被検査体の欠陥の有無を検査するための装置であって、基準画像記憶部、撮像部、検査用画像注目画素選択部、基準画像注目画素選択部、周辺画素群抽出部、差分値算出部、判定部および算出動作制御部を備える。   According to the present invention, the inspection apparatus is an apparatus for inspecting the presence / absence of a defect in the inspection object, and includes a reference image storage unit, an imaging unit, an inspection image attention pixel selection unit, a reference image attention pixel selection unit, A peripheral pixel group extraction unit, a difference value calculation unit, a determination unit, and a calculation operation control unit are provided.

基準画像記憶部は、被検査体の、欠陥が無い状態を表す基準画像を予め記憶する。撮像部は、被検査体を撮像し、検査用画像を取得する。検査用画像注目画素選択部は、検査用画像を構成する画素から、予め定める第1の順序に従って1つの検査用画像注目画素を選択する。基準画像注目画素選択部は、基準画像を構成する画素から、検査用画像注目画素に対応する基準画像注目画素を選択する。周辺画素抽出部は、基準画像を構成する画素のうち、基準画像注目画素の周囲の所定範囲内に位置する画素からなる周辺画素群を抽出する。   The reference image storage unit stores in advance a reference image representing a state in which the inspection object is free of defects. The imaging unit captures an inspection object and acquires an inspection image. The inspection image attention pixel selection unit selects one inspection image attention pixel from the pixels constituting the inspection image according to a predetermined first order. The reference image attention pixel selection unit selects a reference image attention pixel corresponding to the inspection image attention pixel from the pixels constituting the reference image. The peripheral pixel extraction unit extracts a peripheral pixel group including pixels located in a predetermined range around the reference image attention pixel from among pixels constituting the reference image.

差分値算出部は、検査用画像注目画素選択部によって第1の順序に従って検査用画像注目画素が選択されるごとに、検査用画像注目画素の輝度値に対する、基準画像注目画素および周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する。判定部は、差分値算出部によって第2の順序に従って差分値が算出されるごとに、差分値算出部によって第2の順序に従って前記差分値が算出されるごとに、前記差分値の絶対値が、予め定める閾値以下であるか否かを判定する。差分値算出部の差分値算出動作を制御する算出動作制御部は、判定部によって差分値の絶対値が閾値以下であると判定されたときには、検査用画像注目画素に対する、第2の順序に従った差分値算出部の差分値算出動作を終了させる。   Each time the inspection image attention pixel is selected according to the first order by the inspection image attention pixel selection unit, the difference value calculation unit calculates the reference image attention pixel and the peripheral pixel group with respect to the luminance value of the inspection image attention pixel. The difference value of the luminance value of each pixel is calculated according to a predetermined second order. Each time the difference value is calculated according to the second order by the difference value calculation unit, the determination unit calculates the absolute value of the difference value every time the difference value is calculated according to the second order by the difference value calculation unit. Then, it is determined whether or not it is equal to or less than a predetermined threshold value. The calculation operation control unit that controls the difference value calculation operation of the difference value calculation unit follows the second order with respect to the inspection image attention pixel when the determination unit determines that the absolute value of the difference value is equal to or less than the threshold value. The difference value calculation operation of the difference value calculation unit is terminated.

このように構成された本発明の検査装置では、撮像部によって取得された検査用画像と、基準画像記憶部に予め記憶された基準画像とを比較することで、被検査体の欠陥の有無を検査するに際し、判定部は、1つの検査用画像注目画素に対して基準画像注目画素のみならず周辺画素群の各画素も比較対象の画素の候補として、検査用画像注目画素が正常画素であるか否かを判定する。したがって、検査装置は、基準画像に対して検査用画像の位置ずれが発生した場合であっても、被検査体の欠陥の有無を精確に検査することができる。   In the inspection apparatus of the present invention configured as described above, the inspection image acquired by the imaging unit is compared with the reference image stored in advance in the reference image storage unit, thereby determining whether there is a defect in the inspection object. At the time of inspection, the determination unit determines that not only the reference image attention pixel but also each pixel in the peripheral pixel group is a candidate pixel for comparison with respect to one inspection image attention pixel, and the inspection image attention pixel is a normal pixel. It is determined whether or not. Therefore, the inspection apparatus can accurately inspect for the presence or absence of a defect in the object to be inspected even when the inspection image is misaligned with respect to the reference image.

さらに、本発明の検査装置では、算出動作制御部は、判定部によって差分値の絶対値が閾値以下であると判定されたときには、1つの検査用画像注目画素に対する、第2の順序に従った差分値算出部の差分値算出動作を終了させる。算出動作制御部によって制御された差分値算出部は、基準画像注目画素および周辺画素群の各画素の全ての画素について差分値を算出するのではなく、判定部によって差分値の絶対値が閾値以下であると判定された時点で、1つの検査用画像注目画素に対する差分値算出動作を終了するので、被検査体の欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができる。   Furthermore, in the inspection apparatus of the present invention, the calculation operation control unit follows the second order for one inspection image attention pixel when the determination unit determines that the absolute value of the difference value is equal to or less than the threshold value. The difference value calculation operation of the difference value calculation unit is terminated. The difference value calculation unit controlled by the calculation operation control unit does not calculate the difference value for all the pixels of the reference image target pixel and the peripheral pixel group, but the absolute value of the difference value is less than or equal to the threshold value by the determination unit When it is determined that the difference value calculation operation for one inspection image pixel of interest is completed, it is possible to prevent the processing time of the defect inspection for inspecting the presence or absence of the defect of the inspection object from becoming too long. Can do.

また本発明によれば、検査方法は、前記検査装置によって実行される。本発明の検査方法は、基準画像記憶部によって実行される基準画像記憶ステップと、撮像部によって実行される撮像ステップと、検査用画像注目画素選択部によって実行される検査用画像注目画素選択ステップと、基準画像注目画素選択部によって実行される基準画像注目画素選択ステップと、周辺画素群抽出部によって実行される周辺画素群抽出ステップと、差分値算出部によって実行される差分値算出ステップと、判定部によって実行される判定ステップと、算出動作制御部によって実行される算出動作制御ステップと、を含む。   According to the invention, the inspection method is executed by the inspection apparatus. The inspection method of the present invention includes a reference image storage step executed by the reference image storage unit, an imaging step executed by the imaging unit, and an inspection image attention pixel selection step executed by the inspection image attention pixel selection unit. A reference image attention pixel selection step executed by the reference image attention pixel selection unit, a peripheral pixel group extraction step executed by the peripheral pixel group extraction unit, a difference value calculation step executed by the difference value calculation unit, and a determination A determination step executed by the unit, and a calculation operation control step executed by the calculation operation control unit.

本発明の検査方法では、撮像ステップで取得された検査用画像と、基準画像記憶ステップで予め記憶された基準画像とを比較することで、被検査体の欠陥の有無を検査するに際し、判定ステップでは、1つの検査用画像注目画素に対して基準画像注目画素のみならず周辺画素群の各画素も比較対象の画素の候補として、検査用画像注目画素が正常画素であるか否かを判定する。したがって、検査方法では、基準画像に対して検査用画像の位置ずれが発生した場合であっても、被検査体の欠陥の有無を精確に検査することができる。   In the inspection method of the present invention, the inspection step acquired by the imaging step and the reference image stored in advance in the reference image storage step are compared to determine whether or not there is a defect in the inspection object. Then, with respect to one inspection image attention pixel, not only the reference image attention pixel but also each pixel in the peripheral pixel group is determined as a pixel candidate for comparison, and it is determined whether or not the inspection image attention pixel is a normal pixel. . Therefore, in the inspection method, it is possible to accurately inspect the presence / absence of a defect in the inspection object even when the inspection image is misaligned with respect to the reference image.

さらに、本発明の検査方法において、算出動作制御部によって実行される算出動作制御ステップでは、判定ステップで差分値の絶対値が閾値以下であると判定されたときには、1つの検査用画像注目画素に対する、第2の順序に従った差分値算出部の差分値算出動作を終了させる。算出動作制御部によって制御された差分値算出部は、基準画像注目画素および周辺画素群の各画素の全ての画素について差分値を算出するのではなく、判定ステップで差分値の絶対値が閾値以下であると判定された時点で、1つの検査用画像注目画素に対する差分値算出動作を終了するので、被検査体の欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができる。   Furthermore, in the inspection method of the present invention, in the calculation operation control step executed by the calculation operation control unit, when it is determined in the determination step that the absolute value of the difference value is equal to or less than the threshold value, one inspection image target pixel is detected. Then, the difference value calculation operation of the difference value calculation unit according to the second order is terminated. The difference value calculation unit controlled by the calculation operation control unit does not calculate the difference value for all the pixels in the reference image target pixel and the surrounding pixel group, but the absolute value of the difference value is equal to or less than the threshold value in the determination step. When it is determined that the difference value calculation operation for one inspection image pixel of interest is completed, it is possible to prevent the processing time of the defect inspection for inspecting the presence or absence of the defect of the inspection object from becoming too long. Can do.

また本発明によれば、検査プログラムは、コンピュータに、前記検査方法を実行させるためのプログラムである。このような検査プログラムは、被検査体の欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができるとともに、欠陥の有無を精確に検査することが可能な欠陥検査処理を、ソフトウェアで制御することができる。   According to the invention, the inspection program is a program for causing a computer to execute the inspection method. Such an inspection program can suppress the processing time of the defect inspection for inspecting the presence or absence of a defect in the inspection object from being excessively long and can accurately inspect the presence or absence of the defect. Can be controlled by software.

また本発明によれば、記録媒体は、前記検査プログラムを記録したコンピュータ読取り可能なものである。そのため、記録媒体から読み出された検査プログラムによって、前記検査装置をコンピュータ上に実現することができる。   According to the present invention, the recording medium is a computer-readable medium on which the inspection program is recorded. Therefore, the inspection apparatus can be realized on the computer by the inspection program read from the recording medium.

本発明の第1実施形態に係る検査装置100の構成を示すブロック図である。It is a block diagram which shows the structure of the test | inspection apparatus 100 which concerns on 1st Embodiment of this invention. 検査装置100によって実行される検査方法を示すフローチャートである。3 is a flowchart showing an inspection method executed by the inspection apparatus 100. 検査装置100によって実行される検査方法を示すフローチャートである。3 is a flowchart showing an inspection method executed by the inspection apparatus 100. 検査用画像注目画素選択部212、基準画像注目画素選択部213および周辺画素群抽出部214の動作を説明するための図である。FIG. 10 is a diagram for explaining operations of an inspection image attention pixel selection unit 212, a reference image attention pixel selection unit 213, and a peripheral pixel group extraction unit 214. 判定部216の判定動作を説明するための図である。It is a figure for demonstrating the determination operation | movement of the determination part. 判定部216の判定動作を説明するための図である。It is a figure for demonstrating the determination operation | movement of the determination part.

図1は、本発明の第1実施形態に係る検査装置100の構成を示すブロック図である。本実施形態の検査装置100は、被検査体Wの欠陥の有無を検査するための装置である。被検査体Wとしては、液晶パネルディスプレイ、フォトマスクなどに搭載される回路パターンが形成された回路基板などが挙げられる。検査装置100は、撮像部1と、画像処理装置2と、出力装置3と、搬送部4とを備える。   FIG. 1 is a block diagram showing a configuration of an inspection apparatus 100 according to the first embodiment of the present invention. The inspection apparatus 100 of this embodiment is an apparatus for inspecting the presence / absence of a defect in the inspection object W. Examples of the inspected object W include a circuit board on which a circuit pattern mounted on a liquid crystal panel display, a photomask, or the like is formed. The inspection device 100 includes an imaging unit 1, an image processing device 2, an output device 3, and a transport unit 4.

搬送部4は、被検査体Wを撮像部1に対して相対移動させるための部分であり、ステージ41、ステージ移動機構42、基台43および駆動制御装置44を備える。   The transport unit 4 is a part for moving the object W to be inspected relative to the imaging unit 1, and includes a stage 41, a stage moving mechanism 42, a base 43, and a drive control device 44.

ステージ41は、基台43の上に載置された、いわゆるXYθステージであって、主走査方向および副走査方向、さらには回転方向に移動可能である。このようなステージ41は、平板状の外形を有し、その上面に被検査体Wを水平姿勢に載置して保持する。ステージ41の上面には複数の図示しない吸引孔が形成されており、この吸引孔に負圧(吸引圧)を形成することによって、ステージ41上に載置された被検査体Wが固定保持される。   The stage 41 is a so-called XYθ stage placed on the base 43, and is movable in the main scanning direction and the sub-scanning direction, and further in the rotation direction. Such a stage 41 has a flat plate-like outer shape, and places an object W to be inspected and held on the upper surface thereof. A plurality of suction holes (not shown) are formed on the upper surface of the stage 41. By forming a negative pressure (suction pressure) in the suction holes, the object to be inspected W placed on the stage 41 is fixedly held. The

ステージ移動機構42は、駆動制御装置44による駆動力をステージ41に伝達することでステージ41を移動させる機構であり、たとえばステージ41のXYθ各軸に設けられたモータで構成されている。   The stage moving mechanism 42 is a mechanism that moves the stage 41 by transmitting the driving force from the drive control device 44 to the stage 41. For example, the stage moving mechanism 42 includes a motor provided on each axis of XYθ of the stage 41.

撮像部1は、被検査体Wを撮像して検査用画像を取得するものであり、CCD(Charge Coupled Device)またはCMOS(Complementary Metal-Oxide Semiconductor)の2次元イメージセンサ、1次元イメージセンサ、スキャナなどによって実現される。撮像部1は、ステージ41の上方に配置されており、ステージ41に保持された状態でステージ41によって搬送移動される被検査体Wを撮像して検査用画像を取得する。   The imaging unit 1 captures an inspected object W to acquire an inspection image, and is a CCD (Charge Coupled Device) or CMOS (Complementary Metal-Oxide Semiconductor) two-dimensional image sensor, one-dimensional image sensor, scanner. Etc. The imaging unit 1 is disposed above the stage 41 and captures an inspection image by capturing an image of the inspection object W transported and moved by the stage 41 while being held on the stage 41.

画像処理装置2は、たとえばパーソナルコンピュータ(PC)によって実現され、画像比較部21と記憶部22とを備える。   The image processing apparatus 2 is realized by a personal computer (PC), for example, and includes an image comparison unit 21 and a storage unit 22.

画像比較部21は、撮像部1によって取得された検査用画像と、後述の基準画像記憶部221に予め記憶された基準画像とを比較することで、被検査体Wの欠陥の有無を検査する部分である。この画像比較部21は、検査用画像補正部211、検査用画像注目画素選択部212、基準画像注目画素選択部213、周辺画素群抽出部214、差分値算出部215、判定部216、および算出動作制御部217を含んで構成される。   The image comparison unit 21 inspects the presence / absence of a defect in the inspection object W by comparing the inspection image acquired by the imaging unit 1 with a reference image stored in advance in a reference image storage unit 221 described later. Part. The image comparison unit 21 includes an inspection image correction unit 211, an inspection image attention pixel selection unit 212, a reference image attention pixel selection unit 213, a peripheral pixel group extraction unit 214, a difference value calculation unit 215, a determination unit 216, and a calculation. An operation control unit 217 is included.

検査用画像補正部211は、撮像部1によって取得された検査用画像の、基準画像に対する位置ずれを補正するために、検査用画像に対して移動、回転などの変形処理を行う。   The inspection image correction unit 211 performs deformation processing such as movement and rotation on the inspection image in order to correct the positional deviation of the inspection image acquired by the imaging unit 1 with respect to the reference image.

検査用画像注目画素選択部212は、検査用画像を構成する各画素から、予め定める第1の順序に従って一画素ずつ検査用画像注目画素として選択する。検査用画像を構成する各画素には、検査用画像における位置を表す座標値が設定されており、たとえば、検査用画像を正面視したときに、最も左上に位置する画素の座標値を(0,0)として、その(0,0)よりも右側をX座標の正方向とし、(0,0)よりも下側をY座標の正方向とする座標値が設定されている。   The inspection image attention pixel selection unit 212 selects each pixel constituting the inspection image as an inspection image attention pixel one pixel at a time in accordance with a predetermined first order. For each pixel constituting the inspection image, a coordinate value representing a position in the inspection image is set. For example, when the inspection image is viewed from the front, the coordinate value of the pixel located at the upper left is (0 , 0), a coordinate value is set in which the right side of (0, 0) is the positive direction of the X coordinate and the lower side of (0, 0) is the positive direction of the Y coordinate.

検査用画像が、X座標の正方向にXn個で、Y座標の正方向にYn個の、合計(Xn×Yn)個の画素によって構成される矩形状の画像である場合、検査用画像注目画素選択部212は、座標値(0,0)の画素を始点として、(0,0)、(1,0)、(2,0)…(Xn−3,0)(Xn−2,0)、(Xn−1,0)の順序で一画素ずつ検査用画像注目画素を選択し、次にY座標値が「1」増加した座標値(0,1)、(1,1)、(2,1)…(Xn−3,1)、(Xn−2,1)、(Xn−1,1)の順序で一画素ずつ検査用画像注目画素を選択し、同様にして(0,Yn−1)、(1,Yn−1)、(2,Yn−1)…(Xn−3,Yn−1)、(Xn−2,Yn−1)、(Xn−1,Yn−1)の順序で一画素ずつ検査用画像注目画素を選択する。   When the inspection image is a rectangular image composed of Xn pixels in the positive direction of the X coordinate and Yn in the positive direction of the Y coordinate, which is a total of (Xn × Yn) pixels, the inspection image is focused The pixel selection unit 212 starts from a pixel having a coordinate value (0, 0) as a starting point, and (0, 0), (1, 0), (2, 0)... (Xn−3, 0) (Xn−2, 0) ), (Xn−1,0) in the order of (Xn−1,0), the inspection image attention pixel is selected one by one, and then the coordinate value (0,1), (1,1), (1, 2,1)... (Xn-3,1), (Xn-2,1), (Xn-1,1) are selected pixel by pixel for inspection one by one in the order, and (0, Yn) in the same manner. -1), (1, Yn-1), (2, Yn-1) ... (Xn-3, Yn-1), (Xn-2, Yn-1), (Xn-1, Yn-1) Image for inspection one pixel at a time To select the eye pixels.

基準画像注目画素選択部213は、後述の基準画像記憶部221に予め記憶された基準画像を構成する各画素から、検査用画像注目画素に対応する画素である基準画像注目画素を選択する。基準画像を構成する各画素には、検査用画像と同様に、基準画像における位置を表す座標値が設定されており、基準画像を正面視したときに、最も左上に位置する画素の座標値を(0,0)として、その(0,0)よりも右側をX座標の正方向とし、(0,0)よりも下側をY座標の正方向とする座標値が設定されている。基準画像注目画素選択部213は、検査用画像注目画素選択部212によって選択された検査用画像注目画素と同一の座標値を有する画素を基準画像注目画素として選択する。   The reference image attention pixel selection unit 213 selects a reference image attention pixel which is a pixel corresponding to the inspection image attention pixel from each pixel constituting the reference image stored in advance in a reference image storage unit 221 described later. As with the inspection image, each pixel constituting the reference image has a coordinate value representing a position in the reference image. When the reference image is viewed from the front, the coordinate value of the pixel located at the upper left is As (0, 0), a coordinate value is set such that the right side of (0, 0) is the positive direction of the X coordinate and the lower side of (0, 0) is the positive direction of the Y coordinate. The reference image attention pixel selection unit 213 selects a pixel having the same coordinate value as the inspection image attention pixel selected by the inspection image attention pixel selection unit 212 as the reference image attention pixel.

周辺画素群抽出部214は、基準画像の各画素のうち、基準画像注目画素の周囲の所定範囲内に位置する複数の画素からなる周辺画素群を抽出する。周辺画素群抽出部214は、たとえば、基準画像注目画素に対して2画素ずれた位置の合計24個の画素を周辺画素群として抽出する。   The peripheral pixel group extraction unit 214 extracts a peripheral pixel group including a plurality of pixels located within a predetermined range around the reference image target pixel from among the pixels of the reference image. The peripheral pixel group extraction unit 214 extracts, for example, a total of 24 pixels at positions shifted by two pixels with respect to the reference image target pixel as the peripheral pixel group.

差分値算出部215は、検査用画像注目画素選択部212によって第1の順序に従って検査用画像注目画素が選択されるごとに、検査用画像注目画素の輝度値に対する、基準画像注目画素および周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する。この差分値算出部215は、前記差分値として、正負の符号付きの差分値を算出するように構成されている。   Each time the inspection image attention pixel selection unit 212 selects the inspection image attention pixel according to the first order, the difference value calculation unit 215 performs the reference image attention pixel and the peripheral pixels with respect to the luminance value of the inspection image attention pixel. The difference value of the luminance value of each pixel of the group is calculated according to a second order that is determined in advance. The difference value calculation unit 215 is configured to calculate a difference value with a positive / negative sign as the difference value.

具体的には、差分値算出部215は、差分値算出動作を開始したときに、まず、基準画像注目画素および周辺画素群の各画素のうち、X座標値およびY座標値が最小となる座標値(この座標値を「(Xj,Yj)」とする)を有する画素を差分値算出対象の画素として選択し、その選択した画素と検査用画像注目画素との輝度値の差分値を算出する。差分値算出部215は、(Xj,Yj)、(Xj+1,Yj)、(Xj+2,Yj)…(Xj+n,Yj)の順序で一画素ずつ差分値算出対象の画素を選択し、その選択した画素と検査用画像注目画素との輝度値の差分値を算出する。次に、差分値算出部215は、Y座標値が「1」増加した座標値(Xj,Yj+1)、(Xj+1,Yj+1)、(Xj+2,Yj+1)…(Xj+n,Yj+1)の順序で一画素ずつ差分値算出対象の画素を選択し、その選択した画素と検査用画像注目画素との輝度値の差分値を算出する。次に、差分値算出部215は、同様にして(Xj,Yj+n)、(Xj+1,Yj+n)、(Xj+2,Yj+n)…(Xj+n,Yj+n)の順序で一画素ずつ差分値算出対象の画素を選択し、その選択した画素と検査用画像注目画素との輝度値の差分値を算出する。このようにして、差分値算出部215は、検査用画像注目画素選択部212によって第1の順序に従って検査用画像注目画素が選択されるごとに、検査用画像注目画素の輝度値に対する、基準画像注目画素および周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する。   Specifically, when the difference value calculation unit 215 starts the difference value calculation operation, first, of the pixels of the reference image attention pixel and the peripheral pixel group, the coordinates at which the X coordinate value and the Y coordinate value are minimum A pixel having a value (this coordinate value is assumed to be “(Xj, Yj)”) is selected as a difference value calculation target pixel, and a difference value of luminance values between the selected pixel and the inspection image attention pixel is calculated. . The difference value calculation unit 215 selects pixels for which a difference value is to be calculated pixel by pixel in the order of (Xj, Yj), (Xj + 1, Yj), (Xj + 2, Yj)... (Xj + n, Yj), and the selected pixels And a difference value of luminance values between the inspection image attention pixel and the inspection image attention pixel. Next, the difference value calculation unit 215 performs pixel-by-pixel order in the order of coordinate values (Xj, Yj + 1), (Xj + 1, Yj + 1), (Xj + 2, Yj + 1)... (Xj + n, Yj + 1) with the Y coordinate value increased by “1”. The difference value calculation target pixel is selected, and the difference value of the luminance value between the selected pixel and the inspection image attention pixel is calculated. Next, the difference value calculation unit 215 similarly selects pixels for which difference values are to be calculated one by one in the order of (Xj, Yj + n), (Xj + 1, Yj + n), (Xj + 2, Yj + n)... (Xj + n, Yj + n). Then, the difference value of the luminance value between the selected pixel and the inspection image target pixel is calculated. In this way, the difference value calculation unit 215 performs the reference image for the luminance value of the inspection image attention pixel every time the inspection image attention pixel is selected according to the first order by the inspection image attention pixel selection unit 212. A difference value between the luminance values of the pixel of interest and each pixel in the peripheral pixel group is calculated in accordance with a predetermined second order.

判定部216は、差分値算出部215によって第2の順序に従って差分値が算出されるごとに、検査用画像注目画素が、被検査体Wの欠陥以外の正常部に対応する正常画素であるか否かを判定する。この判定部216は、差分値算出部215によって算出された差分値の絶対値が、予め定める閾値以下である場合に、検査用画像注目画素が正常画素であると判定し、差分値の絶対値が前記閾値を超える場合に、検査用画像注目画素が欠陥画素であると判定する。また、判定部216は、差分値算出部215が前記閾値よりも大きい絶対値の第1の差分値を算出した後に、第1の差分値と正負の符号が異なる第2の差分値を算出した場合に、検査用画像注目画素が正常画素であると判定する。   Whenever the difference value is calculated by the difference value calculation unit 215 according to the second order, the determination unit 216 determines whether the inspection image target pixel is a normal pixel corresponding to a normal part other than the defect of the inspection object W. Determine whether or not. The determination unit 216 determines that the inspection image attention pixel is a normal pixel when the absolute value of the difference value calculated by the difference value calculation unit 215 is equal to or less than a predetermined threshold, and the absolute value of the difference value Exceeds the threshold, it is determined that the inspection image target pixel is a defective pixel. The determination unit 216 calculates a second difference value having a positive / negative sign that is different from the first difference value after the difference value calculation unit 215 calculates the first difference value having an absolute value larger than the threshold value. In this case, it is determined that the inspection image target pixel is a normal pixel.

算出動作制御部217は、差分値算出部215の差分値算出動作を制御する。この算出動作制御部217は、判定部216によって検査用画像注目画素が正常画素であると判定された時点で、1つの検査用画像注目画素に対する、第2の順序に従った差分値算出部215の差分値算出動作を終了させる。   The calculation operation control unit 217 controls the difference value calculation operation of the difference value calculation unit 215. The calculation operation control unit 217, when the determination unit 216 determines that the inspection image attention pixel is a normal pixel, the difference value calculation unit 215 according to the second order for one inspection image attention pixel. The difference value calculation operation is terminated.

記憶部22は、基準画像記憶部221、閾値記憶部222、正常画素座標値記憶部223、および欠陥画素座標値記憶部224を含んで構成される。   The storage unit 22 includes a reference image storage unit 221, a threshold storage unit 222, a normal pixel coordinate value storage unit 223, and a defective pixel coordinate value storage unit 224.

基準画像記憶部221は、被検査体Wの、欠陥が無い状態を表す画像である基準画像を予め記憶する。閾値記憶部222は、判定部216による判定動作時に用いられる前記閾値を記憶する。正常画素座標値記憶部223は、判定部216において正常画素であると判定された検査用画像注目画素の、検査用画像における位置を表す座標値を記憶する。欠陥画素座標値記憶部224は、判定部216において欠陥画素であると判定された検査用画像注目画素の、検査用画像における位置を表す座標値を記憶する。   The reference image storage unit 221 stores in advance a reference image that is an image representing a state in which the inspection subject W has no defect. The threshold storage unit 222 stores the threshold used during the determination operation by the determination unit 216. The normal pixel coordinate value storage unit 223 stores a coordinate value representing the position in the inspection image of the inspection image attention pixel determined to be a normal pixel by the determination unit 216. The defective pixel coordinate value storage unit 224 stores a coordinate value representing a position in the inspection image of the inspection image attention pixel determined to be a defective pixel by the determination unit 216.

出力装置3は、表示ディスプレイ装置などによって実現され、正常画素座標値記憶部223に記憶された正常画素を表す検査用画像注目画素の座標値、および、欠陥画素座標値記憶部224に記憶された欠陥画素を表す検査用画像注目画素の座標値を出力して、表示画面に表示する。検査装置100を操作する操作者は、出力装置3によって出力された前記各座標値を確認することによって、検査用画像における欠陥に対応する画素の位置を確認することができ、その結果、被検査体Wにおける欠陥の位置を確認することができる。なお、出力装置3としては、前記各座標値をファイルに記録する記録ディスク装置であってもよいし、前記各座標値の情報を外部のコンピュータ装置に伝送するためのネットワーク通信装置であってもよい。   The output device 3 is realized by a display device or the like, and stored in the defective pixel coordinate value storage unit 224 and the coordinate value of the inspection image attention pixel representing the normal pixel stored in the normal pixel coordinate value storage unit 223. The coordinate value of the inspection image target pixel representing the defective pixel is output and displayed on the display screen. An operator who operates the inspection apparatus 100 can confirm the position of the pixel corresponding to the defect in the inspection image by confirming each coordinate value output by the output device 3, and as a result, The position of the defect in the body W can be confirmed. The output device 3 may be a recording disk device that records the coordinate values in a file, or a network communication device that transmits information on the coordinate values to an external computer device. Good.

以上のように構成された本発明の検査装置100では、撮像部1によって取得された検査用画像と、基準画像記憶部221に予め記憶された基準画像とを比較することで、被検査体Wの欠陥の有無を検査するに際し、判定部216は、1つの検査用画像注目画素に対して基準画像注目画素のみならず周辺画素群の各画素も比較対象の画素の候補として、検査用画像注目画素が正常画素であるか否かを判定する。したがって、検査装置100は、基準画像に対して検査用画像の位置ずれが発生した場合であっても、被検査体Wの欠陥の有無を精確に検査することができる。   In the inspection apparatus 100 of the present invention configured as described above, the inspection object W is compared by comparing the inspection image acquired by the imaging unit 1 with the reference image stored in the reference image storage unit 221 in advance. When inspecting for the presence or absence of defects, the determination unit 216 uses not only the reference image attention pixel but also each pixel in the peripheral pixel group as a comparison target pixel candidate for one inspection image attention pixel. It is determined whether or not the pixel is a normal pixel. Therefore, the inspection apparatus 100 can accurately inspect for the presence or absence of a defect in the inspection object W even when the inspection image is misaligned with respect to the reference image.

さらに、本実施形態の検査装置100では、算出動作制御部217は、判定部216によって1つの検査用画像注目画素が正常画素であると判定された時点で、1つの検査用画像注目画素に対する、第2の順序に従った差分値算出部215の差分値算出動作を終了させる。算出動作制御部217によって制御された差分値算出部215は、基準画像注目画素および周辺画素群の各画素の全ての画素について差分値を算出するのではなく、判定部216によって検査用画像注目画素が正常画素であると判定された時点で、1つの検査用画像注目画素に対する差分値算出動作を終了するので、被検査体Wの欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができる。   Furthermore, in the inspection apparatus 100 according to the present embodiment, the calculation operation control unit 217 determines that one inspection image attention pixel is a normal pixel by the determination unit 216, with respect to one inspection image attention pixel. The difference value calculation operation of the difference value calculation unit 215 according to the second order is terminated. The difference value calculation unit 215 controlled by the calculation operation control unit 217 does not calculate the difference values for all the pixels in the reference image attention pixel and the surrounding pixel group, but the inspection image attention pixel by the determination unit 216. When it is determined that the pixel is a normal pixel, the difference value calculation operation for one image target pixel for inspection is terminated, so that the processing time of the defect inspection for inspecting the presence or absence of the defect of the inspected object W becomes too long. Can be suppressed.

次に、検査装置100によって実行される検査方法について説明する。図2Aおよび図2Bは、検査装置100によって実行される検査方法を示すフローチャートである。検査装置100によって実行される検査方法については、図3〜5を参照しながら説明する。図3は、検査用画像注目画素選択部212、基準画像注目画素選択部213および周辺画素群抽出部214の動作を説明するための図である。図4および図5は、判定部216の判定動作を説明するための図である。   Next, an inspection method executed by the inspection apparatus 100 will be described. 2A and 2B are flowcharts showing an inspection method executed by the inspection apparatus 100. FIG. The inspection method executed by the inspection apparatus 100 will be described with reference to FIGS. FIG. 3 is a diagram for explaining operations of the inspection image attention pixel selection unit 212, the reference image attention pixel selection unit 213, and the surrounding pixel group extraction unit 214. 4 and 5 are diagrams for explaining the determination operation of the determination unit 216. FIG.

基準画像記憶ステップに相当するステップs1では、基準画像記憶部221は、基準画像を予め記憶する。次に、撮像ステップに相当するステップs2では、撮像部1は、ステージ41に保持された状態でステージ41によって搬送移動される被検査体Wを撮像して検査用画像を取得する。次に、ステップs3では、検査用画像補正部211は、撮像部1によって取得された検査用画像に対して変形処理を施して、検査用画像の基準画像に対する位置ずれを補正する。   In step s1 corresponding to the reference image storage step, the reference image storage unit 221 stores the reference image in advance. Next, in step s2 corresponding to the imaging step, the imaging unit 1 captures the inspection object W transported and moved by the stage 41 while being held by the stage 41, and acquires an inspection image. Next, in step s3, the inspection image correction unit 211 performs a deformation process on the inspection image acquired by the imaging unit 1, and corrects the positional deviation of the inspection image with respect to the reference image.

次に、ステップs4では、画像比較部21は、基準画像記憶部221に記憶された基準画像を基準画像記憶部221から読み出して取得する。次に、ステップs5では、画像比較部21は、後段のステップにおける判定部216による判定動作時に用いられる閾値を、閾値記憶部222から読み出して取得する。   Next, in step s4, the image comparison unit 21 reads and acquires the reference image stored in the reference image storage unit 221 from the reference image storage unit 221. Next, in step s5, the image comparison unit 21 reads out and acquires the threshold value used in the determination operation by the determination unit 216 in the subsequent step from the threshold storage unit 222.

次に、検査用画像注目画素選択ステップに相当するステップs6では、検査用画像注目画素選択部212は、図3(a)に示すように、検査用画像G1を構成する各画素から、予め定める第1の順序に従って一画素ずつ検査用画像注目画素G11を選択する。   Next, in step s6 corresponding to the inspection image attention pixel selection step, the inspection image attention pixel selection unit 212 determines in advance from each pixel constituting the inspection image G1, as shown in FIG. The inspection image attention pixel G11 is selected pixel by pixel according to the first order.

次に、ステップs7では、画像比較部21は、検査用画像注目画素選択部212による検査用画像注目画素を一画素ずつ選択する選択動作が終了したか否かを判断する。検査用画像G1を構成する全画素を検査用画像注目画素G11として用いて、後述する差分値算出部215による差分値算出動作が行われた場合に、画像比較部21は、検査用画像注目画素選択部212による検査用画像注目画素を一画素ずつ選択する選択動作が終了したと判断する。画像比較部21が選択動作が終了したと判断した場合にはステップs8に進み、選択動作が終了していないと判断した場合にはステップs9に進む。   Next, in step s7, the image comparison unit 21 determines whether or not the selection operation for selecting the inspection image attention pixel by the inspection image attention pixel selection unit 212 is completed. When the difference value calculation operation by the difference value calculation unit 215 described later is performed using all the pixels constituting the inspection image G1 as the inspection image attention pixel G11, the image comparison unit 21 displays the inspection image attention pixel. It is determined that the selection operation for selecting the pixel of interest for inspection by the selection unit 212 has been completed. If the image comparison unit 21 determines that the selection operation has been completed, the process proceeds to step s8. If the image comparison unit 21 determines that the selection operation has not been completed, the process proceeds to step s9.

ステップs8では、出力装置3は、正常画素座標値記憶部223に記憶された正常画素を表す検査用画像注目画素G11の座標値、および、欠陥画素座標値記憶部224に記憶された欠陥画素を表す検査用画像注目画素G11の座標値を出力して、検査装置100における被検査体Wの欠陥の有無を検査する欠陥検査動作を終了する。   In step s8, the output device 3 displays the coordinate value of the inspection image attention pixel G11 representing the normal pixel stored in the normal pixel coordinate value storage unit 223 and the defective pixel stored in the defective pixel coordinate value storage unit 224. The coordinate value of the inspection image attention pixel G11 to be expressed is output, and the defect inspection operation for inspecting the presence or absence of the defect of the inspection object W in the inspection apparatus 100 is finished.

ステップs9では、画像比較部21は、検査用画像注目画素選択部212によって選択された検査用画像注目画素G11の輝度値を取得する。次に、基準画像注目画素選択ステップに相当するステップs10では、基準画像注目画素選択部213は、図3(b)に示すように、検査用画像注目画素選択部212によって選択された検査用画像注目画素G11と同一の座標値を有する画素を基準画像注目画素G21として選択する。   In step s9, the image comparison unit 21 acquires the luminance value of the inspection image attention pixel G11 selected by the inspection image attention pixel selection unit 212. Next, in step s10 corresponding to the reference image attention pixel selection step, the reference image attention pixel selection unit 213 selects the inspection image selected by the inspection image attention pixel selection unit 212 as shown in FIG. A pixel having the same coordinate value as the target pixel G11 is selected as the reference image target pixel G21.

次に、周辺画素群抽出ステップに相当するステップs11では、周辺画素群抽出部214は、図3(b)に示すように、基準画像G2の各画素のうち、基準画像注目画素G21の周囲の所定範囲内に位置する複数の画素からなる周辺画素群G24を抽出する。   Next, in step s11 corresponding to the surrounding pixel group extraction step, the surrounding pixel group extraction unit 214, as shown in FIG. 3B, out of each pixel of the reference image G2, the area around the reference image attention pixel G21. A peripheral pixel group G24 consisting of a plurality of pixels located within a predetermined range is extracted.

具体的には、周辺画素群抽出部214は、基準画像注目画素G21(座標値を(Xk,Yk)とする)に対してN画素ずれた位置までの画素を周辺画素群G24として抽出する場合、座標値(Xk−N,Yk−N)の第1基点画素G22と、座標値(Xk+N,Yk+N)の第2基点画素G23とを結んだ線分を対角線とする矩形領域内における、基準画像注目画素G21以外の画素を、周辺画素群G24として抽出する。たとえば、基準画像注目画素G21に対して2画素ずれた位置までの画素を周辺画素群G24として抽出する場合には、周辺画素群抽出部214は、座標値(Xk−2,Yk−2)の第1基点画素G22と、座標値(Xk+2,Yk+2)の第2基点画素G23とを結んだ線分を対角線とする矩形領域内における、合計24個の画素を周辺画素群G24として抽出する。   Specifically, the peripheral pixel group extraction unit 214 extracts pixels up to a position shifted by N pixels from the reference image attention pixel G21 (coordinate values are (Xk, Yk)) as the peripheral pixel group G24. , A reference image in a rectangular area whose diagonal is a line segment connecting the first base pixel G22 having the coordinate values (Xk-N, Yk-N) and the second base pixel G23 having the coordinate values (Xk + N, Yk + N). Pixels other than the target pixel G21 are extracted as the peripheral pixel group G24. For example, when pixels up to a position shifted by two pixels with respect to the reference image target pixel G21 are extracted as the peripheral pixel group G24, the peripheral pixel group extraction unit 214 uses the coordinate values (Xk-2, Yk-2). A total of 24 pixels are extracted as a peripheral pixel group G24 in a rectangular area whose diagonal is a line segment connecting the first base pixel G22 and the second base pixel G23 having the coordinate value (Xk + 2, Yk + 2).

次に、ステップs12では、画像比較部21は、基準画像注目画素G21および周辺画素群G24の各画素の輝度値を取得する。   Next, in step s12, the image comparison unit 21 acquires the luminance value of each pixel of the reference image attention pixel G21 and the peripheral pixel group G24.

次に、差分値算出ステップに相当するステップs13では、差分値算出部215は、検査用画像注目画素選択部212によって第1の順序に従って検査用画像注目画素G11が選択されるごとに、検査用画像注目画素G11の輝度値に対する、基準画像注目画素G21および周辺画素群G24の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する。このとき差分値算出部215は、前記差分値として、正負の符号付きの差分値を算出する。   Next, in step s13 corresponding to the difference value calculation step, the difference value calculation unit 215 performs the inspection every time the inspection image attention pixel selection unit 212 selects the inspection image attention pixel G11 in the first order. The difference value of the luminance value of each pixel of the reference image attention pixel G21 and the peripheral pixel group G24 with respect to the luminance value of the image attention pixel G11 is calculated according to a predetermined second order. At this time, the difference value calculation unit 215 calculates a difference value with a positive / negative sign as the difference value.

判定ステップに相当するステップs14では、判定部216は、差分値算出部215によって第2の順序に従って差分値が算出されるごとに、差分値の絶対値が予め定める閾値以下であるか否かを判定する。この判定部216による判定動作について、図4を用いて説明する。図4において、図4(a)は、検査用画像G1を構成する各画素の輝度値について、横軸をX座標値、縦軸を輝度値としてグラフ化して示したものであり、破線で囲まれる領域A1は、差分値の絶対値が閾値以下の輝度値の範囲を示す。また、図4(b)は、基準画像G2を構成する各画素のうち、基準画像注目画素選択部213によって選択された基準画像注目画素G21および周辺画素群抽出部214によって抽出された周辺画素群G24の各画素の輝度値について、横軸をX座標値、縦軸を輝度値としてグラフ化して示したものであり、破線で囲まれる領域A1は、差分値の絶対値が閾値以下の輝度値の範囲を示す。   In step s14 corresponding to the determination step, the determination unit 216 determines whether or not the absolute value of the difference value is equal to or less than a predetermined threshold every time the difference value is calculated by the difference value calculation unit 215 according to the second order. judge. The determination operation by the determination unit 216 will be described with reference to FIG. In FIG. 4, FIG. 4 (a) is a graph showing the luminance value of each pixel constituting the inspection image G1, with the horizontal axis representing the X coordinate value and the vertical axis representing the luminance value, and is surrounded by a broken line. The area A1 to be displayed indicates a range of luminance values in which the absolute value of the difference value is equal to or less than a threshold value. FIG. 4B illustrates the reference image attention pixel G21 selected by the reference image attention pixel selection unit 213 and the peripheral pixel group extracted by the peripheral pixel group extraction unit 214 among the pixels constituting the reference image G2. The luminance value of each pixel of G24 is shown as a graph with the horizontal axis representing the X coordinate value and the vertical axis representing the luminance value, and the area A1 surrounded by the broken line is a luminance value whose absolute value of the difference value is equal to or less than the threshold value. Indicates the range.

なお、図4(b)において、差分値算出部215は、基準画像注目画素G21および周辺画素群G24の各画素の中から、X座標値が最小の画素からX座標の正方向に順番に一画素ずつ選択して、その選択した画素と検査用画像注目画素G11との差分値を算出することとする。したがって、判定部216は、差分値算出部215によって前記の順序で算出された差分値を用いて検査用画像注目画素G11が正常画素であるか否かを判定することになる。図4(b)においては、基準画像注目画素G21および周辺画素群G24の各画素の中から、差分値算出部215が1番目に選択したX座標値が最小の周辺画素群G24の一画素と、検査用画像注目画素G11との差分値を差分値算出部215が算出すると、判定部216は、差分値の絶対値が閾値以下であると判定し、その時点で、検査用画像注目画素G11が正常画素であると判定する。   In FIG. 4B, the difference value calculation unit 215 sequentially selects one pixel in the positive direction of the X coordinate from the pixel having the smallest X coordinate value among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. A pixel is selected for each pixel, and a difference value between the selected pixel and the inspection image attention pixel G11 is calculated. Therefore, the determination unit 216 determines whether or not the inspection image attention pixel G11 is a normal pixel using the difference values calculated in the above order by the difference value calculation unit 215. In FIG. 4B, one pixel of the peripheral pixel group G24 having the smallest X coordinate value selected first by the difference value calculation unit 215 from among the pixels of the reference image target pixel G21 and the peripheral pixel group G24. When the difference value calculation unit 215 calculates the difference value from the inspection image attention pixel G11, the determination unit 216 determines that the absolute value of the difference value is equal to or less than the threshold, and at that time, the inspection image attention pixel G11. Are normal pixels.

ステップs14において判定部216が、差分値の絶対値が閾値以下であると判定した場合にはステップs15に進み、差分値の絶対値が閾値以下ではないと判定した場合にはステップs17に進む。   If the determination unit 216 determines in step s14 that the absolute value of the difference value is equal to or less than the threshold value, the process proceeds to step s15. If the determination unit 216 determines that the absolute value of the difference value is not equal to or less than the threshold value, the process proceeds to step s17.

ステップs15では、判定部216は、ステップs14において差分値の絶対値が閾値以下であると判定された検査用画像注目画素G11について、正常画素であると判定する。   In step s15, the determination unit 216 determines that the inspection image attention pixel G11 in which the absolute value of the difference value is determined to be equal to or less than the threshold value in step s14 is a normal pixel.

次に、算出動作制御ステップに相当するステップs16では、算出動作制御部217は、ステップs16において判定部216によって検査用画像注目画素G11が正常画素であると判定された時点で、1つの検査用画像注目画素G11に対する、第2の順序に従った差分値算出部215の差分値算出動作を終了させて、ステップs6に戻る。図4(b)の例では、算出動作制御部217によって制御された差分値算出部215は、1番目に選択したX座標値が最小の周辺画素群G24の一画素と、検査用画像注目画素G11との差分値を算出した後、差分値算出動作を行わないことになる。このように、算出動作制御部217によって制御された差分値算出部215は、基準画像注目画素G21および周辺画素群G24の各画素の全ての画素について差分値を算出するのではなく、判定部216によって検査用画像注目画素G11が正常画素であると判定された時点で、1つの検査用画像注目画素G11に対する差分値算出動作を終了するので、被検査体Wの欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができる。   Next, in step s16 corresponding to the calculation operation control step, the calculation operation control unit 217 determines one inspection image when the determination unit 216 determines that the inspection image attention pixel G11 is a normal pixel in step s16. The difference value calculation operation of the difference value calculation unit 215 according to the second order for the image pixel of interest G11 is terminated, and the process returns to step s6. In the example of FIG. 4B, the difference value calculation unit 215 controlled by the calculation operation control unit 217 includes one pixel of the peripheral pixel group G24 having the smallest X coordinate value selected first, and the inspection image attention pixel. After the difference value with G11 is calculated, the difference value calculation operation is not performed. As described above, the difference value calculation unit 215 controlled by the calculation operation control unit 217 does not calculate the difference values for all the pixels of the reference image attention pixel G21 and the peripheral pixel group G24, but determines the determination unit 216. When it is determined that the inspection image attention pixel G11 is a normal pixel, the difference value calculation operation for one inspection image attention pixel G11 is completed. Therefore, the defect inspection for inspecting the presence or absence of a defect in the inspection object W It is possible to prevent the processing time from becoming too long.

ステップs14において、判定部216によって差分値の絶対値が閾値以下ではないと判定された後のステップs17、すなわち、差分値算出部215が閾値よりも大きい絶対値の第1の差分値を算出した後のステップs17では、判定部216は、再度ステップs13において差分値算出部215によって算出された第2の差分値が、第1の差分値と正負の符号が異なるか否かを判定する。この判定部216による判定動作について、図5を用いて説明する。図5において、図5(a)は、検査用画像G1を構成する各画素の輝度値について、横軸をX座標値、縦軸を輝度値としてグラフ化して示したものであり、破線で囲まれる領域A1は差分値の絶対値が閾値以下の輝度値の範囲を示す。また、図5(b)は、基準画像G2を構成する各画素のうち、基準画像注目画素選択部213によって選択された基準画像注目画素G21および周辺画素群抽出部214によって抽出された周辺画素群G24の各画素の輝度値について、横軸をX座標値、縦軸を輝度値としてグラフ化して示したものであり、破線で囲まれる領域A1は差分値の絶対値が閾値以下の輝度値の範囲を示す。   In step s14, after the determination unit 216 determines that the absolute value of the difference value is not less than or equal to the threshold value, that is, the difference value calculation unit 215 calculates the first difference value having an absolute value greater than the threshold value. In subsequent step s17, the determination unit 216 determines again whether the second difference value calculated by the difference value calculation unit 215 in step s13 is different in sign from the first difference value. The determination operation by the determination unit 216 will be described with reference to FIG. In FIG. 5, FIG. 5 (a) is a graph showing the luminance value of each pixel constituting the inspection image G1, with the horizontal axis representing the X coordinate value and the vertical axis representing the luminance value. The region A1 to be displayed indicates a range of luminance values in which the absolute value of the difference value is equal to or less than a threshold value. FIG. 5B shows the reference image target pixel G21 selected by the reference image target pixel selection unit 213 and the peripheral pixel group extracted by the peripheral pixel group extraction unit 214 among the pixels constituting the reference image G2. The luminance value of each pixel of G24 is shown as a graph with the horizontal axis representing the X coordinate value and the vertical axis representing the luminance value. The area A1 surrounded by the broken line is a luminance value whose difference value is less than or equal to the threshold value. Indicates the range.

なお、図5(b)において、差分値算出部215は、基準画像注目画素G21および周辺画素群G24の各画素の中から、X座標値が最小の画素からX座標の正方向に順番に一画素ずつ選択して、その選択した画素と検査用画像注目画素G11との差分値を算出することとする。したがって、判定部216は、差分値算出部215によって前記の順序で算出された差分値を用いて、差分値算出部215によって算出された第2の差分値が、第1の差分値と正負の符号が異なるか否かを判定することになる。   In FIG. 5B, the difference value calculation unit 215 sequentially selects one pixel in the positive direction of the X coordinate from the pixel with the smallest X coordinate value among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. A pixel is selected for each pixel, and a difference value between the selected pixel and the inspection image attention pixel G11 is calculated. Therefore, the determination unit 216 uses the difference values calculated in the above order by the difference value calculation unit 215 so that the second difference value calculated by the difference value calculation unit 215 is positive or negative with respect to the first difference value. It is determined whether the codes are different.

判定部216によって、差分値算出部215によって算出された第2の差分値が、第1の差分値と正負の符号が異なると判定された場合には、図5に示すように、検査用画像G1における検査用画像注目画素G11の近傍に位置する画素が、輝度値が急激に変化するエッジ候補画素である。エッジ候補画素とは、被検査体Wに形成される回路パターンや被検査体Wの縁端部のエッジ部分に対応する、検査用画像G1の画素である。   If the determination unit 216 determines that the second difference value calculated by the difference value calculation unit 215 is different in sign from the first difference value, as shown in FIG. A pixel located in the vicinity of the inspection image attention pixel G11 in G1 is an edge candidate pixel whose luminance value changes abruptly. The edge candidate pixel is a pixel of the inspection image G1 corresponding to the circuit pattern formed on the inspection object W or the edge portion of the edge of the inspection object W.

判定部216が、第2の差分値が第1の差分値と正負の符号が異なると判定した場合には前述のステップs15に進み、判定部216は、検査用画像注目画素G11について、正常画素であると判定する。また、判定部216が、第2の差分値が第1の差分値と正負の符号が異なっていないと判定した場合にはステップs18に進む。ステップs18では、画像比較部21は、判定部216による判定動作が終了したか否かを判断する。画像比較部21が判定部216による判定動作が終了したと判断した場合にはステップs19に進み、判定部216による判定動作が終了していないと判断した場合には前述のステップs13に進む。   When the determination unit 216 determines that the second difference value is different in sign from the first difference value, the determination unit 216 proceeds to the above-described step s15, and the determination unit 216 determines the normal pixel for the inspection image attention pixel G11. It is determined that If the determination unit 216 determines that the second difference value is not different in sign from the first difference value, the process proceeds to step s18. In step s18, the image comparison unit 21 determines whether the determination operation by the determination unit 216 has ended. If the image comparison unit 21 determines that the determination operation by the determination unit 216 has ended, the process proceeds to step s19. If the image comparison unit 21 determines that the determination operation by the determination unit 216 has not ended, the process proceeds to step s13 described above.

ステップs14において差分値の絶対値が閾値以下ではないと判定され、ステップs17において第2の差分値が第1の差分値と正負の符号が異なっていないと判定された後のステップs19では、判定部216は、検査用画像注目画素G11が欠陥画素であると判定する。次に、ステップs20では、算出動作制御部217は、1つの検査用画像注目画素G11に対する差分値算出部215の差分値算出動作を終了させて、ステップs6に戻る。   In step s19, it is determined that the absolute value of the difference value is not equal to or less than the threshold value in step s14, and in step s19 after it is determined in step s17 that the second difference value is not different in sign from the first difference value. The unit 216 determines that the inspection image attention pixel G11 is a defective pixel. Next, in step s20, the calculation operation control unit 217 ends the difference value calculation operation of the difference value calculation unit 215 for one inspection image attention pixel G11, and returns to step s6.

図5に示すように、検査用画像G1における検査用画像注目画素G11の近傍に位置する画素が、輝度値が急激に変化するエッジ候補画素である場合において、判定部216によって第2の差分値が第1の差分値と正負の符号が異なると判定されたときに、1つの検査用画像注目画素G11に対する差分値算出部215の差分値算出動作を終了させることによって、被検査体Wの欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができる。   As illustrated in FIG. 5, when a pixel located in the vicinity of the inspection image attention pixel G11 in the inspection image G1 is an edge candidate pixel whose luminance value changes abruptly, the determination unit 216 performs the second difference value. When the difference between the first difference value and the positive / negative sign is determined to be different, the difference value calculation operation of the difference value calculation unit 215 with respect to one inspection image target pixel G11 is terminated, whereby the defect of the inspected object W is detected. It can be suppressed that the processing time of the defect inspection for inspecting the presence or absence of the defect becomes too long.

前記検査装置100の画像処理装置2における画像比較部21および記憶部22を機能させる検査プログラムは、画像比較部21および記憶部22を備えるコンピュータを、検査装置100として機能させるプログラムである。この検査プログラムは、従来公知の、コンピュータ読み取り可能な記録媒体に記録できる。   The inspection program that causes the image comparison unit 21 and the storage unit 22 in the image processing apparatus 2 of the inspection apparatus 100 to function is a program that causes the computer including the image comparison unit 21 and the storage unit 22 to function as the inspection apparatus 100. This inspection program can be recorded on a conventionally known computer-readable recording medium.

前記検査プログラムを記録媒体に記録することで、検査プログラムに基づく欠陥検査処理を実行するためのプログラムコード(実行形式プログラム、中間コードプログラムおよびソースプログラムなど)を記録した記録媒体を持ち運び自在に提供することができる。   By recording the inspection program on a recording medium, a recording medium on which program codes (execution format program, intermediate code program, source program, etc.) for executing defect inspection processing based on the inspection program are recorded is provided in a portable manner. be able to.

なお、記録媒体は、マイクロコンピュータが処理を行うためのメモリ、たとえばROM(Read Only Memory)のようなプログラムメディアであってもよいし、または、コンピュータが外部記憶装置として備えるプログラム読取装置に挿入することで読み取られるプログラムメディアであってもよい。   The recording medium may be a memory for the microcomputer to perform processing, for example, a program medium such as a ROM (Read Only Memory), or may be inserted into a program reading device provided as an external storage device in the computer. It may be a program medium that can be read.

記録媒体に格納されている検査プログラムは、マイクロプロセッサが記録媒体にアクセスして実行する方式であってもよいし、または、マイクロプロセッサが記録媒体からプログラムコードを読み出し、読み出されたプログラムコードがマイクロコンピュータのプログラム記憶エリアにダウンロードされることで、その検査プログラムが実行される方式であってもよい。このダウンロード用のプログラムは予め本体装置に格納されているものとする。   The inspection program stored in the recording medium may be a method in which the microprocessor accesses the recording medium and executes it, or the microprocessor reads out the program code from the recording medium, and the read program code is The inspection program may be executed by being downloaded to the program storage area of the microcomputer. It is assumed that this download program is stored in the main device in advance.

ここで、前記プログラムメディアは、本体と分離可能に構成される記録媒体であり、磁気テープ、カセットテープなどのテープ系、フレキシブルディスク、ハードディスクなどの磁気ディスク、CD−ROM(Compact Disc-Read Only Memory)、MO(Magneto Optical disc)、MD(Mini Disc)、DVD(Digital Versatile Disc)などの光ディスク系、IC(Integrated Circuit)カード(メモリカードを含む)、光カードなどのカード系、あるいはマスクROM、EPROM(Erasable Programmable Read Only Memory)、EEPROM(登録商標)(Electrically Erasable Programmable Read Only Memory)、フラッシュROMなどによる半導体メモリを含めた固定的に検査プログラムを担持する媒体であってもよい。   Here, the program medium is a recording medium configured to be separable from the main body, and includes a tape system such as a magnetic tape and a cassette tape, a magnetic disk such as a flexible disk and a hard disk, a CD-ROM (Compact Disc-Read Only Memory). ), Optical disc systems such as MO (Magneto Optical disc), MD (Mini Disc), DVD (Digital Versatile Disc), IC (Integrated Circuit) cards (including memory cards), card systems such as optical cards, or mask ROM, It may be a medium that carries a fixed inspection program including a semiconductor memory such as an EEPROM (Erasable Programmable Read Only Memory), an EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory), or a flash ROM.

また、コンピュータが、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、記録媒体は、通信ネットワークからプログラムコードをダウンロードするように、流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークから検査プログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、または他の記録媒体からインストールしておく。また、前記検査プログラムは、前記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。   In addition, if the computer has a system configuration capable of connecting to a communication network including the Internet, the recording medium may be a medium that dynamically carries the program code so as to download the program code from the communication network. When the inspection program is downloaded from the communication network in this way, the download program is stored in the main device in advance or installed from another recording medium. In addition, the inspection program can be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

以上では、検査装置100を被検査体Wの欠陥の有無を検査する装置として説明したが、本発明はこの用途に限定されるものではない。本発明の検査装置100に係る技術は、雨の日の風景をステレオカメラで撮影した場合の画像比較という用途において、雨によるノイズ状の影響を抑えるために応用できる。また、本発明の検査装置100は、移動や回転動作の影響による画像の位置ずれや歪みが発生した場合においても、精確に画像比較を実施することができるので、この技術を、ロボットに搭載される画像認識装置、自動車に搭載される自動操縦装置の構成要素としての画像認識装置などに適用することも考えられる。   In the above, the inspection apparatus 100 has been described as an apparatus for inspecting the presence / absence of a defect in the inspection object W, but the present invention is not limited to this application. The technique according to the inspection apparatus 100 of the present invention can be applied to suppress the influence of noise caused by rain in an application of image comparison when a rainy day landscape is taken with a stereo camera. In addition, the inspection apparatus 100 of the present invention can accurately perform image comparison even when image displacement or distortion occurs due to the influence of movement or rotation, so this technique is installed in a robot. It is also conceivable to apply the present invention to an image recognition device, an image recognition device as a component of an autopilot device mounted on an automobile, and the like.

1 撮像部
2 画像処理装置
3 出力装置
4 搬送部
21 画像比較部
22 記憶部
100 検査装置
211 検査用画像補正部
212 検査用画像注目画素選択部
213 基準画像注目画素選択部
214 周辺画素群抽出部
215 差分値算出部
216 判定部
217 算出動作制御部
221 基準画像記憶部
222 閾値記憶部
223 正常画素座標記憶部
224 欠陥画素座標記憶部
DESCRIPTION OF SYMBOLS 1 Imaging part 2 Image processing apparatus 3 Output device 4 Carrying part 21 Image comparison part 22 Storage part 100 Inspection apparatus 211 Inspection image correction part 212 Inspection image attention pixel selection part 213 Reference image attention pixel selection part 214 Peripheral pixel group extraction part 215 Difference value calculation unit 216 Determination unit 217 Calculation operation control unit 221 Reference image storage unit 222 Threshold storage unit 223 Normal pixel coordinate storage unit 224 Defective pixel coordinate storage unit

Claims (5)

被検査体の欠陥の有無を検査するための検査装置であって、
被検査体の欠陥の有無を検査する基準となる、被検査体の欠陥が無い状態を表す基準画像を予め記憶する基準画像記憶部と、
被検査体を撮像し、検査用画像を取得する撮像部と、
前記検査用画像を構成する画素から、予め定める第1の順序に従って1つの検査用画像注目画素を選択する検査用画像注目画素選択部と、
前記基準画像を構成する画素から、前記検査用画像注目画素に対応する基準画像注目画素を選択する基準画像注目画素選択部と、
前記基準画像を構成する画素のうち、前記基準画像注目画素の周囲の所定範囲内に位置する画素からなる周辺画素群を抽出する周辺画素群抽出部と、
前記検査用画像注目画素の輝度値に対する、前記基準画像注目画素および前記周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する差分値算出部と、
前記差分値算出部によって前記第2の順序に従って前記差分値が算出されるごとに、前記差分値の絶対値が、予め定める閾値以下であるか否かを判定する判定部と、
前記差分値算出部の差分値算出動作を制御する算出動作制御部であって、前記判定部によって前記差分値の絶対値が前記閾値以下であると判定されたときには、前記検査用画像注目画素に対する、前記第2の順序に従った前記差分値算出部の差分値算出動作を終了させる算出動作制御部と、を備えることを特徴とする検査装置。
An inspection device for inspecting the presence or absence of a defect in an inspection object,
A reference image storage unit that stores in advance a reference image representing a state in which there is no defect in the inspection object, which is a reference for inspecting the presence or absence of the defect in the inspection object;
An imaging unit that images the object to be inspected and obtains an image for inspection;
An inspection image attention pixel selection unit that selects one inspection image attention pixel from a pixel constituting the inspection image in accordance with a predetermined first order;
A reference image attention pixel selection unit that selects a reference image attention pixel corresponding to the inspection image attention pixel from pixels constituting the reference image;
A peripheral pixel group extraction unit that extracts a peripheral pixel group composed of pixels located within a predetermined range around the reference image target pixel among the pixels constituting the reference image;
A difference value calculation unit that calculates a difference value between luminance values of the reference image target pixel and the peripheral pixel group with respect to a luminance value of the inspection image target pixel according to a predetermined second order;
A determination unit that determines whether or not an absolute value of the difference value is equal to or less than a predetermined threshold every time the difference value is calculated according to the second order by the difference value calculation unit;
A calculation operation control unit that controls a difference value calculation operation of the difference value calculation unit, and when the determination unit determines that the absolute value of the difference value is equal to or less than the threshold value, An inspection apparatus comprising: a calculation operation control unit that terminates the difference value calculation operation of the difference value calculation unit according to the second order.
前記差分値算出部は、前記差分値として、正負の符号付きの差分値を算出するように構成され、
前記判定部は、前記差分値算出部が前記閾値よりも大きい絶対値の第1の差分値を算出した後に、該第1の差分値と正負の符号が異なる第2の差分値を算出した場合に、前記検査用画像注目画素が正常画素であると判定することを特徴とする請求項1に記載の検査装置。
The difference value calculation unit is configured to calculate a difference value with a positive / negative sign as the difference value,
The determination unit calculates a second difference value having a positive / negative sign different from the first difference value after the difference value calculation unit calculates a first difference value having an absolute value larger than the threshold value. 2. The inspection apparatus according to claim 1, wherein the inspection image target pixel is determined to be a normal pixel.
請求項1に記載の検査装置によって実行される、被検査体の欠陥の有無を検査するための検査方法であって、
基準画像記憶部が、被検査体の欠陥の有無を検査する基準となる、被検査体の欠陥が無い状態を表す基準画像を予め記憶する基準画像記憶ステップと、
撮像部が、被検査体を撮像し、検査用画像を取得する撮像ステップと、
検査用画像注目画素選択部が、前記検査用画像を構成する画素から、予め定める第1の順序に従って1つの検査用画像注目画素を選択する検査用画像注目画素選択ステップと、
基準画像注目画素選択部が、前記基準画像を構成する画素から、前記検査用画像注目画素に対応する基準画像注目画素を選択する基準画像注目画素選択ステップと、
周辺画素群抽出部が、前記基準画像を構成する画素のうち、前記基準画像注目画素の周囲の所定範囲内に位置する画素からなる周辺画素群を抽出する周辺画素群抽出ステップと、
差分値算出部が、前記検査用画像注目画素の輝度値に対する、前記基準画像注目画素および前記周辺画素群の各画素の輝度値の差分値を、予め定める第2の順序に従って算出する差分値算出ステップと、
判定部が、前記差分値算出部によって前記第2の順序に従って前記差分値が算出されるごとに、前記差分値の絶対値が、予め定める閾値以下であるか否かを判定する判定ステップと、
算出動作制御部が、前記差分値算出部の差分値算出動作を制御する算出動作制御ステップであって、前記判定部によって前記差分値の絶対値が前記閾値以下であると判定されたときには、前記検査用画像注目画素に対する、前記第2の順序に従った前記差分値算出部の差分値算出動作を終了させる算出動作制御ステップと、を含むことを特徴とする検査方法。
An inspection method for inspecting the presence or absence of a defect in an object to be inspected, executed by the inspection apparatus according to claim 1,
A reference image storage step in which a reference image storage unit stores in advance a reference image representing a state in which there is no defect in the inspection object, which serves as a reference for inspecting the presence or absence of a defect in the inspection object;
An imaging step in which the imaging unit images the object to be inspected and obtains an image for inspection;
An inspection image attention pixel selection step in which an inspection image attention pixel selection unit selects one inspection image attention pixel from a pixel constituting the inspection image according to a predetermined first order;
A reference image attention pixel selection step in which a reference image attention pixel selection unit selects a reference image attention pixel corresponding to the inspection image attention pixel from pixels constituting the reference image;
A peripheral pixel group extracting unit that extracts a peripheral pixel group composed of pixels located within a predetermined range around the reference image attention pixel among the pixels constituting the reference image; and
The difference value calculation unit calculates a difference value between the luminance values of the reference image attention pixel and the peripheral pixel group with respect to the luminance value of the inspection image attention pixel according to a predetermined second order. Steps,
A determination step of determining whether or not the absolute value of the difference value is equal to or less than a predetermined threshold every time the difference value is calculated according to the second order by the difference value calculation unit;
The calculation operation control unit controls the difference value calculation operation of the difference value calculation unit, and when the determination unit determines that the absolute value of the difference value is equal to or less than the threshold value, And a calculation operation control step of ending the difference value calculation operation of the difference value calculation unit according to the second order for the inspection image attention pixel.
コンピュータに、請求項3に記載の検査方法を実行させるための検査プログラム。   An inspection program for causing a computer to execute the inspection method according to claim 3. 請求項4に記載の検査プログラムを記録したコンピュータ読取り可能な記録媒体。   The computer-readable recording medium which recorded the test | inspection program of Claim 4.
JP2012259052A 2012-11-27 2012-11-27 Inspection device, inspection method, inspection program and recording medium Pending JP2014106109A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2012259052A JP2014106109A (en) 2012-11-27 2012-11-27 Inspection device, inspection method, inspection program and recording medium
PCT/JP2013/080759 WO2014084056A1 (en) 2012-11-27 2013-11-14 Testing device, testing method, testing program, and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012259052A JP2014106109A (en) 2012-11-27 2012-11-27 Inspection device, inspection method, inspection program and recording medium

Publications (1)

Publication Number Publication Date
JP2014106109A true JP2014106109A (en) 2014-06-09

Family

ID=50827701

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012259052A Pending JP2014106109A (en) 2012-11-27 2012-11-27 Inspection device, inspection method, inspection program and recording medium

Country Status (2)

Country Link
JP (1) JP2014106109A (en)
WO (1) WO2014084056A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017107541A (en) * 2015-12-01 2017-06-15 株式会社リコー Information processing apparatus, information processing method, program, and inspection system
CN107918216A (en) * 2017-12-13 2018-04-17 深圳Tcl新技术有限公司 Image Mura defects appraisal procedure, system and readable storage medium storing program for executing

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3706051B2 (en) * 2001-08-13 2005-10-12 大日本スクリーン製造株式会社 Pattern inspection apparatus and method
JP5088165B2 (en) * 2008-02-21 2012-12-05 セイコーエプソン株式会社 Defect detection method and defect detection apparatus
JP2009293957A (en) * 2008-06-02 2009-12-17 Toshiba Corp Pattern defect inspection apparatus and inspection method
JP5130257B2 (en) * 2009-05-28 2013-01-30 アルプス電気株式会社 Image processing device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017107541A (en) * 2015-12-01 2017-06-15 株式会社リコー Information processing apparatus, information processing method, program, and inspection system
CN107918216A (en) * 2017-12-13 2018-04-17 深圳Tcl新技术有限公司 Image Mura defects appraisal procedure, system and readable storage medium storing program for executing
CN107918216B (en) * 2017-12-13 2021-03-12 深圳Tcl新技术有限公司 Image Mura defect evaluation method and system and readable storage medium

Also Published As

Publication number Publication date
WO2014084056A1 (en) 2014-06-05

Similar Documents

Publication Publication Date Title
JP4160991B2 (en) Linear defect detection apparatus and semiconductor substrate manufacturing apparatus, linear defect detection method and semiconductor substrate manufacturing method, computer connected to the detection apparatus or ...
US9454824B2 (en) Pattern processing device, pattern processing method, and pattern processing program
JP2011097251A (en) Image processor, image processing method, image processing program, and recording medium with image processing program recorded thereon
JP2008170325A (en) Stain flaw detection method and stain flaw detection device
JP2007285754A (en) Flaw detection method and flaw detector
JP4906128B2 (en) Camera unit inspection apparatus and camera unit inspection method
CN110838099A (en) Foreign matter detection method, device and system and terminal equipment
CN113785181A (en) OLED screen point defect judgment method and device, storage medium and electronic equipment
CN110876053A (en) Image processing device, driving support system, and recording medium
JP4275149B2 (en) Boundary position determination apparatus, method for determining boundary position, program for causing computer to function as the apparatus, and recording medium
WO2006006525A1 (en) Image processing device and method
US9785839B2 (en) Technique for combining an image and marker without incongruity
WO2014084056A1 (en) Testing device, testing method, testing program, and recording medium
JP2006098217A (en) Image inspection apparatus, image inspection method, and image inspection program
JP2005345290A (en) Streak-like flaw detecting method and streak-like flaw detector
JP2008160635A (en) Camera state detection method
JP2008171142A (en) Spot defect detection method and device
JP2007285868A (en) Luminance gradient detection method, flaw detection method, luminance gradient detector and flaw detector
JP2009157701A (en) Method and unit for image processing
JP2008185395A (en) Mounting substrate visual inspection method
JP6184746B2 (en) Defect detection apparatus, defect correction apparatus, and defect detection method
JP2006250536A (en) Pattern recognition device and pattern recognition method
JP2021155986A (en) Mounting pipe detection device and mounting pipe detection method
JP2009150656A (en) Method and device for pattern inspection
JP2006145228A (en) Unevenness defect detecting method and unevenness defect detector