Disclosure of Invention
The invention provides a transparent object defect detection method and device with low cost and capability of reducing the omission factor, aiming at the problems of high detection cost and high omission factor of the existing transparent product.
In a first aspect, the present invention provides a transparency defect detecting method, including:
irradiating the transparent object to be detected by adopting a grid light source;
acquiring an image of a transparent object to be detected;
and judging whether the transparent object to be detected has defects according to the image.
By adopting the grid light source to irradiate the transparent object to be detected, if the transparent object to be detected has defects, the grid patterns in the acquired image of the transparent object to be detected are deformed or shifted, so that whether the transparent object to be detected has defects or not is judged quickly and visually, the detection cost is reduced, and the detection efficiency is improved.
Further, the grid light source employs a planar light source covered with a grid film, or a display screen displaying a grid pattern.
The planar light source covered with the grid film is adopted, so that the cost is low and the implementation is convenient; the display screen with the grid patterns is adopted, and the patterns are adjusted simply and efficiently.
Further, the grid pattern of the grid film or the grid pattern displayed by the display screen is one of grid, horizontal and vertical stripes, oblique stripes or dot matrix patterns.
The grid pattern can be selected according to the type of the defect to be detected, so that the defect to be detected can be more clearly shown.
Further, the grid pattern is adjustable.
According to the defect characteristics, the grid pattern is adjusted, for example, the thickness, the interval, the size of the single-point pattern in the dot matrix and the like are changed, so that the defect is more obvious and is easy to distinguish.
Further, an industrial camera is adopted to obtain an image of the transparent object to be measured.
And an industrial camera is adopted for shooting, so that images can be better displayed and analyzed in the later period.
In a second aspect, the invention provides a transparency defect detecting device, which comprises a grid light source, an industrial camera and a control center; the grid light source is used for irradiating the transparent object to be detected; the industrial camera is connected with the control center and used for acquiring an image of the transparent object to be detected; the control center receives images acquired by the industrial cameras and displays or processes the images as needed.
The defects of the transparent object to be detected are detected by the grid light source and the industrial camera in cooperation with a visual detection program in the control center, so that the method is rapid and intuitive, the detection cost is low, and the detection efficiency is high; and the transparent object can be detected on line in time, so that the detection precision and accuracy are improved.
Further, the grid light source employs a planar light source covered with a grid film, or a display screen displaying a grid pattern.
The planar light source covered with the grid film is adopted, so that the cost is low and the implementation is convenient; the display screen with the grid patterns is adopted, and the patterns are adjusted simply and efficiently.
Further, the grid pattern of the grid film or the grid pattern displayed by the display screen is one of grid, horizontal and vertical stripes, oblique stripes or dot matrix patterns.
The grid pattern can be selected according to the type of the defect to be detected, so that the defect to be detected can be more clearly shown.
Further, the grid pattern is adjustable.
By adjusting the grid pattern, whether the transparent object to be detected has defects can be more easily judged.
Further, the control center processes the image and selects a deep learning method to extract the defects, or calculates the shape change and/or gray change of the grid by a machine vision method to confirm the position and/or size of the defects.
The control center processes the image by adopting different methods, and can select corresponding methods according to different requirements, thereby improving the application range of the detection device.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The invention provides a transparency defect detection method, which is used for detecting whether a transparency has defects.
FIG. 1 is a flow chart of an alternative embodiment of the transparency defect detection method.
As shown in fig. 1, the method for detecting the defects of the transparent object comprises the following steps:
s100, irradiating the transparent object to be detected by adopting a grid light source;
s200, acquiring an image of a transparent object to be detected;
s300, judging whether the transparent object to be detected has defects according to the image.
The principle of the method is as follows: when the grid light source is adopted to irradiate the transparent object to be detected, the light of the transparent object to be detected is bent due to the characteristics of the surface thickness, the contour, the wrinkles and the like of the transparent object to be detected, so that the grid pattern in the shot image is distorted and deformed or a black and white area is shifted, and the defects on the transparent object to be detected are obvious.
By adopting the grid light source to irradiate the transparent object to be detected, if the transparent object to be detected has defects, the grid patterns in the acquired image of the transparent object to be detected are deformed or shifted, so that whether the transparent object to be detected has defects or not is judged quickly and visually, the detection cost is reduced, and the detection efficiency is improved.
Alternatively, in step S100, the grid light source employs a planar light source covered with a grid film, or a display screen displaying a grid pattern. The planar light source can adopt an LED planar light source, and the display screen can adopt an LED display screen or a liquid crystal display screen.
The planar light source covered with the grid film is adopted, so that the cost is low and the implementation is convenient; the display screen with the grid patterns is adopted, and the patterns are adjusted simply and efficiently.
Optionally, the grid pattern of the grid film or the grid pattern displayed by the display screen is one of a grid, a horizontal stripe, a vertical stripe, a diagonal stripe or a dot matrix pattern.
The grid pattern can be selected according to the type of the defect to be detected, so that the defect to be detected can be more clearly shown.
Optionally, the grid pattern is adjustable. The method can be suitable for detecting defects with different sizes and characteristics by adjusting the thickness and the interval size of the stripes in the grid pattern and the size of the single-point pattern in the dot matrix. If the light source is used for the display screen, the grid patterns displayed by the display screen can be directly switched to adapt to the detection of different defects.
The grid pattern is adjusted according to the defect characteristics, so that the defects are more obvious and are easy to distinguish.
Optionally, in step S200, an industrial camera is used to acquire an image of the transparent object to be measured. The industrial camera may employ a CCD camera or a CMOS camera.
And an industrial camera is adopted for shooting, so that images can be better displayed and analyzed in the later period.
As shown in fig. 2, the present invention further provides a device 800 for detecting defects of transparencies, comprising a grid light source 400, an industrial camera 600 and a control center 700; the grid light source 400 is used for irradiating the transparent object 500 to be detected; the industrial camera 600 is connected with the control center 700 and is used for acquiring an image of the transparent object 500 to be detected; the control center 700 receives images acquired by the industrial camera 600 and displays or processes the images as needed. Alternatively, the control center 700 may employ an industrial personal computer or a control module with image display or processing.
The defects of the transparent object 500 to be detected are detected through the grid light source 400 and the industrial camera 600 and by matching with a visual detection program in the control center 700, so that the detection is rapid and intuitive, the detection cost is low, and the detection efficiency is high; and the transparent object can be detected on line in time, so that the detection precision and accuracy are improved.
Alternatively, the grid light source 400 employs a planar light source covered with a grid film, or a display screen displaying a grid pattern.
The planar light source covered with the grid film is adopted, so that the cost is low and the implementation is convenient; the display screen with the grid patterns is adopted, and the patterns are adjusted simply and efficiently.
Optionally, the grid pattern of the grid film or the grid pattern displayed by the display screen is one of grid, horizontal and vertical stripes or diagonal stripes, as shown in fig. 3 and 4.
The grid pattern can be selected according to the type of the defect to be detected, so that the defect to be detected can be more clearly shown.
Optionally, the grid pattern is adjustable.
By adjusting the grid pattern, it is easier to determine whether the transparency 500 under test has defects. By switching the scale of the grid pattern in the light source, the defects with different scales and characteristics can be detected, and various defects can be detected at the same station.
Optionally, the control center 700 processes the image by using a deep learning method to extract the defect, or calculates the shape change and/or the gray change of the grid by using a machine vision method to confirm the position and/or the size of the defect.
The control center 700 processes the image by adopting different methods, and can select corresponding methods according to different requirements, so that the application range of the detection device is widened.
FIGS. 5-7 are graphs showing the results of inspecting transparency defects using the present invention, as shown in the rectangular boxes. As can be seen from the figure, the grid pattern of the grid light source is deformed on the transparent object, so that the defect can be clearly seen and detected by a visual program.
The device 800 for detecting the defects of the transparent objects does not need to detect at a plurality of angles and the front and the back because of the adoption of the grid light source 400, thereby greatly saving detection stations, reducing the complexity of equipment and improving the detection efficiency.
The invention has been described above with a certain degree of particularity. It will be understood by those of ordinary skill in the art that the description of the embodiments is merely exemplary and that all changes that come within the true spirit and scope of the invention are desired to be protected. The scope of the invention is defined by the appended claims rather than by the foregoing description of the embodiments.