Standard part matching method and system based on three-dimensional point cloud

Through technical means such as filtering, calculating normal vectors and SHOT feature descriptors, the three-dimensional point cloud matching is optimized, solving the problems of matching accuracy and calculation time under the influence of noise, and realizing efficient and automated grabbing of standard parts by the robotic arm.

CN118864897APending Publication Date: 2024-10-29SHANGHAI BAOSIGHT SOFTWARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410073492.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-18
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

The existing technology has low matching accuracy and long calculation time when processing noisy 3D point clouds, and cannot meet the automation needs of robotic arms for disorderly grabbing of standard parts.

Method used

Filtering is used to denoise, calculate normal vector features, ISS key points and SHOT feature descriptors, identify matching point pairs through geometric consistency clustering, optimize matching point pair search logic, and improve calculation efficiency.

Benefits of technology

It achieves accurate identification and position matching of different standard parts without manual assisted positioning, improving the efficiency and accuracy of automated grabbing of the robotic arm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118864897A_ABST
    Figure CN118864897A_ABST
Patent Text Reader

Abstract

The invention provides a standard component matching method and system based on three-dimensional point clouds, and the method comprises the steps: 1, carrying out the filtering and denoising of an input scene point cloud, and obtaining a delimited region of interest; 2, calculating normal vector features of the scene point cloud and the template point cloud; 3, ISS key points of the scene point cloud and the template point cloud are calculated; 4, calculating SHOT feature descriptors of the scene point cloud and the template point cloud; 5, searching point pairs matched with the template point cloud in the scene point cloud; and 6, identifying the template in the scene through geometric consistency clustering. According to the method, the laser scanning technology and the 3D point cloud object recognition technology based on the local feature descriptors are adopted to achieve recognition and pose matching of different standard parts, manual auxiliary positioning is not needed, the problem that a mechanical arm grabs the standard parts disorderly is solved, and the automation rate of factory standard part loading and unloading is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of three-dimensional point cloud matching, and in particular to a standard part matching method and system based on three-dimensional point cloud. Background Art

[0002] At present, in the field of robotic arm grasping of standard parts, the positioning of the grasping point of standard parts and the conversion of the robotic arm posture to the grasping posture are indispensable links. The use of laser scanning technology and 3D point cloud posture recognition methods can accurately calculate the coordinates of the grasping points of standard parts in the scene and the reasonable grasping posture.

[0003] In the field of 3D point cloud object pose recognition, the matching method based on deep learning and the matching method based on local feature descriptors each occupy a mainstream. In comparison, the matching method based on local feature descriptors has the advantages of high real-time performance and fast deployment. It calculates the feature information of each key point in the scene and template, associates them, finds the closest groups of points to fit the shape of the template in the scene, and then obtains the final matching result through screening.

[0004] Traditional standard parts grabbing operations require the operator to manually control the robot arm to complete the grabbing work based on the naked eye. Since the staff cannot accurately locate the coordinates of the standard parts grabbing points and the grabbing posture of the robot arm, manual operation seriously affects the safety and efficiency of the operation. Therefore, accurately locating the posture of the standard parts in the scene is crucial to realize the disordered grabbing of standard parts by the robot arm.

[0005] Patent document CN115035034A discloses a thin-wall welding automatic positioning method and system, which obtains the three-dimensional point cloud information of the workpiece to be welded, and uses the three-dimensional point cloud information to make a three-dimensional point cloud model of the current workpiece to be welded; inputs the three-dimensional Mesh model of the standard workpiece and the corresponding standard coordinate system, and converts the coordinates of the workpiece to be welded in the standard coordinate system based on the standard part parameters, and performs conversion and alignment; obtains the detection target point cloud cluster of the current workpiece to be welded by presetting the three-dimensional standard welding position, extracts the position of the matching weld point by the welding point extraction algorithm, and obtains the trajectory of the current target weld by using the Mesh surface information between the weld points; locates the thin-wall lap welding position through the three-dimensional point cloud information, and combines with the robot to improve the welding efficiency. However, this patent cannot completely solve the current technical problems, nor can it meet the needs of the present invention.

[0006] The point cloud feature matching method in the prior art (Chinese patent application number 202010595948.1, which discloses "3D posture estimation method in unordered grasping based on SHOT and ICP algorithms") has poor effect when processing point clouds with more noise points, and it takes a long time to achieve better matching accuracy. On this basis, the present invention adds a key point selection step, shortens the calculation time, and optimizes the matching point pair search logic, so that it can adapt to point clouds with more noise points and be used in unordered grasping scenarios in industry. Summary of the invention

[0007] In view of the defects in the prior art, an object of the present invention is to provide a method and system for standard parts matching based on three-dimensional point clouds.

[0008] The standard parts matching method based on three-dimensional point cloud provided by the present invention includes:

[0009] Step 1: Filter and denoise the input scene point cloud to obtain the defined region of interest;

[0010] Step 2: Calculate the normal vector features of the scene point cloud and the template point cloud;

[0011] Step 3: Calculate the ISS key points of the scene point cloud and the template point cloud;

[0012] Step 4: Calculate the SHOT feature descriptors of the scene point cloud and the template point cloud;

[0013] Step 5: Search for matching point pairs in the scene point cloud and the template point cloud;

[0014] Step 6: Identify templates in the scene through geometric consistency clustering.

[0015] Preferably, step 2 comprises: for each point i in the scene point cloud S and the template point cloud M, searching for a circle with each point i as the center and a radius R normal All points in the range are N normal Construct the covariance matrix and calculate the eigenvector corresponding to its minimum eigenvalue, that is, the normal vector feature of point i, denoted as Normal i , i∈S;

[0016] Step 3 includes: for each point in the point cloud, calculating its radius R ISS Total N in the range ISS The scatter matrix of the points and calculate its three eigenvalues ​​λ from large to small 1 , 2 , 3, the eigenvalue of the scatter matrix represents the degree of dispersion in each feature direction of the data set. The size of the eigenvalue represents the intensity of the dispersion of the data in the corresponding feature direction. The larger the eigenvalue, the greater the degree of dispersion in the feature direction, and the data points are more widely distributed in this direction. If the minimum eigenvalue λ 3 <0, skip this point and calculate λ 3 With λ 2 The ratio of 32 ,λ 2 With λ 1 The ratio of 21 , γ 32 and γ 21 The smaller the value of , the greater the difference in the distribution of points near the point, and the more characteristic the point is; if γ 32 and γ 21 are all less than a preset value, then the point is temporarily retained; finally, all the points that have passed the above screening are selected with their minimum eigenvalue λ 3 The non-maximum suppression filtering is performed based on the , and the points obtained after filtering are the ISS key points.

[0017] Preferably, step 4 comprises:

[0018] Step 4.1: For each key point P∈ISS, calculate the local reference coordinate system for it and search the reference system radius R lrf The point set N of all points in lrf Construct the improved covariance matrix M:

[0019]

[0020] The three eigenvectors calculated by the covariance matrix are taken as x in descending order of eigenvalue. + ,y + 、z + axis, and its opposite direction is x - ,y - 、z - Axis; calculate each point P in the local reference system i The Euclidean distance d from the key point P i , and calculate the average distance, and take the k points closest to the average distance as the set M(k);

[0021] Statistics (P i -P)·x + ≥0, i∈N lrf and (P i -P)·x - ≤0, i∈N lrf The axis with more points is taken as x +, if the two points are the same, then take the points in the set M(k) and calculate (P i -P)·x + ≥0, i∈M(k) and (P i -P)·x - ≤0, the number of i∈M(k), the axis with more points between the two is taken as x + ; The direction of the y-axis is obtained by calculating the outer product of the x-axis and the z-axis;

[0022] Step 4.2: Get the unit vector μ of the three local coordinate axes x , μ y , μ z Then, construct its radius R SHOT The point set N of all points in the range SHOT , using the normal vector features obtained in step 2, calculate the normal vectors and μ of these points z The inner product of all calculation results is discretized into 11 Bins and stored in a one-dimensional matrix B. The expression is:

[0023] Β i =[(1+Normal i ·μ z )×10]÷2, i∈N SHOT

[0024] Point set N SHOT Each point P i , i∈N SHOT , through (P i -P)·[μ x ,μ y ,μ z ] to obtain its new coordinates P in the local reference system iRef , the spherical neighborhood of the key point P is divided into 32 small areas, 2 radial, 2 latitude, and 8 longitude. iRef The coordinate position and its Β i The value is voted, and the feature dimension of the entire SHOT is divided into 32×11=352 dimensions;

[0025] Step 4.3: Introduce quadlinear interpolation, that is, when voting for each point, interpolation voting is performed from four dimensions according to the distance weight. First, for the same small area, 11 intervals are divided and interpolation voting is performed from the B dimension. Then, for its adjacent small areas, interpolation voting is performed in the radial, latitude, and longitude dimensions according to the weight d.

[0026] For radial direction, a point P iRef Euclidean distance from P Then i For greater than The area of ​​interpolation voting is performed if Then the point interpolates and votes for the adjacent area, and the voting value is:

[0027]

[0028] The radial dimension has a The judgment threshold of the interpolation vote is

[0029] The criterion for judging latitude is P iRef Connect P and μ z The angle θ z (P iRef ,P), interpolate and vote on adjacent intervals:

[0030]

[0031] The criterion for determining longitude is P iRef Connect P and μ x The angle θ x (P iRef ,P), note P iRef The area is coded as L, and the adjacent intervals are interpolated and voted:

[0032]

[0033] While performing each of the above steps, for each judgment value d, if it is positive, 1-d is accumulated to the weight value Weight; if it is negative, 1+d is accumulated to the weight value Weight, and Weight is finally interpolated to the interval adjacent to the target point as a vote;

[0034] Step 4.4: Finally, the 352-dimensional SHOT features are normalized.

[0035] Preferably, step 5 comprises: for each point P in the template point cloud model , traverse all points in the scene point cloud, if there is a point P in the scene match , its eigenvalue and P model The Euclidean distance of the eigenvalues ​​is the smallest and is less than a set threshold, then P is considered model and P match is a pair of matching points.

[0036] Preferably, step 6 comprises: for all subsets of the matching point set Match in the scene, if the coordinate difference between any two points is L 2 The norm minus the difference in coordinates between the two points in the template L 2The difference in norm is less than a set threshold. N sets with points greater than a set threshold and non-intersecting with each other are screened out from all subsets that meet the conditions. For these N sets, the points in them are fitted to the model point cloud through a random sampling consistency algorithm. All matching points whose inner points meet the conditions are found and retained to obtain the final matching results and rotation matrix.

[0037] The standard parts matching system based on three-dimensional point cloud provided by the present invention comprises:

[0038] Module M1: Filter and denoise the input scene point cloud to obtain the defined region of interest;

[0039] Module M2: Calculate the normal vector features of the scene point cloud and template point cloud;

[0040] Module M3: Calculate the ISS key points of the scene point cloud and template point cloud;

[0041] Module M4: Calculate the SHOT feature descriptor of the scene point cloud and template point cloud;

[0042] Module M5: Searching for matching point pairs in the scene point cloud and the template point cloud;

[0043] Module M6: Identify templates in the scene through geometric consistency clustering.

[0044] Preferably, the module M2 comprises: for each point i in the scene point cloud S and the template point cloud M, searching for a circle with a radius R and a center at each point i. normal All points in the range are N normal Construct the covariance matrix and calculate the eigenvector corresponding to its minimum eigenvalue, that is, the normal vector feature of point i, denoted as Normal i , i∈S;

[0045] The module M3 includes: for each point in the point cloud, calculating its radius R ISS Total N in the range ISS The scatter matrix of the points and calculate its three eigenvalues ​​λ from large to small 1 , 2 , 3 , the eigenvalue of the scatter matrix represents the degree of dispersion in each feature direction of the data set. The size of the eigenvalue represents the intensity of the dispersion of the data in the corresponding feature direction. The larger the eigenvalue, the greater the degree of dispersion in the feature direction, and the data points are more widely distributed in this direction. If the minimum eigenvalue λ 3 <0, skip this point and calculate λ 3 With λ 2 The ratio of 32 ,λ 2 With λ 1The ratio of 21 , γ 32 and γ 21 The smaller the value of , the greater the difference in the distribution of points near the point, and the more characteristic the point is; if γ 32 and γ 21 are all less than a preset value, then the point is temporarily retained; finally, all the points that have passed the above screening are selected with their minimum eigenvalue λ 3 The non-maximum suppression filtering is performed based on the , and the points obtained after filtering are the ISS key points.

[0046] Preferably, the module M4 comprises:

[0047] Module M4.1: For each key point P∈ISS, calculate the local reference coordinate system and search for the reference system radius R lrf The point set N of all points in lrf Construct the improved covariance matrix M:

[0048]

[0049] The three eigenvectors calculated by the covariance matrix are taken as x in descending order of eigenvalue. + ,y + 、z + axis, and its opposite direction is x - ,y - 、z - Axis; calculate each point P in the local reference system i The Euclidean distance d from the key point P i , and calculate the average distance, and take the k points closest to the average distance as the set M(k);

[0050] Statistics (P i -P)·x + ≥0, i∈N lrf and (P i -P)·x - ≤0, i∈N lrf The axis with more points is taken as x + , if the two points are the same, then take the points in the set M(k) and calculate (P i -P)·x + ≥0, i∈M(k) and (P i -P)·x - ≤0, the number of i∈M(k), the axis with more points between the two is taken as x + ; The direction of the y-axis is obtained by calculating the outer product of the x-axis and the z-axis;

[0051] Module M4.2: Get the unit vector μ of the three local coordinate axes x , μy , μ z Then, construct its radius R SHOT The point set N of all points in the range SHOT , using the normal vector features obtained in module M2, calculate the normal vectors and μ of these points z The inner product of all calculation results is discretized into 11 Bins and stored in a one-dimensional matrix B. The expression is:

[0052] Β i =[(1+Normal i ·μ z )×10]÷2, i∈N SHOT

[0053] Point set N SHOT Each point P i , i∈N SHOT , through (P i -P)·[μ z ,μ y ,μ z ] to obtain its new coordinates P in the local reference system iRef , the spherical neighborhood of the key point P is divided into 32 small areas, 2 radial, 2 latitude, and 8 longitude. iRef The coordinate position and its Β i The value is voted, and the feature dimension of the entire SHOT is divided into 32×11=352 dimensions;

[0054] Module M4.3: Introducing quadlinear interpolation, that is, when voting for each point, interpolation voting is performed from four dimensions according to the distance weight. First, for the same small area, 11 intervals are divided and interpolation voting is performed from the B dimension. Then, for its adjacent small areas, interpolation voting is performed in the radial, latitude, and longitude dimensions according to the weight d.

[0055] For radial direction, a point P iRef Euclidean distance from P Then i For greater than The area of ​​interpolation voting is performed if Then the point interpolates and votes for the adjacent area, and the voting value is:

[0056]

[0057] The radial dimension has a The judgment threshold of the interpolation vote is

[0058] The criterion for judging latitude is P iRef Connect P and μz The angle θ z (P iRef ,P), interpolate and vote on adjacent intervals:

[0059]

[0060] The criterion for determining longitude is P iRef Connect P and μ x The angle θ x (P iRef ,P), note P iRef The area is coded as L, and the adjacent intervals are interpolated and voted:

[0061]

[0062] While performing each of the above steps, for each judgment value d, if it is positive, 1-d is accumulated to the weight value Weight; if it is negative, 1+d is accumulated to the weight value Weight, and Weight is finally interpolated to the interval adjacent to the target point as a vote;

[0063] Module M4.4: Finally, the 352-dimensional SHOT features are normalized.

[0064] Preferably, the module M5 comprises: for each point P in the template point cloud model , traverse all points in the scene point cloud, if there is a point P in the scene match , its eigenvalue and P model The Euclidean distance of the eigenvalues ​​is the smallest and is less than a set threshold, then P is considered model and P match is a pair of matching points.

[0065] Preferably, the module M6 comprises: for all subsets of the matching point set Match in the scene, if the coordinate difference between any two points is L 2 The norm minus the difference in coordinates between the two points in the template L 2 The difference in norm is less than a set threshold. N sets with points greater than a set threshold and non-intersecting with each other are screened out from all subsets that meet the conditions. For these N sets, the points in them are fitted to the model point cloud through a random sampling consistency algorithm. All matching points whose inner points meet the conditions are found and retained to obtain the final matching results and rotation matrix.

[0066] Compared with the prior art, the present invention has the following beneficial effects:

[0067] The present invention realizes the recognition and posture matching of different standard parts by adopting laser scanning technology and 3D point cloud object recognition technology based on local feature descriptors, without the need for manual auxiliary positioning, thus solving the problem of disorderly grasping of standard parts by the robot arm and improving the automation rate of loading and unloading of standard parts in the factory. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:

[0069] Figure 1 This is a schematic diagram of the point cloud matching process;

[0070] Figure 2 This is a schematic diagram of the shot four linear interpolation positions. DETAILED DESCRIPTION

[0071] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.

[0072] Example 1

[0073] The present invention adopts point cloud matching technology based on local feature descriptors to realize the recognition and posture estimation of standard parts in the area of ​​interest, and calculates the grasping posture, thereby realizing the automatic disordered grasping of standard parts.

[0074] like Figure 1 The present invention provides a standard part matching method based on three-dimensional point cloud, comprising the following steps:

[0075] Step 1: Perform preprocessing such as filtering and denoising on the input scene point cloud to obtain the defined region of interest.

[0076] Step 2: Calculate the normal vector features of the scene point cloud and the template point cloud;

[0077] For each point i in the scene point cloud S and the template point cloud M, search for a circle with a radius R around it. normal All points in the range are N normal Construct the covariance matrix and calculate the eigenvector corresponding to its minimum eigenvalue. This eigenvector is the normal vector feature of this point, denoted as Normal i , i∈S.

[0078] Step 3: Calculate the ISS (Intrinsic Shape Signature) key points of the scene point cloud and the template point cloud;

[0079] In order to reduce the amount of computation of the feature descriptor in step 4, it is necessary to extract key points from the original point cloud. The ISS algorithm is a key point detection method based on the curvature and normal vector of the point cloud. For each point in the point cloud, its radius R is calculated. ISS Total N in the range ISS The scatter matrix of the points and calculate its three eigenvalues ​​λ from large to small 1 , 2 , 3 , the eigenvalue of the scatter matrix represents the degree of dispersion in each feature direction of the data set. The size of the eigenvalue represents the strength of the dispersion of the data in the corresponding feature direction. The larger the eigenvalue, the greater the degree of dispersion in the feature direction, and the data points are more widely distributed in this direction. If the minimum eigenvalue λ 3 <0, skip this point and calculate λ 3 With λ 2 The ratio of 32 ,λ 2 With λ 1 The ratio of 21 , γ 32 and γ 21 The smaller the value of , the greater the difference in the distribution of points near the point, that is, the more characteristic the point is. 32 and γ 21 If all the points are smaller than a preset value, the point is temporarily retained. Finally, all the points that have been screened above are selected with their minimum eigenvalue λ 3 Based on this, non-maximum suppression filtering is performed, and the points obtained after filtering are the ISS key points. The key point set is recorded as ISS.

[0080] Step 4: Calculate the feature descriptors of the key points of the scene point cloud and the template point cloud;

[0081] For the SHOT352 feature descriptor, the specific steps are as follows:

[0082] Step 4.1: For each key point P∈ISS obtained in step 3, first calculate the local reference coordinate system for it and search the reference system radius R lrf The point set N of all points in lrf Construct the improved covariance matrix M:

[0083]

[0084] The three eigenvectors calculated by the covariance matrix are taken as x in descending order of eigenvalue. + ,y + 、z + axis, and its opposite direction is x - ,y- 、z - Axis; calculate the Euclidean distance between each point in the local reference system and the key point, and calculate the average distance, and take the k points closest to the average distance as the set M(k); in order to eliminate the ambiguity of the x-axis and z-axis directions, take the x-axis as an example, and count (P i -P)·x + ≥0, i∈N lrf and (P i -P)·x - ≤0, i∈N lrf The axis with more points is taken as x + , if the two points are the same, then take the points in the set M(k) and calculate (P i -P)·x + ≥0, i∈M(k) and (P i -P)·x - ≤0, the number of i∈M(k), the axis with more points between the two is taken as x + .

[0085] The direction of the y-axis is obtained by calculating the outer product of the x-axis and the z-axis.

[0086] Step 4.2: Get the unit vector μ of the three local coordinate axes x , μ y , μ z Then, construct its radius R SHOT The point set N of all points in the range SHOT , using the normal vector obtained in step 2, calculate the normal vectors and μ of these points z The inner product of, since both vectors are unit vectors, the value of the inner product is the cosine value of the vector angle. All calculation results are discretized into 11 Bins and stored in a one-dimensional matrix B, that is:

[0087] Β i =[(1+Normal i ·μ z )×10]÷2, i∈N SHOT

[0088] Point set N SHOT Each point P i , i∈N SHOT , through (P i -P)·[μ x ,μ y ,μ z ] to obtain its new coordinates P in the local reference system iRef , the spherical neighborhood of the key point P is divided into 32 small areas, 2 radial, 2 latitude, and 8 longitude. iRef The coordinate position and its Βi The values ​​are voted, so the feature dimension of the entire SHOT can be divided into 32×11=352 dimensions.

[0089] Step 4.3: In order to reduce the impact of the edge effect of the SHOT feature due to the histogram characteristics and the local reference frame disturbance on the feature description ability, quadlinear interpolation is introduced, that is, when voting for each point, interpolation voting is performed from four dimensions according to the distance weight, such as Figure 2 First, for the same small area, 11 intervals are divided, and interpolation voting is performed from the B dimension (cosine value). Then, for its adjacent small areas, interpolation voting is performed on the radial, latitude, and longitude dimensions according to the weight d (angular distance or Euclidean distance). Taking the radial direction as an example, a point P iRef Euclidean distance from P Then i Should be greater than The area is interpolated for voting, but if That is, the point is less than The area is also very close, then the point will also interpolate and vote for this adjacent area, and the voting value is:

[0090]

[0091] There is also a radial dimension The judgment threshold of the interpolation vote is

[0092] The criterion for judging latitude is P iRef Connect P and μ z The angle θ z (P iRef ,P), interpolation voting for adjacent intervals:

[0093]

[0094] The criterion for determining longitude is P iRef Connect P and μ x The angle θ x (P iRef ,P), note P iRef The area is coded as L, and the adjacent intervals are interpolated and voted:

[0095]

[0096] While performing each of the above steps, for each judgment value d, if it is positive, 1-d is added to the weight value Weight, and if it is negative, 1+d is added to the weight value Weight. This Weight will eventually be interpolated to the interval adjacent to the target point as a vote.

[0097] Step 4.4: Finally, the 352-dimensional SHOT features are normalized.

[0098] Step 5: Search for matching point pairs through the feature values ​​of the scene point cloud and the template point cloud. For each point P in the template point cloud model , traverse all points in the scene point cloud, if there is a point P in the scene match , its eigenvalue and P model The Euclidean distance of the eigenvalue is the smallest and is less than a set threshold, then it is considered that P model and P match is a pair of matching points.

[0099] Step 6: For the matching point pairs obtained in step 5, identify the model in the scene through geometric consistency clustering.

[0100] For all subsets of the matching point set Match in the scene, if the coordinate difference between any two points is L 2 The norm minus the difference in coordinates between the two points in the template L 2 The difference in norm is less than a set threshold. N sets with points greater than a set threshold and non-intersecting with each other are screened out from all subsets that meet the conditions. For these N sets, the points in them are fitted to the model point cloud through a random sampling consistency algorithm. All matching points whose inner points meet the conditions are found and retained to obtain the final matching results and rotation matrix.

[0101] Example 2

[0102] The present invention also provides a standard parts matching system based on three-dimensional point clouds. The standard parts matching system based on three-dimensional point clouds can be realized by executing the process steps of the standard parts matching method based on three-dimensional point clouds, that is, those skilled in the art can understand the standard parts matching method based on three-dimensional point clouds as a preferred implementation of the standard parts matching system based on three-dimensional point clouds.

[0103] The standard parts matching system based on three-dimensional point cloud provided by the present invention includes: module M1: filtering and denoising the input scene point cloud to obtain a delineated area of ​​interest; module M2: calculating the normal vector features of the scene point cloud and the template point cloud; module M3: calculating the ISS key points of the scene point cloud and the template point cloud; module M4: calculating the SHOT feature descriptors of the scene point cloud and the template point cloud; module M5: searching for matching point pairs with the template point cloud in the scene point cloud; module M6: identifying the template in the scene through geometric consistency clustering.

[0104] The module M2 includes: for each point i in the scene point cloud S and the template point cloud M, searching for a circle with each point i as the center and a radius R normalAll points in the range are N normal Construct the covariance matrix and calculate the eigenvector corresponding to its minimum eigenvalue, that is, the normal vector feature of point i, denoted as Normal i , i∈S;

[0105] The module M3 includes: for each point in the point cloud, calculating its radius R ISS Total N in the range ISS The scatter matrix of the points and calculate its three eigenvalues ​​λ from large to small 1 , 2 , 3 , the eigenvalue of the scatter matrix represents the degree of dispersion in each feature direction of the data set. The size of the eigenvalue represents the intensity of the dispersion of the data in the corresponding feature direction. The larger the eigenvalue, the greater the degree of dispersion in the feature direction, and the data points are more widely distributed in this direction. If the minimum eigenvalue λ 3 <0, skip this point and calculate λ 3 With λ 2 The ratio of 32 ,λ 2 With λ 1 The ratio of 21 , γ 32 and γ 21 The smaller the value of , the greater the difference in the distribution of points near the point, and the more characteristic the point is; if γ 32 and γ 21 are all less than a preset value, then the point is temporarily retained; finally, all the points that have passed the above screening are selected with their minimum eigenvalue λ 3 The non-maximum suppression filtering is performed based on the , and the points obtained after filtering are the ISS key points.

[0106] The module M4 comprises:

[0107] Module M4.1: For each key point P∈ISS, calculate the local reference coordinate system and search for the reference system radius R lrf The point set N of all points in lrf Construct the improved covariance matrix M:

[0108]

[0109] The three eigenvectors calculated by the covariance matrix are taken as x in descending order of eigenvalue. + ,y + 、z + axis, and its opposite direction is x - ,y - 、z - Axis; calculate each point P in the local reference system iThe Euclidean distance d from the key point P i , and calculate the average distance, and take the k points closest to the average distance as the set M(k);

[0110] Statistics (P i -P)·x + ≥0, i∈N lrf and (P i -P)·x - ≤0, i∈N lrf The axis with more points is taken as x + , if the two points are the same, then take the points in the set M(k) and calculate (P i -P)·x + ≥0, i∈M(k) and (P i -P)·x - ≤0, the number of i∈M(k), the axis with more points between the two is taken as x + ; The direction of the y-axis is obtained by calculating the outer product of the x-axis and the z-axis;

[0111] Module M4.2: Get the unit vector μ of the three local coordinate axes x , μ y , μ z Then, construct its radius R SHOT The point set N of all points in the range SHOT , using the normal vector features obtained in module M2, calculate the normal vectors and μ of these points z The inner product of all calculation results is discretized into 11 Bins and stored in a one-dimensional matrix B. The expression is:

[0112] Β i =[(1+Normal i ·μ z )×10]÷2, i∈N SHOT

[0113] Point set N SHOT Each point P i , i∈N SHOT , through (P i -P)·[μ x ,μ y ,μ z ] to obtain its new coordinates P in the local reference system iRef , the spherical neighborhood of the key point P is divided into 32 small areas, 2 radial, 2 latitude, and 8 longitude. iRef The coordinate position and its Β i The value is voted, and the feature dimension of the entire SHOT is divided into 32×11=352 dimensions;

[0114] Module M4.3: Introducing quadlinear interpolation, that is, when voting for each point, interpolation voting is performed from four dimensions according to the distance weight. First, for the same small area, 11 intervals are divided and interpolation voting is performed from the B dimension. Then, for its adjacent small areas, interpolation voting is performed in the radial, latitude, and longitude dimensions according to the weight d.

[0115] For radial direction, a point P iRef Euclidean distance from P Then i For greater than The area of ​​interpolation voting is performed if Then the point interpolates and votes for the adjacent area, and the voting value is:

[0116]

[0117] The radial dimension has a The judgment threshold of the interpolation vote is

[0118] The criterion for judging latitude is P iRef Connect P and μ z The angle θ z (P iRef ,P), interpolate and vote on adjacent intervals:

[0119]

[0120] The criterion for determining longitude is P iRef Connect P and μ x The angle θ x (P iRef ,P), note P iRef The area is coded as L, and the adjacent intervals are interpolated and voted:

[0121]

[0122] While performing each of the above steps, for each judgment value d, if it is positive, 1-d is accumulated to the weight value Weight; if it is negative, 1+d is accumulated to the weight value Weight, and Weight is finally interpolated to the interval adjacent to the target point as a vote;

[0123] Module M4.4: Finally, the 352-dimensional SHOT features are normalized.

[0124] The module M5 comprises: for each point P in the template point cloud model , traverse all points in the scene point cloud, if there is a point P in the scene match , its eigenvalue and Pmodel The Euclidean distance of the eigenvalues ​​is the smallest and is less than a set threshold, then P is considered model and P match is a pair of matching points.

[0125] The module M6 includes: for all subsets of the matching point set Match in the scene, if the coordinate difference between any two points is L 2 The norm minus the difference in coordinates between the two points in the template L 2 The difference in norm is less than a set threshold. N sets with points greater than a set threshold and non-intersecting with each other are screened out from all subsets that meet the conditions. For these N sets, the points in them are fitted to the model point cloud through a random sampling consistency algorithm. All matching points whose inner points meet the conditions are found and retained to obtain the final matching results and rotation matrix.

[0126] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.

[0127] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.

Claims

1. A standard parts matching method based on three-dimensional point cloud, characterized in that: include: Step 1: Filter and denoise the input scene point cloud to obtain the defined region of interest; Step 2: Calculate the normal vector features of the scene point cloud and the template point cloud; Step 3: Calculate the ISS key points of the scene point cloud and template point cloud; Step 4: Calculate the SHOT feature descriptors of the scene point cloud and the template point cloud; Step 5: Search for matching point pairs in the scene point cloud and the template point cloud; Step 6: Identify templates in the scene through geometric consistency clustering.

2. The standard parts matching method based on three-dimensional point cloud according to claim 1, characterized in that: The step 2 comprises: for each point i in the scene point cloud S and the template point cloud M, searching for a circle with each point i as the center and a radius R normal All points in the range are N normal Construct the covariance matrix and calculate the eigenvector corresponding to its minimum eigenvalue, that is, the normal vector feature of point i, denoted as Normal i , i∈S; Step 3 includes: for each point in the point cloud, calculating its radius R ISS Total N in the range ISS The scatter matrix of the points is calculated, and its three eigenvalues ​​λ1, λ2, and λ3 are calculated from large to small. The eigenvalues ​​of the scatter matrix represent the degree of dispersion in each characteristic direction of the data set. The size of the eigenvalue represents the intensity of the dispersion of the data in the corresponding characteristic direction. The larger the eigenvalue, the greater the dispersion in the characteristic direction, and the data points are more widely distributed in this direction. If the smallest eigenvalue λ3 is less than 0, skip the point, and calculate the ratio of λ3 to λ2, which is recorded as γ 32 , the ratio of λ2 to λ1 is denoted as γ 21 , γ 32 and γ 21 The smaller the value of , the greater the difference in the distribution of points near the point, and the more characteristic the point is; if γ 32 and γ 21 If all of them are smaller than a preset value, the point will be temporarily retained; finally, all the points that have passed the above screening are subjected to non-maximum suppression filtering based on their minimum eigenvalue λ3, and the points obtained after filtering are ISS key points.

3. The standard parts matching method based on three-dimensional point cloud according to claim 1, characterized in that: The step 4 comprises: Step 4.1: For each key point P∈ISS, calculate the local reference coordinate system for it and search the reference system radius R lrf The point set N of all points in lrf Construct the improved covariance matrix M: The three eigenvectors calculated by the covariance matrix are taken as x in descending order of eigenvalue. + ,y + 、z + axis, and its opposite direction is x - ,y - 、z - Axis; calculate each point P in the local reference system i The Euclidean distance d from the key point P i , and calculate the average distance, and take the k points closest to the average distance as the set M(k); Statistics (P i -P)·x + ≥0, i∈N lrf and (P i -P)·x - ≤0, i∈N lrf The axis with more points is taken as x + If the two points are the same, take the point in the set M(k) and calculate (Pi-P)·x again. + ≥0, i∈M(k) and (P i -P)·x - ≤0, the number of i∈M(k), the axis with more points between the two is taken as x + ; The direction of the y-axis is obtained by calculating the outer product of the x-axis and the z-axis; Step 4.2: Get the unit vector μ of the three local coordinate axes x , μ y , μ z Then, construct its radius R SHOT The point set N of all points in the range SHOT , using the normal vector features obtained in step 2, calculate the normal vectors and μ of these points z The inner product of all calculation results is discretized into 11 Bins and stored in a one-dimensional matrix B. The expression is: B i =[(1+Normal i ·m z )×10]÷2,i∈N sHOT Point set N SHOT Each point F i , i∈N SHOT , through (Pi-P)•[μ x , μ y , μ z ] to obtain its new coordinates P in the local reference system iRef , the spherical neighborhood of the key point P is divided into 32 small areas, 2 radial, 2 latitude, and 8 longitude. iRef The coordinate position and its B i The value is voted, and the feature dimension of the entire SHOT is divided into 32×11=352 dimensions; Step 4.3: Introduce quadlinear interpolation, that is, when voting for each point, interpolation voting is performed from four dimensions according to the distance weight. First, for the same small area, 11 intervals are divided and interpolation voting is performed from the B dimension. Then, for its adjacent small areas, interpolation voting is performed in the radial, latitude, and longitude dimensions according to the weight d. For radial direction, a point P iRef Euclidean distance from P Then B i For greater than The area of ​​interpolation voting is performed if Then the point interpolates and votes for the adjacent area, and the voting value is: The radial dimension has a The judgment threshold of the interpolation vote is The criterion for judging latitude is P iRef Connect P and μ z The angle θ z (P iRef , P), interpolation voting for adjacent intervals: The criterion for determining longitude is P iRef Connect P and μ x The angle θ x (P iRef , P), record F iRef The area is coded as L, and the adjacent intervals are interpolated and voted: While performing each of the above steps, for each judgment value d, if it is positive, 1-d is accumulated to the weight value Weight; if it is negative, 1+d is accumulated to the weight value Weight, and Weight is finally interpolated to the interval adjacent to the target point as a vote; Step 4.4: Finally, the 352-dimensional SHOT features are normalized.

4. The standard parts matching method based on three-dimensional point cloud according to claim 1, characterized in that: The step 5 comprises: for each point P in the template point cloud model , traverse all points in the scene point cloud, if there is a point P in the scene match , its eigenvalue and P model The Euclidean distance of the eigenvalues ​​is the smallest and is less than a set threshold, then P is considered model and P match is a pair of matching points.

5. The standard parts matching method based on three-dimensional point cloud according to claim 1, characterized in that: The step 6 includes: for all subsets of the matching point set Match in the scene, if the difference between the L2 norm of the coordinate difference between any two points minus the L2 norm of the coordinate difference between the corresponding points of the two points in the template is less than a set threshold, select N sets with points greater than a set threshold and non-intersecting with each other from all subsets that meet the conditions, and for these N sets, fit the model point cloud to the points therein through a random sampling consistency algorithm, find all matching points whose internal points meet the conditions and retain them, and obtain the final matching result and rotation matrix.

6. A standard parts matching system based on three-dimensional point cloud, characterized in that: include: Module M1: Filter and denoise the input scene point cloud to obtain the defined region of interest; Module M2: Calculate the normal vector features of the scene point cloud and template point cloud; Module M3: Calculate the ISS key points of the scene point cloud and template point cloud; Module M4: Calculate the SHOT feature descriptor of the scene point cloud and template point cloud; Module M5: Searching for matching point pairs in the scene point cloud and the template point cloud; Module M6: Identify templates in the scene through geometric consistency clustering.

7. The standard parts matching system based on three-dimensional point cloud according to claim 6, characterized in that: The module M2 includes: for each point i in the scene point cloud S and the template point cloud M, searching for a circle with each point i as the center and a radius R normal All points in the range are N normal Construct the covariance matrix and calculate the eigenvector corresponding to its minimum eigenvalue, that is, the normal vector feature of point i, denoted as Normal i , i∈S; The module M3 includes: for each point in the point cloud, calculating its radius R Iss Total N in the range Iss The scatter matrix of the points is calculated, and its three eigenvalues ​​λ1, λ2, and λ3 are calculated from large to small. The eigenvalues ​​of the scatter matrix represent the degree of dispersion in each characteristic direction of the data set. The size of the eigenvalue represents the intensity of the dispersion of the data in the corresponding characteristic direction. The larger the eigenvalue, the greater the dispersion in the characteristic direction, and the data points are more widely distributed in this direction. If the smallest eigenvalue λ3 is less than 0, skip the point, and calculate the ratio of λ3 to λ2, which is recorded as γ 32 , the ratio of λ2 to λ1 is denoted as γ 21 , γ 32 and γ 21 The smaller the value of , the greater the difference in the distribution of points near the point, and the more characteristic the point is; if γ 32 and γ 21 If all of them are smaller than a preset value, the point will be temporarily retained; finally, all the points that have passed the above screening are subjected to non-maximum suppression filtering based on their minimum eigenvalue λ3, and the points obtained after filtering are ISS key points.

8. The standard parts matching system based on three-dimensional point cloud according to claim 6, characterized in that: The module M4 comprises: Module M4.1: For each key point P∈ISS, calculate the local reference coordinate system and search for the reference system radius R lrf The point set N of all points in lrf Construct the improved covariance matrix M: The three eigenvectors calculated by the covariance matrix are taken as x in descending order of eigenvalue. + ,y + 、z + axis, and its opposite direction is x - ,y - 、z - Axis; calculate each point P in the local reference system i The Euclidean distance d from the key point P i , and calculate the average distance, and take the k points closest to the average distance as the set M(k); Statistics (P i -P)·x + ≥0, i∈N lrf and (P i -P)·x - ≤0, i∈N lrf The axis with more points is taken as x + , if the two points are the same, then take the points in the set M(k) and calculate (P i -P)·x + ≥0, i∈M(k) and (P i -P)·x - ≤0, the number of i∈M(k), the axis with more points between the two is taken as x + ; The direction of the y-axis is obtained by calculating the outer product of the x-axis and the z-axis; Module M4.2: Get the unit vector μ of the three local coordinate axes x , μ y , μ z Then, construct its radius R SHOT The point set N of all points in the range SHOT , using the normal vector features obtained in module M2, calculate the normal vectors and μ of these points z The inner product of all calculation results is discretized into 11 Bins and stored in a one-dimensional matrix B. The expression is: B i =[(1+Normal i ·m z )×10]÷2,i∈N SHOT Point set N SHOT Each point P i , i∈N SHOT , through (Pi-P)·[μ x , μ y , μ z ] to obtain its new coordinates P in the local reference system iRef , the spherical neighborhood of the key point P is divided into 32 small areas, 2 radial, 2 latitude, and 8 longitude. iRef The coordinate position and its B i The value is voted, and the feature dimension of the entire SHOT is divided into 32×11=352 dimensions; Module M4.3: Introducing quadlinear interpolation, that is, when voting for each point, interpolation voting is performed from four dimensions according to the distance weight. First, for the same small area, 11 intervals are divided and interpolation voting is performed from the B dimension. Then, for its adjacent small areas, interpolation voting is performed in the radial, latitude, and longitude dimensions according to the weight d. For radial direction, a point P iRef Euclidean distance from P Then Bi is greater than The area of ​​interpolation voting is performed if Then the point interpolates and votes for the adjacent area, and the voting value is: The radial dimension has a The judgment threshold of the interpolation vote is The criterion for judging latitude is P iRef Connect P and μ z The angle θ z (P iRef , P), interpolation voting for adjacent intervals: The criterion for determining longitude is P iRef Connect P and μ x The angle θ x (P iRef , P), denoted by P iRef The area is coded as L, and the adjacent intervals are interpolated and voted: While performing each of the above steps, for each judgment value d, if it is positive, 1-d is accumulated to the weight value Weight; if it is negative, 1+d is accumulated to the weight value Weight, and Weight is finally interpolated to the interval adjacent to the target point as a vote; Module M4.4: Finally, the 352-dimensional SHOT features are normalized.

9. The standard parts matching system based on three-dimensional point cloud according to claim 6, characterized in that: The module M5 comprises: for each point P in the template point cloud model , traverse all points in the scene point cloud, if there is a point P in the scene match , its eigenvalue and P model The Euclidean distance of the eigenvalues ​​is the smallest and is less than a set threshold, then P is considered model and P match is a pair of matching points.

10. The standard parts matching system based on three-dimensional point cloud according to claim 6, characterized in that: The module M6 includes: for all subsets of the matching point set Match in the scene, if the difference between the L2 norm of the coordinate difference between any two points minus the L2 norm of the coordinate difference between the corresponding points of the two points in the template is less than a set threshold, select N sets with points greater than a set threshold and non-intersecting with each other from all subsets that meet the conditions, and for these N sets, fit the model point cloud to the points therein through a random sampling consistency algorithm, find all matching points whose internal points meet the conditions and retain them, and obtain the final matching result and rotation matrix.

Citation Information

Cited By

  • Mixed pendulum part plate automatic identification method based on three-dimensional point cloud and IFC model

    CN121121227A