Abstract:
In an apparatus for photographing an image of a product to judge whether or not a defect is present, a manufacturing desirable image is formed from data acquired when the product was designed, which could be obtained if no defect was present when the product was photographed, an inspection portion where a defect may occur is selected from the formed manufacturing desirable image, a defect pattern is superimposed on the selected inspection portion so as to form a template equipped with the defect pattern. The image of the product is photographed, a template matching operation is carried out as a template having the defect pattern, and judgement is made whether or not a defect is present based upon a matched evaluation value. As a result, the judgement for judging whether or not the defect is present can be directly carried out based upon the evaluation value.
Abstract:
A similar image having a high correlation is selected through autocorrelation performs a template original image selected from an image photographed for a template, and a difference image between the similar image and template original image is formed. An image extracting a real difference is formed by removing noises and edges in unstable areas from the difference image. This image is added to the template original image to form a modified template. Template matching is performed by using the modified template as a template. The image extracting the real reference and added to the modified template functions to add an evaluation penalty to the similar image during matching evaluation to lower an evaluation value of the similar image so that a probability of erroneously recognizing the similar image as the image to be detected.