This invention relates generally to a method and a system for detecting a line defect on a surface of an object.
Defect detection on a surface of an object is an important aspect of industrial production quality assurance process which may provide an important guarantee for quality of products. Defects may include line defects on a surface of an object. Methods of line defect detection may include applying edge detection on an image of the surface of the object. However, the edges detected in the image may include a plurality of false detections, such as borders of the image may be detected as true line defects.
Briefly described, aspects of the present invention relate to a method and a system for detecting a line defect on a surface of an object.
According to an aspect, a method for detecting a line defect on a surface of an object is presented. The method comprises supporting the object on a platform. The method comprises illuminating the surface of the object with a plurality of illumination sources comprising at least one ambient illumination source and at least one dark field illumination source. The method comprises capturing images of the surface of the object under illumination conditions with the illumination sources using an imaging device. The method comprises processing the captured images with a plurality of image operations using an image processor to detect areas of potential defects at locations on the surface of the object. The method comprises cutting the areas of the potential defects from the processed images to sub images using the image processor. The method comprises stitching the sub images at same location together to generate a set of hypotheses of the potential defects at the locations on the surface of the object using the image processor. The method comprises classifying the hypotheses in the stitched images with a classifier to determine whether the potential defects are true defects using the image processor. The classifier is trained with training data having characteristics of the true defects. The detected true defects are discrete true defects at the locations on the surface of the object. The method comprises determining whether the discrete true defects consist of a line defect by refining line segments detected on one of the processed image based on a criterion. The method comprises generating an output comprising the line defect on the surface of the object.
According to an aspect, a system for detecting a line defect on a surface of an object is presented. The system comprises a platform for supporting the object. The system comprises a plurality of illumination sources comprising at least one ambient illumination source and at least one dark field illumination source for illuminating the surface of the object. The system comprises an imaging device for capturing images of the surface of the object under illumination conditions with the illumination sources. The system comprises an image processor. The image processor processes the captured images with a plurality of image operations using to detect areas of potential defects at locations on the surface of the object. The image processor cuts the areas of the potential defects from the processed images to sub images. The image processor stitches the sub images at same location together to generate a set of hypotheses of the potential defects at the locations on the surface of the object. The image processor classifies the hypotheses in the stitched images with a classifier to determine whether the potential defects are true defects. The classifier is trained with training data having characteristics of the true defects. The detected true defects are discrete true defects at the locations on the surface of the object. The image processor determines whether the discrete true defects consist of a line defect by refining line segments detected on one of the processed image based on a criterion. The image processor generates an output an output comprising the line defect on the surface of the object.
According to an aspect, a computer program executable in a computer for performing a method of detecting a line defect on a surface of an object is presented. The computer stores images of the surface of the object under illumination conditions with illumination sources comprising at least one ambient illumination source and at least one dark field illumination source. The method comprises step of processing the images with a plurality of image operations to detect areas of potential defects at locations on the surface of the object. The method comprises step of cutting the areas of the potential defects from the processed images to sub images. The method comprises step of stitching the sub images at same location together to generate a set of hypotheses of the potential defects at the locations on the surface of the object. The method comprises step of classifying the hypotheses in the stitched images with a classifier to determine whether the potential defects are true defects. The classifier is trained with training data having characteristics of the true defects. The detected true defects are discrete true defects at the locations on the surface of the object. The method comprises step of determining whether the discrete true defects consist of a line defect by refining line segments detected on one of the processed image based on a criterion. The method comprises step of generating an output comprising the line defect on the surface of the object.
Various aspects and embodiments of the application as described above and hereinafter may not only be used in the combinations explicitly described, but also in other combinations. Modifications will occur to the skilled person upon reading and understanding of the description.
Exemplary embodiments of the application are explained in further detail with respect to the accompanying drawings. In the drawings:
To facilitate understanding, identical reference numerals have been used, where possible, to designate identical elements that are common to the figures.
A detailed description related to aspects of the present invention is described hereafter with respect to the accompanying figures.
The system 100 may include a hood 130 arranged above the platform 120. The hood 130 may have a hollow cone shape. The system 100 may have an imaging device 140. The imaging device 140 may be arranged inside the hood 130. The imaging device 140 may be located at top of the hood 130. The imaging device 140 may include, for example, a camera. The imaging device 140 may include a lens 142. The lens 142 may be arranged at a location relative to the surface 112 of the object 110 such that the imaging device 140 may have a desirable field of view 144 on the surface 112 of the object 110. The imaging device 140 may pan and tilt relative to the surface 112 of the object 110 to achieve a desired field of view 144 on the surface 112 of the object 100. The motor 122 may move the platform 120 along with the object 110 so that the field of view 144 of the imaging device 140 may cover different areas of the surface 112 of the object 110.
The system 100 may have at least one ambient illumination source 150. The ambient illumination source 150 may be arranged inside the hood 130. The ambient illumination source 150 may be located at top of the hood 130. The ambient illumination source 150 may provide an ambient illumination condition at the surface 112 of the object 110. The ambient illumination source 150 may include, for example, a light emitting diode (LED) strobe light. The ambient illumination source 150 may have a ring shape. According to an exemplary embodiment as illustrated in
The system 100 may include at least one dark field illumination source 160. The dark field illumination source 160 may be arranged at bottom of the hood 130. The dark field illumination source 160 may provide a dark field illumination condition on the surface 112 of the object 110. The dark field illumination source 160 may include, for example, a LED strobe light. The dark field illumination source 160 may be oriented at a location relative to the surface 112 of the object 110 such that a dark field illumination condition may be provided within the field of view 144 of the lens 142 at the surface 112 of the object 110. Under a dark field illumination condition, a defect may have a predictable pattern consisting of a bright region that is illuminated by the dark field illumination source 160 and a dark or shadow region that is not illuminated by the dark field illumination source 160.
With reference to
With reference to
The system 100 may include an image processor 180. The image processor 180 may functionally connect to the imaging device 140. The image processor 180 may process the images captured by the imaging device 140 to detect defects on the surface 112 of the object 110. According to an embodiment, the image processor 180 may be a computer having a computer program implemented. According to an embodiment, the trigger controller 170 and the image processor 180 may be integrated parts of one computer. The system 100 may include a display device 190 functionally connected to the imaging processor 180. The display device 190 may display the captured images. The display device 190 may display the processed images. The display device 190 may display an output including information of a detected defect. The display device 190 may be a monitor. The display device 190 may be an integrated part of the imaging processor 180.
According to an embodiment, a shape of a potential defect, such as size or length of the defect, may have a specific and predictable pattern consisting of bright region and shadow region in an image under different configurations of the dark field illumination sources 160.
In step 220, the ambient illumination source 150 and the dark field illumination sources 160 may be triggered by the trigger controller 170 to illuminate the surface 112 of the object 110 with an ambient illumination condition and dark field illumination conditions. The imaging device 140 may be triggered by the trigger controller 170 to capture images of the surface 112 of the object 110 under the ambient illumination condition and the dark field illumination conditions respectively. Each image captures a field of view 144 of the surface 112 of the object 110 under different illumination conditions. Each image may contain potential defects having specific shapes on the surface 112 of the object 100. Shapes of the potential defects have predictable patterns consisting of bright region and shadow region based on configurations of the dark field illumination sources 160.
In step 230, the captured images of the surface 112 of the object 110 are processed by the image processor 180. The processing step 230 may implement a plurality of image operations to the captured images to detect areas of potential defects at locations on the surface 112 of the object 110. A plurality of areas may be detected having potential defects. Each area may have a potential defect. The locations of the plurality of areas may be represented by, such as x, y locations on a plane of the surface 112. The potential defects may be detected by patterns consisting of bright region and shadow region in the processed images. The plurality of image operations may enhance shapes of potential defects and reduce false detection rate.
In step 240, the areas showing the potential defects at locations on the surface 112 of the object 110 are cut off from the processed images to sub images. Size of each area to be cut off may be small enough to detect a micro defect. For example, size of each area may be less than 100 by 100 pixels, depending on resolution of the image. Areas that do not show indications of potential defects may be pruned out and do not need further processing.
In step 250, sub images having potential defects at the same location on the surface 112 of the object 110 are stitched together to generate a set of hypotheses of the potential defects at the locations on the surface 112 of the object 110.
In step 260, the stitched images are classified with a classifier to determine whether the hypotheses of the potential defects are true defects on the surface 112 of the object 110. The classifier may be trained with a training data having characteristics of a true defect. The classification outputs a plurality of discrete true defects at the locations on the surface 112 of the object 110. According to an embodiment, a random forest classifier may be used to classify the potential defects. The random forest classifier may classify hypotheses with high efficiency and scalability in large scale applications.
In step 270, the discrete true defects are determined whether they consist of a line defect on the surface 112 of the object 110 by refining line segments detected on one of the processed images. The line segments are refined based on certain criteria.
Line segments may be detected on one of the processed images by step 242 and step 244. In step 242, edges are detected on one of the processed images by applying edge detection. The edges may be detected, for example, by Canny edge detector. In step 244, line segments may be detected from the edges by applying Hough transform. A probabilistic Hough transform may be used for detecting the line segments.
According to an embodiment, a criterion for refining the line segments may include that a distance from each of the discrete true defects to each of the line segments is less than a threshold value. The threshold value may be, for example, 5 pixels, or 8 pixels, or 10 pixels. The distance may be a perpendicular distance from a center of the discrete true defect to each of the line segments. A criterion for refining the line segments may include that a difference between a slope of each of the discrete true defects and a slope of each of the line segments is less than a threshold value. The threshold value may be, for example, in a range of −7 to 7 degrees, or in a range of −5 to 5 degrees, or in a range of −3 to 3 degrees. The slop of each of the discrete true defects may be obtained by Hough transform. The threshold values for distance and slop may be defined depending on resolution of the image. The line defect is detected by iteratively removing the line segments that do not satisfy the criteria. The line defect may consist of a plurality of connected line segments. The line defect may have a curved line shape.
In step 280, an output is generated. The output may include the detected line defect on the surface 112 of the object 110. The output may be a report form. The output may be an image with the detected true defects marked at the locations. The image may be one of the captured images or one of the processed images. The output may be stored in the imaging processor 180, or displayed on a display device 190, or print out by a printer.
In step 231 of the step 230, convolution operations are implemented to the captured images with corresponding kernels. Convolution operations may filter noises in the captured images. Kernels are defined corresponding to predefined configurations of the dark field illumination sources 160 to enhance detecting a potential defect in the captured images based on a pattern consisting of bright region and shadow region under the predefined configurations of the dark field illumination sources 160. Shape of a potential defect, such as size or length of the potential defect, may have a specific and predictable pattern consisting of bright region and shadow region in an image under different configurations of the dark field illumination sources 160.
Different kernels affect output filtered images. For example, assuming color code as: black=1, white=0, grey=−1, the kernels for the five different images captured with certain predefined configurations of dark field illumination sources 160 may be defined as followings:
The kernels may be redefined to detect potential defects in the captured images once configurations of the dark field illumination sources 160 changes, such as orientation, intensities, etc. The kernels are redefined based on different patterns of potential defects consisting of bright region and shadow region in the captured images under different configurations of the dark field illumination sources 160.
In step 232, dilation operations are implemented to the images filtered by the convolutions. Dilation operations are morphological operations that may probe and expand shapes of potential defects 112 in the filtered images using structuring elements. According to an embodiment, three-by-three flat structuring elements may be used in the dilation operations at step 232.
In step 233, multiply operations are implemented to the convoluted and dilated images. The multiply operations may further filter noises in the images. With reference to
In step 234, median filtering operations are implemented to the multiplied images for further filtering the images. Median filtering operations may preserve potential defects 112 in the image while removing noises. The output images after median filtering operations may be detonated as image_x and image_y and may be output as two output images of imaging processing step 230.
In step 235, a magnitude operation is implemented to the two images image_x and image_y after the median filtering operations. Magnitude operation may maximize signal-to-nose ratio. The output image after magnitude operation is multiplied with image_amb after operations of convolution using kernel_ambx_y and dilation to one image detonated as image_xy.
In step 236, the processed images are output to three processed images of the imaging processing step 230. The three output processed images may include image_x, image_y, and image_xy. The three output processed images are enhanced from the captured images to detect areas of potential defects at locations on the surface 112 of the object 110. Areas of potential defects in each of the three output processed images are cut to sub images in step 240. Image_xy may be used in step 242 for edge detection and followed by line segment detection in step 244.
According to an aspect, the proposed system 100 and method use a plurality of image processing techniques, such as image enhancement, morphological operation and machine learning tools including hypothesis generation and classification to accurately detect and quantify defects on any type of surfaces 112 of any objects 110 without relying on strong assumptions on characteristics of defects. The proposed system 100 and method iteratively prune false defects and detect true defect by focusing on smaller areas on a surface 112 of an object 110. Micro defects may be detected on a surface 112 of an object 110. The micro defects may be a micro crack. The micro defects may be as small as micrometers. The micro defects are further processed to detect significant line defects on a surface 112 of an object 110 by iteratively refining line segments detected on the enhanced image. The proposed system 100 and method may be used in power generation industry to accurately detect and quantify line defects on surfaces of generator wedges.
According to an aspect, the proposed system 100 and method may be automatically operated by a computer to detect line defects on a surface 112 of an object 110. The proposed system 100 and method may provide efficient automated line defect detection on a surface 112 of an object 110. The proposed system 100 and method may provide a plurality of advantages in detecting line defects on a surface 112 of an object 110, such as higher detection accuracy, cost reduction, and consistent detection performance, etc.
Although various embodiments that incorporate the teachings of the present invention have been shown and described in detail herein, those skilled in the art can readily devise many other varied embodiments that still incorporate these teachings. The invention is not limited in its application to the exemplary embodiment details of construction and the arrangement of components set forth in the description or illustrated in the drawings. The invention is capable of other embodiments and of being practiced or of being carried out in various ways. Also, it is to be understood that the phraseology and terminology used herein is for the purpose of description and should not be regarded as limiting. The use of “including,” “comprising,” or “having” and variations thereof herein is meant to encompass the items listed thereafter and equivalents thereof as well as additional items. Unless specified or limited otherwise, the terms “mounted,” “connected,” “supported,” and “coupled” and variations thereof are used broadly and encompass direct and indirect mountings, connections, supports, and couplings. Further, “connected” and “coupled” are not restricted to physical or mechanical connections or couplings.
Number | Name | Date | Kind |
---|---|---|---|
5828778 | Hagi | Oct 1998 | A |
5917935 | Hawthorne | Jun 1999 | A |
20030160627 | Muradian | Aug 2003 | A1 |
20040146295 | Furman | Jul 2004 | A1 |
20060181700 | Andrews | Aug 2006 | A1 |
20090028423 | Sandstrom | Jan 2009 | A1 |
20130277553 | Otani | Oct 2013 | A1 |
20130306615 | Rozbicki | Nov 2013 | A1 |
20170085760 | Ernst et al. | Mar 2017 | A1 |
20180188188 | Zhao | Jul 2018 | A1 |
Entry |
---|
Skumanich et al, “CMP process development based on rapid automatic defect classification”, 1999, Proc. SPIE 3743, In-Line Characterization, Yield Reliability, and Failure Analyses in Microelectronic Manufacturing, 14 pages (Year: 1999). |