A point cloud data processing method for contour detection in workpiece forming process

By combining the point cloud processing method of coarse registration and fine registration, the problem of missing point cloud data and wrong points in the workpiece forming process is solved, and the accurate elimination and supplementation of the workpiece contour detection point cloud is achieved, which improves the detection accuracy and provides The analysis of geometric characteristics during the workpiece forming process lays the foundation.

CN114240871BActive Publication Date: 2024-09-06NORTHWESTERN POLYTECHNICAL UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111513216.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-12
Publication Date
2024-09-06
Estimated Expiration
2041-12-12

AI Technical Summary

Technical Problem

During the workpiece forming process, point cloud data is missing and error points exist due to internal or external environmental factors. Existing technology is difficult to achieve accurate point cloud registration and filtering, and cannot meet the accuracy requirements of workpiece detection.

Method used

A combination of coarse registration and fine registration is used to fuse point cloud data through coarse and fine elimination of error points and distance threshold to obtain a complete workpiece contour detection point cloud. Specific steps include obtaining the workpiece theoretical model point cloud and detection point cloud, performing coarse registration, coarse elimination, fine registration and fine elimination, and finally performing point cloud data fusion based on distance threshold.

Benefits of technology

It effectively eliminates erroneous points in the point cloud and supplements missing points, which improves the accuracy and robustness of the point cloud, lays the foundation for subsequent extraction and analysis of geometric feature sizes, and improves the accuracy of workpiece forming process detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114240871B
    Figure CN114240871B
Patent Text Reader

Abstract

The present invention discloses a point cloud data processing method for contour detection during workpiece forming process, which is used to solve the problem of detection point cloud data defects caused by internal or external environmental factors. The method includes: obtaining a workpiece theoretical model point cloud and a workpiece contour detection point cloud; using a coarse registration method to obtain a workpiece theoretical model point cloud after coarse registration; using a coarse elimination method to obtain a workpiece contour detection point cloud with error points coarsely eliminated; using a fine registration method to obtain a workpiece theoretical model point cloud after fine registration; using a fine elimination method to obtain a workpiece contour detection point cloud with error points finely eliminated; based on a distance threshold, using a point cloud data fusion method to obtain a complete workpiece contour detection point cloud. This method can accurately eliminate error points in the workpiece contour detection point cloud, effectively supplement its missing points, and lay a foundation for the subsequent extraction and analysis of geometric feature dimensions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data processing, and in particular relates to a point cloud data processing method for contour detection. Background Art

[0002] As a pillar industry in my country, manufacturing has provided a strong impetus for the development of my country's national economy. Thanks to the continuous development of optical measurement technology, workpiece forming process detection has gradually become an important direction for the digitalization, networking and intelligent development of manufacturing. Workpiece forming process detection can detect workpiece forming defects in a timely manner, thereby effectively reducing production costs and improving product quality.

[0003] At present, based on optical measurement technology, workpiece forming detection is carried out. Due to internal or external environmental factors, the workpiece contour detection point cloud obtained has the following main problems: the optical accessibility of some structures of the workpiece is poor, resulting in missing points in the point cloud data obtained by detection; the laser is mirror-reflected on the surface of some workpieces to produce virtual images, which causes serious jitter or deviation in the point cloud data obtained by detection, that is, error points, which cannot be eliminated using traditional point cloud filtering methods.

[0004] In the application of actual scenes, the traditional point cloud registration method or the point cloud registration method combining the traditional rough registration and fine registration cannot solve the point cloud missing phenomenon of the workpiece contour detection in the above technical problems, and it is difficult to achieve the expected detection accuracy requirements of the workpiece. Therefore, how to solve the above problems and lay the foundation for effectively extracting the geometric size characteristics of the workpiece to be measured from the point cloud data is a key issue that needs to be solved in the workpiece forming process detection. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a point cloud data processing method for contour detection during the workpiece forming process, which is used to solve the problem of detection point cloud data defects caused by internal or external environmental factors. The method includes: obtaining the workpiece theoretical model point cloud and the workpiece contour detection point cloud; using a coarse alignment method to obtain the workpiece theoretical model point cloud after coarse alignment; using a coarse elimination method to obtain the workpiece contour detection point cloud with the error points coarsely eliminated; using a fine alignment method to obtain the workpiece theoretical model point cloud after fine alignment; using a fine elimination method to obtain the workpiece contour detection point cloud with the error points finely eliminated; based on the distance threshold, using a point cloud data fusion method to obtain a complete workpiece contour detection point cloud. This method can accurately eliminate the error points in the workpiece contour detection point cloud, effectively supplement its missing points, and lay the foundation for the subsequent extraction and analysis of geometric feature dimensions.

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

[0007] Step 1: Obtain the initial position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud;

[0008] Step 2: Use a coarse registration method to obtain the theoretical model point cloud of the workpiece after coarse registration;

[0009] Step 3: Based on the theoretical model point cloud of the workpiece after rough registration, a rough elimination method is adopted to obtain the workpiece contour detection point cloud after the error points are roughly eliminated;

[0010] Step 4: Based on the workpiece theoretical model point cloud after rough registration and the workpiece contour detection point cloud after rough elimination of error points, a fine registration method is adopted to obtain the workpiece theoretical model point cloud after fine registration;

[0011] Step 5: Based on the workpiece theoretical model point cloud after fine registration and the workpiece contour detection point cloud after rough elimination of error points, a fine elimination method is adopted to obtain the workpiece contour detection point cloud after fine elimination of error points;

[0012] Step 6: Based on the distance threshold, the point cloud data fusion method is used to obtain the complete workpiece contour detection point cloud.

[0013] Furthermore, the coarse registration method is specifically as follows:

[0014] According to the initial position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud, the corresponding relationship between the workpiece theoretical model point cloud and the workpiece contour detection point cloud is found, the rotation matrix from the workpiece theoretical model point cloud to the workpiece contour detection point cloud and the translation vector of the two point cloud center points are calculated, and the workpiece theoretical model point cloud is transformed using the translation vector and rotation matrix to obtain the workpiece theoretical model point cloud after coarse alignment.

[0015] Furthermore, the rough elimination method is specifically as follows:

[0016] According to the position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud after rough alignment, multiple corresponding points of each point of the workpiece theoretical model point cloud after rough alignment in the workpiece contour detection point cloud are calculated; the minimum distance among the distances from each point in the workpiece theoretical model point cloud after rough alignment to multiple corresponding points in the workpiece contour detection point cloud is calculated, and a rough elimination nearest neighbor data set is composed of all calculated minimum distances; a rough elimination threshold is set, and the corresponding points in the workpiece contour detection point cloud of the data greater than or equal to the rough elimination threshold in the rough elimination nearest neighbor data set are eliminated to obtain the workpiece contour detection point cloud with the error points roughly eliminated.

[0017] Furthermore, the precise registration method is specifically as follows:

[0018] According to the position coordinates of the workpiece theoretical model point cloud after coarse alignment and the workpiece contour detection point cloud with rough elimination of error points, the corresponding relationship between the workpiece theoretical model point cloud after coarse alignment and the workpiece contour detection point cloud with coarse elimination of error points is found, and the non-rigid space transformation function from the workpiece theoretical model point cloud after coarse alignment to the workpiece contour detection point cloud with coarse elimination of error points is calculated; the workpiece theoretical model point cloud after coarse alignment is transformed by using the non-rigid space transformation function to obtain the workpiece theoretical model point cloud after fine alignment.

[0019] Furthermore, the precise removal method is specifically as follows:

[0020] According to the position coordinates of the workpiece theoretical model point cloud after fine alignment and the workpiece contour detection point cloud after rough elimination of error points, multiple corresponding points of each point in the workpiece theoretical model point cloud after fine alignment in the workpiece contour detection point cloud after rough elimination of error points are calculated; the minimum distance among the distances from each point in the workpiece theoretical model point cloud after fine alignment to multiple corresponding points in the workpiece contour detection point cloud after rough elimination of error points is calculated, and a fine elimination nearest neighbor data set is composed of all calculated minimum distances; a fine elimination threshold is set, and the corresponding points in the workpiece contour detection point cloud of data greater than or equal to the fine elimination threshold in the fine elimination nearest neighbor data set are eliminated to obtain the workpiece contour detection point cloud after fine elimination of error points.

[0021] Furthermore, the step 6 is specifically as follows:

[0022] Step 6-1: Set the maximum distance between two adjacent points in the workpiece theoretical model point cloud as the distance threshold;

[0023] Step 6-2: According to the position coordinates of the workpiece theoretical model point cloud after precise alignment and the workpiece contour detection point cloud after precise elimination of error points, calculate multiple corresponding points of each point in the workpiece theoretical model point cloud after precise alignment in the workpiece contour detection point cloud after precise elimination of error points; calculate the minimum distance among the distances from each point in the workpiece theoretical model point cloud after precise alignment to multiple corresponding points in the workpiece contour detection point cloud after precise elimination of error points, and form a point cloud data fusion nearest neighbor data set from all calculated minimum distances;

[0024] Step 6-3: When the distance data in the nearest neighbor data set fused with the point cloud data is greater than the distance threshold, the point of the workpiece theoretical model point cloud after the precise alignment corresponding to the distance data is determined as the missing point of the workpiece contour detection point cloud; when the distance data in the nearest neighbor data set fused with the point cloud data is less than or equal to the distance threshold, the point of the workpiece theoretical model point cloud after the precise alignment corresponding to the distance data is determined as the non-missing point of the workpiece contour detection point cloud;

[0025] Step 6-4: retain the missing points in the theoretical model point cloud of the workpiece after precise registration, and remove the non-missing points;

[0026] Step 6-5: The workpiece contour detection point cloud with erroneous points removed is spliced ​​with the missing points retained in step 6-4 into a set of point clouds, that is, a complete workpiece contour detection point cloud.

[0027] Furthermore, the coarse registration method adopts a point cloud registration algorithm based on principal component analysis.

[0028] Furthermore, the precise registration method adopts a coherent point drift non-rigid registration algorithm.

[0029] The beneficial effects of the present invention are as follows:

[0030] 1. When dealing with the interference problem of a large number of error points in the contour detection point cloud data during the workpiece forming process, the existence of a large number of error points causes the traditional point cloud registration algorithm to be inaccurate in practical applications, that is, the robustness is low, especially when it comes to specific special-shaped cross-section workpieces, and the traditional point cloud filtering method cannot remove the point cloud error points caused by laser reflection. Therefore, based on the registration results, the present invention adopts coarse elimination and fine elimination methods to achieve effective elimination of error points in the workpiece contour detection point cloud, laying the foundation for the subsequent missing point supplementation of the point cloud and the fusion of the two groups of point clouds. Since the coarse elimination method eliminates a large number of obvious error points in the workpiece contour detection point cloud, the robustness of the subsequent fine registration method is improved.

[0031] 2. When dealing with the problem of missing point cloud data for contour detection during the workpiece forming process, the single traditional point cloud registration algorithm has low registration accuracy in practical applications. Therefore, the present invention first adopts a coarse registration method to achieve the initial position alignment of the two groups of point clouds, which can improve the non-rigid registration accuracy of the subsequent fine registration method; then adopts a fine registration method to achieve precise alignment of the two groups of point clouds through translation, rotation and non-rigid transformation. At this time, the two groups of point clouds are almost completely overlapped, thereby achieving the purpose of effectively supplementing the missing points of the workpiece contour detection point cloud.

[0032] 3. In terms of obtaining a complete workpiece contour detection point cloud, the present invention searches for missing points in the workpiece contour detection point cloud after precise alignment of erroneous points based on a distance threshold, thereby quickly and accurately obtaining a complete workpiece contour detection point cloud, laying the foundation for subsequent extraction and analysis of workpiece geometric features.

[0033] 4. The rough elimination method and the fine elimination method, the rough registration method and the fine registration method are used alternately in the specific implementation of the present invention. Rough elimination is used after rough registration to eliminate the error points that are obviously deviated from the workpiece detection point cloud, eliminate interference for fine registration, and improve the accuracy and robustness of fine registration non-rigid registration; fine elimination is used after fine registration to eliminate the error points that are not obviously deviated from the workpiece detection point cloud, laying the foundation for point cloud fusion. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 Flow chart of the method of the present invention.

[0035] Figure 2 Schematic diagram of the cross-sectional profile of a metal sealing ring according to an embodiment of the present invention.

[0036] Figure 3 Schematic diagram of the theoretical model point cloud of the workpiece according to the embodiment of the present invention.

[0037] Figure 4 This is a schematic diagram of a workpiece contour detection point cloud obtained according to an embodiment of the present invention.

[0038] Figure 5 Schematic diagram of the workpiece theoretical model point cloud after rough registration according to an embodiment of the present invention.

[0039] Figure 6 Schematic diagram of the workpiece contour detection point cloud after rough elimination according to an embodiment of the present invention.

[0040] Figure 7 Schematic diagram of the theoretical model point cloud of the workpiece after precise registration according to an embodiment of the present invention.

[0041] Figure 8 Schematic diagram of the workpiece contour detection point cloud after fine elimination according to an embodiment of the present invention.

[0042] Fig. 9 Schematic diagram of workpiece contour detection point cloud after point cloud data fusion according to an embodiment of the present invention.

[0043] In the figure, 1-metal sealing ring theoretical model point cloud, 2-metal sealing ring contour detection point cloud, metal sealing ring theoretical model point cloud 3 after rough alignment, 4-metal sealing ring contour detection point cloud with rough elimination of error points, 5-metal sealing ring theoretical model point cloud after fine alignment, 6-metal sealing ring contour detection point cloud with fine elimination of error points, 7-complete metal sealing ring contour detection point cloud. DETAILED DESCRIPTION

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

[0045] The main purpose of the present invention is to provide a point cloud data processing method for contour detection during the workpiece forming process, so as to solve the problem of point cloud data defects caused by internal or external environmental factors in the detection of the workpiece forming process.

[0046] like Figure 1 , a point cloud data processing method for contour detection during workpiece forming process, the following steps:

[0047] Step 1: Obtain the initial position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud;

[0048] Step 2: Use a coarse registration method to obtain the theoretical model point cloud of the workpiece after coarse registration;

[0049] According to the position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud after rough alignment, multiple corresponding points of each point of the workpiece theoretical model point cloud after rough alignment in the workpiece contour detection point cloud are calculated; the minimum distance among the distances from each point in the workpiece theoretical model point cloud after rough alignment to multiple corresponding points in the workpiece contour detection point cloud is calculated, and a rough elimination nearest neighbor data set is composed of all calculated minimum distances; a rough elimination threshold is set, and the corresponding points in the workpiece contour detection point cloud of the data greater than or equal to the rough elimination threshold in the rough elimination nearest neighbor data set are eliminated to obtain the workpiece contour detection point cloud with the error points roughly eliminated.

[0050] Step 3: Based on the theoretical model point cloud of the workpiece after rough registration, a rough elimination method is adopted to obtain the workpiece contour detection point cloud after the error points are roughly eliminated;

[0051] According to the position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud after rough alignment, multiple corresponding points of each point of the workpiece theoretical model point cloud after rough alignment in the workpiece contour detection point cloud are calculated; the minimum distance among the distances from each point in the workpiece theoretical model point cloud after rough alignment to multiple corresponding points in the workpiece contour detection point cloud is calculated, and a rough elimination nearest neighbor data set is composed of all calculated minimum distances; a rough elimination threshold is set, and the corresponding points in the workpiece contour detection point cloud of the data greater than or equal to the rough elimination threshold in the rough elimination nearest neighbor data set are eliminated to obtain the workpiece contour detection point cloud with the error points roughly eliminated.

[0052] Step 4: Based on the workpiece theoretical model point cloud after rough registration and the workpiece contour detection point cloud after rough elimination of error points, a fine registration method is adopted to obtain the workpiece theoretical model point cloud after fine registration;

[0053] According to the position coordinates of the workpiece theoretical model point cloud after coarse alignment and the workpiece contour detection point cloud with rough elimination of error points, the corresponding relationship between the workpiece theoretical model point cloud after coarse alignment and the workpiece contour detection point cloud with coarse elimination of error points is found, and the non-rigid space transformation function from the workpiece theoretical model point cloud after coarse alignment to the workpiece contour detection point cloud with coarse elimination of error points is calculated; the workpiece theoretical model point cloud after coarse alignment is transformed by using the non-rigid space transformation function to obtain the workpiece theoretical model point cloud after fine alignment.

[0054] Step 5: Based on the workpiece theoretical model point cloud after fine registration and the workpiece contour detection point cloud after rough elimination of error points, a fine elimination method is adopted to obtain the workpiece contour detection point cloud after fine elimination of error points;

[0055] According to the position coordinates of the workpiece theoretical model point cloud after fine alignment and the workpiece contour detection point cloud after rough elimination of error points, multiple corresponding points of each point in the workpiece theoretical model point cloud after fine alignment in the workpiece contour detection point cloud after rough elimination of error points are calculated; the minimum distance among the distances from each point in the workpiece theoretical model point cloud after fine alignment to multiple corresponding points in the workpiece contour detection point cloud after rough elimination of error points is calculated, and a fine elimination nearest neighbor data set is composed of all calculated minimum distances; a fine elimination threshold is set, and the corresponding points in the workpiece contour detection point cloud of data greater than or equal to the fine elimination threshold in the fine elimination nearest neighbor data set are eliminated to obtain the workpiece contour detection point cloud after fine elimination of error points.

[0056] Step 6: Based on the distance threshold, the point cloud data fusion method is used to obtain the complete workpiece contour detection point cloud.

[0057] Step 6-1: Set the maximum distance between two adjacent points in the workpiece theoretical model point cloud as the distance threshold;

[0058] Step 6-2: According to the position coordinates of the workpiece theoretical model point cloud after precise alignment and the workpiece contour detection point cloud after precise elimination of error points, calculate multiple corresponding points of each point in the workpiece theoretical model point cloud after precise alignment in the workpiece contour detection point cloud after precise elimination of error points; calculate the minimum distance among the distances from each point in the workpiece theoretical model point cloud after precise alignment to multiple corresponding points in the workpiece contour detection point cloud after precise elimination of error points, and form a point cloud data fusion nearest neighbor data set from all calculated minimum distances;

[0059] Step 6-3: When the distance data in the nearest neighbor data set fused with the point cloud data is greater than the distance threshold, the point of the workpiece theoretical model point cloud after the precise alignment corresponding to the distance data is determined as the missing point of the workpiece contour detection point cloud; when the distance data in the nearest neighbor data set fused with the point cloud data is less than or equal to the distance threshold, the point of the workpiece theoretical model point cloud after the precise alignment corresponding to the distance data is determined as the non-missing point of the workpiece contour detection point cloud;

[0060] Step 6-4: retain the missing points in the theoretical model point cloud of the workpiece after precise registration, and remove the non-missing points;

[0061] Step 6-5: The workpiece contour detection point cloud with erroneous points removed is spliced ​​with the missing points retained in step 6-4 into a set of point clouds, that is, a complete workpiece contour detection point cloud. Specific embodiment:

[0063] As a new type of sealing structure, metal sealing rings have the advantages of high vibration tracking, high vibration absorption and good wear resistance. They are mainly used for sealing key parts such as aircraft engine turbines and casings. Metal sealing rings are currently mainly formed by strip rolling, and the forming quality of their cross-section is an important factor in ensuring the performance of metal sealing rings. However, the cross-sectional shape of metal sealing rings is complex and the measurable space is small. At present, the detection technology of metal sealing rings is very limited and can only rely on destructive detection methods of anatomical samples. There is no detection method for the forming process, which leads to some forming defects that occur during the rolling process cannot be discovered in time. Therefore, forming detection of such workpieces has great practical significance and practical value.

[0064] See attached Figure 2 As shown in the figure, it is a schematic diagram of the cross-sectional profile of the metal sealing ring structure. It is formed by welding the strip into a circular ring, and then rolling it several times to finally form the shape shown in the figure. Due to the poor optical accessibility of the metal sealing ring workpiece, the point cloud data obtained by detection has missing points; the laser produces a virtual image by mirror reflection on the surface of the metal sealing ring workpiece, which causes the point cloud data obtained by detection to have erroneous points. Therefore, the scanned metal sealing ring contour detection point cloud data has defects, including but not limited to erroneous points and missing points.

[0065] The following is an explanation of the steps for processing the workpiece forming inspection data.

[0066] 1. Obtain the metal sealing ring theoretical model point cloud and metal sealing ring contour detection point cloud

[0067] Use UG NX to generate the point cloud 1 of the theoretical model of the metal sealing ring according to the standard 3D digital model of the metal sealing ring. Figure 3 ; Use non-contact detection equipment to obtain the contour detection point cloud data of the metal sealing ring during the forming process 2, see Appendix Figure 4 .

[0068] The standard three-dimensional digital model of the metal sealing ring is provided by the factory, or is obtained by modeling based on the metal sealing ring size parameters provided by the factory.

[0069] The non-contact detection device is a two-dimensional laser profile scanning sensor. The two-dimensional laser profile scanning sensor adopts the scanCONTROL LTT2900-25 laser profile scanning sensor of Micro-epsilon Company of Germany. The scanCONTROL LTT2900-25 laser profile scanning sensor is connected to a control computer, and the computer is used to control the parameter setting of the laser profile scanning sensor and receive measurement data.

[0070] 2. Use the coarse registration method to obtain the point cloud of the theoretical model of the metal sealing ring after coarse registration

[0071] The coarse registration method adopts a point cloud registration algorithm based on principal component analysis (PCA).

[0072] The point cloud registration algorithm based on PCA first calculates the covariance matrix of the two groups of point clouds according to the initial position coordinates of the metal sealing ring theoretical model point cloud 1 and the metal sealing ring contour detection point cloud 2, and then calculates the main characteristic components of the two groups of point clouds according to the covariance matrix, that is, the main axis direction of the two groups of point cloud data, which is an expression of the corresponding relationship between the metal sealing ring theoretical model point cloud 1 and the metal sealing ring contour detection point cloud 2. Secondly, the rotation matrix is ​​calculated through the main axis direction of the two groups of point cloud data, and the translation vector of the central coordinates of the two groups of point clouds is calculated. Finally, the metal sealing ring theoretical model point cloud 1 is rigidly transformed to the metal sealing ring contour detection point cloud 2, so as to obtain the metal sealing ring theoretical model point cloud 3 after rough registration, see Appendix. Figure 5 .

[0073] 3. Based on the rough registration result in step 2, a rough elimination method is used to obtain the workpiece contour detection point cloud with rough elimination of error points.

[0074] According to the position coordinates and minimum distance principle of the rough-aligned metal sealing ring theoretical model point cloud 3 and the metal sealing ring contour detection point cloud 2, the corresponding relationship between each point in the rough-aligned workpiece theoretical model point cloud and the points in the workpiece contour detection point cloud is found, and a rough elimination nearest neighbor data set is established based on the minimum distance from each point in the rough-aligned metal sealing ring theoretical model point cloud 3 to the corresponding point in the metal sealing ring contour detection point cloud 2. Based on the rough elimination nearest neighbor data set, a statistical method is used to count the error points in the metal sealing ring contour detection point cloud 2 that obviously deviate from the metal sealing ring contour. According to the proportion of error points, the obvious error points in the metal sealing ring contour detection point cloud 2 are eliminated to obtain the metal sealing ring contour detection point cloud 4 with rough elimination of error points.

[0075] In this embodiment, the coarse elimination of the nearest neighbor data set is based on Kd-tree partitioning.

[0076] The statistical method in this embodiment is based on the normal distribution model. For the normal distribution model x~N(μ,σ 2 ), its probability density function is:

[0077]

[0078] Where x is the variable, μ is the expected value, and σ is the standard deviation. When the normal distribution model takes 3 standard deviations σ, the function curve covers about 99.7% of the area.

[0079] The values ​​in the roughly eliminated nearest neighbor data set in step 3 are used as normal distribution model variables. Based on the relationship between the normal distribution model and the standard deviation 3 times σ, the x in the positive direction of the expected value μ of the normal distribution model that is not within the range of 3 times the standard deviation σ is regarded as the distance value corresponding to the error point. According to the percentage of the distance value corresponding to the error point, that is:

[0080] (1-99.7%) / 2=0.15% (2)

[0081] Obvious error points in the metal sealing ring contour detection point cloud 2 are counted and removed.

[0082] 4. Use the precise registration method to obtain the point cloud of the theoretical model of the metal sealing ring after precise registration

[0083] In this embodiment, the precise registration method adopts a coherent point drift (CPD) non-rigid registration algorithm.

[0084] The CPD non-rigid registration algorithm first regards the points in the roughly registered metal sealing ring theoretical model point cloud 3 as the centroid of the Gaussian Mixture Model (GMM), and regards the points in the metal sealing ring contour detection point cloud 4 with the error points roughly removed as data. Then, the negative log-likelihood function of the GMM is established, and then iterative optimization is performed through the expectation-maximization (EM) algorithm to maximize the fitting and the centroid of the Gaussian mixture model that is most relevant to the data. Finally, the roughly registered metal sealing ring theoretical model point cloud 3 is non-rigidly transformed to the metal sealing ring contour detection point cloud 4 with the error points roughly removed, and the metal sealing ring theoretical model point cloud 5 after fine registration is obtained. See the attached figure. Figure 7 The non-rigid transformation is achieved by regularizing the displacement field and using variational methods to derive the optimal transformation to impose coherence constraints.

[0085] 5. Based on the precise registration result in step 4, a precise elimination method is used to obtain the metal sealing ring contour detection point cloud with the error points precisely eliminated.

[0086] According to the position coordinates and the minimum distance principle of the metal sealing ring theoretical model point cloud 5 after precise alignment to the metal sealing ring contour detection point cloud 4 after rough elimination of error points, the corresponding relationship between each point in the metal sealing ring theoretical model point cloud 5 after precise alignment and the points in the metal sealing ring contour detection point cloud 4 after rough elimination of error points is found, and a precise elimination nearest neighbor data set is established according to the minimum distance between each point in the metal sealing ring theoretical model point cloud 5 after precise alignment to the corresponding point in the metal sealing ring contour detection point cloud 4 after rough elimination of error points. Based on the precise elimination nearest neighbor data set, a statistical method is used to count the error points that do not deviate from the metal sealing ring contour that are not obvious in the metal sealing ring contour detection point cloud 4 after rough elimination of error points. According to the error point ratio, the remaining error points in the metal sealing ring contour detection point cloud 4 after rough elimination of error points are used to obtain the metal sealing ring contour detection point cloud 6 after precise elimination of error points, see Appendix. Figure 8 .

[0087] In this embodiment, the nearest neighbor data set is precisely eliminated based on Kd-tree partitioning.

[0088] In this embodiment, the statistical method is based on the normal distribution model. It can be known from the preliminary experiments that when the normal distribution takes 3 standard deviations σ, the error point precision elimination effect in this embodiment is ideal, and when the normal distribution takes 4 standard deviations σ, the error point precision elimination effect in this embodiment is ideal. Therefore, the normal distribution model takes 4 standard deviations σ, and at this time the probability density function curve contains about 99.9% of the area.

[0089] The values ​​in the nearest neighbor data set removed in step 5 are used as normal distribution model variables. Based on the relationship between the normal distribution model and the standard deviation 4 times σ, the x in the positive direction of the expected value μ of the normal distribution model that is not within the range of 4 times the standard deviation σ is regarded as the distance value corresponding to the error point. According to the percentage of the distance value corresponding to the error point, that is:

[0090] (1-99.9%) / 2=0.05% (3)

[0091] The remaining error points in the metal sealing ring contour detection point cloud 4 after the error points are roughly eliminated are counted and eliminated.

[0092] 6. Based on the distance threshold, the point cloud data fusion method is used to obtain the complete workpiece contour detection point cloud

[0093] The distance threshold is determined according to the maximum distance between two adjacent points in the point cloud 1 of the metal sealing ring theoretical model.

[0094] According to the position coordinates and the minimum distance principle of the metal sealing ring theoretical model point cloud 5 after precise registration and the metal sealing ring contour detection point cloud 6 after accurate elimination of error points, the corresponding relationship between each point in the metal sealing ring theoretical model point cloud 5 after precise registration and the points in the workpiece contour detection point cloud 6 after accurate elimination of error points is found, and a point cloud data fusion neighbor point data set of the metal sealing ring theoretical model point cloud 5 after precise registration to the metal sealing ring contour detection point cloud 6 after accurate elimination of error points is established;

[0095] Searching for a point cloud data fusion neighbor point data set, when the distance between the neighbor point pairs in the point cloud data fusion neighbor point data set is greater than the distance threshold, determining the points in the neighbor point pairs that belong to the metal sealing ring theoretical model point cloud 5 after precise alignment as missing points of the metal sealing ring contour detection point cloud 6 with accurate elimination of erroneous points; when the distance between the neighbor point pairs in the point cloud data fusion neighbor point data set is not greater than the distance threshold, determining the points in the neighbor point pairs that belong to the metal sealing ring theoretical model point cloud 5 after precise alignment as non-missing points of the metal sealing ring contour detection point cloud 6 with accurate elimination of erroneous points;

[0096] The missing points in the point cloud 5 of the metal sealing ring theoretical model after precise registration are retained, and the non-missing points are eliminated;

[0097] The metal sealing ring contour detection point cloud 6 with the error points removed is spliced ​​with the retained missing points to form a set of point clouds, namely, the complete metal sealing ring contour detection point cloud 7, see the attached Fig. 9 .

[0098] The point cloud data is fused with the neighboring point data set according to the Kd-tree division.

Claims

1. A point cloud data processing method for contour detection in a workpiece forming process, characterized in that it comprises the following steps: Step 1: Obtain the initial position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud; Step 2: Use a coarse registration method to obtain the theoretical model point cloud of the workpiece after coarse registration; Step 3: Based on the workpiece theoretical model point cloud after rough registration, a rough elimination method is used to obtain the workpiece contour detection point cloud after the error points are roughly eliminated; Step 4: Based on the workpiece theoretical model point cloud after rough registration and the workpiece contour detection point cloud after rough elimination of error points, a fine registration method is adopted to obtain the workpiece theoretical model point cloud after fine registration; Step 5: According to the workpiece theoretical model point cloud after fine registration and the workpiece contour detection point cloud after rough elimination of error points, a fine elimination method is adopted to obtain the workpiece contour detection point cloud after fine elimination of error points; Step 6: Based on the distance threshold, a point cloud data fusion method is used to obtain a complete workpiece contour detection point cloud; Step 6-1: Set the maximum distance between two adjacent points in the workpiece theoretical model point cloud as the distance threshold; Step 6-2: According to the position coordinates of the workpiece theoretical model point cloud after precise alignment and the workpiece contour detection point cloud after precise elimination of error points, calculate multiple corresponding points of each point in the workpiece theoretical model point cloud after precise alignment in the workpiece contour detection point cloud after precise elimination of error points; calculate the minimum distance among the distances from each point in the workpiece theoretical model point cloud after precise alignment to multiple corresponding points in the workpiece contour detection point cloud after precise elimination of error points, and form a point cloud data fusion nearest neighbor data set from all calculated minimum distances; Step 6-3: When the distance data in the nearest neighbor data set fused with the point cloud data is greater than the distance threshold, the point of the workpiece theoretical model point cloud after the precise alignment corresponding to the distance data is determined as the missing point of the workpiece contour detection point cloud; when the distance data in the nearest neighbor data set fused with the point cloud data is less than or equal to the distance threshold, the point of the workpiece theoretical model point cloud after the precise alignment corresponding to the distance data is determined as the non-missing point of the workpiece contour detection point cloud; Step 6-4: retain the missing points in the theoretical model point cloud of the workpiece after precise registration, and remove the non-missing points; Step 6-5: The workpiece contour detection point cloud with erroneous points removed is spliced ​​with the missing points retained in step 6-4 into a set of point clouds, that is, a complete workpiece contour detection point cloud.

2. A point cloud data processing method for contour detection in a workpiece forming process according to claim 1, characterized in that the coarse registration method is specifically: According to the initial position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud, the corresponding relationship between the workpiece theoretical model point cloud and the workpiece contour detection point cloud is found, the rotation matrix from the workpiece theoretical model point cloud to the workpiece contour detection point cloud and the translation vector of the two point cloud center points are calculated, and the workpiece theoretical model point cloud is transformed using the translation vector and rotation matrix to obtain the workpiece theoretical model point cloud after coarse alignment.

3. A point cloud data processing method for contour detection in a workpiece forming process according to claim 2, characterized in that the rough elimination method is specifically: According to the position coordinates of the workpiece theoretical model point cloud and the workpiece contour detection point cloud after rough registration, multiple corresponding points of each point of the workpiece theoretical model point cloud after rough registration in the workpiece contour detection point cloud are calculated; Calculate the minimum distance between each point in the workpiece theoretical model point cloud and multiple corresponding points in the workpiece contour detection point cloud after rough registration, and form a rough elimination nearest neighbor data set with all the calculated minimum distances; A rough elimination threshold is set, and the points corresponding to the data in the rough elimination nearest neighbor data set that are greater than or equal to the rough elimination threshold in the workpiece contour detection point cloud are eliminated to obtain the workpiece contour detection point cloud with the error points roughly eliminated.

4. A point cloud data processing method for contour detection in a workpiece forming process according to claim 3, characterized in that the precise registration method is specifically: According to the position coordinates of the workpiece theoretical model point cloud after coarse alignment and the workpiece contour detection point cloud with rough elimination of error points, the corresponding relationship between the workpiece theoretical model point cloud after coarse alignment and the workpiece contour detection point cloud with coarse elimination of error points is found, and the non-rigid space transformation function from the workpiece theoretical model point cloud after coarse alignment to the workpiece contour detection point cloud with coarse elimination of error points is calculated; the workpiece theoretical model point cloud after coarse alignment is transformed by using the non-rigid space transformation function to obtain the workpiece theoretical model point cloud after fine alignment.

5. A point cloud data processing method for contour detection in a workpiece forming process according to claim 4, characterized in that the precise elimination method is specifically: According to the position coordinates of the workpiece theoretical model point cloud after precise registration and the workpiece contour detection point cloud after rough elimination of error points, multiple corresponding points of each point in the workpiece theoretical model point cloud after precise registration in the workpiece contour detection point cloud after rough elimination of error points are calculated; Calculate the minimum distance between each point in the workpiece theoretical model point cloud after precise registration and multiple corresponding points in the workpiece contour detection point cloud after rough elimination of error points, and form a precise elimination nearest neighbor data set with all calculated minimum distances; A fine rejection threshold is set, and the points corresponding to the data in the fine rejection nearest neighbor data set that are greater than or equal to the fine rejection threshold in the workpiece contour detection point cloud are eliminated to obtain the workpiece contour detection point cloud with the error points finely eliminated.

6. A point cloud data processing method for contour detection in a workpiece forming process according to claim 2, characterized in that the coarse registration method adopts a point cloud registration algorithm based on principal component analysis.

7. A point cloud data processing method for contour detection in a workpiece forming process according to claim 4, characterized in that the precise registration method adopts a coherent point drift non-rigid registration algorithm.