Surface defect detection method for mirror objects based on statistical distribution law of fringe images

Through a detection method based on the statistical distribution of stripe images, using non-parametric regression models and adaptive outlier determination, the problem of small-scale defect detection on the surface of mirror objects is solved, high-precision defect positioning and detection is achieved, and threshold setting problems are avoided. The resulting false detections and missed detections improve detection efficiency and reliability.

CN115656177BActive Publication Date: 2024-09-17NORTHWESTERN POLYTECHNICAL UNIV
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210957097.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-11
Publication Date
2024-09-17
Estimated Expiration
2042-08-11

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately detect small-scale defects in surface defect detection of mirror objects, and traditional methods are prone to misdetection or missed detection due to threshold setting issues, and manual detection efficiency is low and relies on experience and intuition.

Method used

A detection method based on the statistical distribution of stripe images is adopted. Images are collected through sinusoidal stripe light source projection and industrial cameras. Non-parametric regression models and adaptive outlier determination methods are used to detect and locate structural type defects pixel by pixel to avoid threshold setting problems.

Benefits of technology

It achieves high-precision detection of small-scale defects, reduces false detections and missed detections, improves detection efficiency and reliability, and is suitable for complex real-life scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115656177B
    Figure CN115656177B
Patent Text Reader

Abstract

The present invention provides a method for detecting defects on the surface of a mirror object based on the statistical distribution law of a stripe image, using a stripe light source to project sinusoidal stripes onto the mirror to be tested, and using an industrial camera to collect the sinusoidal stripe image projected on the mirror surface to be tested, splitting the sinusoidal stripe image into multiple image blocks, rotating the image blocks counterclockwise, cropping, and filtering in the horizontal direction in turn, obtaining variants under different rotation angles, calculating the defect position feature descriptors corresponding to the variants, extracting the outlier position set using an adaptive outlier determination method, and obtaining a binary mapping map of the defect position corresponding to the image block, which is the result of the defect location detection of the mirror object surface. The present invention aims to analyze the distribution law of pixel values ​​in a stripe image, detect and locate structural type defects pixel by pixel, effectively solve the problem that small-scale defects are difficult to detect, and avoid false detection or missed detection caused by threshold setting problems.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of defect detection and statistical data analysis, and in particular to a method for detecting surface defects of a mirror object. Background Art

[0002] Objects with mirror reflection properties are widely present in the modern manufacturing industry, such as automobile paint films, spacecraft casings, electronic equipment display screens, ceramic surfaces, etc. Surface defect detection of mirror objects is an important part of quality control and inspection in industrial manufacturing.

[0003] The surface of a mirrored object generally has a large curvature, and the structure of some areas is relatively complex. Defects are not easy to detect under most ambient lighting conditions, but are extremely obvious under a certain angle of light. At present, most manufacturers still use the traditional detection method that combines artificial vision and touch. The manual inspection process is a subjective qualitative process. The recognition efficiency of the human visual system is affected by many factors such as emotional fluctuations, visual fatigue, and glare effects caused by strong light. The recognition accuracy is also too dependent on individual experience and intuition. Therefore, in the face of the ever-expanding production line scale, it is difficult for manual inspection methods to remain real-time and reliable. Another type of inspection method is to use traditional detection operators for edge extraction or target recognition based on deep learning methods to achieve defect detection. However, most of these methods currently focus on reducing the interference of additional lighting on the expression of surface defects, and cannot effectively detect small-scale defects. In addition, some methods have threshold setting problems, which leads to false detection or missed detection when the algorithm faces complex real scenes. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the present invention provides a method for detecting surface defects of mirror objects based on the statistical distribution law of fringe images, aiming to analyze the distribution law of pixel values ​​in fringe images, and detect and locate structural type defects pixel by pixel. The method can effectively solve the problem that small-scale defects are difficult to detect, and avoid false detection or missed detection caused by threshold setting problems.

[0005] The technical solution adopted by the present invention to solve the technical problem comprises the following steps:

[0006] Step 1: Use a stripe light source to project sinusoidal stripes onto the mirror to be tested, and use an industrial camera to collect the sinusoidal stripe image projected on the mirror surface to be tested; according to the disturbance measurement principle, when the sinusoidal stripe light illuminates the mirror at a certain tilt angle, any unnatural deformation on the mirror, i.e., structural defects, will change the reflection angle of the stripe light, causing the light flux received by the camera at the defect to change, resulting in a significant difference in the pixel value of the defective area in the stripe image compared with the surrounding area;

[0007] Step 2: Split the sinusoidal fringe image into multiple image blocks with a side length of 2R+1, where R is the number of pixels from the center of the image block to any border, and detect whether each image block of the fringe image contains defects; randomly select an image block in the sinusoidal fringe image as I, rotate I counterclockwise, crop it, and filter it horizontally in turn to obtain variants I at different rotation angles i , each variant I i The side lengths of Using nonparametric regression models Variant I i Each row of pixel values ​​y j The distribution of g is fitted. k (s) is a known basis function, b k is the unknown coefficient to be solved, K is the number of nodes in the model, d is the highest index of the independent variable, and y j =(y1,y2,…,y n ) T , y s isI i The pixel value of the jth row and sth column above, j is the row number, s is the column number, and the target is Minimize the energy equation E = || y by the least squares straight line fitting method j -Bβ|| 2 +λβ T Ωβ, transform the univariate polynomial regression problem into a multivariate linear regression problem, and solve it to get B=(B1,…,B s ,…,B n ) T , B s =(g0(s),…,g K+d (s)), β=(b0,b1,…,b K+d ) T , where Ω is the penalty matrix, λ is the smoothing coefficient that controls the balance between curve smoothness and fitting strength, and the variant I is calculated. i The fitting result matrix By y j The generalized inverse y j + and The product of the two gives variant I i The corresponding defect location feature descriptor h i for:

[0008]

[0009] in

[0010]

[0011] Variant I i Transpose of the composed image matrix;

[0012] Step 3: Use the adaptive outlier determination method to determine the h i Extract the outlier location set C from i , calculate h i The outlier location set C in i , i = 1, ... N, N is the variant I obtained by rotating the image block I at different angles i The number of C i Get variant I i Corresponding defect position binary map M i , Rotate in the opposite direction and merge M i , obtain the binary map M of the defect position corresponding to the image block I, P is the threshold used for the fusion process, and the binary map M is the defect location detection result of the mirror object surface.

[0013] The calculation fitting result matrix The formula is:

[0014]

[0015] The outlier position set C is calculated i The steps are:

[0016] 3.1) Let h = h i , calculate d_h, where d_h j =h j+1 -h j , j = 1, ..., n-1, calculate the mean μ(h) of h, set the identifier bool = True;

[0017] 3.2) When bool is True, calculate o = min{h j}, let p left =j,p right =j+1, execute p left Subtract 1 until or Execute p right Add 1 until and

[0018] 3.3) Update h, where h j =μ(h),j=p left ,…,p right, recalculate the mean μ(h) and standard deviation δ(h), set the threshold to Q, and when μ(h)-min(h)≥Q*δ(h), add p to the set C left and p right , and jump to step 3.2) for judgment. When μ(h)-min(h)<Q*δ(h), bool=False, and go to step 3.4);

[0019] 3.4), we get the set C = {c1,...,c 2m},in Outlier location set C i =C.

[0020] The beneficial effect of the present invention is that the detection object of the present invention is all surfaces of objects with specular reflection characteristics, including but not limited to automobile paint, aerospace vehicle shell, electronic equipment display screen, etc. The detection target of the method is structural type defects, including but not limited to surface defects, particles, paint spots, shrinkage holes, pits, sagging, etc. The method has a wide range of applications and rich detection content.

[0021] The present invention can capture the characteristics of structural type defects under stripe light excitation pixel by pixel, effectively solving the technical difficulty that methods based on traditional detection operators and methods based on deep learning cannot well locate small-scale defects.

[0022] The present invention provides an adaptive outlier detection method, which utilizes minimum value, mean value, standard deviation, difference value and cyclic algorithm to effectively solve the problem of difficult threshold determination in the detection process, avoids false detection or missed detection caused by threshold setting problems, and can achieve higher-precision detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 The flowchart of the method for detecting surface defects of mirror objects based on the statistical distribution law of fringe images in an embodiment of the present invention is shown in FIG.

[0024] Figure 2 A schematic diagram of common defects on the surface of a car fender involved in the invention provided in an embodiment of the present invention; Figure 2 (a) is a schematic diagram of paint surface defects. Figure 2 (b) is a schematic diagram of particle defects. Figure 2 (c) is a schematic diagram of paint spot defects. Figure 2 (d) is a schematic diagram of shrinkage defect.

[0025] Figure 3 Schematic diagram of a defect location feature descriptor involved in the invention provided in an embodiment of the present invention; wherein Figure 3 (a) is a certain image block to be tested, Figure 3(b) is the horizontal position feature descriptor of the variant obtained after the image block is rotated 0° counterclockwise. Figure 3 (c) is the horizontal position feature descriptor of the variant obtained after the image block is rotated 135° counterclockwise.

[0026] Figure 4 Schematic diagram of defect detection results involved in the invention provided in an embodiment of the present invention; wherein, Figure 4 (a) is the original image of the measured area. Figure 4 (b) is the defect location result image. Figure 4 (c) is the binary mapping image of the defect location. DETAILED DESCRIPTION

[0027] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0028] The embodiment of the present invention provides a method for detecting surface defects of mirror objects based on the statistical distribution law of fringe images to locate surface structural defects. Figure 1 , using a sinusoidal stripe light source, locates defects on the surface of an object with specular reflection characteristics from a single frame image, including but not limited to automobile paint film, spacecraft shell, electronic equipment display screen, ceramic surface, etc. In this embodiment, the detection object is the paint surface of a car fender, including the following steps:

[0029] Step 101: using a stripe light source to project sinusoidal stripes onto the surface of the object to be measured, and using an industrial camera to capture an image of the sinusoidal stripes projected onto the surface of the object to be measured;

[0030] Step 102: Split the stripe image into multiple image blocks with a side length of 2R+1, where R is the number of pixels from the center of the image block to any border. Take an image block I in the stripe image, rotate it counterclockwise, crop it, and filter it horizontally to obtain variants I at different rotation angles. i , each variant I i The side lengths of

[0031] Step 103: Use nonparametric regression model Variant I i Each row of pixel values ​​y j The distribution curve of g is fitted. k (s) is a known basis function, b k is the unknown coefficient to be solved, K is the number of nodes in the model, d is the highest index of the independent variable, and y j =(y1,y2,…,y n ) T , y s isI iThe pixel value of the jth row and sth column above, j is the row number, s is the column number, and the target is Minimize the energy equation E = || y by the least squares straight line fitting method j -Bβ|| 2 +λβ T Ωβ, transform the univariate polynomial regression problem into a multivariate linear regression problem, and solve it to get B=(B1,…,B n ) T , B s =(g0(s),…,g K+d (s)), β=(b0,b1,…,b K+d ) T , Ω is the penalty matrix, and λ is the smoothing coefficient that controls the balance between curve smoothness and fitting strength. Based on the above method, variant I is calculated. i The fitting result matrix By y j The generalized inverse y j + and The product of the two gives variant I i The corresponding defect position feature descriptor h i for:

[0032]

[0033] in

[0034]

[0035] Variant I i Transpose of the composed image matrix;

[0036] Step 104: Use the adaptive outlier determination method to determine the number of outliers from h i Extract the outlier location set C from i , characterized in that it comprises the following steps:

[0037] 1) Let h = h i , calculate d_h, where d_h j =h j+1 -h j , j = 1, ..., n-1, calculate the mean μ(h) of h, set the identifier bool = True;

[0038] 2) When bool is True, calculate o = min{h j}, determine the boundary conditions, set p left =j,p right =j+1, execute p left Subtract 1 until or Execute p right Add 1 until and

[0039] 3) Update h, where h j =μ(h),j=p left ,…,p right , recalculate the mean μ(h) and standard deviation δ(h), set the threshold to Q, and when μ(h)-min(h)≥Q*δ(h), add p to the set C left and p right , and jump to step 2) for judgment. When μ(h)-min(h)<Q*δ(h), bool=False, and go to step 4);

[0040] 4) Get the set C = {c1,...,c 2m},in Outlier location set C i =C.

[0041] The h is calculated by the above method. i The outlier location set C in i , i = 1, ... N, N is the variant I obtained by rotating the image block I at different angles i The number of. i Get variant I i Corresponding defect position binary map M i , Rotate in the opposite direction and merge M i Obtain the defect position binary map M corresponding to the image block I, P is the threshold used for the fusion process. M is the defect location detection result of the mirror object surface;

[0042] In this embodiment, in step 101, the light source adopts the programmable stripe light source P-DIS-T-15-S, the stripe direction is longitudinal, the stripe period is set to 20, and the camera adopts Basler_acA1300-200uc;

[0043] In this embodiment, the structural defects detected include: paint defects, particles, paint spots and shrinkage holes, see Figure 2 ;

[0044] In this embodiment, in step 102, R=50, the rotation angle θ={0°, 30°, 45°, 60°, 120°, 135°, 150°}, and the filter is used. Variant I i Perform transverse filtering, in this embodiment, a=4, b=2;

[0045] In this embodiment, in step 103, the B-spline function is used for fitting, K=13, d=3, and λ is set to be infinite, which is regarded as the second-order derivative of the objective function that cannot be tolerated, that is, the fitting process must always ensure smoothness, and the variant I is obtained. i The fitting result matrix for:

[0046]

[0047] Calculated variant I i The corresponding defect position feature descriptor h i for:

[0048]

[0049] Different θ corresponds to different variants I i Calculate different h i , see Figure 3 .

[0050] In this embodiment, in step 104, from h i Extract the outlier location set C from i The method of finally locating the defective area is achieved through the following process:

[0051] 1) According to θ = {0°, 30°, 45°, 60°, 120°, 135°, 150°}, calculate h respectively i , i=1,...,N;

[0052] 2) Let h = h i , calculate d_h, where d_h j =h j+1 -h j , j = 1, ..., n-1, calculate the mean μ(h) of h, set the identifier bool = True;

[0053] 3) When True, calculate o = min{h j}, determine the boundary conditions, set p left =j,p right =j+1, execute p left =p left -1 until or Execute p right =p right +1 until and

[0054] 4) Update h, where h j =μ(h),j=pleft ,…,p right , recalculate the mean μ(h) and standard deviation δ(h), set the threshold to Q, and when μ(h)-min(h)≥Q*δ(h), add p to the set C left and p right , otherwise bool = False;

[0055] 5) Repeat steps 3) and 4) until bool is False. Get the set C = {c1,...,c 2m},in Outlier location set C i =C.

[0056] 6) Repeat steps 1) to 5) to obtain h i The corresponding outlier position set C i , through C i Get variant I i Corresponding defect position binary map M i , Rotate in the opposite direction and merge M i Obtain the defect position binary map M corresponding to the image block I,

[0057] In this embodiment, N=7, Q=3, and P=2.

Claims

1. A method for detecting surface defects of mirror objects based on the statistical distribution law of fringe images, characterized in that The steps include: Step 1: Use a stripe light source to project sinusoidal stripes onto the mirror to be tested, and use an industrial camera to capture the sinusoidal stripe image projected on the surface of the mirror to be tested; Step 2: Split the sinusoidal fringe image into multiple image blocks with a side length of 2R+1, where R is the number of pixels from the center of the image block to any border, and detect whether each image block of the fringe image contains defects; randomly select an image block in the sinusoidal fringe image as I, rotate I counterclockwise, crop it, and filter it horizontally in turn to obtain variants I at different rotation angles i , each variant I i The side lengths of Using nonparametric regression models Variant I i Each row of pixel values ​​y j The distribution of g is fitted. k (s) is a known basis function, b k is the unknown coefficient to be solved, K is the number of nodes in the model, d is the highest index of the independent variable, and y j =(y1,y2,…,y n ) T , y s isI i The pixel value of the jth row and sth column above, j is the row number, s is the column number, and the target is b k and Minimize the energy equation E = || y by the least squares straight line fitting method j -Bβ|| 2 +λβ T Ωβ, transform the univariate polynomial regression problem into a multivariate linear regression problem, and solve it to get B=(B1,…,B s ,…,B n ) T , B s =(g0(s),…,g K+d (s)), β=(b0,b1,…,b K+d ) T , where Ω is the penalty matrix, λ is the smoothing coefficient that controls the balance between curve smoothness and fitting strength, and the variant I is calculated. i The fitting result matrix By y j The generalized inverse y j + and The product of the two gives variant I i The corresponding defect location feature descriptor h i for: in Variant I i Transpose of the composed image matrix; Step 3: Use the adaptive outlier determination method to determine the h i Extract the outlier location set C from i , calculate h i The outlier location set C in i , i = 1, ... N, N is the variant I obtained by rotating the image block I at different angles i The number of C i Get variant I i Corresponding defect position binary map M i , Rotate in the opposite direction and merge M i , obtain the binary map M of the defect position corresponding to the image block I, P is the threshold used for the fusion process, and the binary map M is the defect location detection result of the mirror object surface.

2. The method for detecting surface defects of mirror objects based on the statistical distribution law of fringe images according to claim 1, characterized in that: The calculation fitting result matrix The formula is:

3. The method for detecting surface defects of mirror objects based on the statistical distribution law of fringe images according to claim 1, characterized in that: The outlier position set C is calculated i The steps are: 3.1) Let h = h i , calculate d_h, where d_h j =h j+1 -h j , j = 1, ..., n-1, calculate the mean μ(h) of h, set the identifier bool = True; 3.2) When bool is True, calculate o = min{h j }, let p left =j,p right =j+1, execute p left Subtract 1 until or Execute p right Add 1 until and 3.3) Update h, where h j =μ(h),j=p left ,…,p right , recalculate the mean μ(h) and standard deviation δ(h), set the threshold to Q, and when μ(h)-min(h)≥Q*δ(h), add p to the set C left and p right , and jump to step 3.2) for judgment. When μ(h)-min(h)<Q*δ(h), bool=False, and go to step 3.4); 3.4), we get the set C = {c1,...,c 2m },in Outlier location set C i =C.

Citation Information

Patent Citations

  • A defect detection device and method for a non-standard high reflective curved surface workpiece

    AU2020100891A4

  • Defect detection method of mirror / mirror-like object

    CN109916922A

  • Smooth paint surface defect detection method based on machine vision

    CN112150441A

  • Defect detection device for mirror-like object and detection method thereof

    CN112798617A

  • Surface defect inspecting device

    JP1996086633A