Stamping plate defect detection system and method based on laser point cloud
Through laser point cloud collection and image processing technology, combined with non-rigid geometric registration and chromatic aberration compensation, the shortage of manual detection and the low sensitivity of infrared vision acquisition cameras in stamping sheet defect detection are solved, achieving efficient and accurate detection results.
Patent Information
- Application Number
- CN202410734929.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing stamping plate defect detection technology relies on manual inspection, which has problems such as slow detection speed, high cost and low accuracy. In addition, the sensitivity of infrared vision acquisition cameras is low and it is easy to record useless information.
A detection system based on laser point cloud is used to generate laser point cloud information through the laser point cloud acquisition module. The image color and distortion acquisition module is combined for image processing to perform image color difference correction and distortion correction, using point-point constraints and collinear condition equations. Non-rigid geometric registration is performed to improve detection accuracy, and detection sensitivity is improved through radial chromatic aberration pre-compensation phase value.
It achieves the accuracy and reliability of stamping plate defect detection, improves the detection sensitivity of infrared vision acquisition cameras, reduces the recording of useless information, and improves detection efficiency and accuracy.
Smart Images

Figure CN118608481A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of machine vision detection, and in particular to a system and method for detecting defects in stamped plates. Background Art
[0002] Stamping sheet defect detection is an important part of modern production, and the level of detection technology will directly affect the quality of stamping sheets. At present, most stamping sheets are still inspected by manual inspection, which not only has a large workload, but is also susceptible to subjective factors of quality inspectors, and cannot guarantee the accuracy and reliability of the inspection. The stamping sheet defect detection system based on machine vision has the advantages of fast detection speed, low cost and reliable detection results.
[0003] Machine vision inspection technology is that under certain lighting conditions (infrared, LED light source, etc.), the industrial camera collects the image of the stamping sheet to the edge server, and then uses image enhancement technology and machine vision technology to perform defect detection on the collected stamping sheet.
[0004] There are many types of defects in stamped sheets. Common defects in stamped sheets are mainly white spots, black spots, scratches, bruises and roller marks. These defects are accompanied by color differences in stamped sheets. Industrial cameras are used to obtain images of stamped sheets. Based on the images obtained by the camera, machine vision methods can be used to automatically detect defects in stamped sheets.
[0005] At present, target detection is mainly divided into two categories: camera detection and infrared sensor detection. However, when the current visual acquisition camera is identifying, as long as any moving target is detected, the camera shooting function will be triggered, which easily causes a large amount of useless information to be recorded, resulting in low detection sensitivity of the infrared visual acquisition camera. Summary of the invention
[0006] The purpose of the present invention is to provide a stamping sheet defect detection system and detection method based on laser point cloud to solve the above-mentioned deficiencies in the prior art.
[0007] In order to achieve the above object, the present invention provides the following technical solution: a stamping sheet defect detection system based on laser point cloud, comprising:
[0008] A laser point cloud acquisition module is used to collect laser point cloud information of a stamped sheet placed on the sheet placing module through the laser point cloud acquisition module;
[0009] Plate placement module, used to place stamping plates to be inspected;
[0010] The image color acquisition module is used to collect the color information of the laser point cloud image reflected by the stamping sheet placed on the sheet placement module and establish a pixel coordinate system;
[0011] An image distortion acquisition module is used to acquire distortion information of the laser point cloud image reflected by the stamping sheet placed on the sheet placing module;
[0012] An image processing module, used to receive information from the image color acquisition module and the image distortion acquisition module, and perform image processing on the projection image on the display screen according to the information from the image color acquisition module and the image distortion acquisition module, wherein the image processing includes image chromatic aberration correction and image distortion correction;
[0013] The result matching module is used to match the corresponding plate surface analysis result according to the plate laser point cloud image processed by the image processing module.
[0014] Further, the following steps are included:
[0015] S1, placing the stamping sheet to be inspected in the sheet placement module;
[0016] S2, generating laser point cloud of the plate environment through the laser point cloud acquisition module;
[0017] S3, establishing a pixel coordinate system through an image color acquisition module, and calculating a radial chromatic aberration pre-compensation phase value of an infrared vision acquisition camera according to the pixel coordinate system;
[0018] S4, obtains the image point cloud reconstruction result through the infrared vision acquisition camera and image processing module;
[0019] S5, rough registration of photographic point cloud and 3D laser point cloud;
[0020] S6, precise registration of photographic point cloud and 3D laser point cloud;
[0021] S7, matching the plate surface analysis result through the result matching module according to the laser point cloud information completed by the precise registration of the photographic point cloud and the three-dimensional laser point cloud in step S4.
[0022] Furthermore, the method for calculating the radial chromatic aberration pre-compensation phase value of the infrared vision acquisition camera is:
[0023] In the pixel coordinate system of the image color acquisition module, any point in the red, green and blue color channels corresponds to four phase values: LCD displays the vertical stripe phase LCD horizontal vertical stripe phase LCD reflective vertical stripe phase and LCD reflective horizontal stripe phase Take the green channel as the standard phase in:
[0024] Indicates that the green channel displays the vertical stripe phase;
[0025] Indicates the horizontal and vertical stripe phase of the green channel;
[0026] Indicates the phase of vertical stripes reflected by the green channel;
[0027] Indicates the phase of the horizontal stripe reflected by the green channel;
[0028] At this time, the ideal phase of the red channel is in:
[0029] Indicates that the red channel displays the vertical stripe phase;
[0030] Indicates the horizontal and vertical stripe phase of the red channel;
[0031] Indicates the phase of vertical stripes reflected by the red channel;
[0032] Represents the phase of horizontal stripes reflected by the red channel;
[0033] The ideal phase of the blue channel is in:
[0034] Indicates that the blue channel displays the vertical stripe phase;
[0035] Indicates the horizontal and vertical stripe phase of the blue channel;
[0036] Indicates the phase of vertical stripes reflected by the blue channel;
[0037] Indicates the phase of horizontal stripes reflected by the blue channel;
[0038] At this time, the red channel vertical stripe phase and the red channel horizontal vertical stripe phase are set to the same value as the green channel vertical stripe phase and the green channel horizontal vertical stripe phase.
[0039]
[0040] The blue channel can be obtained in the same way:
[0041]
[0042] The pre-compensation phase of the red channel and the blue channel is obtained by using the ideal phase of the red channel and the blue channel, that is, the corresponding phase value of the ideal phase in the phase of the green channel LCD reflection stripe. This process is to offset the red channel and the blue channel in advance. The compensation phase of the red channel and the blue channel is
[0043]
[0044] and
[0045]
[0046] Furthermore, the specific reconstruction method of the image point cloud in step S4 is:
[0047] A1, overlapping multi-view sequence images, overlapping the acquired multi-view infrared images of stamping sheet through the image overlapping model;
[0048] A2, epipolar image generation, generating epipolar images by using the multi-view sequence overlapping images obtained in step A1 and the epipolar image generation model;
[0049] A3, matching cost calculation, performing matching calculation on the epipolar image and the infrared collected image according to the dense matching algorithm and the epipolar relationship, to obtain an epipolar image disparity map and an infrared collected image disparity map;
[0050] A4, matching cost aggregation, obtains the minimum matching cost by aggregating the current image matching cost with the previous image matching cost;
[0051] A5, generating an initial disparity map, generating an initial disparity map from all the images with the minimum matching cost obtained in step A4;
[0052] A6, determining the disparity map search range, and determining the disparity map search range through the corresponding points of the image point cloud;
[0053] A7, disparity map refinement, selects the disparity map whose matching result is higher than the preset matching standard according to the data matching matching model;
[0054] A8, generating coarse matching points, selecting coarse matching points according to the infrared photography point cloud and the laser point cloud in the disparity map generated in step A7;
[0055] A9, eliminating wrong matching points, eliminating the wrong matching points in the rough matching points obtained in step A8.
[0056] Furthermore, the specific method in step S5 is:
[0057] B1, perform scale estimation, that is, calculate the scale factor based on the image point cloud volume and the laser point cloud volume through the scale estimation model;
[0058] B2, the image point cloud and laser point cloud are converted by RASANC algorithm to calculate the conversion parameters, the specific method is:
[0059] B21, select a four-point coplanar quasi-basis with an appropriate scale factor;
[0060] B22, select candidate point sets based on distance, calculate the centroid deviation of the four points in each candidate coplanar four-point basis, the centroid deviation refers to the centroid coordinates of the point set in the local neighborhood of the point to be tested, after the centroid deviation of the four points in the coplanar four-point basis is calculated, if the deviations between the centroid deviations of the four points are all less than a predetermined threshold, then they can be used as candidate point sets;
[0061] B23, determine the four-point consistent set based on the ratio of the crossing line segments, and determine the target coplanar four-point basis from the candidate point set according to the affine ratio and line segment angle of the reference coplanar four-point basis;
[0062] B24, calculate initial conversion parameters;
[0063] B3, determine the optimization parameters of the maximum candidate point set as the best model parameters.
[0064] Furthermore, the specific method in step S6 is:
[0065] C1, non-rigid registration of photographic point cloud and 3D laser point cloud with point-to-point distance constraints, including:
[0066] C11, construction of non-rigid geometric registration model between photographic point cloud and 3D laser point cloud;
[0067] C12, rigid registration of photographic point cloud and 3D laser point cloud and non-rigid registration of photographic point cloud and 3D laser point cloud alternately;
[0068] C13, evaluating the accuracy of non-rigid registration, and executing step C2 for the photographic point cloud and the three-dimensional laser point cloud whose evaluation results meet the preset evaluation results;
[0069] C2, non-rigid registration based on nearest surface constraints between photographic point clouds and 3D laser points, including:
[0070] C21, non-rigid geometric registration model construction based on photographic point cloud and 3D laser points;
[0071] C22, nearest neighbor surface registration based on photographic point cloud and 3D laser points;
[0072] C23, accuracy assessment, executing step S7 for the photographic point cloud and the three-dimensional laser point cloud whose assessment results meet the preset assessment results.
[0073] Furthermore, the specific steps of step C21 are:
[0074] D1, the camera distortion parameters, the exterior orientation elements after image coarse registration conversion, the image principal point and the principal distance are used as the initial values of the image and 3D point cloud registration parameters;
[0075] D2, if the distance error is judged to be small enough, execute step D6; if the judgment result is that the distance error is not small enough, execute step D3;
[0076] D3, construct the bundle adjustment equation based on surface constraints and iterate continuously;
[0077] D4, adjust the position of the image connection point and the image internal and external orientation parameters;
[0078] D5, until the parameter changes sufficiently small, execute step D6;
[0079] D6, end the iteration, the parameters at this time are the parameters obtained by the final precise alignment.
[0080] Furthermore, the specific method of step D1 is:
[0081] D11, for the 3D point cloud generated by sparse reconstruction of any image, the KD tree is used to build the data structure model, and the nearest neighbor algorithm is used to search for n points adjacent to it in the 3D laser point cloud, and the surface fitting is performed on these n points. The surface fitting of these n points is close to the real surface of the object. This surface can be used as the nearest neighbor surface. When the two point clouds are optimally fitted, the points in the laser point cloud fall on the surface fitted by the corresponding nearest neighbor points;
[0082] D12, after the laser point cloud and the image point cloud are precisely registered, each 3D point in the image 3D point cloud should fall on its corresponding nearest surface, and the image 3D point coordinates, image point coordinates, image internal and external orientation elements, and distortion parameters should satisfy the collinearity condition equation in photogrammetry;
[0083] D13, Taylor series is rewritten as a linear equation and converted into a least squares problem.
[0084] Furthermore, the specific method of step C23 is:
[0085] C231, select the total unit weighted mean error after adjustment as the evaluation index. The formula of the total unit weighted mean error is as follows:
[0086]
[0087] where r t represents the exterior orientation element, r p Represents the coordinates of a three-dimensional point, r k Represents the number of distortion difference parameters, r c represents the internal orientation element, n is the number of observation equations;
[0088] C232, the accuracy evaluation of the geometric registration of close-range optical images and 3D laser point clouds also uses the unit weighted mean error σ of the image point observation value 1 And the unit weighted mean error σ between the sparse point cloud and the nearest laser local surface deviation value s The formula is as follows:
[0089]
[0090] Where: n S Represents the number of nearest surface equations constructed for the branch image connection points, n 1 Expressed as the number of image point observation equations;
[0091] C233, back-project the point cloud onto the optical image, and illustrate the registration accuracy between the optical image and the laser scanning point cloud based on the fit between the back-projected points and the image outer contour.
[0092] Compared with the prior art, the present invention provides a stamping sheet defect detection system and method based on laser point cloud. Through the optical image collected by the infrared vision acquisition camera and the three-dimensional laser point cloud data of the sheet environment, a mathematical model of non-rigid geometric alignment is constructed based on point-to-point constraints, and combined with the photogrammetry collinearity equation, it is iteratively solved to achieve accurate geometric alignment of the image and the laser point cloud, solving the problem of difficulty in determining the same-name points in the alignment of two three-dimensional point sets. At the same time, the problem of non-rigid deformation caused by camera distortion can be solved through the collinearity condition equation. At the same time, the radial chromatic aberration pre-compensation phase value calculation of the infrared vision acquisition camera can ensure that the image point cloud reconstruction will not fail due to chromatic aberration during image point cloud reconstruction, thereby increasing the detection sensitivity of the infrared vision acquisition camera. BRIEF DESCRIPTION OF THE DRAWINGS
[0093] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0094] Figure 1 A schematic diagram of the overall structure provided by an embodiment of the present invention;
[0095] Figure 2 A flowchart of the accuracy assessment provided by the embodiment of the present invention;
[0096] Figure 3 The present invention is a flowchart of a method for detecting defects in stamped sheet metal based on laser point cloud. DETAILED DESCRIPTION
[0097] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention will be further described in detail below with reference to the accompanying drawings.
[0098] See also Figure 1-2 , a stamping sheet defect detection system based on laser point cloud, comprising:
[0099] A laser point cloud acquisition module is used to collect laser point cloud information of the stamping sheet placed on the sheet placing module through the laser point cloud acquisition module;
[0100] Plate placement module, used to place stamping plates to be inspected;
[0101] The image color acquisition module is used to collect the color information of the laser point cloud image reflected by the stamping sheet placed on the sheet placement module and establish a pixel coordinate system;
[0102] An image distortion acquisition module is used to acquire distortion information of the laser point cloud image reflected by the stamping sheet placed on the sheet placing module;
[0103] An image processing module, used to receive information from the image color acquisition module and the image distortion acquisition module, and perform image processing on the projection image on the display screen according to the information from the image color acquisition module and the image distortion acquisition module, wherein the image processing includes image chromatic aberration correction and image distortion correction;
[0104] The result matching module is used to match the corresponding plate surface analysis results according to the plate laser point cloud image processed by the image processing module.
[0105] The following steps are involved:
[0106] S1, placing the stamping sheet to be inspected in the sheet placement module;
[0107] S2, generating laser point cloud of the plate environment through the laser point cloud acquisition module;
[0108] S3, establishing a pixel coordinate system through an image color acquisition module, and calculating a radial chromatic aberration pre-compensation phase value of an infrared vision acquisition camera according to the pixel coordinate system;
[0109] S4, obtains the image point cloud reconstruction result through the infrared vision acquisition camera and image processing module;
[0110] S5, rough registration of photographic point cloud and 3D laser point cloud;
[0111] S6, precise registration of photographic point cloud and 3D laser point cloud;
[0112] S7, matching the plate surface analysis result through the result matching module according to the laser point cloud information completed by the precise registration of the photographic point cloud and the three-dimensional laser point cloud in step S5.
[0113] The 4PCS algorithm with scale parameters is used for coarse registration to achieve automatic registration of laser scanning point cloud and near-field optical image, and the sparse point cloud generated based on the image is precisely registered with the three-dimensional laser point cloud. The 4PCS coarse registration method based on scale improvement is used as the rigid registration method, and the bundle adjustment model with point-point constraint is used as the rigid-non-rigid alternating registration method for non-rigid registration. On the basis of the adjustment model with point-point constraint, the bundle adjustment model with point-surface constraint is studied.
[0114] The method for calculating the radial chromatic aberration pre-compensation phase value of the infrared vision acquisition camera is:
[0115] In the pixel coordinate system of the image color acquisition module, any point in the red, green and blue color channels corresponds to four phase values: LCD displays the vertical stripe phase LCD horizontal vertical stripe phase LCD reflective vertical stripe phase and LCD reflective horizontal stripe phase Take the green channel as the standard phase in:
[0116] Indicates that the green channel displays the vertical stripe phase;
[0117] Indicates the horizontal and vertical stripe phase of the green channel;
[0118] Indicates the phase of vertical stripes reflected by the green channel;
[0119] Indicates the phase of the horizontal stripe reflected by the green channel;
[0120] At this time, the ideal phase of the red channel is in:
[0121] Indicates that the red channel displays the vertical stripe phase;
[0122] Indicates the horizontal and vertical stripe phase of the red channel;
[0123] Indicates the phase of vertical stripes reflected by the red channel;
[0124] Represents the phase of horizontal stripes reflected by the red channel;
[0125] The ideal phase of the blue channel is in:
[0126] Indicates that the blue channel displays the vertical stripe phase;
[0127] Indicates the horizontal and vertical stripe phase of the blue channel;
[0128] Indicates the phase of vertical stripes reflected by the blue channel;
[0129] Indicates the phase of horizontal stripes reflected by the blue channel;
[0130] At this time, the red channel vertical stripe phase and the red channel horizontal vertical stripe phase are set to the same value as the green channel vertical stripe phase and the green channel horizontal vertical stripe phase.
[0131]
[0132] The blue channel can be obtained in the same way:
[0133]
[0134] The pre-compensation phase of the red channel and the blue channel is obtained by using the ideal phase of the red channel and the blue channel, that is, the corresponding phase value of the ideal phase in the phase of the green channel LCD reflection stripe. This process is to offset the red channel and the blue channel in advance. The compensation phase of the red channel and the blue channel is
[0135]
[0136] and
[0137]
[0138] By taking the green channel as the reference and using the green LCD display phase to establish a phase coordinate system, the horizontal and vertical unfolding phases of the three color channels of red, green and blue displayed by the LCD and the horizontal and vertical unfolding phases of the three channels reflected by the LCD are unified into the green channel LCD display phase coordinate system. By comparing the phase difference of the LCD reflection stripes between the red and blue channels and the green channel when the phase coordinates are the same, this difference is the color difference between the two channels. Then, by mapping the ideal phase of the red and blue channels to the phase of the green LCD reflection stripes to pre-compensate the red and blue channels, this setting can not only realize the correction of the infrared vision acquisition camera projection image, but also correct the infrared vision acquisition camera projection image according to the different background colors. This setting can ensure the shooting effect of the infrared vision acquisition camera by increasing the color correction of the infrared vision acquisition camera.
[0139] The method for calculating pre-compensation pixels is:
[0140] The pre-compensated phase of the radial chromatic aberration of the infrared vision acquisition camera is compensated at the resolution of the image color acquisition module. Since the resolution of the infrared vision acquisition camera is different from that of the image color acquisition module, and pixels of different color channels are offset during reprojection, the compensated phase should be converted to pixels at the resolution of the infrared vision acquisition camera.
[0141] It is assumed that the absolute horizontal phase of a point M in the pixel coordinate system of the image color acquisition module is The absolute phase in the vertical direction is Its corresponding pixel coordinate in the infrared vision acquisition camera resolution is M(u p , v p ), so the relationship between the pixel resolution of the infrared vision acquisition camera and the phase of the pixel coordinate system of the image color acquisition module is:
[0142]
[0143] Where H is the width of the projected fringe image, V is the height of the projected fringe image, and T is the maximum number of sinusoidal fringes projected.
[0144] At the same time, since the resolution of the image color acquisition module is lower than that of the infrared vision acquisition camera, after the pixels of the image color acquisition module resolution are converted to the pixels of the infrared vision acquisition camera resolution, the obtained pixels are non-integer pixel positions, and the number of pixels is obviously insufficient. For integer pixels, it is necessary to use the griddata function to interpolate the pre-compensated pixel values of the integer pixel positions of the infrared vision acquisition camera throughout the field.
[0145] The specific reconstruction method of the image point cloud in step S4 is:
[0146] A1, overlapping multi-view sequence images, overlapping the acquired multi-view infrared images of stamping sheet through the image overlapping model;
[0147] A2, epipolar image generation, generating epipolar images by using the multi-view sequence overlapping images obtained in step A1 and the epipolar image generation model;
[0148] A3, matching cost calculation, matching calculation is performed on the epipolar image and the infrared collected image according to the dense matching algorithm and the epipolar relationship to obtain the epipolar image disparity map and the infrared collected image disparity map;
[0149] A4, matching cost aggregation, obtains the minimum matching cost by aggregating the current image matching cost with the previous image matching cost;
[0150] A5, generating an initial disparity map, generating an initial disparity map from all the images with the minimum matching cost obtained in step A4;
[0151] A6, determining the disparity map search range, and determining the disparity map search range through the corresponding points of the image point cloud;
[0152] A7, disparity map refinement, selects the disparity map whose matching result is higher than the preset matching standard according to the data matching matching model;
[0153] A8, generating coarse matching points, selecting coarse matching points according to the infrared photography point cloud and the laser point cloud in the disparity map generated in step A7;
[0154] A9, eliminating wrong matching points, eliminating the wrong matching points in the rough matching points obtained in step A8.
[0155] The specific method in step S5 is:
[0156] B1, perform scale estimation, that is, calculate the scale factor based on the image point cloud volume and the laser point cloud volume through the scale estimation model;
[0157] B2, the image point cloud and laser point cloud are converted by RASANC algorithm to calculate the conversion parameters, the specific method is:
[0158] B21, select a four-point coplanar quasi-basis with an appropriate scale factor;
[0159] B22, select candidate point sets based on distance, calculate the centroid deviation of the four points in each candidate coplanar four-point basis, the centroid deviation refers to the centroid coordinates of the point set in the local neighborhood of the point to be tested, after the centroid deviation of the four points in the coplanar four-point basis is calculated, if the deviations between the centroid deviations of the four points are all less than a predetermined threshold, then they can be used as candidate point sets;
[0160] B23, determine the four-point consistent set based on the ratio of the crossing line segments, and determine the target coplanar four-point basis from the candidate point set according to the affine ratio and line segment angle of the reference coplanar four-point basis;
[0161] B24, calculate initial conversion parameters;
[0162] B3, determine the optimization parameters of the maximum candidate point set as the best model parameters.
[0163] The specific method in step S6 is:
[0164] C1, non-rigid registration of photographic point cloud and 3D laser point cloud with point-to-point distance constraints, including:
[0165] C11, construction of non-rigid geometric registration model between photographic point cloud and 3D laser point cloud;
[0166] C12, rigid registration of photographic point cloud and 3D laser point cloud and non-rigid registration of photographic point cloud and 3D laser point cloud alternately;
[0167] C13, evaluating the accuracy of non-rigid registration, and executing step C2 for the photographic point cloud and the three-dimensional laser point cloud whose evaluation results meet the preset evaluation results;
[0168] C2, non-rigid registration based on nearest surface constraints between photographic point clouds and 3D laser points, including:
[0169] C21, non-rigid geometric registration model construction based on photographic point cloud and 3D laser points;
[0170] C22, nearest neighbor surface registration based on photographic point cloud and 3D laser points;
[0171] C23, accuracy assessment, executing step S7 for the photographic point cloud and the three-dimensional laser point cloud whose assessment results meet the preset assessment results.
[0172] The specific steps of step C21 are:
[0173] D1, the camera distortion parameters, the exterior orientation elements after image coarse registration conversion, the image principal point and the principal distance are used as the initial values of the image and 3D point cloud registration parameters;
[0174] D2, if the distance error is judged to be small enough, execute step D6; if the judgment result is that the distance error is not small enough, execute step D3;
[0175] D3, construct the bundle adjustment equation based on surface constraints and iterate continuously;
[0176] D4, adjust the position of the image connection point and the image internal and external orientation parameters;
[0177] D5, until the parameter changes sufficiently small, execute step D6;
[0178] D6, end the iteration, the parameters at this time are the parameters obtained by the final precise alignment.
[0179] The specific method of step D1 is:
[0180] D11, for any image sparsely reconstructed 3D point cloud, the KD tree is used to build the data structure model, and the nearest neighbor algorithm is used to search for n points adjacent to it in the 3D laser point cloud, and the surface fitting is performed on these n points. The surface fitting of these n points is close to the real surface of the object. This surface can be used as the nearest neighbor surface. When the two point clouds are optimally fitted, the points in the laser point cloud fall on the surface fitted by the corresponding nearest neighbor points. The quadratic surface fitting model formula is:
[0181] AX2 +BY 2 +CZ 2 +DXY+EXZ+FYZ+GX+
[0182] HY+IZ+J=0.
[0183] Where A, B, C, D, E, F, G, H, I, J are the surface parameters of the fitting surface, and X, Y, Z are the three-dimensional laser point coordinates.
[0184] D12, after the laser point cloud and the image point cloud are precisely registered, each 3D point in the image 3D point cloud should fall on its corresponding nearest surface, and the image 3D point coordinates, image point coordinates, image internal and external orientation elements, and distortion parameters should satisfy the collinearity condition equation in photogrammetry. The specific formula is:
[0185]
[0186] in:
[0187] Where X A , Y A , Z A is the three-dimensional point coordinate of the image, X S , Y S , Z S is the coordinates of the image’s photography site, a 1 , a 2 , a 3 , b 1 , b 2 , b 3 , c 1 , c 2 , c 3 is the rotation matrix element composed of φωκ, f is the camera focal length, x 0 ,y 0 is the coordinate of the image principal point, k 1 , k 2 , k 3 , p 1 , p 2 is the distortion parameter of the camera;
[0188] D13, Taylor series is rewritten as a linear equation and converted into a least squares problem. The specific formula is:
[0189]
[0190] in:
[0191] a 11 =A / I,a 22 =B / I,a 33 =C / I,a 12 =D / I,a13 =E / I,a 23 =F / I,a 14 =G / I,a 24 =H / I,a 44 =J / I.
[0192] The operation rules of step C22 are:
[0193] C221, in the initial weight of the image point observation, represents the pixel variance, in is the unit weight variance. The image point variance is affected by the image matching accuracy. Therefore, the variance of the image point observation can be replaced by the variance of the image point matching.
[0194] C222, initial weight of the nearest surface virtual observation in is the deviation variance between the image 3D point and the nearest surface;
[0195] C223, during each adjustment iteration, calculate the last adjustment The value of Where n 1 Represents the number of image point observation equations, V T P I In each adjustment iteration, V is but
[0196] The specific method of step C23 is:
[0197] C231, select the total unit weighted mean error after adjustment as the evaluation index. The formula of the total unit weighted mean error is as follows:
[0198]
[0199] Where rt represents the external orientation element, rp represents the three-dimensional point coordinates, rk represents the number of distortion error parameters, rc represents the internal orientation element, and n is the number of observation equations;
[0200] C232, the accuracy evaluation of the geometric registration of close-range optical images and 3D laser point clouds is also expressed by the unit weighted mean error σ1 of the image point observation value and the unit weighted mean error σs of the deviation value between the sparse point cloud and the nearest laser local surface. The formula is as follows:
[0201]
[0202] Where: Sn represents the number of nearest surface equations constructed for the branch image connection points, and n1 represents the number of image point observation equations;
[0203] C233, back-project the point cloud onto the optical image, and illustrate the registration accuracy between the optical image and the laser scanning point cloud based on the fit between the back-projected points and the image outer contour.
[0204] Working principle: When in use, for the optical image collected by the infrared vision acquisition camera and the three-dimensional laser point cloud data of the plate environment, a mathematical model of non-rigid geometric alignment is constructed based on point-to-point constraints. The model uses the nearest adjacent surface as a constraint, and combines the photogrammetry collinearity equation, and iteratively solves it to achieve accurate geometric alignment of the image and laser point cloud. This method solves the problem of difficulty in determining points of the same name in the alignment of two three-dimensional point sets. At the same time, the problem of non-rigid deformation caused by camera distortion can be solved through the collinearity condition equation. At the same time, the radial chromatic aberration pre-compensation phase value calculation of the infrared vision acquisition camera can ensure that the image point cloud reconstruction will not fail due to chromatic aberration. At the same time, the matching of the laser point cloud increases the monitoring accuracy of the environment changes in the infrared vision acquisition camera lens, thereby increasing the detection sensitivity of the infrared vision acquisition camera.
[0205] The above description is only by way of illustration of certain exemplary embodiments of the present invention. It is undoubted that those skilled in the art can modify the described embodiments in various ways without departing from the spirit and scope of the present invention. Therefore, the above drawings and descriptions are illustrative in nature and should not be construed as limiting the scope of protection of the claims of the present invention.
Claims
1. A stamping sheet metal defect detection system based on laser point cloud, It is characterized in that include: A laser point cloud acquisition module is used to collect laser point cloud information of a stamped sheet placed on the sheet placing module through the laser point cloud acquisition module; Plate placement module, used to place stamping plates to be tested; The image color acquisition module is used to collect the color information of the laser point cloud image reflected by the stamping sheet placed on the sheet placement module and establish a pixel coordinate system; An image distortion acquisition module is used to acquire distortion information of the laser point cloud image reflected by the stamping sheet placed on the sheet placing module; An image processing module, used to receive information from the image color acquisition module and the image distortion acquisition module, and perform image processing on the projection image on the display screen according to the information from the image color acquisition module and the image distortion acquisition module, wherein the image processing includes image chromatic aberration correction and image distortion correction; The result matching module is used to match the corresponding plate surface analysis result according to the plate laser point cloud image processed by the image processing module.
2. According to claim 1, a detection method for a stamping sheet defect detection system based on laser point cloud, It is characterized in that The following steps are involved: S1, placing the stamping sheet to be inspected in the sheet placement module; S2, generating laser point cloud of the plate environment through the laser point cloud acquisition module; S3, establishing a pixel coordinate system through an image color acquisition module, and calculating a radial chromatic aberration pre-compensation phase value of an infrared vision acquisition camera according to the pixel coordinate system; S4, obtains the image point cloud reconstruction result through the infrared vision acquisition camera and image processing module; S5, rough registration of photographic point cloud and 3D laser point cloud; S6, precise registration of photographic point cloud and 3D laser point cloud; S7, matching the plate surface analysis result through the result matching module according to the laser point cloud information completed by the precise registration of the photographic point cloud and the three-dimensional laser point cloud in step S4.
3. According to claim 1, a stamping sheet defect detection system and method based on laser point cloud, It is characterized in that The method for calculating the radial chromatic aberration pre-compensation phase value of the infrared vision acquisition camera is: In the pixel coordinate system of the image color acquisition module, any point in the red, green and blue color channels corresponds to four phase values: LCD displays the vertical stripe phase LCD horizontal vertical stripe phase LCD reflective vertical stripe phase and LCD reflective horizontal stripe phase Take the green channel as the standard phase in: Indicates that the green channel displays the vertical stripe phase; Indicates the horizontal and vertical stripe phase of the green channel; Indicates the phase of vertical stripes reflected by the green channel; Indicates the phase of the horizontal stripe reflected by the green channel; At this time, the ideal phase of the red channel is in: Indicates that the red channel displays the vertical fringe phase; Indicates the horizontal and vertical stripe phase of the red channel; Indicates the phase of vertical stripes reflected by the red channel; Represents the phase of horizontal stripes reflected by the red channel; The ideal phase of the blue channel is in: Indicates that the blue channel displays the vertical stripe phase; Indicates the horizontal and vertical stripe phase of the blue channel; Indicates the phase of vertical stripes reflected by the blue channel; Indicates the phase of horizontal stripes reflected by the blue channel; At this time, the red channel vertical stripe phase and the red channel horizontal vertical stripe phase are set to the same value as the green channel vertical stripe phase and the green channel horizontal vertical stripe phase. The blue channel can be obtained in the same way: The pre-compensation phase of the red channel and the blue channel is obtained by using the ideal phase of the red channel and the blue channel, that is, the corresponding phase value of the ideal phase in the phase of the green channel LCD reflection stripe. This process is to offset the red channel and the blue channel in advance. The compensation phase of the red channel and the blue channel is and 4. According to claim 2, a detection method for a stamping sheet defect detection system based on laser point cloud, It is characterized in that The specific reconstruction method of the image point cloud in step S4 is: A1, overlapping multi-view sequence images, overlapping the acquired multi-view infrared images of stamping sheet through the image overlapping model; A2, epipolar image generation, generating epipolar images by using the multi-view sequence overlapping images obtained in step A1 and the epipolar image generation model; A3, matching cost calculation, performing matching calculation on the epipolar image and the infrared collected image according to the dense matching algorithm and the epipolar relationship, to obtain an epipolar image disparity map and an infrared collected image disparity map; A4, matching cost aggregation, obtains the minimum matching cost by aggregating the current image matching cost with the previous image matching cost; A5, generating an initial disparity map, generating an initial disparity map from all the images with the minimum matching cost obtained in step A4; A6, determining the disparity map search range, and determining the disparity map search range through the corresponding points of the image point cloud; A7, disparity map refinement, selects the disparity map whose matching result is higher than the preset matching standard according to the data matching matching model; A8, generating coarse matching points, selecting coarse matching points according to the infrared photography point cloud and the laser point cloud in the disparity map generated in step A7; A9, eliminating wrong matching points, eliminating the wrong matching points in the rough matching points obtained in step A8.
5. According to claim 3, a detection method for a stamping sheet defect detection system based on laser point cloud, It is characterized in that The specific method in step S5 is: B1, perform scale estimation, that is, calculate the scale factor based on the image point cloud volume and the laser point cloud volume through the scale estimation model; B2, the image point cloud and laser point cloud are converted by RASANC algorithm to calculate the conversion parameters, the specific method is: B21, select a four-point coplanar quasi-basis with an appropriate scale factor; B22, select candidate point sets based on distance, calculate the centroid deviation of the four points in each candidate coplanar four-point basis, the centroid deviation refers to the centroid coordinates of the point set in the local neighborhood of the point to be tested, after the centroid deviation of the four points in the coplanar four-point basis is calculated, if the deviations between the centroid deviations of the four points are all less than a predetermined threshold, then they can be used as candidate point sets; B23, determine the four-point consistent set based on the ratio of the crossing line segments, and determine the target coplanar four-point basis from the candidate point set according to the affine ratio and line segment angle of the reference coplanar four-point basis; B24, calculate initial conversion parameters; B3, determine the optimization parameters of the maximum candidate point set as the best model parameters.
6. According to claim 4, a detection method for a stamping sheet defect detection system based on laser point cloud, It is characterized in that The specific method in step S6 is: C1, non-rigid registration of photographic point cloud and 3D laser point cloud with point-to-point distance constraints, including: C11, construction of non-rigid geometric registration model between photographic point cloud and 3D laser point cloud; C12, rigid registration of photographic point cloud and 3D laser point cloud and non-rigid registration of photographic point cloud and 3D laser point cloud alternately; C13, evaluating the accuracy of non-rigid registration, and executing step C2 for the photographic point cloud and the three-dimensional laser point cloud whose evaluation results meet the preset evaluation results; C2, non-rigid registration based on nearest surface constraints between photographic point clouds and 3D laser points, including: C21, non-rigid geometric registration model construction based on photographic point cloud and 3D laser points; C22, nearest neighbor surface registration based on photographic point cloud and 3D laser points; C23, accuracy assessment, executing step S7 for the photographic point cloud and the three-dimensional laser point cloud whose assessment results meet the preset assessment results.
7. According to claim 5, a detection method for a stamping sheet defect detection system based on laser point cloud, It is characterized in that The specific steps of step C21 are: D1, the camera distortion parameters, the exterior orientation elements after image coarse registration conversion, the image principal point and the principal distance are used as the initial values of the image and 3D point cloud registration parameters; D2, if the distance error is judged to be small enough, execute step D6; if the judgment result is that the distance error is not small enough, execute step D3; D3, construct the bundle adjustment equation based on surface constraints and iterate continuously; D4, adjust the position of the image connection point and the image internal and external orientation parameters; D5, until the parameter changes sufficiently small, execute step D6; D6, end the iteration, the parameters at this time are the parameters obtained by the final precise alignment.
8. According to claim 6, a detection method for a stamping sheet defect detection system based on laser point cloud, It is characterized in that The specific method of step D1 is: D11, for the 3D point cloud generated by sparse reconstruction of any image, the KD tree is used to build the data structure model, and the nearest neighbor algorithm is used to search for n points adjacent to it in the 3D laser point cloud, and the surface fitting is performed on these n points. The surface fitting of these n points is close to the real surface of the object. This surface can be used as the nearest neighbor surface. When the two point clouds are optimally fitted, the points in the laser point cloud fall on the surface fitted by the corresponding nearest neighbor points; D12, after the laser point cloud and the image point cloud are precisely registered, each 3D point in the image 3D point cloud should fall on its corresponding nearest surface, and the image 3D point coordinates, image point coordinates, image internal and external orientation elements, and distortion parameters should satisfy the collinearity condition equation in photogrammetry; D13, Taylor series is rewritten as a linear equation and converted into a least squares problem.
9. The detection method of a stamping sheet defect detection system based on laser point cloud according to claim 8, It is characterized in that The specific method of step C23 is: C231, select the total unit weighted mean error after adjustment as the evaluation index. The formula of the total unit weighted mean error is as follows: where r t represents the exterior orientation element, r p Represents the coordinates of a three-dimensional point, r k Represents the number of distortion difference parameters, r c represents the internal orientation element, n is the number of observation equations; C232, the accuracy evaluation of the geometric registration of close-range optical images and 3D laser point clouds also uses the unit weighted mean error σ of the image point observation value 1 And the unit weighted mean error σ between the sparse point cloud and the nearest laser local surface deviation value s The formula is as follows: Where: n S Represents the number of nearest surface equations constructed for the branch image connection points, n 1 Expressed as the number of image point observation equations; C233, back-project the point cloud onto the optical image, and illustrate the registration accuracy between the optical image and the laser scanning point cloud based on the fit between the back-projected points and the image outer contour.
Citation Information
Patent Citations
Stamped part surface defect detection device and method based on three-dimensional vision
CN107052086A
Laser point cloud-based camera calibration method without calibration field
CN111292381A
Detection method for improving detection sensitivity of infrared hunting camera
CN116912251A
Vegetation segmentation effect evaluation method based on laser point cloud
CN117853540A
Cited By
Printing and dyeing defect detection method and system
CN121033020A
A printing and dyeing defect detection method and system
CN121033020B
Welding seam defect detection method and device based on space volume change
CN121073989A
