1. Field of the Invention
The present invention relates to a technique for extracting a specific area from an image representing a geometric pattern including wires (traces) formed on a substrate and a technique for detecting a defect in a pattern by using this extraction technique.
2. Description of the Background Art
In a field of inspecting a pattern including wires (traces) formed on a printed circuit board, a semiconductor substrate, a glass substrate or the like (hereinafter, referred to as “substrate”), a variety of inspection methods have been conventionally used. Japanese Patent Application Laid Open Gazette No. 2002-372502 (Document 1), for example, discloses a technique where an inspection image is divided into a plurality of divided areas and if a divided area includes a plurality of circuit elements, the defect detection sensitivity for the divided area is set higher.
Japanese Patent Application Laid Open Gazette No. 2002-259967 (Document 2) discloses a technique where in a predetermined color space, angle indices in accordance with angles between individual color vectors representing colors of pixels in a color image to be divided and respective representative color vectors of a plurality of representative colors which are set and distance indices in accordance with distances between the colors of the pixels in the image and the respective representative colors are obtained, and the pixels in the image are grouped into a plurality of representative colors in accordance with composite distance indices based on the angle indices and the distance indices, to thereby divide the color image.
In the technique of Document 1, even if there is a fine pattern in only part of a divided area, a high defect detection sensitivity is set for the whole area and this often causes misdetection where even a very small defect which does not need to be detected is determined as a defect. When one pixel is assumed to be one divided area, even if the defect detection sensitivity for a divided area having no wire area is set in accordance with fineness of its closest wire area as disclosed in Document 1, when the divided area and the closest wire area are located away from each other at a certain distance or more, an unnecessarily high defect detection sensitivity is sometimes set. On the other hand, in some cases, depending on patterns, particularly high defect detection sensitivity should be set for an area surrounding wires.
The present invention is intended for a defect detection apparatus for detecting a defect in a geometric pattern formed on a substrate. According to a preferable aspect of the present invention, the apparatus comprises an image pickup part for picking up an image of a substrate, an erosion and dilation part for performing an erosion on a specific area having a specific pixel value in one image of an inspection binary image on the basis of an inspection image acquired by the image pickup part and a reference binary image to acquire an eroded image and performing a dilation on the specific area which remains in the eroded image to almost the same degree as the erosion to acquire an eroded and dilated image, a fine pattern area acquisition part for generating a differential image between the eroded and dilated image and the one image as a fine pattern image representing a fine pattern area, a detection sensitivity setting part for setting respective different defect detection sensitivities for the fine pattern area and other area, and a defect detection part for detecting a defect in the inspection image in accordance with the defect detection sensitivities.
In the defect detection apparatus of the present invention, a fine pattern area can be easily extracted, and since the defect detection sensitivity for the fine pattern is set different from that for other area, it is possible to appropriately detect a defect in a pattern on a substrate.
For defect detection with high degree of accuracy, the defect detection apparatus of the present invention further comprises a specific fine pattern area extraction part for acquiring a specific fine pattern area which is used in the detection sensitivity setting part by generating a differential image between two fine pattern images which are generated with the degree of erosion and dilation changed in the erosion and dilation part and the fine pattern area acquisition part.
Preferably, the one image is the inspection binary image, and the fine pattern area acquisition part corrects the fine pattern image by masking the fine pattern image with the reference binary image after the dilation. By generating the fine pattern image from the inspection binary image, it is possible to achieve a defect detection in consideration of a positional difference in a pattern. By using the reference binary image, it is further possible to remove a noise caused by the inspection binary image.
The present invention is also intended for an apparatus for extracting a wire area from an image of a substrate, which uses the function of the defect detection apparatus for generating a fine pattern image.
According to another preferable aspect of the present invention, the defect detection apparatus comprises an image pickup part for picking up an image of a substrate, a dilation part for performing a dilation on a specific area having a specific pixel value in one image of an inspection binary image on the basis of an inspection image acquired by the image pickup part and a reference binary image to acquire a dilated image, a surrounding area acquisition part for generating a differential image between the dilated image and the one image as a surrounding area image representing a surrounding area of the specific area, a detection sensitivity setting part for setting respective different defect detection sensitivities for the surrounding area and the other area, and a defect detection part for detecting a defect in the inspection image in accordance with the defect detection sensitivities.
In this defect detection apparatus of the present invention, a surrounding area can be easily extracted, and since the defect detection sensitivity for the surrounding area is set different from that for other area, it is possible to appropriately detect a defect in a pattern on a substrate.
Preferably, the one image is the inspection binary image, and the surrounding area acquisition part corrects the surrounding area image by masking the surrounding area image with the reference binary image after the dilation. It is thereby possible to achieve a defect detection in consideration of a positional difference in a pattern, and by using the reference binary image, it is further possible to remove a noise caused by the inspection binary image.
Preferably, the substrate is a wiring board and the specific area is an area in the inspection binary image which has the same pixel value as a pixel value corresponding to a wire area. For defect detection with high degree of accuracy, the defect detection apparatus of the present invention further comprises an erosion and dilation part for performing an erosion on a background area having a pixel value corresponding to a background in one image of the inspection binary image and the reference binary image to acquire an eroded image and performing a dilation on the background area which remains in the eroded image to almost the same degree as the erosion to acquire an eroded and dilated image, and a fine background area acquisition part for generating a differential image between the eroded and dilated image and the one image as a fine background image representing a fine background area to separate the fine background area from the surrounding area, and in the defect detection apparatus, the detection sensitivity setting part sets a defect detection sensitivity for the fine background area which is different from that for the surrounding area.
It is thereby possible to detect a defect, with the fine background area separated from the surrounding area, with high degree of accuracy.
The present invention is further intended for a defect detection method for detecting a defect in a geometric pattern formed on a substrate and a wire area extraction method for extracting a wire area from an object image representing a geometric pattern including wires formed on a substrate.
These and other objects, features, aspects and advantages of the present invention will become more apparent from the following detailed description of the present invention when taken in conjunction with the accompanying drawings.
The stage part 2 has a transmitting illumination part 20 for emitting white light towards a lower main surface of the substrate 9 which is the opposite side of an upper surface facing the image pickup part 3. The image pickup part 3 has a lighting part 31 for emitting illumination light, an optical system 32 for guiding the illumination light to the substrate 9 and receiving light from the substrate 9 and an image pickup device 33 for converting an image of the substrate 9 formed by the optical system 32 into an electrical signal. The image pickup device 33 outputs data of inspection color image. The stage driving part 21 has an X-direction moving mechanism 22 for moving the stage part 2 in the X direction of
The defect detection apparatus 1 further comprises a reference image memory 41 for storing a reference color image prepared in advance and a preprocessor 42 for acquiring specific areas in the reference color image which correspond to specific portions on the substrate 9, such as a resist area and a through hole area as discussed later, a binary image generation part 43 for binarizing the reference color image to generate a reference binary image, an erosion and dilation part 44 for eroding an area having a specific pixel value in the reference binary image and then dilating the area to acquire an eroded and dilated image, a wire area acquisition part 45 for generating a wire image by extraction of areas which correspond to wires on the substrate 9, a detection sensitivity setting part 46 for setting a defect detection sensitivity on the basis of the wire image and a defect detection part 47 for detecting a defect on the substrate 9 in accordance with the defect detection sensitivity which is set.
On the substrate 9, an area other than the area represented by reference numeral 81 in
On the other hand, a plurality of following procedures are performed in parallel with Step S11. The following procedures are performed, actually, by a dedicated electric circuit for each several lines in an image to be processed, but for easy understanding, discussion will be made herein assuming that the procedures are performed on the whole image.
In parallel with image pickup of the substrate 9 by the image pickup part 3, the reference color image representing the same pattern as the inspection area 90 shown in
As one exemplary procedure of the preprocessor 42, for example, a technique disclosed in the above-discussed Document 2 (Japanese Patent Application Laid Open Gazette No. 2002-259967) can be used, and the disclosure of which is herein incorporated by reference. Specifically, in the reference color image, three respective representative colors representing the area coated with the resist (except the through holes 94), the area without resist and portions for the through holes 94 on the substrate 9 are set in advance by an operator, and in a predetermined color space, angle indices in accordance with angles between individual color vectors representing colors of pixels in the reference color image and respective representative color vectors are obtained.
Subsequently, in the color space, distance indices in accordance with distances between the colors of the pixels in the reference color image and the respective representative colors are obtained, and composite distance indices for the respective representative colors are calculated on the basis of the angle indices and the distance indices. Then, in accordance with the composite distance indices, one of the three areas corresponding to the area coated with the resist, the area without resist and the through holes 94 is determined to which each pixel in the reference color image belongs. Thus, the preprocessor 42 acquires a resist area corresponding to the area on the substrate 9 which is coated with the resist, a non-resist area corresponding to the area without resist and through hole areas corresponding to the through holes 94 from the reference color image and outputs the reference color image and information indicating various areas (hereinafter, referred to as “area information”) to the binary image generation part 43. In the preprocessor 42, if possible, a plurality of areas corresponding to each of the conductive portions and the background portion may be acquired, and the specific area may be acquired by performing the binarization on the reference color image a plurality of times with different threshold values.
The binary image generation part 43 acquires a color image representing only the resist area (including the through hole areas) and a color image representing only the non-resist area from the reference color image with the area information. Then, the color images are binarized with different threshold values, and for example, two binary images are generated, for example, where the pixel value “1” is given to a conductive area corresponding to the conductive portion on the substrate 9 and the pixel value “0” is given to a background area corresponding to the background portion (Step S13). At this time, the pixel value “1” is forcedly given to the through hole area, and a binary image representing only the resist area and a binary image representing only the non-resist area are each outputted to the erosion and dilation part 44 as the reference binary images. In the following discussion, the binary image representing only the resist area and the binary image representing only the non-resist area are united as one reference binary image 61 to be used, as shown in
The erosion and dilation part 44 performs an erosion on areas 611 in the reference binary image 61 having the pixel value “1” (which is hatched in
Subsequently, a dilation is performed on the specific areas 611 which remain in the eroded image 62 to almost the same degree as the erosion in the Step S14 (the degree of dilation may be slightly larger than that of erosion), to thereby acquire an eroded and dilated image 63 shown in
The new eroded and dilated image 64 is outputted to the wire area acquisition part 45, and the wire area acquisition part 45 obtains the exclusive OR of a value of each pixel in the eroded and dilated image 64 and a value of the corresponding pixel in the reference binary image 61 by calculation, to thereby generate a differential image 65 shown in
At this time, since the binary image generation part 43 gives the through hole area the same pixel value as that given to the conductive area, the wire area acquisition part 45 substantially regards the area which corresponds to the land portion 95 for the through hole and the through hole 94 on the substrate 9 as a non-wire area and this prevents such a case where when the through hole 94 is formed on the substrate 9 with its position being different, the width of part of the land portion 95 is made narrower and the area which corresponds to the part of the land portion 95 appears in the wire image. It is thereby possible to acquire the wire area 651 which is a fine pattern area with high accuracy without any effect of the through hole area.
The wire image 65 is outputted to the detection sensitivity setting part 46 and respective different defect detection sensitivities are set for the wire area 651 and the other area in the wire image 65 (Step S17). If necessary, a different defect detection sensitivity is also set for the fine wire removed area 641 of
As discussed above, the defect detection apparatus 1 executes Step S11 and Steps S12 to S17 of
The defect detection part 47 generates the inspection binary image from an inspection color image and compares a value of each pixel in the inspection binary image with a value of the corresponding pixel in the reference binary image, to detect defect candidates. The inspection color image may be used as the inspection image without being binarized, and in this case, a differential image between the inspection color image and the reference color image is binarized, to detect defect candidates. An image which is obtained by performing a predetermined processing on the inspection color image may be used as the inspection image (the same applies to the following). Then, it is determined whether the defect candidate is a defect or not with selecting one of the different defect detection sensitivities. One of the different defect detection susitivities is selected with referring whether the position of the defect candidate is included in the resist area or the non-resist area and whether the position is included in the wire area 651, the fine wire removed area 641 or the other area. Thus, the defect detection part 47 detects a defect(s) in the inspection image in accordance with the defect detection sensitivities and outputs a signal R indicating the detection result (Step S18). Though the operation for acquiring the inspection color image and the operation for setting the defect detection sensitivities are performed in parallel in the above case, if the reference color image is acquired in advance by picking up an image of a substrate with no defect or the reference color image is generated on the basis of design data, for example, Steps S12 to S17 of
Thus, in the defect detection apparatus 1 of
In the defect detection apparatus 1, the dilation may be performed on the wire areas 651 in the wire image 65 of
Next, discussion will be made on another exemplary procedure of the defect detection apparatus 1 for detecting a defect(s).
In another exemplary defect detection procedure, another wire image is generated as well as the above-discussed wire image 65. Specifically, in Step S14 of
The specific wire area extraction part 48 generates a differential image between the two wire images 65 and 65a which are generated in the erosion and dilation part 44 and the wire area acquisition part 45 with the degree of erosion and dilation changed, to thereby acquire a wire image 65b representing only the wire area 652 having a specific width, which corresponds to the wire 93 on the substrate 9, as shown in
Thus, in another exemplary defect detection procedure, the specific wire area extraction part 48 acquires the wire area 652 which is a specific fine pattern area used in the detection sensitivity setting part 46. It is therefore possible to detect a defect with high accuracy with respective individual defect detection sensitivities set for the wire areas 651 and 652 having specific widths, which correspond to the wires 92 and 93 on the substrate 9, respectively. A dilation may be performed on the wire area 652 in the wire image 65b of
Next, discussion will be made on still another exemplary procedure of the defect detection apparatus 1 for detecting a defect(s). In this procedure, a wire image is generated on the basis of the inspection color image acquired by the image pickup part 3.
Specifically, as indicated by broken line in
Subsequently, the erosion and the dilation are performed on the specific areas 671 in the inspection binary image 67, to thereby acquire an eroded and dilated image (Steps S14 and S15), and a differential image between the eroded and dilated image and the inspection binary image 67 is generated, to acquire an wire image 68 shown in
The wire area acquisition part 45 prepares the reference binary image after the dilation with a predetermined degree of dilation and obtains the logical product of a value of each pixel in the reference binary image and a value of the corresponding pixel in the wire image 68 by calculation, to thereby generate a wire image 68a having pixel values which are the calculation results as shown in
Thus, in the still another exemplary defect detection procedure, by actually picking up an image of the substrate 9, the wire image 68 is obtained from the inspection binary image 67 on the basis of the acquired inspection color image. Then, the wire image 68 is corrected by using the reference binary image after the dilation and the defect detection sensitivities are set on the basis of the corrected wire image 68a. In the defect detection apparatus 1, since the wire image 68 is generated from the inspection binary image 67, even if there is a positional difference in a pattern due to deformation of the substrate 9 or the like, it is possible to set the defect detection sensitivities through extraction of areas in accordance with the actual pattern and detect a defect in consideration of positional difference in the pattern. With the reference binary image, it is further possible to remove a noise caused by the inspection binary image 67.
In the defect detection apparatus 1a, like in the first preferred embodiment, the reference binary image 61 shown in
The surrounding area acquisition part 50 generates a differential image between the dilated image 71 and the reference binary image 61 by obtaining the exclusive OR of a value of each pixel in the dilated image 71 and a value of the corresponding pixel in the reference binary image 61, to thereby acquire a surrounding area image 72 representing a surrounding area 721 of the specific areas 611 in the reference binary image 61 as shown in
Thus, in the defect detection apparatus 1a of
Next, discussion will be made on another exemplary defect detection procedure in the defect detection apparatus 1a. In another exemplary defect detection procedure, the erosion and dilation part 44 and the fine background area acquisition part 45a of
The erosion and dilation part 44 performs the erosion on a background area (the not-hatched area in
The detection sensitivity setting part 46 sets a defect detection sensitivity for the fine background area which is different from that for the surrounding area (Step S117), and detection of a defect in the inspection image is performed in accordance with the defect detection sensitivity (Step S18). In the defect detection apparatus 1a, it is thereby possible to detect a defect in a pattern including wires formed on the substrate 9 with high accuracy, with the fine background area separated from the surrounding area 721.
Also in the defect detection apparatus 1a of
Though the preferred embodiments of the present invention have been discussed above, the present invention is not limited to the above-discussed preferred embodiments, but allows various variations.
In the first preferred embodiment, for example, there may be a case where the dilation is performed on the background area in the reference binary image 61 and then the erosion is performed thereon to thereby acquire a dilated and eroded image, and the wire image is generated on the basis of the dilated and eroded image. In other words, in the above-discussed preferred embodiment, performing the dilation on the specific area (including the wire area) in the inspection binary image or the reference binary image is equivalent to performing the erosion on the background area, and performing the erosion on the specific area is equivalent to performing the dilation on the background area.
With combination of the procedures of the first preferred embodiment and those of the second preferred embodiment, by acquiring the wire area, the surrounding area and the fine background area, it is possible to achieve a defect detection with higher accuracy.
If it is not necessary to perform the defect detection procedures at a high speed, the whole of, or part of functions of the constituent elements (except the image pickup part 3) for the defect detection procedures may be implemented by software. In the defect detection apparatus, the function of a wire area extraction apparatus for extracting a wire area from an object image may be used for purposes other than defect detection. The substrate 9 on which a pattern to be inspected by the defect detection apparatus is formed may be a wiring board (substrate) such as a semiconductor substrate and a glass substrate, as well as a printed circuit board.
While the invention has been shown and described in detail, the foregoing description is in all aspects illustrative and not restrictive. It is therefore understood that numerous modifications and variations can be devised without departing from the scope of the invention.
This application claims priority benefit under 35 U.S.C. Section 119 of Japanese Patent Application No. 2004-143794 in the Japanese Patent Office on May 13, 2004, the entire disclosure of which is incorporated herein by reference.
Number | Date | Country | Kind |
---|---|---|---|
P2004-143794 | May 2004 | JP | national |