Algorithm for extracting stereo features based on 3D point cloud data

By using a three-dimensional feature extraction algorithm based on 3D point cloud data in workpiece quality inspection, the problem of noise interference and redundant point clouds is solved, the fit of the point cloud data and the accuracy of feature point extraction are improved, and the detection efficiency is improved. Accuracy.

CN117746055BActive Publication Date: 2024-09-03SUZHOU GAOXUN INTELLIGENT TECHNOLOGY CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202311791458.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-25
Publication Date
2024-09-03
Estimated Expiration
2043-12-25

AI Technical Summary

Technical Problem

Existing workpiece quality detection methods based on point cloud data are easily affected by noise interference and redundant point clouds when acquiring workpiece point cloud data, resulting in large errors in edge contour information and affecting detection accuracy.

Method used

A three-dimensional feature extraction algorithm based on 3D point cloud data is used to establish the point cloud spatial coordinate system through principal component analysis, remove large-scale outlier point cloud data, perform moving least squares smoothing, and use the DBSCAN clustering algorithm to segment the point cloud data. , introducing angle threshold to extract contour points, and perform feature point matching and correction.

Benefits of technology

Effectively reduce noise interference, improve the fit of point cloud data and the accuracy of feature point extraction, and improve detection accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117746055B
    Figure CN117746055B
Patent Text Reader

Abstract

The present invention discloses an algorithm for extracting stereo features based on 3D point cloud data, and specifically relates to the technical field of point cloud data processing. After acquiring the original workpiece point cloud data, the present invention calculates the principal component direction of the point cloud data based on the principle of principal component analysis and establishes a point cloud space coordinate system, the coordinate system can well reflect the shape of the target workpiece, and also provides data support for subsequent data processing processes. After determining the spatial coordinates of the target workpiece point cloud, the present invention removes large-scale outlier point cloud data by calculating the average Euclidean distance from the target point to the neighborhood point, and uses moving least squares to smooth the single-view point cloud data of the target workpiece to obtain a multi-view smooth surface of the target workpiece, thereby reducing the influence of noise interference points, improving the fit between the target workpiece point cloud data and the actual parameters of the target workpiece, and improving the accuracy of subsequent feature point extraction and feature point matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of point cloud data processing, and more specifically, to an algorithm for extracting stereo features based on 3D point cloud data. Background Art

[0002] With the development of new generation technologies, manual judgment of whether the quality of workpieces is qualified during production can no longer meet the needs of production development. Using machines to inspect the quality of workpieces has gradually become the mainstream method of quality inspection.

[0003] The existing workpiece quality inspection method based on point cloud data scans the produced workpieces, and after obtaining the point cloud data information of the target workpiece, it automatically marks the edge contour points of the target workpiece. The edge contour model of the target workpiece is built based on the edge contour information at different angles and superimposed with the model when the target workpiece was designed. The volume proportion of the lost or exceeded part of the model is recorded, and then whether the workpiece quality is qualified is judged. The data judgment results are more accurate and the quality inspection accuracy is greatly improved.

[0004] However, the above method still has some problems: there are noise interference points and a large number of redundant point clouds when obtaining the point cloud data of the target workpiece. The edge contour information obtained by directly marking the edge contour points after obtaining the point cloud data of the target workpiece is prone to large errors compared with the actual workpiece edge contour information. The obtained point cloud data needs to be cleaned to reduce interference points, and the accuracy of the edge contour model still needs to be improved. Summary of the invention

[0005] In order to overcome the above-mentioned defects of the prior art, an embodiment of the present invention provides an algorithm for extracting three-dimensional features based on 3D point cloud data to solve the problems raised in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solution: an algorithm for extracting three-dimensional features based on 3D point cloud data, comprising the following steps:

[0007] S1: Use a laser scanning device to scan the target workpiece to obtain the original workpiece point cloud data;

[0008] S2: Calculate the principal component direction of the point cloud data based on the principle of principal component analysis and establish the point cloud space coordinate system;

[0009] S3: Input each point in the point cloud data of the target workpiece, perform neighborhood statistics on each point, calculate the average Euclidean distance from the point to the neighboring points, and then remove the large-scale outlier point cloud data. After removing the large-scale outlier point cloud data, the single-view point cloud data of the target workpiece is smoothed by moving least squares to obtain the multi-view smooth surface of the target workpiece.

[0010] S4: The source workpiece point cloud data and the processed target workpiece point cloud data are segmented using the density-based DBSCAN clustering algorithm;

[0011] S5: introducing an angle threshold for the segmented source workpiece point cloud data and the target workpiece point cloud data to extract contour points, and using the contour points extracted from the source workpiece point cloud data and the target workpiece point cloud data as feature points for matching the next two pieces of point cloud data;

[0012] S6: performing corresponding matching based on the feature points extracted from the source workpiece point cloud data and the target workpiece point cloud data;

[0013] S7: Record the number of point clouds, spatial volume, spatial volume of the source workpiece point cloud, number of point clouds, and point cloud data cleaning time before and after the removal of large-scale outlier point cloud data and smoothing processing, record the number of feature points and point clouds extracted from the source workpiece and target workpiece point cloud data sets, and record the number of correctly matched feature points;

[0014] S8: Calculate the point cloud data fit coefficient, point cloud data correction efficiency index, feature point average extraction rate, and feature point matching accuracy based on the recorded data;

[0015] S9: Calculate the feature extraction accuracy index based on the point cloud data correction efficiency index, the average feature point extraction rate, and the feature point matching accuracy.

[0016] Preferably, the specific steps of constructing the point cloud coordinate system in step S2 are as follows:

[0017] S21. Count the number of three-dimensional points n in the point cloud set a , a point cloud X=(X,Y,Z) T ∈R 3 The number of points in the neighborhood of is denoted as n b , n b ∈n a , the point in the point cloud set is denoted as p ai (x ai ,y ai ,z ai ), p ai ∈n a , the centroid coordinates of the point cloud are marked as o(x o ,y o ,z o ), then: , , ;

[0018] S22. Calculate the covariance of the X, Y, and Z coordinate values ​​of the points in the point cloud neighborhood, represented by cov(X,X), cov(X,Y), cov(X,Z), cov(Y,X), cov(Y,Y), cov(Y,Z), cov(Z,X), and cov(Z,Z), respectively, then: , , , , , , where X a , Y a , Z a They are the average values ​​of the X, Y, and Z coordinates of the points in the point cloud neighborhood respectively;

[0019] S23, set the covariance matrix D∈R from the obtained covariance 3×3 , specifically: , since the above covariance matrix is ​​a symmetric positive definite matrix, the three eigenvalues ​​of the matrix can be known from the properties of the symmetric positive definite matrix , the corresponding eigenvectors are recorded as V1, V2, V3;

[0020] S24, taking the centroid coordinate o as the origin of the target workpiece point cloud space coordinate system, the feature vectors V1, V2, and V3 are respectively the direction vectors of the target workpiece point cloud space coordinate system to determine the target workpiece point cloud space coordinate system, and the coordinate point in the point cloud space coordinate system is denoted by p bi (x bi ,y bi ,z bi )express.

[0021] Preferably, the specific steps of removing abnormal distance distribution point cloud data in step S3 are as follows:

[0022] S311, input target point cloud coordinates p bi Search for neighboring points in the neighborhood, and the search radius is recorded as r a ;

[0023] S312, calculate the target point cloud coordinates p bi The coordinates of the other point clouds within its search radius p bj The Euclidean distance d aj , the specific calculation formula is: ;

[0024] S313, filter out the Euclidean distance dc of the target point cloud coordinates and the nearest neighbor point within the search radius, and then summarize and calculate the average Euclidean distance d e and standard deviation σ a , the specific calculation formula is as follows: , , ;

[0025] S314, setting the rejection threshold T a , then: , where μ a To adjust the parameters;

[0026] S315, remove the average distance d in the point cloud ci >T a point.

[0027] Preferably, the specific steps of smoothing the single-view point cloud data after removing large-scale outliers in step S3 are as follows:

[0028] S321, input the target point cloud coordinates to search for neighboring points;

[0029] S322, constructing a fitting surface constraint equation group based on the searched neighbor point coordinates;

[0030] S323, solving the constraint equation group to obtain the best fitting surface at the target point cloud coordinates, and replacing the points in the point cloud data with the points on the surface;

[0031] S324, repeat the above process until the entire point cloud is smoothed point by point to obtain a smooth surface.

[0032] Preferably, the specific steps of feature point extraction in step S5 are as follows:

[0033] S51, the target point p b Instead of projecting the points within the search radius onto the least squares plane it constructs, let the number of points within the search radius be n c , the nearest point in the neighborhood of the target point is recorded as p ti , with p b p ti As the reference vector, take any other point p in the neighborhood tj , let vector p b p tj ;

[0034] S52. Calculate p b p ti With p b p tj The angle α between the vectors, α∈[0,π] and the cross product vector , and use this as the reference vector, when When α i Remain unchanged when hour, ;

[0035] S53, vector angle sequence a={α1,α2,......,α nc} are arranged in ascending order and two extreme angles are added to obtain a new vector angle sequence a={0,α1,α2,......,α nc ,2π}, then the angle θ between each adjacent line segment i The calculation formula is: ;

[0036] S54, according to θ i Whether the target point is a boundary contour point is determined by whether it exceeds the set threshold, and the determined contour point is marked as a feature point.

[0037] Preferably, the specific data processing process in step S8 is as follows:

[0038] S81, the number of point clouds m before the recorded large-scale outlier point cloud data and smoothing processing a , point cloud space volume V a and the source workpiece point cloud distribution space volume V c , number of point clouds m c Calculate the point cloud data fit ε a , the specific calculation formula is: , the number of recorded point clouds after removing large-scale outliers and smoothing is m b 、Space volume V b and the source workpiece point cloud distribution space volume V c , number of point clouds m c Calculate the point cloud data fit ε b , the specific calculation formula is: ;

[0039] S82, the distribution fit of point cloud data before and after the removal of large-scale outlier point cloud data and smoothing and the point cloud data cleaning time t a Calculate the point cloud data removal efficiency index y a , the specific calculation formula is: , where c a is the empirical index, c a >0;

[0040] S83, the number of feature points f extracted from the target workpiece point cloud data set a and the number of point clouds f c Calculate the feature point extraction rate γ a , the specific calculation formula is: ;

[0041] S84, extracting feature points of different point cloud data sets of the target workpiece γ ai Summarize and calculate the average extraction rate of feature points γ e , the specific calculation formula is: ;

[0042] S85, the number of correctly matched feature points f b And the number of feature points extracted from the source workpiece point cloud data f d Calculate the feature point matching accuracy z a , the specific calculation formula is: , where c1, c2, c3 are adjustment coefficients, c1>0, c2>0, c3>0.

[0043] Preferably, in step S9, the feature extraction accuracy index U is calculated based on the point cloud data correction efficiency index, the average feature point extraction rate, and the feature point matching accuracy. a The specific calculation formula is: , where l1, l2, l3 are the proportional coefficients of the corresponding influencing factors, l1>0, l2>0, l3>0.

[0044] Technical effects and advantages of the present invention:

[0045] After acquiring the original workpiece point cloud data, the present invention calculates the principal component direction of the point cloud data based on the principle of principal component analysis and establishes a point cloud space coordinate system. The coordinate system can well reflect the shape of the target workpiece and also provides data support for subsequent data processing processes. After determining the spatial coordinates of the target workpiece point cloud, the present invention calculates the average Euclidean distance from the target point to the neighborhood point and then removes large-scale outlier point cloud data. The single-view point cloud data of the target workpiece is smoothed by moving least squares to obtain a multi-view smooth surface of the target workpiece, which reduces the influence of noise interference points, improves the fit between the target workpiece point cloud data and the actual parameters of the target workpiece, and improves the accuracy of subsequent feature point extraction and feature point matching. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a diagram of the method steps of the present invention;

[0047] Figure 2 It is a system structure block diagram of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] like Figure 1 The present embodiment provides an algorithm for extracting three-dimensional features based on 3D point cloud data, comprising the following steps:

[0050] S1: Use a laser scanning device to scan the target workpiece to obtain the original workpiece point cloud data;

[0051] What needs to be specifically explained in this embodiment is that the laser scanning instrument used in the step S1 can be a grating three-dimensional scanner, and the optical method adopted is the structured light method, which projects a specific line grating and calculates the three-dimensional information of the target workpiece at different viewing angles based on the deformation of the line grating on the surface of the target workpiece at different viewing angles.

[0052] S2: Calculate the principal component direction of the point cloud data based on the principle of principal component analysis and establish the point cloud space coordinate system;

[0053] Furthermore, the specific steps of constructing the point cloud coordinate system in step S2 are as follows:

[0054] S21. Count the number of three-dimensional points n in the point cloud set a , a point cloud X=(X,Y,Z) T ∈R 3 The number of points in the neighborhood of is denoted as n b , n b ∈n a , the point in the point cloud set is denoted as p ai (x ai ,y ai ,z ai) , p ai ∈n a , the centroid coordinates of the point cloud are marked as o(x o ,y o ,z o ), then: , , ;

[0055] S22. Calculate the covariance of the X, Y, and Z coordinate values ​​of the points in the point cloud neighborhood, represented by cov(X,X), cov(X,Y), cov(X,Z), cov(Y,X), cov(Y,Y), cov(Y,Z), cov(Z,X), and cov(Z,Z), respectively, then: , , , , , , where X a , Y a , Z a They are the average values ​​of the X, Y, and Z coordinates of the points in the point cloud neighborhood respectively;

[0056] S23, set the covariance matrix D∈R from the obtained covariance 3×3 , specifically: , since the above covariance matrix is ​​a symmetric positive definite matrix, the three eigenvalues ​​of the matrix can be known from the properties of the symmetric positive definite matrix , the corresponding eigenvectors are recorded as V1, V2, V3;

[0057] S24, taking the centroid coordinate o as the origin of the target workpiece point cloud space coordinate system, the feature vectors V1, V2, and V3 are respectively the direction vectors of the target workpiece point cloud space coordinate system to determine the target workpiece point cloud space coordinate system, and the coordinate point in the point cloud space coordinate system is denoted by p bi (x bi ,y bi ,z bi )express.

[0058] S3: Input each point in the point cloud data of the target workpiece, perform neighborhood statistics on each point, calculate the average Euclidean distance from the point to the neighboring points, and then remove the large-scale outlier point cloud data. After removing the large-scale outlier point cloud data, the single-view point cloud data of the target workpiece is smoothed by moving least squares to obtain the multi-view smooth surface of the target workpiece.

[0059] Furthermore, the specific steps of removing abnormal distance distribution point cloud data in step S3 are as follows:

[0060] S311, input target point cloud coordinates p bi Search for neighboring points in the neighborhood, and the search radius is recorded as r a ;

[0061] S312, calculate the target point cloud coordinates p bi The coordinates of the other point clouds within its search radius p bj The Euclidean distance d aj , the specific calculation formula is: ;

[0062] S313, filter out the Euclidean distance dc of the target point cloud coordinates and the nearest neighbor point within the search radius, and then summarize and calculate the average Euclidean distance d e and standard deviation σ a , the specific calculation formula is as follows: , , ;

[0063] S314, setting the rejection threshold T a , then: , where μ a To adjust the parameters;

[0064] S315, remove the average distance d in the point cloud ci >T a point.

[0065] Furthermore, the specific steps of smoothing the single-view point cloud data after removing large-scale outliers in step S3 are as follows:

[0066] S321, input the target point cloud coordinates to search for neighboring points;

[0067] S322, constructing a fitting surface constraint equation group based on the searched neighbor point coordinates;

[0068] S323, solving the constraint equation group to obtain the best fitting surface at the target point cloud coordinates, and replacing the points in the point cloud data with the points on the surface;

[0069] S324, repeat the above process until the entire point cloud is smoothed point by point to obtain a smooth surface.

[0070] S4: The source workpiece point cloud data and the processed target workpiece point cloud data are segmented using the density-based DBSCAN clustering algorithm;

[0071] It should be specifically explained in this embodiment that the specific steps of using the density-based DBSCAN clustering algorithm to segment the point cloud data in step S4 are as follows:

[0072] S41. Establish the source workpiece point cloud data set Q{q1,q2,......,q n} and the target workpiece point cloud dataset P b {p b1 ,p b2 ,......,p bn};

[0073] S42: Point cloud data Q and P to be processed b , given parameters MinPts and Eps;

[0074] S43, establishing a kd tree data structure of point cloud data;

[0075] S44, randomly in the source point cloud dataset Q and the target point cloud dataset P b Find some q in each i and point p bi , through the parameters MinPts and Eps, determine the point q i and point p bi Whether it is a core point;

[0076] S45, if you click q i and point p bi As the core point, according to the density reachability requirement, the reachable point sets of the core point can be found to be Q1 and P respectively. b1 ;

[0077] S46, repeating steps S54 and S55 until all points in the given data set are visited to obtain clustered point sets Q1, Q2, ..., Q n and P b1 , P b2 ,......,P bn .

[0078] S5: introducing an angle threshold for the segmented source workpiece point cloud data and the target workpiece point cloud data to extract contour points, and using the contour points extracted from the source workpiece point cloud data and the target workpiece point cloud data as feature points for matching the next two pieces of point cloud data;

[0079] Furthermore, the specific steps of feature point extraction in step S5 are as follows:

[0080] S51, the target point p b Instead of projecting the points within the search radius onto the least squares plane it constructs, let the number of points within the search radius be n c , the nearest point in the neighborhood of the target point is recorded as p ti , with p b p ti As the reference vector, take any other point p in the neighborhood tj , let vector p b p tj ;

[0081] S52. Calculate p b p ti With p b p tj The angle α between the vectors, α∈[0,π] and the cross product vector , and use this as the reference vector, when When α i Remain unchanged when hour, ;

[0082] S53, vector angle sequence a={α1,α2,......,α nc} are arranged in ascending order and two extreme angles are added to obtain a new vector angle sequence a={0,α1,α2,......,α nc ,2π}, then the angle θ between each adjacent line segment i The calculation formula is: ;

[0083] S54, according to θ i Whether the target point is a boundary contour point is determined by whether it exceeds the set threshold, and the determined contour point is marked as a feature point.

[0084] S6: performing corresponding matching based on the feature points extracted from the source workpiece point cloud data and the target workpiece point cloud data;

[0085] S7: Record the number of point clouds, spatial volume, spatial volume of the source workpiece point cloud, number of point clouds, and point cloud data cleaning time before and after the removal of large-scale outlier point cloud data and smoothing processing, record the number of feature points and point clouds extracted from the target workpiece point cloud data set, and record the number of correctly matched feature points;

[0086] S8: Calculate the point cloud data fit coefficient, point cloud data correction efficiency index, feature point average extraction rate, and feature point matching accuracy based on the recorded data;

[0087] Further, the specific data processing process in step S8 is as follows:

[0088] S81, the number of point clouds m before the recorded large-scale outlier point cloud data and smoothing processing a , point cloud space volume V a and the source workpiece point cloud distribution space volume V c , number of point clouds m c Calculate the point cloud data fit ε a , the specific calculation formula is: , the number of recorded point clouds after removing large-scale outliers and smoothing is m b 、Space volume V b and the source workpiece point cloud distribution space volume V c , number of point clouds m c Calculate the point cloud data fit ε b , the specific calculation formula is: ;

[0089] S82, the distribution fit of point cloud data before and after the removal of large-scale outlier point cloud data and smoothing and the point cloud data cleaning time t a Calculate the point cloud data removal efficiency index y a , the specific calculation formula is: , where c a is the empirical index, c a >0;

[0090] S83, the number of feature points f extracted from the target workpiece point cloud data set a and the number of point clouds f c Calculate the feature point extraction rate γ a , the specific calculation formula is: ;

[0091] S84, extracting feature points of different point cloud data sets of the target workpiece γ ai Summarize and calculate the average extraction rate of feature points γe , the specific calculation formula is: ;

[0092] S85, the number of correctly matched feature points f b And the number of feature points extracted from the source workpiece point cloud data f d Calculate the feature point matching accuracy z a , the specific calculation formula is: , where c1, c2, c3 are adjustment coefficients, c1>0, c2>0, c3>0.

[0093] S9: Calculate the feature extraction accuracy index based on the point cloud data correction efficiency index, the average feature point extraction rate, and the feature point matching accuracy.

[0094] Furthermore, in step S9, the feature extraction accuracy index U is calculated based on the point cloud data correction efficiency index, the average feature point extraction rate, and the feature point matching accuracy. a The specific calculation formula is: , where l1, l2, l3 are the proportional coefficients of the corresponding influencing factors, l1>0, l2>0, l3>0.

[0095] like Figure 2 The present embodiment provides an execution system of an algorithm for extracting stereo features based on 3D point cloud data, comprising an original workpiece scanning module, a source workpiece point cloud data acquisition module, a point cloud space coordinate system construction module, a point cloud data cleaning module, a point cloud data segmentation module, a stereo feature point extraction module, a feature point matching module, a data processing module, a feature extraction accuracy index calculation module, and a database. The original workpiece scanning module, the point cloud space coordinate system construction module, the point cloud data cleaning module, the point cloud data segmentation module, the stereo feature point extraction module, and the feature point matching module are connected in sequence, the source workpiece point cloud data acquisition module is connected to the point cloud data segmentation module and the stereo feature point extraction module, the source workpiece point cloud data acquisition module, the point cloud space coordinate system construction module, the point cloud data cleaning module, the stereo feature point extraction module, and the feature point matching module are all connected to the data processing module, the data processing module is connected to the feature extraction accuracy index calculation module, and all modules in the system are connected to the database.

[0096] The original workpiece scanning module uses a laser scanning device to scan the target workpiece to obtain the original workpiece point cloud distribution data, the source workpiece point cloud space volume and the point cloud quantity.

[0097] The source workpiece point cloud data acquisition module is connected to the network to acquire the source workpiece point cloud data corresponding to the target workpiece.

[0098] The point cloud space coordinate system construction module calculates the principal component direction of the point cloud data based on the principle of principal component analysis and establishes a point cloud space coordinate system, and records the number of point clouds and the space volume at this time.

[0099] The point cloud data cleaning module cleans the point cloud data of the target workpiece, removes large-scale outlier point cloud data, and uses moving least squares to smooth the single-view point cloud data of the target workpiece to obtain a multi-view smooth surface of the target workpiece, and automatically records the number of point clouds, spatial volume and point cloud data cleaning time after cleaning.

[0100] The point cloud data segmentation module performs segmentation processing on the source workpiece point cloud data and the processed target workpiece point cloud data using a density-based DBSCAN clustering algorithm.

[0101] The stereo feature point extraction module introduces an angle threshold to perform contour point extraction processing on the segmented source workpiece point cloud data and the target workpiece point cloud data, and automatically records the number of feature points and the number of corresponding point clouds extracted from different source workpiece point cloud data sets and target workpiece point cloud data sets.

[0102] The feature point matching module performs corresponding matching based on the feature points extracted from the source workpiece point cloud data and the target workpiece point cloud data.

[0103] The data processing module calculates the point cloud data fit coefficient, the point cloud data correction efficiency index, the feature point average extraction rate, and the feature point matching accuracy based on the recorded data.

[0104] The feature extraction accuracy index calculation module calculates the feature extraction accuracy index based on the point cloud data correction efficiency index, the feature point average extraction rate and the feature point matching accuracy.

[0105] The database is used to store all module data in the system.

[0106] Finally: The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An algorithm for extracting stereo features based on 3D point cloud data, characterized by: The following steps are involved: S1: Use a laser scanning device to scan the target workpiece to obtain the original workpiece point cloud data; S2: Calculate the principal component direction of the point cloud data based on the principle of principal component analysis and establish the point cloud space coordinate system; S3: Input each point in the point cloud data of the target workpiece, perform neighborhood statistics on each point, calculate the average Euclidean distance from the point to the neighboring points, and then remove the large-scale outlier point cloud data. After removing the large-scale outlier point cloud data, the single-view point cloud data of the target workpiece is smoothed by moving least squares to obtain the multi-view smooth surface of the target workpiece. S4: The source workpiece point cloud data and the processed target workpiece point cloud data are segmented using the density-based DBSCAN clustering algorithm; S5: introducing an angle threshold for the segmented source workpiece point cloud data and the target workpiece point cloud data to extract contour points, and using the contour points extracted from the source workpiece point cloud data and the target workpiece point cloud data as feature points for matching the next two pieces of point cloud data; S6: performing corresponding matching based on the feature points extracted from the source workpiece point cloud data and the target workpiece point cloud data; S7: Record the number of point clouds, spatial volume, spatial volume of the source workpiece point cloud, number of point clouds, and point cloud data cleaning time before and after the removal of large-scale outlier point cloud data and smoothing processing, record the number of feature points and point clouds extracted from the source workpiece and target workpiece point cloud data sets, and record the number of correctly matched feature points; S8: Calculate the point cloud data fit coefficient, point cloud data correction efficiency index, feature point average extraction rate, and feature point matching accuracy based on the recorded data; S9: Calculate the feature extraction accuracy index based on the point cloud data correction efficiency index, the average feature point extraction rate, and the feature point matching accuracy.

2. The algorithm for extracting three-dimensional features based on 3D point cloud data according to claim 1, characterized in that: The specific steps of constructing the point cloud coordinate system in step S2 are as follows: S21. Count the number of three-dimensional points n in the point cloud set a , a point cloud X=(X,Y,Z) T ∈R 3 The number of points in the neighborhood of is denoted as n b , n b ∈n a , the point in the point cloud set is denoted as p ai (x ai ,y ai ,z ai ), p ai ∈n a, The centroid coordinates of the point cloud are marked as o(x o , o ,z o ), then: , , ; S22. Calculate the covariance of the X, Y, and Z coordinate values ​​of the points in the point cloud neighborhood, represented by cov(X,X), cov(X,Y), cov(X,Z), cov(Y,X), cov(Y,Y), cov(Y,Z), cov(Z,X), and cov(Z,Z), respectively, then: , , , , , , where X a , Y a , Z a They are the average values ​​of the X, Y, and Z coordinates of the points in the point cloud neighborhood respectively; S23, set the covariance matrix D∈R from the obtained covariance 3×3 , specifically: , since the above covariance matrix is ​​a symmetric positive definite matrix, the three eigenvalues ​​of the matrix can be known from the properties of the symmetric positive definite matrix , the corresponding eigenvectors are recorded as V1, V2, V3; S24, taking the centroid coordinate o as the origin of the target workpiece point cloud space coordinate system, the feature vectors V1, V2, and V3 are respectively the direction vectors of the target workpiece point cloud space coordinate system to determine the target workpiece point cloud space coordinate system, and the coordinate point in the point cloud space coordinate system is denoted by p bi (x bi ,y bi ,z bi )express.

3. The algorithm for extracting three-dimensional features based on 3D point cloud data according to claim 1, characterized in that: The specific steps of removing abnormal distance distribution point cloud data in step S3 are as follows: S311, input target point cloud coordinates p bi Search for neighboring points in the neighborhood, and the search radius is recorded as r a ; S312, calculate the target point cloud coordinates p bi The coordinates of the other point clouds within its search radius p bj The Euclidean distance d aj , the specific calculation formula is: ; S313, filter out the Euclidean distance dc of the target point cloud coordinates and the nearest neighbor point within the search radius, and then summarize and calculate the average Euclidean distance d e and standard deviation σ a , the specific calculation formula is as follows: , , ; S314, setting the rejection threshold T a , then: , where μ a To adjust the parameters; S315, remove the average distance d in the point cloud ci >T a point.

4. The algorithm for extracting three-dimensional features based on 3D point cloud data according to claim 1, characterized in that: The specific steps of smoothing the single-view point cloud data after removing large-scale outliers in step S3 are as follows: S321, input the target point cloud coordinates to search for neighboring points; S322, constructing a fitting surface constraint equation group based on the searched neighbor point coordinates; S323, solving the constraint equation group to obtain the best fitting surface at the target point cloud coordinates, and replacing the points in the point cloud data with the points on the surface; S324, repeat the above process until the entire point cloud is smoothed point by point to obtain a smooth surface.

5. The algorithm for extracting three-dimensional features based on 3D point cloud data according to claim 1, characterized in that: The specific steps of feature point extraction in step S5 are as follows: S51, the target point p b Instead of projecting the points within the search radius onto the least squares plane it constructs, let the number of points within the search radius be n c , the nearest point in the neighborhood of the target point is recorded as p ti , with p b p ti As the reference vector, take any other point p in the neighborhood tj , let vector p b p tj ; S52. Calculate p b p ti With p b p tj The angle α between the vectors, α∈[0,π] and the cross product vector , and use this as the reference vector, when When α i Remain unchanged when hour, ; S53, vector angle sequence a={α1,α2,......,α nc } are arranged in ascending order and two extreme angles are added to obtain a new vector angle sequence a={0,α1,α2,......,α nc ,2π}, then the angle θ between each adjacent line segment i The calculation formula is: ; S54, according to θ i Whether the target point is a boundary contour point is determined by whether it exceeds the set threshold, and the determined contour point is marked as a feature point.

6. The algorithm for extracting three-dimensional features based on 3D point cloud data according to claim 1, characterized in that: The specific data processing process in step S8 is as follows: S81, the number of point clouds m before the recorded large-scale outlier point cloud data and smoothing processing a , point cloud space volume V a and the spatial volume V of the source workpiece point cloud distribution c 、Point cloud quantity m c Calculate the point cloud data fit ε a , the specific calculation formula is: , the number of point clouds m after the large-scale outlier point cloud data is removed and smoothed b 、Space volume V b and the source workpiece point cloud distribution space volume V c , number of point clouds m c Calculate the point cloud data fit ε b , the specific calculation formula is: ; S82, the distribution fit of point cloud data before and after the removal of large-scale outlier point cloud data and smoothing and the point cloud data cleaning time t a Calculate the point cloud data removal efficiency index y a , the specific calculation formula is: , where c a is the empirical index, c a >0; S83, the number of feature points f extracted from the target workpiece point cloud data set a and the number of point clouds f c Calculate the feature point extraction rate γ a , the specific calculation formula is: ; S84, extracting feature points of different point cloud data sets of the target workpiece γ ai Summarize and calculate the average extraction rate of feature points γ e , the specific calculation formula is: ; S85, the number of correctly matched feature points f b And the number of feature points extracted from the source workpiece point cloud data f d Calculate the feature point matching accuracy z a , the specific calculation formula is: , where c1, c2, c3 are adjustment coefficients, c1>0, c2>0, c3>0.

7. The algorithm for extracting three-dimensional features based on 3D point cloud data according to claim 1, characterized in that: In step S9, the feature extraction accuracy index U is calculated based on the point cloud data correction efficiency index, the feature point average extraction rate and the feature point matching accuracy. a The specific calculation formula is: , where l1, l2, l3 are the proportional coefficients of the corresponding influencing factors, l1>0, l2>0, l3>0.

Citation Information

Patent Citations

  • A backpack type three-dimensional laser point cloud data-based building contour line extraction method

    CN109949326A

  • Point cloud registration method based on laser scanning

    CN114170279A

  • Point cloud downsampling method and device suitable for various scenes

    CN114581473A

  • Laser radar point cloud denoising method based on multi-scale noise

    CN115222625A

  • Multi-source mobile measurement point cloud data air-ground integrated fusion method and storage medium

    WO2021232463A1