Method and apparatus for testing surface defect
A defect detection and defect technology, applied in the detection field, can solve the problems of defect misjudgment, missed judgment, low detection accuracy, unfavorable labor saving, etc., to achieve the effect of avoiding misjudgment and improving detection efficiency
- Application Information
AI Technical Summary
Problems solved by technology
 figure 1 It is a schematic flow chart of the surface defect detection method of this embodiment, as shown in the figure, the method includes:
 Step 101: Obtain an image of the surface of the detected object, which is recorded as an original image.
 Use the existing optical imaging equipment (such as video camera, camera, etc.) to obtain the optical image of the detected object, which is recorded as the original image, expressed as F(x, y), and the gray value of each pixel is recorded as: f(x, y), where x and y are the abscissa and ordinate of the pixel point respectively, the value range of x is 0 to ImagWidth, and the value range of y is 0 to ImagHeight.
 For optical imaging, the gray value of a certain pixel on the image is larger because the point reflects more light to the camera, which is reflected on the surface of the detected object, so the point is relatively smooth, so the image of the detected object The change of the gray value can ...
 Figure 4 The schematic flow chart of the surface defect detection method provided in this embodiment, as shown in the figure, the difference between the method of this embodiment and the method of Embodiment 1 is that the method further includes step 109 after step 107 .
 Step 109: Determine the defect level of the defect according to the area and / or shape of the defect.
 Generally, in the process of industrial inspection, after the defect is detected, the defect can also be divided, and the defect can be processed accordingly according to the division, so after step 106, this step can also be performed:
 After a defect is found, determine whether the defect is a point defect, a line defect, or a surface defect according to the shape of the defect (the shape of the edge of the defect in a closed loop), and / or to perform corresponding processing according to the defect level.
 Figure 5 It is a schematic structural diagram of the surface defect detection device of this embodiment, as shown in the figure, the device includes:
 The input unit 501 is used to input the image of the surface of the detected object, which is recorded as the original image.
 For specific principles, refer to the description of step 101 in the embodiment.
 The gradient image determination unit 502 is used to calculate the gradient values of each pixel in at least two directions for each pixel of the original image, and take the maximum value as the new gray value of the pixel to obtain the gradient image.
 Preferably, the gradient image determining unit 502 calculates the gradient values of each pixel in 8 directions when calculating the gradient of each pixel in each direction, wherein the 8 directions are: from the pixel to the adjacent 8 direction of pixels.
 For its specific principles, refer to the description of st...
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction