This invention relates to the detection of low-contrast defects in transparent material, and more particularly, to the accurate detection obtained by increasing contrast between a defect and the defect-free background.
Transparent materials are widely manufactured worldwide. Examples of such materials include rigid and flexible plastics, and glass. Depending on the stage of the process, different forms of the said material can be produced. For example, flexible plastic could be manufactured as a web and later processed into bags, pouches, etc. Rigid plastic could be manufactured directly into the end product, such as bottles and containers.
The manufacturing process is not perfect and often results in defects such as gels, holes, scratches, lumps, discolorations, foreign materials, etc. Some defects (e.g., foreign materials) can be easily detected with a human eye or a camera-based system while others are difficult or even impossible to detect because of the low contrast between the defect and the background (e.g., gels and small holes in plastic).
Defect detection systems use cameras and lights to capture either still images or video and analyze the captured images to detect defects. Many such systems are commercially available. The deficiency of prior art defect detection systems is that certain defects, while important to the material manufacturer and/or end-user, can be left undetected because of their low contrast. Quite often, regardless of the availability of defect detection systems, many manufacturers use skilled workers to manually inspect the final product to ensure accurate detection of gels and other low-contrast defects.
A system for detection of low-contrast defects in transparent materials such as plastic foil or glass. The said materials are referred to hereinafter as material. The system consists of:
one or multiple cameras located on one side of the material. Depending on the manufacturing process, the cameras can be either area-scan or line-scan type;
one or multiple lights capable of projecting a contrasting pattern on the material. The lights are located on the opposite side of the material from the camera;
one or multiple processors (such as computers and FPGA's) capable of executing code required to capture and process images or video in order to accurately detect and report low-contrast defects.
A method for detection of low-contrast defects in the material. The method has the steps of:
superimposing a controlled contrast pattern on the image of the material. The pattern consist of at least one each of darker and lighter areas. This alternating pattern accentuates the defects by showing them as darker spots over the lighter area and lighter spots over the darker area;
using a camera to capture the image of the material with the superimposed pattern;
removing the pattern from the image without removing the defect representation. The pattern can be removed digitally with a pattern filtering algorithm or by the specific placement of the camera view;
the resulting image is further enhanced and thresholded to identify defects.
The present invention has several embodiments depending on the type of process and manufactured material. In one possible embodiment, an area-scan camera is used to inspect a web manufacturing process. In another embodiment, a line-san camera is used to inspect the same process.
For the sake of simplicity, the preferred embodiment uses a striped pattern of alternating opaque (darker, as perceived by the camera) and transparent (lighter, as perceived by the camera) stripes of constant size. Alternative embodiments can use any pattern as long as a suitable pattern removal algorithm or specific camera view placement is used.
In the preferred embodiment, the planes of the light projecting the striped pattern (1, 2), the material (3), and the camera (4) are all parallel. The camera is focused at the plane of the material (3) and the width of the stripes in the pattern (2) is selected to match the required detection accuracy. The distance from the patterned light (1, 2) to the material (3) is adjusted accordingly.
An alternative embodiment can be used for inspection of the same process as the preferred embodiment with line-scan cameras. The line scan camera is placed such that the imaging occurs in the lighter area between two darker stripes or in the darker area between two lighter stripes, which eliminates the need for the pattern removal algorithm. Depending on the location of the imaging line, the defect will appear as dark spot over the light background or a light spot over the dark background.
The method used in this invention utilizes the contrasting pattern to accentuate the image of the defect. A perfectly flat, defect-free material arranged as per
When the material contains a defect (10), as shown in
This behavior is explained by Snell's Law governing the propagation of light through the interface between two different media and is given by
n
1*sin(Θi)=n2*sin(Θr)
Where Θi is the angle between the incident ray and the normal to the interface between media, Θr is the angle between the refracted ray and the normal to the interface between media, n1 is the refractive index of the first media, and n2 is the refractive index of the second media.
A perfectly flat and defect-free material (16), as shown in
In
When the material containing a defect is observed by the camera in configurations shown in
When a contrasting pattern is applied, the same defect can clearly be seen because some of the refracted rays are superimposed over the contrasting areas (dark over light or light over dark).
Different algorithms can be used to remove the pattern from the camera image without removing the defect representation. One such algorithm is line filtering. The line filtering algorithm averages the captured image line-by-line by replacing each pixel's grayscale value with the mean value of a number of pixels before and after the analyzed pixel. Then, the filtered image is subtracted from the original image, which removes the linear pattern while retaining the representation of the defect.
This application claims the priority of U.S. provisional patent application No. 61/803,150 submitted on Mar. 19, 2013, entitled “Method and Apparatus for Detection of Defects in Transparent and Semi-Transparent Sheet Material” the contents of which are relied upon and incorporated herein by reference in their entirety, and the benefit of priority under 35 U.S.C. 119(e) is hereby claimed.
Number | Date | Country | |
---|---|---|---|
61803150 | Mar 2013 | US |