WO2014084056A1 - Testing device, testing method, testing program, and recording medium - Google Patents

Testing device, testing method, testing program, and recording medium Download PDF

Info

Publication number
WO2014084056A1
WO2014084056A1 PCT/JP2013/080759 JP2013080759W WO2014084056A1 WO 2014084056 A1 WO2014084056 A1 WO 2014084056A1 JP 2013080759 W JP2013080759 W JP 2013080759W WO 2014084056 A1 WO2014084056 A1 WO 2014084056A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
inspection
difference value
unit
reference image
Prior art date
Application number
PCT/JP2013/080759
Other languages
French (fr)
Japanese (ja)
Inventor
中村 圭介
正和 柳瀬
Original Assignee
シャープ株式会社
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 シャープ株式会社 filed Critical シャープ株式会社
Publication of WO2014084056A1 publication Critical patent/WO2014084056A1/en

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

Definitions

  • 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 a defect on an inspection object.
  • 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.
  • 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.
  • 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.
  • circuit boards which are examples of inspected objects, have been increasingly miniaturized circuit patterns.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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
  • 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.
  • 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
  • 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,
  • the present invention is an inspection program for causing a computer to execute the inspection method.
  • the present invention is a computer-readable recording medium on which the inspection program is recorded.
  • 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.
  • the reference image storage unit stores in advance a reference image representing a state where there is no defect of the object to be inspected.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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
  • 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 calculation operation control step executed by the calculation operation control unit.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the transport unit 4 is a part for moving the inspection subject W 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.
  • 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.
  • 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 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 stage moving mechanism 42 is a mechanism for moving the stage 41 by transmitting the driving force from the drive control device 44 to the stage 41, and is composed of, for example, a motor provided on each XY ⁇ axis of the stage 41.
  • the imaging unit 1 captures an inspected object W and acquires an inspection image.
  • 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.
  • 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.
  • PC personal computer
  • 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.
  • the inspection image correction unit 211 performs deformation processing such as movement and rotation on the inspection image in order to correct a positional shift of the inspection image acquired by the imaging unit 1 with respect to the reference image.
  • 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 according to 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.
  • the pixel selection unit 212 starts from the pixel having the coordinate value (0, 0) as the starting point, and (0, 0), (1, 0), (2, 0)... (Xn ⁇ 3, 0) (Xn ⁇ 2, 0) ), (Xn ⁇ 1,0) in order, select the inspection pixel of interest pixel by pixel, and then the coordinate value (0,1), (1,1), (1, 2,1)...
  • (Xn-3,1), (Xn-2,1), and (Xn-1,1) are selected pixel by pixel in the order of inspection, and (0, Yn) in the same manner.
  • 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 a reference image stored in advance in a reference image storage unit 221 described later.
  • each pixel constituting the reference image has a coordinate value representing a position in the reference image.
  • 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.
  • the peripheral pixel group extraction unit 214 extracts a peripheral pixel group composed of a plurality of pixels located within a predetermined range around the reference image attention 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.
  • 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.
  • 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)...
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • the reference image storage unit 221 stores in advance a reference image, which is an image representing a state in which the object W is not defective.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • 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.
  • FIGS. 3A, 3B, 4A, 4B, 5A, and 5B are diagrams for explaining operations of the inspection image attention pixel selection unit 212, the reference image attention pixel selection unit 213, and the peripheral pixel group extraction unit 214.
  • 4A, 4B, 5A, and 5B are diagrams for explaining the determination operation of the determination unit 216.
  • FIG. 1
  • step s1 corresponding to the reference image storage step the reference image storage unit 221 stores the reference image in advance.
  • 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.
  • 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.
  • step s4 the image comparison unit 21 reads out and acquires the reference image stored in the reference image storage unit 221 from the reference image storage unit 221.
  • 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.
  • step s6 corresponding to the inspection image attention pixel selection step, as shown in FIG. 3A, the inspection image attention pixel selection unit 212 performs first predetermined from each pixel constituting the inspection image G1.
  • the inspection image attention pixel G11 is selected pixel by pixel according to the order.
  • 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.
  • 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.
  • 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.
  • 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.
  • step s10 corresponding to the reference image attention pixel selection step, as shown in FIG. 3B, the reference image attention pixel selection unit 213 selects the inspection image attention pixel G11 selected by the inspection image attention pixel selection unit 212. A pixel having the same coordinate value is selected as the reference image attention pixel G21.
  • step s11 corresponding to the peripheral pixel group extraction step as shown in FIG. 3B, the peripheral pixel group extraction unit 214 is within a predetermined range around the reference image attention pixel G21 among the pixels of the reference image G2.
  • a peripheral pixel group G24 composed of a plurality of pixels located at is extracted.
  • 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.
  • 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).
  • 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.
  • 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.
  • the difference value calculation unit 215 calculates a difference value with a positive / negative sign as the difference value.
  • step s14 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 FIGS. 4A and 4B.
  • FIG. 4A 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 area A1 surrounded by the broken line represents the difference value. Indicates a range of luminance values whose absolute value is less than or equal to a threshold value.
  • FIG. 4B illustrates the reference image attention pixel G21 selected by the reference image attention pixel selection unit 213 and the surrounding pixel group G24 extracted by the surrounding pixel group extraction unit 214 among the pixels constituting the reference image G2.
  • the luminance value of the pixel 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 a broken line represents a luminance value range in which the absolute value of the difference value is less than or equal to the threshold value. Show.
  • the difference value calculation unit 215 selects one pixel at a time in order from the pixel with the smallest X coordinate value in the positive direction of the X coordinate from among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. Then, the 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, the difference value calculation unit 215 selects one pixel at a time in order from the pixel with the smallest X coordinate value in the positive direction of the X coordinate from among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. Then, the 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
  • 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 is a normal pixel. It is determined that
  • step s14 when the determination unit 216 determines that the absolute value of the difference value is equal to or less than the threshold value, the process proceeds to step s15, and when it is determined that the absolute value of the difference value is not equal to or less than the threshold value, the process proceeds to step s17.
  • 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.
  • 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.
  • the difference value calculation unit 215 controlled by the calculation operation control unit 217 includes a pixel selected from the peripheral pixel group G24 having the smallest selected X coordinate value and the inspection image attention pixel G11. After the difference value is calculated, the difference value calculation operation is not performed.
  • 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.
  • 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.
  • 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.
  • 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.
  • FIGS. 5A and 5B The determination operation by the determination unit 216 will be described with reference to FIGS. 5A and 5B.
  • FIG. 5A 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 area A1 surrounded by the broken line is the difference value.
  • FIG. 5B illustrates the reference image attention pixel G21 selected by the reference image attention pixel selection unit 213 and the surrounding pixel group G24 extracted by the surrounding pixel group extraction unit 214 among the pixels constituting the reference image G2.
  • the pixel luminance values are graphed with the horizontal axis representing the X coordinate value and the vertical axis representing the luminance value, and a region A1 surrounded by a broken line indicates a range of luminance values in which the absolute value of the difference value is equal to or less than a threshold value.
  • the difference value calculation unit 215 selects one pixel at a time in order from the pixel with the smallest X coordinate value in the positive direction of the X coordinate from among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. Then, the 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.
  • 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 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.
  • step s15 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.
  • 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.
  • 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.
  • 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.
  • the determination unit 216 performs the second operation.
  • the difference value calculation operation of the difference value calculation unit 215 for one inspection image attention pixel G11 is terminated, thereby inspecting the object to be inspected. It can suppress that the processing time of the defect inspection which inspects the presence or absence of the defect of W becomes too long.
  • the inspection program that causes the image comparison unit 21 and the storage unit 22 in the image processing apparatus 2 of the inspection device 100 to function is a program that causes a computer including the image comparison unit 21 and the storage unit 22 to function as the inspection device 100.
  • This inspection program can be recorded on a conventionally known computer-readable recording medium.
  • a 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.
  • program codes execution format program, intermediate code program, source program, etc.
  • the recording medium may be a memory for processing by the microcomputer, 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.
  • a program medium such as a ROM (Read Only Memory)
  • ROM Read Only Memory
  • 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.
  • 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). ), MO (Magneto Optical Disc), MD (Mini Disc), DVD (Digital Versatile Disc) and other optical disc systems, IC (Integrated Circuit) cards (including memory cards), optical cards and other card systems, or mask ROM, It may be a medium carrying a fixed inspection program including semiconductor memory such as EPROM (Erasable Programmable Read Only Memory), EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory), flash ROM or the like.
  • a tape system such as a magnetic tape and a cassette tape
  • a magnetic disk such as a flexible disk and a hard disk
  • CD-ROM Compact Disc-Read Only Memory
  • MO Magnetic Optical Disc
  • MD Mini Disc
  • DVD Digital
  • the recording medium may be a medium that dynamically carries the program code so as to download the program code from the communication network.
  • 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.
  • 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.
  • the inspection apparatus 100 has been described as an apparatus for inspecting the presence or 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.
  • 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.

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

This testing device is capable of precisely testing for the presence of a defect and of preventing processing time from being too long for defect testing that tests for the presence of defects in a test body. A testing device (100) tests for the presence of defects in a test body by comparing a test image acquired by an imaging unit (1) and a reference image stored, in advance, in a reference image storage unit (221). A determining unit (216) determines whether a pixel of interest in the test image is a normal pixel, using a pixel of interest in the reference image and each pixel in the surround pixel group as candidates for pixels for comparison to a single pixel of interest in the test image. A calculation operation control unit (217) terminates the differential value calculation operation of a differential value calculating unit (215) for the single pixel of interest in the test image when the determining unit (216) determines that the pixel of interest in the test image is a normal pixel.

Description

検査装置、検査方法、検査プログラムおよび記録媒体Inspection device, inspection method, inspection program, and recording medium
 本発明は、被検査体の欠陥の有無を検査するための検査装置、検査方法、検査プログラム、および該検査プログラムを記録した記録媒体に関する。 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 a defect 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 boards, which are examples of inspected objects, 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 the 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 preferable to determine 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.
 また本発明は、コンピュータに、前記検査方法を実行させるための検査プログラムである。 Further, the present invention is an inspection program for causing a computer to execute the inspection method.
 また本発明は、前記検査プログラムを記録したコンピュータ読取り可能な記録媒体である。 Further, the present invention is 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 where there is no defect of the object to be inspected. 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.
 また本発明によれば、記録媒体は、前記検査プログラムを記録したコンピュータ読取り可能なものである。そのため、記録媒体から読み出された検査プログラムによって、前記検査装置をコンピュータ上に実現することができる。 Further, 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の構成を示すブロック図である。 検査装置100によって実行される検査方法を示すフローチャートである。 検査装置100によって実行される検査方法を示すフローチャートである。 検査用画像注目画素選択部212、基準画像注目画素選択部213および周辺画素群抽出部214の動作を説明するための図である。 検査用画像注目画素選択部212、基準画像注目画素選択部213および周辺画素群抽出部214の動作を説明するための図である。 判定部216の判定動作を説明するための図である。 判定部216の判定動作を説明するための図である。 判定部216の判定動作を説明するための図である。 判定部216の判定動作を説明するための図である。
Objects, features, and advantages of the present invention will become more apparent from the following detailed description and drawings.
It is a block diagram which shows the structure of the test | inspection apparatus 100 which concerns on 1st Embodiment of this invention. 3 is a flowchart showing an inspection method executed by the inspection apparatus 100. 3 is a flowchart showing an inspection method executed by the inspection apparatus 100. 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. 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. It is a figure for demonstrating the determination operation | movement of the determination part. It is a figure for demonstrating the determination operation | movement of the determination part. It is a figure for demonstrating the determination operation | movement of the determination part. 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とを備える。
Preferred embodiments of the present invention will be described below in detail with reference to the drawings.
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 inspection subject W 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 for moving the stage 41 by transmitting the driving force from the drive control device 44 to the stage 41, and is composed of, for example, a motor provided on each XYθ axis 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 and acquires an inspection image. 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 a positional shift 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 according to 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 the pixel having the coordinate value (0, 0) as the starting point, and (0, 0), (1, 0), (2, 0)... (Xn−3, 0) (Xn−2, 0) ), (Xn−1,0) in order, select the inspection pixel of interest pixel by pixel, and then the coordinate value (0,1), (1,1), (1, 2,1)... (Xn-3,1), (Xn-2,1), and (Xn-1,1) are selected pixel by pixel in the order of inspection, 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) Inspection image one pixel at a time in order To select a pixel of interest.
 基準画像注目画素選択部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 a 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 composed of a plurality of pixels located within a predetermined range around the reference image attention 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, which is an image representing a state in which the object W is not defective. 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によって実行される検査方法については、図3A,3B,4A,4B,5A,5Bを参照しながら説明する。図3Aおよび図3Bは、検査用画像注目画素選択部212、基準画像注目画素選択部213および周辺画素群抽出部214の動作を説明するための図である。図4A、図4B、図5Aおよび図5Bは、判定部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. 3A, 3B, 4A, 4B, 5A, and 5B. 3A and 3B are diagrams for explaining operations of the inspection image attention pixel selection unit 212, the reference image attention pixel selection unit 213, and the peripheral pixel group extraction unit 214. 4A, 4B, 5A, and 5B 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 out 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は、図3Aに示すように、検査用画像G1を構成する各画素から、予め定める第1の順序に従って一画素ずつ検査用画像注目画素G11を選択する。 Next, in step s6 corresponding to the inspection image attention pixel selection step, as shown in FIG. 3A, the inspection image attention pixel selection unit 212 performs first predetermined from each pixel constituting the inspection image G1. The inspection image attention pixel G11 is selected pixel by pixel according to the 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は、図3Bに示すように、検査用画像注目画素選択部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, as shown in FIG. 3B, the reference image attention pixel selection unit 213 selects the inspection image attention pixel G11 selected by the inspection image attention pixel selection unit 212. A pixel having the same coordinate value is selected as the reference image attention pixel G21.
 次に、周辺画素群抽出ステップに相当するステップs11では、周辺画素群抽出部214は、図3Bに示すように、基準画像G2の各画素のうち、基準画像注目画素G21の周囲の所定範囲内に位置する複数の画素からなる周辺画素群G24を抽出する。 Next, in step s11 corresponding to the peripheral pixel group extraction step, as shown in FIG. 3B, the peripheral pixel group extraction unit 214 is within a predetermined range around the reference image attention pixel G21 among the pixels of the reference image G2. A peripheral pixel group G24 composed of a plurality of pixels located at 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による判定動作について、図4Aおよび図4Bを用いて説明する。図4Aは、検査用画像G1を構成する各画素の輝度値について、横軸をX座標値、縦軸を輝度値としてグラフ化して示したものであり、破線で囲まれる領域A1は、差分値の絶対値が閾値以下の輝度値の範囲を示す。また、図4Bは、基準画像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 FIGS. 4A and 4B. FIG. 4A 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 area A1 surrounded by the broken line represents the difference value. Indicates a range of luminance values whose absolute value is less than or equal to a threshold value. 4B illustrates the reference image attention pixel G21 selected by the reference image attention pixel selection unit 213 and the surrounding pixel group G24 extracted by the surrounding pixel group extraction unit 214 among the pixels constituting the reference image G2. The luminance value of the pixel 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 a broken line represents a luminance value range in which the absolute value of the difference value is less than or equal to the threshold value. Show.
 なお、図4Bにおいて、差分値算出部215は、基準画像注目画素G21および周辺画素群G24の各画素の中から、X座標値が最小の画素からX座標の正方向に順番に一画素ずつ選択して、その選択した画素と検査用画像注目画素G11との差分値を算出することとする。したがって、判定部216は、差分値算出部215によって前記の順序で算出された差分値を用いて検査用画像注目画素G11が正常画素であるか否かを判定することになる。図4Bにおいては、基準画像注目画素G21および周辺画素群G24の各画素の中から、差分値算出部215が1番目に選択したX座標値が最小の周辺画素群G24の一画素と、検査用画像注目画素G11との差分値を差分値算出部215が算出すると、判定部216は、差分値の絶対値が閾値以下であると判定し、その時点で、検査用画像注目画素G11が正常画素であると判定する。 In FIG. 4B, the difference value calculation unit 215 selects one pixel at a time in order from the pixel with the smallest X coordinate value in the positive direction of the X coordinate from among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. Then, the 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 attention pixel G21 and the peripheral pixel group G24, When the difference value calculation unit 215 calculates the difference value from the 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 is a normal pixel. It is determined that
 ステップs14において判定部216が、差分値の絶対値が閾値以下であると判定した場合にはステップs15に進み、差分値の絶対値が閾値以下ではないと判定した場合にはステップs17に進む。 In step s14, when the determination unit 216 determines that the absolute value of the difference value is equal to or less than the threshold value, the process proceeds to step s15, and when it is determined 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に戻る。図4Bの例では、算出動作制御部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 a pixel selected from the peripheral pixel group G24 having the smallest selected X coordinate value and the inspection image attention pixel G11. After the difference value 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による判定動作について、図5Aおよび図5Bを用いて説明する。図5Aは、検査用画像G1を構成する各画素の輝度値について、横軸をX座標値、縦軸を輝度値としてグラフ化して示したものであり、破線で囲まれる領域A1は差分値の絶対値が閾値以下の輝度値の範囲を示す。また、図5Bは、基準画像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 FIGS. 5A and 5B. FIG. 5A 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 area A1 surrounded by the broken line is the difference value. This indicates a range of luminance values whose absolute value is equal to or less than a threshold value. FIG. 5B illustrates the reference image attention pixel G21 selected by the reference image attention pixel selection unit 213 and the surrounding pixel group G24 extracted by the surrounding pixel group extraction unit 214 among the pixels constituting the reference image G2. The pixel luminance values are graphed with the horizontal axis representing the X coordinate value and the vertical axis representing the luminance value, and a region A1 surrounded by a broken line indicates a range of luminance values in which the absolute value of the difference value is equal to or less than a threshold value. .
 なお、図5Bにおいて、差分値算出部215は、基準画像注目画素G21および周辺画素群G24の各画素の中から、X座標値が最小の画素からX座標の正方向に順番に一画素ずつ選択して、その選択した画素と検査用画像注目画素G11との差分値を算出することとする。したがって、判定部216は、差分値算出部215によって前記の順序で算出された差分値を用いて、差分値算出部215によって算出された第2の差分値が、第1の差分値と正負の符号が異なるか否かを判定することになる。 In FIG. 5B, the difference value calculation unit 215 selects one pixel at a time in order from the pixel with the smallest X coordinate value in the positive direction of the X coordinate from among the pixels of the reference image attention pixel G21 and the peripheral pixel group G24. Then, the 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の差分値と正負の符号が異なると判定された場合には、図5Aおよび図5Bに示すように、検査用画像G1における検査用画像注目画素G11の近傍に位置する画素が、輝度値が急激に変化するエッジ候補画素である。エッジ候補画素とは、被検査体Wに形成される回路パターンや被検査体Wの縁端部のエッジ部分に対応する、検査用画像G1の画素である。 When 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 FIGS. 5A and 5B, 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 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.
 図5Aおよび図5Bに示すように、検査用画像G1における検査用画像注目画素G11の近傍に位置する画素が、輝度値が急激に変化するエッジ候補画素である場合において、判定部216によって第2の差分値が第1の差分値と正負の符号が異なると判定されたときに、1つの検査用画像注目画素G11に対する差分値算出部215の差分値算出動作を終了させることによって、被検査体Wの欠陥の有無を検査する欠陥検査の処理時間が長くなりすぎるのを抑制することができる。 As shown in FIGS. 5A and 5B, 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 operation. When it is determined that the first difference value is different in sign from the first difference value, the difference value calculation operation of the difference value calculation unit 215 for one inspection image attention pixel G11 is terminated, thereby inspecting the object to be inspected. It can suppress that the processing time of the defect inspection which inspects the presence or absence of the defect of W 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 device 100 to function is a program that causes a computer including the image comparison unit 21 and the storage unit 22 to function as the inspection device 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 processing by the microcomputer, 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). ), MO (Magneto Optical Disc), MD (Mini Disc), DVD (Digital Versatile Disc) and other optical disc systems, IC (Integrated Circuit) cards (including memory cards), optical cards and other card systems, or mask ROM, It may be a medium carrying a fixed inspection program including semiconductor memory such as EPROM (Erasable Programmable Read Only Memory), EEPROM (registered trademark) (Electrically Erasable Programmable Read Only Memory), flash ROM or the like.
 また、コンピュータが、インターネットを含む通信ネットワークを接続可能なシステム構成であれば、記録媒体は、通信ネットワークからプログラムコードをダウンロードするように、流動的にプログラムコードを担持する媒体であってもよい。なお、このように通信ネットワークから検査プログラムをダウンロードする場合には、そのダウンロード用のプログラムは予め本体装置に格納しておくか、または他の記録媒体からインストールしておく。また、前記検査プログラムは、前記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。 Further, 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 or 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.
 本発明は、その精神または主要な特徴から逸脱することなく、他のいろいろな形態で実施できる。したがって、前述の実施形態はあらゆる点で単なる例示に過ぎず、本発明の範囲は請求の範囲に示すものであって、明細書本文には何ら拘束されない。さらに、請求の範囲に属する変形や変更は全て本発明の範囲内のものである。 The present invention can be implemented in various other forms without departing from the spirit or main features thereof. Therefore, the above-described embodiment is merely an example in all points, and the scope of the present invention is shown in the scope of claims, and is not restricted by the text of the specification. Further, all modifications and changes belonging to the claims are within the scope of the present invention.
 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の順序に従って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.
  2.  前記差分値算出部は、前記差分値として、正負の符号付きの差分値を算出するように構成され、
     前記判定部は、前記差分値算出部が前記閾値よりも大きい絶対値の第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.
  3.  請求項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.
  4.  コンピュータに、請求項3に記載の検査方法を実行させるための検査プログラム。 An inspection program for causing a computer to execute the inspection method according to claim 3.
  5.  請求項4に記載の検査プログラムを記録したコンピュータ読取り可能な記録媒体。 A computer-readable recording medium on which the inspection program according to claim 4 is recorded.
PCT/JP2013/080759 2012-11-27 2013-11-14 Testing device, testing method, testing program, and recording medium WO2014084056A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2014084056A1 true WO2014084056A1 (en) 2014-06-05

Family

ID=50827701

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6794737B2 (en) * 2015-12-01 2020-12-02 株式会社リコー Information processing equipment, information processing methods, programs and inspection systems
CN107918216B (en) * 2017-12-13 2021-03-12 深圳Tcl新技术有限公司 Image Mura defect evaluation method and system and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030031356A1 (en) * 2001-08-13 2003-02-13 Dainippon Screen Mfg. Co., Ltd. Pattern inspection apparatus and method
JP2009198290A (en) * 2008-02-21 2009-09-03 Seiko Epson Corp Flaw detection method and detector
JP2009293957A (en) * 2008-06-02 2009-12-17 Toshiba Corp Pattern defect inspection apparatus and inspection method
JP2010276481A (en) * 2009-05-28 2010-12-09 Alps Electric Co Ltd Image processing device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030031356A1 (en) * 2001-08-13 2003-02-13 Dainippon Screen Mfg. Co., Ltd. Pattern inspection apparatus and method
JP2003057019A (en) * 2001-08-13 2003-02-26 Dainippon Screen Mfg Co Ltd Pattern inspection device and inspection method using the same
JP2009198290A (en) * 2008-02-21 2009-09-03 Seiko Epson Corp Flaw detection method and detector
JP2009293957A (en) * 2008-06-02 2009-12-17 Toshiba Corp Pattern defect inspection apparatus and inspection method
JP2010276481A (en) * 2009-05-28 2010-12-09 Alps Electric Co Ltd Image processing device

Also Published As

Publication number Publication date
JP2014106109A (en) 2014-06-09

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 ...
JP2008170325A (en) Stain flaw detection method and stain flaw detection device
US9123123B2 (en) Pattern processing device, pattern processing method, and pattern processing program
JP2007285754A (en) Flaw detection method and flaw detector
JP4275149B2 (en) Boundary position determination apparatus, method for determining boundary position, program for causing computer to function as the apparatus, and recording medium
US11321811B2 (en) Imaging apparatus and driving method of the same
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
JP2006258713A (en) Method and apparatus for detecting stain defect
JP2008160635A (en) Camera state detection method
JP4520880B2 (en) Blot inspection method and blot inspection apparatus
JP6184746B2 (en) Defect detection apparatus, defect correction apparatus, and defect detection method
JP4635651B2 (en) Pattern recognition apparatus and pattern recognition method
JP2008171142A (en) Spot defect detection method and device
JP2007285868A (en) Luminance gradient detection method, flaw detection method, luminance gradient detector and flaw detector
JP5239275B2 (en) Defect detection method and defect detection apparatus
JP2006145228A (en) Unevenness defect detecting method and unevenness defect detector
JP2009150656A (en) Method and device for pattern inspection
JP4372660B2 (en) Image determination method and image processing apparatus
JP4327653B2 (en) Image processing method, image processing apparatus, image processing program, and recording medium on which image processing program is recorded
JP2007285753A (en) Flaw detection method and flaw detector
JP2007048194A (en) Image processing method and image processor
US20210035275A1 (en) Spot detection device, spot detection method, and display device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13858905

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13858905

Country of ref document: EP

Kind code of ref document: A1