A method and system for locating structural reinforcement welds in point cloud

By screening the curvature characteristics and dividing plane equations in the point cloud, the problem of difficulty in accurately locating structural reinforcement welds in the existing technology is solved, the accurate and reliable positioning of the welds is achieved, and errors in welding are avoided.

CN113744245BActive Publication Date: 2024-10-01唐山大金海洋工程装备制造有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111034042.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-03
Publication Date
2024-10-01
Estimated Expiration
2041-09-03

AI Technical Summary

Technical Problem

Existing three-dimensional feature recognition methods are difficult to accurately locate structural stiffener welds from point clouds, which may lead to welding gun collisions or virtual welding during welding, and cannot effectively reflect the true position of the welds.

Method used

By screening candidate weld points with rich curvature features in the point cloud, segmenting and fitting the plane equations of the bottom plate and side plate, using plane constraints to screen out the final effective weld points, and combining curvature features and plane geometric constraints to ensure accurate positioning sex.

Benefits of technology

It achieves the accuracy and reliability of weld positioning, avoids welding gun collision or false welding, and ensures welding quality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113744245B_ABST
    Figure CN113744245B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for locating weld seams of structural reinforcement ribs in point clouds, comprising the following steps: S1: selecting candidate weld seam points with rich curvature features in the point cloud of the structural reinforcement ribs; S2: segmenting the bottom plate plane of the structural reinforcement ribs and the two side plate planes intersecting therewith, and fitting their plane equations; S3: using the plane equation obtained in step S2 as a constraint, selecting the final effective weld seam points from the candidate weld seam points with rich curvature features, and completing the positioning of the weld seams of the structural reinforcement ribs. The present invention enables the effective weld seam points to meet the geometric constraints and truly reflect the actual weld seam positions, avoiding situations such as welding gun collision or false welding, and the weld seam positioning results are accurate and reliable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine vision technology, and in particular to a method and system for locating a structural reinforcement weld in a point cloud. Background Art

[0002] In the welding industry, vision technology can help robots autonomously locate welds, improving the accuracy, efficiency and automation of robot welding. Currently, most weld positioning technologies are based on line laser 3D cameras, which first identify the pixel position of the intersection of the laser stripe and the weld from the image, and then convert it into the three-dimensional coordinates of the weld point. This method requires a precise mobile device to drive the line laser 3D camera to scan the entire weld, and it takes multiple measurements to locate the complete weld, which is inefficient. The surface structured light 3D camera does not require the assistance of a mobile device, and can accurately obtain the surface point cloud of the workpiece within the surface range where the weld is located through a single measurement. Directly locating the weld from the point cloud obtained by the surface structured light 3D camera can improve the efficiency of welding.

[0003] At present, there is no mature 3D feature recognition method that can directly locate welds from point clouds, and it is necessary to analyze the three-dimensional geometric structure of the workpiece itself. The structural reinforcement weld is located at the intersection of the bottom plate and the side plate. Although the ideal weld straight line equation can be obtained through the surface intersection relationship, actual experiments show that the ideal straight line equation is not a true reflection of the weld. Welding along this straight line will cause welding gun collision or cold welding. Therefore, it is difficult to accurately locate the reinforcement weld from the point cloud only by feature recognition or three-dimensional geometric analysis. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for locating the weld of a structural reinforcement rib in a point cloud, so that the effective weld points not only meet the geometric constraints, but also can truly reflect the actual weld position, avoid welding gun collision or cold welding, and the weld positioning result is accurate and reliable.

[0005] In order to solve the above technical problems, the present invention provides a method for locating a structural reinforcement weld in a point cloud, comprising the following steps:

[0006] S1: Screen out candidate weld points with rich curvature features from the structural reinforcement point cloud;

[0007] S2: Split the bottom plate plane of the structural reinforcement and the two side plate planes intersecting with it, and fit their plane equations;

[0008] S3: Using the plane equation obtained in step S2 as a constraint, the final effective weld point is selected from the candidate weld points with rich curvature features to complete the structural reinforcement weld positioning.

[0009] As a further improvement of the present invention, the step S1 is specifically as follows:

[0010] By establishing the neighborhood data structure of the structural reinforcement point cloud, the neighborhood curvature of the point in the point cloud is estimated using the covariance analysis method, and the neighborhood covariance matrix of each point in the point cloud is constructed;

[0011] The minimum eigenvalue of the covariance matrix is ​​used as the estimated value of the neighborhood curvature, and the curvature threshold is set;

[0012] All points whose neighborhood curvature is greater than the threshold are screened out, which are candidate weld points with rich curvature features.

[0013] As a further improvement of the present invention, the step S2 is specifically as follows:

[0014] The plane segmentation algorithm based on random sampling consistency obtains the sampling plane by random sampling, extracts the plane points that meet the threshold of the number of points in the sampling plane from the original point cloud set, and fits the new effective plane;

[0015] When the bottom plate plane and the two side plate planes intersecting with it are extracted, if the number of points in the point cloud set does not meet the minimum point number requirement, the algorithm is terminated and three valid plane parameters are obtained.

[0016] As a further improvement of the present invention, the step S3 is specifically as follows:

[0017] The plane equation obtained in step S2 is used as a constraint to screen the candidate weld points again;

[0018] The distances of the candidate weld point to the bottom plate plane and the two side plate planes intersecting with it are calculated. When the candidate weld point satisfies the requirement that the distance to the bottom plate plane is less than 3 mm and the distance to the side plate plane is less than 1 mm, it is a valid weld point.

[0019] As a further improvement of the present invention, step S1 specifically includes the following steps:

[0020] S101: All three-dimensional points of the structural reinforcement point cloud constitute a point cloud set D0. The total number of three-dimensional points in the point cloud set D0 is n0. i represents the i-th 3D point in the point set D0, X i Represents a three-dimensional point P i The X-axis coordinate, Y i Represents a three-dimensional point P i The Y-axis coordinate, Z i Represents a three-dimensional point P i The Z-axis coordinates of the point cloud are i=1,2,…,n0; the k-neighborhood data structure of the point cloud is established, the number of neighborhood points is set to k, and the threshold for screening curvature features is set to λ based on experience th , let i=0, n1=0;

[0021] S102: Let i=i+1; search for the distance 3D point P in the point cloud set D0 i The nearest k points, denoted as P i,j , j = 1, 2, ..., k, as a three-dimensional point P i k-neighboring points of ;

[0022] S103: Based on the three-dimensional point P i The k-neighborhood points of the construct the neighborhood covariance matrix C i for:

[0023]

[0024] in, X i,j , Y i,j , Z i,j Represent the three-dimensional point P i,j X-axis, Y-axis, and Z-axis coordinates, j = 1, 2, ... k; for the matrix C i Perform SVD decomposition to obtain matrix C i The minimum eigenvalue of i , with λ i is a three-dimensional point P i The estimated value of the neighborhood curvature;

[0025] S104: Determine λ i >λ th Is it true? If it is true, then this three-dimensional point P i As a candidate weld point, let n1 = n1 + 1,

[0026] S105: Determine whether i<n0 is true. If so, go to step S102; if not, obtain n1 candidate weld points P u ′, u=1,2,…n1, the total number of candidate weld points is n1.

[0027] As a further improvement of the present invention, step S2 specifically includes the following steps:

[0028] S201: Setting the number of end points n of the plane segmentation algorithm based on random sampling consistency min , the threshold of the number of points constituting the plane n th , the distance threshold d to determine whether it is an inner point th , the reference normal vector of the base plane Let n max =n0,n p =0;

[0029] S202: Randomly sample 3 3D points P from the point cloud set D0 r0 , Pr1 , P r2 , the plane equation fitted according to these three 3D points is a r x+b r y+c r z+1=0, where a r 、b r 、c r represents the plane parameter, a r 、b r 、c r The calculation is:

[0030]

[0031] Among them, X r0 , X r1 , X r2 Respectively represent point P r0 , P r1 , P r2 The X-axis coordinate of r0 , Y r1 , Y r2 Respectively represent point P r0 , P r1 , P r2 The Y-axis coordinate of r0 , Z r1 , Z r2 Respectively represent point P r0 , P r1 , P r2 The Z-axis coordinate of

[0032] S203: Let n in =0, i=1, P i represents the i-th 3D point in the point set D0, X i Represents a three-dimensional point P i The X-axis coordinate, Y i Represents a three-dimensional point P i The Y-axis coordinate, Z i Represents a three-dimensional point P i The Z-axis coordinate of

[0033] S204: Calculate the three-dimensional point P i To equation a r x+b r y+c r The distance d of the plane represented by z+1=0 i for:

[0034]

[0035] S205: Determine d i <d thIs it true? If it is true, then the three-dimensional point P i As equation a r x+b r y+c r The interior point of the plane represented by z+1=0, let n in =n in +1, If not, proceed to step S206;

[0036] S206: Determine if i < n max Is it true? If it is true, let i=i+1 and go to step S24; if it is not true, get the value of equation a. r x+b r y+c r The inner point P of the plane represented by z+1=0 in the point cloud set D0 m ″,m=1,2,…n in , go to step S207;

[0037] S207: Determine n in >n th Is it true? If not, go to step S202; if true, set n p =n p +1, fitting the interior point P m ″,m=1,2,…n in , the plane where it is located is the effective plane, and the plane equation is Equation parameters The calculation is:

[0038]

[0039] Among them, X m ,m=1,2,…n in , is the interior point P m ″,m=1,2,…n in The X-axis coordinate of m ,m=1,2,…n in , is the interior point P m ″,m=1,2,…n in The Y-axis coordinate of m ,m=1,2,…n in , is the interior point P m ″,m=1,2,…n in The Z-axis coordinate of

[0040] S208: Delete the inner point P from the point cloud set D0 m ″,m=1,2,…n in , let n max =n max -nin ;

[0041] S209: Determine n max >n min Is it true? If it is true, go to step S202; if it is not true, get n p The effective plane equation a j x+b j y+c j z+1=0,j=1,2,…n p , the total number of valid planes is n p ;

[0042] S210: Let t=1, t B =0,t S = 0, calculate the unit normal vector of the effective plane for:

[0043]

[0044] S211: Calculate the unit normal vector of the tth valid plane With reference normal vector The number product for:

[0045]

[0046] S212: Judgment Is it true? If true, let t B =t B +1, so Get the plane equation of the bottom plate plane If not, let t S =t S +1, so Get the plane equation of the side panel plane

[0047] S213: Determine t<n p Is it true? If it is true, set t=t+1 and go to step S211; if it is not true, get t B The plane equation of the bottom plate plane and t S The plane equation of the side panel plane; when the parameters in step S201 are set appropriately, n p =3, t B =1, t S =2 holds true, that is, the plane equation of the bottom plate plane is a′1x+b′1y+c′1z+1=0 and the plane equations of the two side plate planes are a″1x+b″1y+c″1z+1=0 and a″2x+b″2y+c″2z+1=0.

[0048] As a further improvement of the present invention, step S3 specifically includes the following steps:

[0049] S301: Let u=1, n2=0, three-dimensional point P u ′ is the uth candidate weld point obtained in step S105, X u Represents a three-dimensional point P u ′’s X-axis coordinate, Y u Represents a three-dimensional point P u ′Y-axis coordinate, Z u Represents a three-dimensional point P u ′Z-axis coordinate;

[0050] S302: Calculate the three-dimensional point P u ′The distance d from the bottom plate plane B and the distance d to the planes of the two side panels s1 and d s2 for:

[0051]

[0052] S303: Let u=u+1; judge d B <3mm, if not, go to step S302; if yes, go to step S304;

[0053] S304: Determine d s1 <1mm or d s2 <1mm is true, if not, go to step S302; if yes, then the three-dimensional point P u ' is the effective welding point, let n2 = n2 + 1, Go to step S305;

[0054] S306: Determine whether u<n1 is established. If so, go to step S302; if not, obtain the effective weld point P v ″′, v=1,2,…n2, the total number of valid weld points is n2; the weld positioning of the structural reinforcement point cloud is completed.

[0055] A structural reinforcement weld positioning system in a point cloud, comprising:

[0056] The selection module is used to screen out candidate weld points with rich curvature features in the structural reinforcement point cloud;

[0057] The segmentation and fitting module is used to segment the bottom plate plane of the structural reinforcement and the two side plate planes intersecting with it, and fit their plane equations;

[0058] The positioning module is used to use the plane equation obtained in the segmentation and fitting module as a constraint to screen out the final effective weld points from the candidate weld points with rich curvature features and complete the structural reinforcement weld positioning.

[0059] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the method for locating a structural reinforcement weld in a point cloud as described above are implemented.

[0060] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a method for locating a structural reinforcement weld in a point cloud as described above.

[0061] The beneficial effects of the present invention are as follows: the present invention extracts the neighborhood curvature features of the reinforcement rib point cloud, and uses points with rich neighborhood curvature features as candidate weld points; segments and fits the plane equations of the bottom plate plane and the two side plate planes of the structural reinforcement rib; utilizes the geometric constraints of the plane to determine the final effective weld points from the initially screened candidate weld points. The effective weld points not only meet the geometric constraints, but also can truly reflect the actual weld positions, thus avoiding welding gun collisions or cold welds, and the weld positioning results are accurate and reliable. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a flow chart of the structural reinforcement weld positioning of the present invention;

[0063] Figure 2 It is a schematic diagram of the weld of the structural reinforcement rib of the present invention;

[0064] Figure 3 This is the effect diagram before the present invention selects points with rich curvature features;

[0065] Figure 4 This is the effect diagram after the present invention screens out points with rich curvature features;

[0066] Figure 5 This is a rendering of the present invention for dividing the bottom plate plane and the side plate plane;

[0067] Figure 6 This is a rendering of the final positioning of the structural reinforcement weld of the present invention;

[0068] Explanation of the numbers in the figure: 1. Base plate; 2. Welding seam; 3. Measuring angle. DETAILED DESCRIPTION

[0069] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments so that those skilled in the art can better understand the present invention and implement it, but the embodiments are not intended to limit the present invention.

[0070] refer to Figure 1 The present invention provides a method for locating a structural reinforcement weld in a point cloud, comprising the following steps:

[0071] S1: Screen out candidate weld points with rich curvature features from the structural reinforcement point cloud;

[0072] S2: Split the bottom plate plane of the structural reinforcement and the two side plate planes intersecting with it, and fit their plane equations;

[0073] S3: Using the plane equation obtained in step S2 as a constraint, the final effective weld point is selected from the candidate weld points with rich curvature features to complete the structural reinforcement weld positioning.

[0074] Specifically, the step S1 is as follows:

[0075] By establishing the neighborhood data structure of the structural reinforcement point cloud, the neighborhood curvature of the point in the point cloud is estimated using the covariance analysis method, and the neighborhood covariance matrix of each point in the point cloud is constructed;

[0076] The minimum eigenvalue of the covariance matrix is ​​used as the estimated value of the neighborhood curvature, and the curvature threshold is set;

[0077] All points whose neighborhood curvature is greater than the threshold are screened out, which are candidate weld points with rich curvature features.

[0078] The step S2 is specifically as follows:

[0079] The plane segmentation algorithm based on random sampling consistency obtains the sampling plane by random sampling, extracts the plane points that meet the threshold of the number of points in the sampling plane from the original point cloud set, and fits the new effective plane;

[0080] When the bottom plate plane and the two side plate planes intersecting with it are extracted, if the number of points in the point cloud set does not meet the minimum point number requirement, the algorithm is terminated and three valid plane parameters are obtained.

[0081] The step S3 is specifically as follows:

[0082] The plane equation obtained in step S2 is used as a constraint to screen the candidate weld points again;

[0083] The distances of the candidate weld point to the bottom plate plane and the two side plate planes intersecting with it are calculated. When the candidate weld point satisfies the requirement that the distance to the bottom plate plane is less than 3 mm and the distance to the side plate plane is less than 1 mm, it is a valid weld point.

[0084] Specifically in the calculation implementation process, refer to Figure 1The step S1 of preliminarily screening out candidate weld points with rich curvature features from the structural reinforcement rib point cloud specifically comprises the following steps:

[0085] S101: All three-dimensional points of the structural reinforcement point cloud constitute a point cloud set D0. The total number of three-dimensional points in the point cloud set D0 is n0. i represents the i-th 3D point in the point set D0, X i Represents a three-dimensional point P i The X-axis coordinate, Y i Represents a three-dimensional point P i The Y-axis coordinate, Z i Represents a three-dimensional point P i The Z-axis coordinates of the point cloud are i=1,2,…,n0; the k-neighborhood data structure of the point cloud is established, the number of neighborhood points is set to k, and the threshold for screening curvature features is set to λ based on experience th , let i=0, n1=0;

[0086] S102: Let i=i+1; search for the distance 3D point P in the point cloud set D0 i The nearest k points, denoted as P i,j , j = 1, 2, ..., k, as a three-dimensional point P i k-neighboring points of ;

[0087] S103: Based on the three-dimensional point P i The k-neighborhood points of the construct the neighborhood covariance matrix C i for:

[0088]

[0089] in, X i,j , Y i,j , Z i,j Represent the three-dimensional point P i,j X-axis, Y-axis, and Z-axis coordinates, j = 1, 2, ... k; for the matrix C i Perform SVD decomposition to obtain matrix C i The minimum eigenvalue of i , with λ i is a three-dimensional point P i The estimated value of the neighborhood curvature;

[0090] S104: Determine λ i >λ th Is it true? If it is true, then this three-dimensional point P i As a candidate weld point, let n1 = n1 + 1,

[0091] S105: Determine whether i<n0 is true. If so, go to step S102; if not, obtain n1 candidate weld points P u ′, u=1,2,…n1, the total number of candidate weld points is n1.

[0092] The step S2 2) of dividing the bottom plate plane and the two side plate planes of the structural reinforcement ribs and fitting their plane equations specifically comprises the following steps:

[0093] S201: Setting the number of end points n of the plane segmentation algorithm based on random sampling consistency min , the threshold of the number of points constituting the plane n th , the distance threshold d to determine whether it is an inner point th , the reference normal vector of the base plane Let n max =n0,n p =0;

[0094] S202: Randomly sample 3 3D points P from the point cloud set D0 r0 , P r1 , P r2 , the plane equation fitted according to these three 3D points is a r x+b r y+c r z+1=0, where a r 、b r 、c r represents the plane parameter, a r 、b r 、c r The calculation is:

[0095]

[0096] Among them, X r0 , X r1 , X r2 Respectively represent point P r0 , P r1 , P r2 The X-axis coordinate of r0 , Y r1 , Y r2 Respectively represent point P r0 , P r1 , P r2 The Y-axis coordinate of r0 , Z r1 , Z r2 Respectively represent point P r0 , P r1 , P r2 The Z-axis coordinate of

[0097] S203: Let nin =0, i=1, P i represents the i-th 3D point in the point set D0, X i Represents a three-dimensional point P i The X-axis coordinate, Y i Represents a three-dimensional point P i The Y-axis coordinate, Z i Represents a three-dimensional point P i The Z-axis coordinate of

[0098] S204: Calculate the three-dimensional point P i To equation a r x+b r y+c r The distance d of the plane represented by z+1=0 i for:

[0099]

[0100] S205: Determine d i <d th Is it true? If it is true, then the three-dimensional point P i As equation a r x+b r y+c r The interior point of the plane represented by z+1=0, let n in =n in +1, If not, proceed to step S206;

[0101] S206: Determine if i < n max Is it true? If it is true, let i=i+1 and go to step S24; if it is not true, get the value of equation a. r x+b r y+c r The inner point P of the plane represented by z+1=0 in the point cloud set D0 m ″,m=1,2,…n in , go to step S207;

[0102] S207: Determine n in >n th Is it true? If not, go to step S202; if true, set n p =n p +1, fitting the interior point P m ″,m=1,2,…n in , the plane where it is located is the effective plane, and the plane equation is Equation parameters The calculation is:

[0103]

[0104] Among them, X m ,m=1,2,…n in , is the interior point P m ″,m=1,2,…n in The X-axis coordinate of m ,m=1,2,…n in , is the interior point P m ″,m=1,2,…n in The Y-axis coordinate of m ,m=1,2,…n in , is the interior point P m ″,m=1,2,…n in The Z-axis coordinate of

[0105] S208: Delete the inner point P from the point cloud set D0 m ″,m=1,2,…n in , let n max =n max -n in ;

[0106] S209: Determine n max >n min Is it true? If it is true, go to step S202; if it is not true, get n p The effective plane equation a j x+b j y+c j z+1=0,j=1,2,…n p , the total number of valid planes is n p ;

[0107] S210: Let t=1, t B =0,t S = 0, calculate the unit normal vector of the effective plane for:

[0108]

[0109] S211: Calculate the unit normal vector of the tth valid plane With reference normal vector The number product for:

[0110]

[0111] S212: Judgment Is it true? If true, let t B =t B +1, so Get the plane equation of the bottom plate plane If not, let t S =t S +1, so Get the plane equation of the side panel plane

[0112] S213: Determine t<n p Is it true? If it is true, set t=t+1 and go to step S211; if it is not true, get t B The plane equation of the bottom plate plane and t S The plane equation of the side panel plane; when the parameters in step S201 are set appropriately, n p =3, t B =1, t S =2 holds true, that is, the plane equation of the bottom plate plane is a′1x+b′1y+c′1z+1=0 and the plane equations of the two side plate planes are a″1x+b″1y+c″1z+1=0 and a″2x+b″2y+c″2z+1=0.

[0113] The step S33) of selecting the final valid weld points from the candidate weld points with rich curvature features according to the plane constraint specifically comprises the following steps:

[0114] S301: Let u=1, n2=0, three-dimensional point P u ′ is the uth candidate weld point obtained in step S105, X u Represents a three-dimensional point P u ′’s X-axis coordinate, Y u Represents a three-dimensional point P u ′Y-axis coordinate, Z u Represents a three-dimensional point P u ′Z-axis coordinate;

[0115] S302: Calculate the three-dimensional point P u ′The distance d from the bottom plate plane B and the distance d to the planes of the two side panels s1 and d s2 for:

[0116]

[0117] S303: Let u=u+1; judge d B <3mm, if not, go to step S302; if yes, go to step S304;

[0118] S304: Determine d s1 <1mm or d s2 <1mm is true, if not, go to step S302; if yes, then the three-dimensional point Pu ' is the effective welding point, let n2 = n2 + 1, Go to step S305;

[0119] S306: Determine whether u<n1 is established. If so, go to step S302; if not, obtain the effective weld point P v ″′, v=1,2,…n2, the total number of valid weld points is n2; the weld positioning of the structural reinforcement point cloud is completed.

[0120] Embodiment 1

[0121] refer to Figure 1 The present invention provides a method for locating a structural reinforcement weld in a point cloud, comprising:

[0122] Step 1: Get candidate weld points

[0123] The basis for obtaining candidate weld points in the present invention is the curvature characteristics of the point cloud. Figure 2 From the schematic diagram of the structural reinforcement weld shown, it can be seen that the weld 2 of the structural reinforcement is located at the intersection of the bottom plate 1 and the two side plates. The bottom plate 1 and the two side plates are relatively smooth planes, so the point curvature on the plate surface is small, and the point curvature at the intersection where the weld 2 is located is large. Therefore, the weld 2 can be preliminarily screened and located according to the curvature.

[0124] For example Figure 3 The structural reinforcement point cloud shown in the figure, by establishing the k-neighborhood data structure of the structural reinforcement point cloud, the covariance analysis method can be used to quickly estimate the neighborhood curvature of the point cloud point. The method for constructing the neighborhood covariance matrix is ​​formula (1), and the minimum eigenvalue of the covariance matrix is ​​used as the estimated value of the neighborhood curvature. Since the angle between the bottom plate 1 and the side plate is almost a right angle, the curvature threshold λ in step S101 can be easily selected by analyzing the test data of the measured angle 3. th ; Filter out all neighborhood curvatures greater than the threshold λ th The point is the candidate weld point with rich curvature features. The effect of obtaining the candidate weld point is as follows: Figure 4 shown.

[0125] Step 2: Split the plane and fit the plane equation

[0126] After screening the candidate weld points, the weld 2 can be initially located. However, there are a large number of candidate weld points and some interference points, which makes it difficult to meet the accuracy requirements of guiding the welding robot. Figure 2 It can be seen that combining the surface intersection relationship can improve the positioning accuracy.

[0127] The present invention uses a plane segmentation method based on random sampling consistency. The basic principle is to obtain a sampling plane by random sampling, extract the plane points that meet the threshold of the number of points in the sampling plane from the original point cloud set D0, and fit a new valid plane. After extracting the three valid planes of the bottom plate 1 plane and the side plate plane, if the number of points in the point cloud set D0 does not meet the minimum number of points, the algorithm is terminated and three valid plane parameters are obtained. The beneficial effect of this method is that it can not only realize plane segmentation, but also improve the accuracy of plane fitting through random sampling consistency. The effect of segmenting the bottom plate 1 plane and the side plate plane is shown in the attached figure. Figure 5 shown.

[0128] Step 3: Get effective weld points

[0129] Both step 1 and step 2 can achieve preliminary positioning of the weld, but the disadvantage of step 1 is that a large number of candidate weld points are screened out, the accuracy is low, and there are interference points. Step 2 can obtain a more ideal weld straight line equation by calculating the surface intersection relationship, but in fact, the bottom plate 1 and the side plate are not ideal planes, and the ideal straight line equation is not a true reflection of the weld 2. In some cases, welding along the ideal straight line may cause welding gun collision or cold welding.

[0130] Therefore, the present invention combines the advantages of step 1 and step 2. Step 1 is used to quickly locate the weld 2 to obtain candidate weld points. Then, combined with the plane constraints of step 2, the candidate weld points are screened again. The screening conditions are steps S303 and S304 in the specific implementation method. The effective weld points obtained after screening are as follows: Figure 6 As shown, the effective weld point can truly reflect the actual position information of the weld 2 and conform to the plane constraint, and has high accuracy and reliability.

[0131] Embodiment 2

[0132] Based on the same inventive concept, this embodiment provides a structural reinforcement weld positioning system in a point cloud, and its principle of solving the problem is similar to that of the structural reinforcement weld positioning method in a point cloud, and the repeated parts will not be repeated.

[0133] A structural reinforcement weld positioning system in a point cloud, comprising:

[0134] The selection module is used to screen out candidate weld points with rich curvature features in the structural reinforcement point cloud;

[0135] The segmentation and fitting module is used to segment the bottom plate plane of the structural reinforcement and the two side plate planes intersecting with it, and fit their plane equations;

[0136] The positioning module is used to use the plane equation obtained in the segmentation and fitting module as a constraint to screen out the final effective weld points from the candidate weld points with rich curvature features and complete the structural reinforcement weld positioning.

[0137] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0138] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0139] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0140] The above-described embodiments are only preferred embodiments for fully illustrating the present invention, and the protection scope of the present invention is not limited thereto. Equivalent substitutions or changes made by those skilled in the art based on the present invention are within the protection scope of the present invention. The protection scope of the present invention shall be subject to the claims.

Claims

1. A method for locating a structural reinforcement weld in a point cloud, characterized in that: The following steps are involved: S1: Screen out candidate weld points with rich curvature features from the structural reinforcement point cloud; S2: Split the bottom plate plane of the structural reinforcement and the two side plate planes intersecting with it, and fit their plane equations; S3: Using the plane equation obtained in step S2 as a constraint, the final valid weld point is screened out from the candidate weld points with rich curvature features to complete the structural reinforcement weld positioning; wherein, the plane equation obtained in step S2 is used as a constraint to screen the candidate weld points again; the respective distances of the candidate weld point to the bottom plate plane and the two side plate planes intersecting therewith are calculated, and when the candidate weld point satisfies the condition that the distance to the bottom plate plane is less than 3 mm and the distance to the side plate plane is less than 1 mm, it is a valid weld point; The step S2 is specifically as follows: The plane segmentation algorithm based on random sampling consistency obtains the sampling plane by random sampling, extracts the plane points that meet the threshold of the number of points in the sampling plane from the original point cloud set, and fits the new effective plane; When the bottom plate plane and the two side plate planes intersecting with it are extracted, if the number of points in the point cloud set does not meet the minimum point number requirement, the algorithm is terminated and three valid plane parameters are obtained; The step S2 specifically includes the following steps: S201: Setting the number of end points n of the plane segmentation algorithm based on random sampling consistency min , the threshold of the number of points constituting the plane n th , the distance threshold d to determine whether it is an inner point th , the reference normal vector of the base plane Let n max =n0,n p =0; S202: Randomly sample 3 3D points P from the point cloud set D0 r0 , P r1 , P r2 , the plane equation fitted according to these three 3D points is a r x+b r y+c r z+1=0, where a r , b r 、c r represents the plane parameter, a r , b r 、c r The calculation is: Among them, X r0 , X r1 , X r2 Respectively represent point P r0 , P r1 , P r2 The X-axis coordinate of r0 , Y r1 , Y r2 Respectively represent point P r0 , P r1 , P r2 The Y-axis coordinate of r0 , Z r1 , Z r2 Respectively represent point P r0 , P r1 , P r2 The Z-axis coordinate of S203: Let n in =0, i=1, P i represents the i-th 3D point in the point set D0, X i Represents a three-dimensional point P i The X-axis coordinate, Y i Represents a three-dimensional point P i The Y-axis coordinate, Z i Represents a three-dimensional point P i The Z-axis coordinate of S204: Calculate the three-dimensional point P i To equation a r x+b r y+c r The distance d of the plane represented by z+1=0 i for: S205: Determine d i <d th Is it true? If it is true, then the three-dimensional point P i As equation a r x+b r y+c r The interior point of the plane represented by z+1=0, let n in =n in +1, If not, proceed to step S206; S206: Determine if i < n max Is it true? If it is true, let i=i+1 and go to step S24; if it is not true, get the value of equation a. r x+b r y+c r The inner point P of the plane represented by z+1=0 in the point cloud set D0 m ″,m=1,2,Ln in , go to step S207; S207: Determine n in >n th Is it true? If not, go to step S202; if true, set n p =n p +1, fitting the interior point P m ″,m=1,2,Ln in , the plane where it is located is the effective plane, and the plane equation is Equation parameters The calculation is: Among them, X m ,m=1,2,Ln in , is the interior point P m ″,m=1,2,Ln in The X-axis coordinate of m ,m=1,2,Ln in , is the interior point P m ″,m=1,2,Ln in The Y-axis coordinate of m ,m=1,2,Ln in , is the interior point P m ″,m=1,2,Ln in The Z-axis coordinate of S208: Delete the inner point P from the point cloud set D0 m ″,m=1,2,Ln in , let n max =n max -n in ; S209: Determine n max >n min Is it true? If it is true, go to step S202; if it is not true, get n p The effective plane equation a j x+b j y+c j z+1=0,j=1,2,Ln p , the total number of valid planes is n p ; S210: Let t=1, t B =0,t S = 0, calculate the unit normal vector nr of the effective plane j for: S211: Calculate the unit normal vector of the tth valid plane With reference normal vector The number product for: S212: Judgment Is it true? If true, let t B =t B +1, so Get the plane equation of the bottom plate plane If not, let t S =t S +1, so Get the plane equation of the side panel plane S213: Determine t<n p Is it true? If it is true, set t=t+1 and go to step S211; if it is not true, get t B The plane equation of the bottom plate plane and t S The plane equation of the side panel plane; when the parameters in step S201 are set appropriately, n p =3, t B =1, t S =2 holds true, that is, we finally get the plane equation of the bottom plate a1′x+b1′y+c1′z+1=0 and the plane equations of the two side plate planes a1″x+b1″y+c1″z+1=0 and a′2′x+b2″y+c′2′z+1=0; The step S3 specifically comprises the following steps: S301: Let u=1, n2=0, three-dimensional point P u ′ is the uth candidate weld point obtained in step S105, X u Represents a three-dimensional point P u ′’s X-axis coordinate, Y u Represents a three-dimensional point P u ′Y-axis coordinate, Z u Represents a three-dimensional point P u ′Z-axis coordinate; S302: Calculate the three-dimensional point P u ′Distance from the bottom plate plane to B and the distance d to the planes of the two side panels s1 and d s2 for: S303: Let u=u+1; judge d B <3mm, if not, go to step S302; if yes, go to step S304; S304: Determine d s1 <1mm or d s2 <1mm is true, if not, go to step S302; if yes, then the three-dimensional point P u ′ is the effective welding point, let n2=n2+1, P n2 ″′=P u ', go to step S305; S306: Determine whether u<n1 is established. If so, go to step S302; if not, obtain the effective weld point P v ″′, v=1,2,Ln2, the total number of effective weld points is n2; complete the weld positioning of the structural reinforcement point cloud.

2. A method for locating a structural reinforcement weld in a point cloud as claimed in claim 1, characterized in that: The step S1 is specifically as follows: By establishing the neighborhood data structure of the structural reinforcement point cloud, the neighborhood curvature of the point in the point cloud is estimated using the covariance analysis method, and the neighborhood covariance matrix of each point in the point cloud is constructed; The minimum eigenvalue of the covariance matrix is ​​used as the estimated value of the neighborhood curvature, and the curvature threshold is set; All points whose neighborhood curvature is greater than the threshold are screened out, which are candidate weld points with rich curvature features.

3. A method for locating a structural reinforcement weld in a point cloud as claimed in claim 1, characterized in that: The step S1 specifically includes the following steps: S101: All three-dimensional points of the structural reinforcement point cloud constitute a point cloud set D0. The total number of three-dimensional points in the point cloud set D0 is n0. i represents the i-th 3D point in the point set D0, X i Represents a three-dimensional point P i The X-axis coordinate, Y i Represents a three-dimensional point P i The Y-axis coordinate, Z i Represents a three-dimensional point P i The Z-axis coordinates of the point cloud are i=1,2,L,n0; the k-neighborhood data structure of the point cloud is established, the number of neighborhood points is set to k, and the threshold for screening curvature features is set to λ based on experience th , let i=0, n1=0; S102: Let i=i+1; search for the distance 3D point P in the point cloud set D0 i The nearest k points, denoted as P i,j , j = 1, 2, L, k, as a three-dimensional point P i k-neighboring points of ; S103: Based on the three-dimensional point P i The k-neighborhood points of the construct the neighborhood covariance matrix C i for: in, X i,j , Y i,j , Z i,j Represent the three-dimensional point P i,j X-axis, Y-axis, and Z-axis coordinates, j = 1, 2, Lk; for the matrix C i Perform SVD decomposition to obtain matrix C i The minimum eigenvalue of i , with λ i is a three-dimensional point P i The estimated value of the neighborhood curvature; S104: Determine λ i >λ th Is it true? If it is true, then this three-dimensional point P i As a candidate weld point, let n1 = n1 + 1, S105: Determine whether i<n0 is true. If so, go to step S102; if not, obtain n1 candidate weld points P u ′, u=1,2,Ln1, the total number of candidate weld points is n1.

4. A structural reinforcement weld seam positioning system in a point cloud, used to execute a structural reinforcement weld seam positioning method in a point cloud as claimed in any one of claims 1 to 3, characterized in that: include: The selection module is used to screen out candidate weld points with rich curvature features in the structural reinforcement point cloud; The segmentation and fitting module is used to segment the bottom plate plane of the structural reinforcement and the two side plate planes intersecting with it, and fit their plane equations; The positioning module is used to use the plane equation obtained in the segmentation and fitting module as a constraint to screen out the final effective weld points from the candidate weld points with rich curvature features and complete the structural reinforcement weld positioning.

5. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of a method for locating structural reinforcement welds in a point cloud as described in any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of a method for locating structural reinforcement welds in a point cloud as described in any one of claims 1 to 3 are implemented.