Bent pipe point cloud registration method and system based on axial ordered geometric prior

By using an axially ordered geometric prior method, the ambiguity of the PCA principal axis direction in point cloud registration of curved pipe fittings is solved, achieving efficient and accurate point cloud registration, which is suitable for real-time robot grasping and assembly.

CN123141533APending Publication Date: 2026-11-20QILU UNIVERSITY OF TECHNOLOGY (SHANDONG ACADEMY OF SCIENCES)
View PDF 0 Cites -1 Cited by

Patent Information

Application Number
CN202611402928.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies have ambiguity in the sign of the PCA principal axis in point cloud registration of curved pipes, causing ICP to converge to an incorrect local optimum pose near the incorrect initial value, making it difficult to register accurately in real-time capture scenarios.

Method used

A method based on axial ordered geometric prior is adopted. By constructing a principal axis coordinate system, two candidate initial transformation poses are generated in both directions. Spatial consistency pre-detection and comprehensive scoring are performed, and the optimal initial transformation pose is selected as the initial value of ICP for local fine registration.

Benefits of technology

Without increasing the number of template matching operations, the number of complete local optimization operations is reduced, ensuring high timeliness and accuracy. It can reliably score and sort based on ordered geometric information under noise interference and viewpoint occlusion, preventing ICP from converging to an erroneous local optimum.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123141533A_ABST
    Figure CN123141533A_ABST
Patent Text Reader

Abstract

The application belongs to the technical field of computer vision and robot automation, and discloses a curved pipe point cloud registration method and system based on axial ordered geometric prior, which comprises the following steps: constructing a right-hand main shaft coordinate system for source and template point clouds, constructing two candidate initial poses of the source point cloud in the positive and negative directions of the first main shaft; extracting the point number proportion, transverse standard deviation and mean deviation along the first main shaft effective interval to form an axial ordered contour feature; not performing ICP iteration to pre-check the space consistency of the candidates, and counting the high quantile distance, median distance and inlier proportion; combining the contour difference and space distance indicators to form a comprehensive score, selecting the optimal candidate as the initial value of precise registration, and performing ICP to output a rigid transformation matrix for robot grasping pose mapping. The application solves the problem that the positive and negative signs of the PCA main shaft direction are ambiguous in curved pipe point cloud registration, which leads to the convergence of ICP to an incorrect local optimal pose near the incorrect initial value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of computer vision and robotics automation, and in particular to a vehicle measurement method and system based on video detection and distributed optical fiber. Background Technology

[0002] In industrial assembly, sorting, and flexible manufacturing, robots typically estimate the workpiece pose based on point clouds acquired by 3D cameras, and then plan the grasping or assembly trajectory. Curved pipes are characterized by their slender shape, similar local curvature, similar shapes at both ends, and susceptibility to viewpoint occlusion, depth noise, and segmentation residue. For scenarios with few templates and real-time grasping, registration must be fast while avoiding overall orientation errors.

[0003] A common two-stage method first uses PCA to establish principal axis coordinate systems for the source and template point clouds to obtain coarse initial values ​​for registration, and then uses ICP to iteratively solve the rigid body transformation through nearest neighbor correspondence. PCA has low computational cost and is suitable as an initial value for ICP; however, the eigenvectors of the covariance matrix are all valid solutions, and the principal axis direction is inherently ambiguous. For curved pipes, if the first principal axis direction is reversed, it is equivalent to the source point cloud traversing from endpoint A to endpoint B in the reverse order of the template. Since the local curvature may be similar, erroneous candidates may still have local geometric overlap. ICP will converge to a local optimum near the erroneous initial value, resulting in an erroneous pose that is "partially coincident in numerical value but unusable in grasping".

[0004] Furthermore, when comparing only the overall size, covariance, or unordered global description, the order of morphological changes from endpoint to endpoint is lost, making it difficult to distinguish between positive and negative candidates. Although performing ICP on both positive and negative candidates can improve reliability, it increases the number of complete local optimizations, which is not conducive to real-time capture. Sparse scanning, continuous local missing parts, and incomplete segmentation will further amplify the instability of the main axis direction determination. Summary of the Invention

[0005] To address the aforementioned issues, this invention proposes a point cloud registration method and system for curved pipe fittings based on axially ordered geometric priors. This method solves the problem of ambiguity in the PCA principal axis direction during point cloud registration of curved pipe fittings, which causes ICP to converge to an incorrect local optimum pose near an incorrect initial value.

[0006] To achieve the above objectives, the present invention adopts the following technical solution: In a first aspect, the present invention provides a point cloud registration method for curved pipe fittings based on axially ordered geometric priors, comprising the following steps: Obtain the source point cloud and template point cloud to be registered; Construct principal axis coordinate systems for the source point cloud and the template point cloud respectively; Based on the principal axis coordinate system, for the first principal axis direction of the source point cloud, construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system. Determine the robust effective interval of the projection of the source point cloud and the template point cloud along the first principal axis, and divide the robust effective interval into several ordered segments evenly; extract the point number distribution and lateral geometric statistics in each segment to generate the axial ordered contour features corresponding to the source point cloud and the template point cloud respectively. Spatial consistency pre-detection is performed on each candidate initial transformation pose to obtain spatial distance statistics; Based on the axial ordered contour features and spatial distance statistics, each candidate initial transformation pose is comprehensively scored, and the candidate initial transformation pose with the best score is selected as the target initial transformation pose. Using the initial transformation pose of the target as the initial value, a local fine registration algorithm is executed to output the final rigid body transformation matrix from the source point cloud to the template point cloud.

[0007] As an alternative implementation, the method further includes preprocessing the source point cloud and the template point cloud, wherein the preprocessing includes at least one of the following: finite point removal, outlier filtering, and voxel downsampling.

[0008] As an alternative implementation, the construction of the principal axis coordinate system specifically includes: The source point cloud and template point cloud are decentered and the covariance matrix is ​​calculated. Principal component analysis is performed on the covariance matrix, and the corresponding eigenvectors are arranged in descending order of eigenvalues ​​to form an initial coordinate system. The direction of the eigenvectors is adjusted so that the determinant of the initial coordinate system is greater than zero, thus obtaining the principal axis coordinate system.

[0009] As an alternative implementation, at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system are constructed, specifically including: Keep the principal axis coordinate system of the template point cloud fixed; A forward candidate coordinate system and a reverse candidate coordinate system are constructed for the source point cloud. The reverse candidate coordinate system is constructed by simultaneously flipping the directions of the first principal axis vector and the second principal axis vector of the forward candidate coordinate system while keeping the third principal axis vector unchanged, so as to maintain the right-hand property of the coordinate system while reversing the traversal order of the first principal axis. Based on the transformation relationship between the forward candidate coordinate system and the reverse candidate coordinate system relative to the principal axis coordinate system of the template point cloud, the forward candidate initial transformation pose and the reverse candidate initial transformation pose are generated respectively.

[0010] As an alternative implementation method, spatial consistency pre-check is performed on each candidate initial transformation pose, specifically including: Without performing local iterative optimization, the source point cloud is transformed to the principal coordinate system of the template point cloud using candidate initial transformation poses; based on the spatial query structure constructed by the template point cloud, the nearest neighbor distance from each point in the transformed source point cloud to the template point cloud is queried; the high quantile distance, median distance, and the proportion of points whose distance does not exceed a preset threshold are statistically analyzed as spatial distance statistics.

[0011] As an alternative implementation method, the formula for calculating the comprehensive score is: ; in, The nearest neighbor distance is the high quantile distance. Median distance The proportion of points within the threshold. For axial profile differences, Preset scoring weights.

[0012] Secondly, the present invention provides a point cloud registration system for curved pipe fittings based on axially ordered geometric priors, comprising the following modules: The point cloud acquisition module is configured to acquire the source point cloud and template point cloud to be registered; The coordinate system construction module is configured to construct principal axis coordinate systems for the source point cloud and the template point cloud, respectively. The candidate pose construction module is configured to: based on the principal axis coordinate system, construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system for the first principal axis direction of the source point cloud; The axial contour extraction module is configured to: determine the robust effective interval of the projection of the source point cloud and the template point cloud along the first principal axis direction, and uniformly divide the robust effective interval into several ordered segments; extract the point number distribution and lateral geometric statistics in each segment to generate the axial ordered contour features corresponding to the source point cloud and the template point cloud respectively. The spatial pre-detection module is configured to perform spatial consistency pre-detection on each candidate initial transformation pose and obtain spatial distance statistics. The candidate scoring and selection module is configured to: comprehensively score each candidate initial transformation pose based on axial ordered contour features and spatial distance statistics, and select the candidate initial transformation pose with the best score as the target initial transformation pose. The fine registration module is configured to: take the initial transformation pose of the target as the initial value, execute the local fine registration algorithm, and output the final rigid body transformation matrix from the source point cloud to the template point cloud.

[0013] Thirdly, the present invention provides an electronic device including a memory and a processor, and computer instructions stored in the memory and running on the processor, wherein the computer instructions, when executed by the processor, perform the method described in the first aspect.

[0014] Fourthly, the present invention provides a computer-readable storage medium for storing computer instructions, which, when executed by a processor, perform the method described in the first aspect.

[0015] Fifthly, the present invention provides a computer program product, including a computer program that, when executed by a processor, implements the method described in the first aspect.

[0016] Compared with the prior art, the beneficial effects of the present invention are as follows: This invention moves the main axis direction disambiguation entirely before ICP local fine registration. Under each template, only one optimal candidate is accurately selected from two axial candidates and sent to ICP, minimizing the number of complete local optimizations. This ensures high timeliness without increasing the number of template matching operations, meeting the needs of real-time robot grasping and assembly. Furthermore, robust segmentation is performed along the first main axis extension direction. The proportion of segment points, lateral distribution dispersion, and lateral mean offset are combined to construct axially ordered contour features, fully preserving the sequential information of geometric structure changes along the main axis direction. When the main axis of the pipe is reversed, the arrangement order of its contours is also reversed, which can robustly eliminate the ambiguity of the endpoint order of similar pipes at both ends, compensating for the lack of directional information in the disordered global descriptor.

[0017] This invention combines lightweight spatial consistency pre-detection and axial contour difference term that do not rely on ICP iteration. Even under harsh conditions such as noise interference in the workpiece point cloud, sparse scanning, missing continuous local viewpoints, or incomplete edge segmentation, it can still reliably score and rank candidate poses based on the ordered geometric information of the visible part and the large spatial weight consistency. This fundamentally prevents the problem of traditional ICP converging to an erroneous local optimum near the erroneous initial value.

[0018] Advantages of additional aspects of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0019] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments of the invention and their descriptions are used to explain the invention and do not constitute an improper limitation of the invention.

[0020] Figure 1 The flowchart shows the framework of the point cloud registration method for curved pipes based on axially ordered geometric priors provided in Embodiment 1 of the present invention. Figure 2 This is a schematic diagram illustrating the principle of extracting axially ordered contour features and comparing positive and negative candidate contours along the first principal axis (axis1) as provided in Embodiment 1 of the present invention. Detailed Implementation

[0021] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0022] It should be noted that the following detailed description is exemplary and intended to provide further illustration of the invention. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains.

[0023] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments of the invention. As used herein, unless the context clearly indicates otherwise, the singular form is intended to include the plural form as well. Furthermore, it should be understood that the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but includes other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0024] Where there is no conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.

[0025] Example 1 like Figure 1 As shown, this embodiment provides a point cloud registration method for curved pipes based on axially ordered geometric priors, specifically addressing the high-precision, high-real-time pose estimation requirements of slender curved pipes in robot grasping and assembly scenarios. The core is: before performing local fine registration such as ICP, the geometric transformation sequence along the first principal axis of the pipe from one end to the other (i.e., axially ordered geometric priors) combined with lightweight spatial consistency pre-detection is used to quickly disambiguate the two valid candidate initial poses (positive and negative) generated by PCA coarse registration, selecting the unique and reliable target initial pose. This is then fed into ICP for a single local fine registration, outputting the final rigid body transformation matrix for robot grasping pose mapping. Specifically, it includes the following steps: S1: Obtain the source point cloud and template point cloud to be registered.

[0026] Acquire the point cloud of the workpiece to be measured, acquired by the 3D vision sensor to be registered. and standard template point cloud The 3D coordinate unit for points in the point cloud is set to millimeters (mm). The goal of registration is to determine the rigid body transformation from the source point cloud to the template point cloud. ,in, For three-dimensional rotation matrix, The translation vector is used to make the transformed source point coincide as much as possible with the corresponding point in the template, i.e., to solve for: ; The key to this non-convex problem lies in providing the correct initial pose for local fine registration.

[0027] Step S1 further includes preprocessing the source point cloud and template point cloud, specifically including the following operations: First, finite point removal is performed, traversing the point cloud data and removing illegal outliers containing NaN (not a number) or Inf (infinity); then, statistical outlier filtering is performed, using statistical filtering methods to remove noise points. In this embodiment, the number of neighborhood query points is set to 30, and the standard deviation multiple threshold is set to 2.0; next, voxel downsampling is performed, using a voxel grid to uniformly downsample the point cloud, with the voxel grid side length set to 2mm. The downsampled sparse point cloud is used for subsequent principal axis coordinate system construction, contour feature extraction, and spatial pre-detection; the cleaned higher-density point cloud is retained for the final ICP local fine registration, balancing the calculation speed of the coarse registration stage with the accuracy of the fine registration stage. The above values ​​are parameters of the embodiment and can be adjusted according to the camera resolution and workpiece size.

[0028] S2: Construct principal axis coordinate systems for the source point cloud and the template point cloud respectively.

[0029] In step S2, the source point cloud and template point cloud are decentered and their covariance matrices are calculated. Principal component analysis is performed on the covariance matrix, and the corresponding eigenvectors are arranged in descending order of eigenvalues ​​to form an initial coordinate system. The directions of the eigenvectors are adjusted so that the determinant of the initial coordinate system is greater than zero, thus obtaining the principal axis coordinate system. Specifically: The preprocessed source point cloud With template point cloud Calculate the centroid and After decentralizing the point cloud, each point is calculated separately. Covariance matrix. Taking the source point cloud as an example, the covariance matrix is ​​calculated as follows: ; Principal component analysis was performed on the covariance matrix, and the corresponding eigenvectors were arranged in descending order of eigenvalues ​​to form the initial principal axis matrix. For slender, curved pipes, the first eigenvector... The second feature vector corresponds to the overall extension direction of the pipe fitting (axis1). The third eigenvector corresponds to the lateral extension direction (axis2) within the bending plane. The approximate plane normal (axis3) of the corresponding curved pipe fitting.

[0030] To prevent the principal axis matrix from containing mirror transformations, the matrix needs to be checked. determinant :like Then the third principal axis vector is inverted (i.e. ),make sure This yields the principal axis coordinate system that satisfies the right-handed rigid body coordinate system constraint. The determinant check prevents subsequently generated candidate initial transformations from containing mirror components, ensuring they are valid rigid body transformations. In addition to the determinant check, constraints are applied to the axis3 direction, making it point towards the camera. Axis1 has two directions, corresponding to the right-handed coordinate system in both positive and negative cases.

[0031] In some implementations, a "normalized principal axis coordinate system" can be constructed as a preferred method: first, the direction of axis3 is adjusted to face the direction of the camera's optical center; then, the positive direction of axis2 is determined by the deviation direction of the line connecting the two ends of the middle section of the curved pipe; when the curvature of the curved pipe is lower than a preset strength, the positive direction of axis2 can be determined by using the third-order distribution vector in the plane or the third moment of the projection of axis1 as a fallback. This normalization mechanism is beneficial for compressing other axial symbol combinations, but the disambiguation focus of this embodiment is to resolve the ambiguity of the order of the positive and negative endpoints on axis1, making the normalized principal axis coordinate system an optional preferred method.

[0032] S3: Based on the principal axis coordinate system, construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system for the first principal axis direction of the source point cloud.

[0033] In the axis1 direction, the eigenvectors of PCA have ambiguous signs, i.e. and For the same eigenvalue, all are valid solutions. To fully cover both forward (endpoint A→B) and reverse (endpoint B→A) endpoint traversal orders, while ensuring the right-handedness of the rigid body coordinate system, the principal axis coordinate system matrix of the fixed template point cloud is: Two candidate coordinate systems are constructed for the source point cloud.

[0034] Forward candidate coordinate system Defined as: ; Inverse candidate coordinate system Defined as: ; The reversed candidate coordinate system is constructed by simultaneously inverting axis1 and axis2 while keeping axis3 unchanged. This construction method can completely reverse the traversal order of axis1 while maintaining... This maintains the requirement for legal rigid body rotation. If only axis1 is inverted without simultaneously inverting axis2, the determinant will become negative, resulting in an illegal transformation that includes a mirror image.

[0035] Based on two candidate coordinate systems, candidate initial rigid body transformations from the source point cloud to the template point cloud are calculated respectively. For each candidate coordinate system... Initial rotation matrix With the initial translation vector They are respectively: ; Thus, the positive candidate initial transformation pose is obtained. With the inverse candidate initial transformation pose This embodiment is "at least two candidates representing opposite principal axis traversal orders while maintaining the legality of the rigid body coordinate system", and it is not necessary to simultaneously flip axis1 and axis2. The above construction method is a preferred implementation.

[0036] S4: Determine the robust effective interval of the projection of the source point cloud and the template point cloud along the first principal axis, and divide the robust effective interval into several ordered segments evenly; extract the point distribution and lateral geometric statistics in each segment to generate the axial ordered contour features corresponding to the source point cloud and the template point cloud respectively.

[0037] like Figure 2 As shown, unordered global descriptors or global covariance matrices cannot capture the gradual details of the pipe fitting along its axial direction "from one end to the other" because such descriptions lose information about the order of morphological changes from end to end. This embodiment transforms the point cloud to its respective principal axis local coordinate system, using the projection values ​​of axis1. As a one-dimensional sequential variable, the point cloud is segmented in an ordered manner along the direction of this variable.

[0038] To reduce the interference of outliers at the ends on the effective range, the projected value is selected. 2% quantile and 98th percentile As a robust effective range The effective interval is uniformly divided into... Each bin segment, preferably in the embodiment. . No. The set of points contained in each bin segment Defined as: ; For each segment Extract five-dimensional local geometric statistical indicators: percentage of segmented points. (in, for The number of points inside, (Total number of points in the point cloud); lateral standard deviation in the axis2 direction. ; Lateral standard deviation in axis3 ; Lateral mean offset in axis2 direction ; Lateral mean offset in axis3 direction .

[0039] To eliminate the dimensional influence of different pipe fittings, the standard deviation and mean are uniformly divided by the effective axial length. Perform dimensionless normalization to obtain the first... Local feature vectors of each segment :

[0040] according to The physical order of the segmented feature vectors is connected to form an axially ordered contour feature matrix. The contour feature matrices extracted from the source point cloud and the template point cloud are denoted as follows: and .like Figure 2 As shown, when the pipe axis1 direction is reversed, the arrangement order of its segment features is completely reversed, resulting in a huge geometric misalignment between the contour features of the reverse candidate and the template contour features; and the disordered global histogram or global covariance cannot retain this ordered information, so it is impossible to distinguish between positive and negative candidates.

[0041] To quantitatively calculate the profile difference term Perform the following processing: and Perform joint standardization along the feature dimensions; truncate the standardized differences. Within a certain range, to suppress the interference of extreme outliers on the overall score; apply weight vectors to the five-dimensional features. The point distribution and lateral mean offset are given higher weights; the weighted root mean square error is calculated to obtain the axial profile difference term. The positive candidates follow the same outline order as the template. Smaller; the outline order of the reverse candidates is reversed, and its The value is significantly larger, thus enabling effective determination of the order of endpoints.

[0042] S5: Perform spatial consistency pre-detection on each candidate initial transformation pose to obtain spatial distance statistics.

[0043] For positive candidate initial pose transformation With the inverse candidate initial transformation pose Without performing ICP iterative optimization, the source point cloud is directly... Apply transformations respectively and Mapped to template point cloud In the coordinate system in which it is located.

[0044] Based on template point cloud A pre-built KD-Tree spatial index is used to retrieve the nearest neighbor of each point in the transformed source point cloud (to control computational cost, a maximum of 6000 source points are sampled at equal intervals) in the template point cloud and calculate the Euclidean distance. The calculated nearest neighbor distance set is then statistically analyzed to obtain the following three spatial distance statistics: median nearest neighbor distance. (50th percentile distance), used to reflect the typical level of overall fit; nearest neighbor distance (95th percentile distance) Used to depict the worst-case deviation in overall fit; proportion of overlapping inner points. That is, the nearest neighbor distance does not exceed a preset distance threshold. (In the example) The proportion of the number of source points to the total number of sampling points is used to measure the degree of spatial overlap between the source point cloud and the template point cloud under the candidate initial pose.

[0045] This pre-detection step involves only one KD-Tree nearest neighbor query, does not update the rigid body transformation matrix, has extremely low computation time, and can accurately reflect whether the candidate initial pose has roughly placed the source point cloud near the template. In an optional implementation, the high quantile distance can be 90%, 95%, or 99% quantile distance; the pre-detection item can have a fixed weight or participate in candidate ranking as a priori constraint.

[0046] S6: Based on the axial ordered contour features and spatial distance statistics, a comprehensive score is given to each candidate initial transformation pose, and the candidate initial transformation pose with the best score is selected as the target initial transformation pose.

[0047] Combined with the contour difference term calculated in step S4 Spatial distance statistics calculated in step S5 , , Comprehensive score : ; in, The nearest neighbor distance is the high quantile distance. Median distance The proportion of points within the threshold. For axial profile differences, The preset scoring weights are as follows: .

[0048] and The smaller the value, the closer the source point cloud is to the template, and the positive contribution to the score (increasing the score). The larger the value, the higher the proportion of overlapping interior points, and the negative contribution to the score (resulting in a lower score). A smaller value indicates a more consistent contour order, contributing positively to the score. Therefore, the overall score... The smaller the value, the more reliable the candidate initial pose is in terms of geometric contour matching and spatial overlap.

[0049] Axial profile difference Spatial consistency pre-inspection items ( , , It can be used alone or in combination according to preset weights to adapt to different pipe sizes, acquisition angles and point cloud completeness.

[0050] The candidate with the lowest score (i.e., the best) is selected as the sole initial pose transformation for the target. .

[0051] S7: Using the initial transformation pose of the target as the initial value, execute the local fine registration algorithm to output the final rigid body transformation matrix from the source point cloud to the template point cloud.

[0052] Only the selected single target will undergo initial pose transformation. The initial values ​​are input into the ICP algorithm (or other local fine registration algorithm), and the high-density point cloud is used for iterative fine registration to solve and output the final high-precision rigid body transformation matrix.

[0053] After obtaining the high-precision rigid body transformation matrix, the transformation matrix is ​​applied to the robot gripping pose or assembly coordinate system pre-set on the standard template to map and calculate the robot gripping pose in the actual current workpiece coordinate system, and then sent to the service robot's control system to drive the robot to perform automated gripping or assembly actions.

[0054] Example 2 This embodiment provides a point cloud registration system for curved pipe fittings based on axially ordered geometric priors, including the following modules: The point cloud acquisition module is configured to acquire the source point cloud and template point cloud to be registered; The coordinate system construction module is configured to construct principal axis coordinate systems for the source point cloud and the template point cloud, respectively. The candidate pose construction module is configured to: based on the principal axis coordinate system, construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system for the first principal axis direction of the source point cloud; The axial contour extraction module is configured to: determine the robust effective interval of the projection of the source point cloud and the template point cloud along the first principal axis direction, and uniformly divide the robust effective interval into several ordered segments; extract the point number distribution and lateral geometric statistics in each segment to generate the axial ordered contour features corresponding to the source point cloud and the template point cloud respectively. The spatial pre-detection module is configured to perform spatial consistency pre-detection on each candidate initial transformation pose and obtain spatial distance statistics. The candidate scoring and selection module is configured to: comprehensively score each candidate initial transformation pose based on axial ordered contour features and spatial distance statistics, and select the candidate initial transformation pose with the best score as the target initial transformation pose. The fine registration module is configured to: take the initial transformation pose of the target as the initial value, execute the local fine registration algorithm, and output the final rigid body transformation matrix from the source point cloud to the template point cloud.

[0055] It should be noted that the above modules correspond to the steps in Embodiment 1, and the examples and application scenarios implemented by the above modules and their corresponding steps are the same, but are not limited to the content disclosed in Embodiment 1. It should also be noted that the above modules can be executed in a computer system as part of the system.

[0056] In further embodiments, the following is also provided: An electronic device includes a memory and a processor, as well as computer instructions stored in the memory and running on the processor, which, when executed by the processor, perform the method described in Embodiment 1. For brevity, further details are omitted here.

[0057] It should be understood that in this embodiment, the processor can be a central processing unit (CPU), or it can be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.

[0058] A computer-readable storage medium for storing computer instructions that, when executed by a processor, perform the method of Embodiment 1.

[0059] The method in Example 1 can be directly executed by a hardware processor, or it can be executed by a combination of hardware and software modules within the processor. The software modules can reside in readily available storage media in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, or registers. This storage medium is located in memory; the processor reads information from the memory and, in conjunction with its hardware, completes the steps of the above method. To avoid repetition, a detailed description is not provided here.

[0060] A computer program product includes a computer program that, when executed by a processor, implements the method in Embodiment 1.

[0061] The present invention also provides at least one computer program product tangibly stored on a non-transitory computer-readable storage medium. The computer program product includes computer-executable instructions, such as instructions included in program modules, which execute in a device on a target real or virtual processor to perform the processes / methods described above. Typically, program modules include routines, programs, libraries, objects, classes, components, data structures, etc., that perform specific tasks or implement specific abstract data types. In various embodiments, the functionality of program modules can be combined or divided among program modules as needed. The machine-executable instructions for the program modules can execute within a local or distributed device. In a distributed device, the program modules can reside in both local and remote storage media.

[0062] The computer program code used to implement the methods of the present invention may be written in one or more programming languages. This computer program code may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the computer or other programmable data processing device, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a computer, partially on a computer, as a stand-alone software package, partially on a computer and partially on a remote computer, or entirely on a remote computer or server.

[0063] In the context of this invention, computer program code or related data may be carried by any suitable carrier to enable a device, apparatus, or processor to perform the various processes and operations described above. Examples of carriers include signals, computer-readable media, and the like. Examples of signals may include electrical, optical, radio, sound, or other forms of propagation signals, such as carrier waves, infrared signals, etc.

[0064] Those skilled in the art will recognize that the units and algorithm steps described in conjunction with the embodiments herein can be implemented in electronic hardware or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0065] While the specific embodiments of the present invention have been described above in conjunction with the accompanying drawings, this is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art without creative effort based on the technical solutions of the present invention are still within the scope of protection of the present invention.

Claims

1. A point cloud registration method for curved pipe fittings based on axially ordered geometric priors, characterized in that, Includes the following steps: Obtain the source point cloud and template point cloud to be registered; Construct principal axis coordinate systems for the source point cloud and the template point cloud respectively; Based on the principal axis coordinate system, for the first principal axis direction of the source point cloud, construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system. Determine the robust effective interval of the projection of the source point cloud and the template point cloud along the first principal axis, and divide the robust effective interval into several ordered segments evenly; extract the point number distribution and lateral geometric statistics in each segment to generate the axial ordered contour features corresponding to the source point cloud and the template point cloud respectively. Spatial consistency pre-detection is performed on each candidate initial transformation pose to obtain spatial distance statistics; Based on the axial ordered contour features and spatial distance statistics, each candidate initial transformation pose is comprehensively scored, and the candidate initial transformation pose with the best score is selected as the target initial transformation pose. Using the initial transformation pose of the target as the initial value, a local fine registration algorithm is executed to output the final rigid body transformation matrix from the source point cloud to the template point cloud.

2. The point cloud registration method for curved pipe fittings based on axially ordered geometric priors as described in claim 1, characterized in that, It also includes preprocessing the source point cloud and template point cloud, the preprocessing including at least one of the following: finite point removal, outlier filtering and voxel downsampling.

3. The point cloud registration method for curved pipe fittings based on axially ordered geometric priors as described in claim 1, characterized in that, The construction of the principal axis coordinate system specifically includes: The source point cloud and template point cloud are decentered and the covariance matrix is ​​calculated. Principal component analysis is performed on the covariance matrix, and the corresponding eigenvectors are arranged in descending order of eigenvalues ​​to form an initial coordinate system. The direction of the eigenvectors is adjusted so that the determinant of the initial coordinate system is greater than zero, thus obtaining the principal axis coordinate system.

4. The point cloud registration method for curved pipe fittings based on axially ordered geometric priors as described in claim 1, characterized in that, Construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system, specifically including: Keep the principal axis coordinate system of the template point cloud fixed; A forward candidate coordinate system and a reverse candidate coordinate system are constructed for the source point cloud. The reverse candidate coordinate system is constructed by simultaneously flipping the directions of the first principal axis vector and the second principal axis vector of the forward candidate coordinate system while keeping the third principal axis vector unchanged, so as to maintain the right-hand property of the coordinate system while reversing the traversal order of the first principal axis. Based on the transformation relationship between the forward candidate coordinate system and the reverse candidate coordinate system relative to the principal axis coordinate system of the template point cloud, the forward candidate initial transformation pose and the reverse candidate initial transformation pose are generated respectively.

5. The point cloud registration method for curved pipe fittings based on axially ordered geometric priors as described in claim 1, characterized in that, Spatial consistency pre-check is performed on each candidate initial transformation pose, specifically including: Without performing local iterative optimization, the source point cloud is transformed to the principal coordinate system of the template point cloud using candidate initial transformation poses; based on the spatial query structure constructed by the template point cloud, the nearest neighbor distance from each point in the transformed source point cloud to the template point cloud is queried; the high quantile distance, median distance, and the proportion of points whose distance does not exceed a preset threshold are statistically analyzed as spatial distance statistics.

6. The point cloud registration method for curved pipe fittings based on axially ordered geometric priors as described in claim 1, characterized in that, The formula for calculating the comprehensive score is as follows: ; in, The nearest neighbor distance is the high quantile distance. Median distance The proportion of points within the threshold. For axial profile differences, Preset scoring weights.

7. A point cloud registration system for curved pipe fittings based on axially ordered geometric priors, characterized in that, include: The point cloud acquisition module is configured to acquire the source point cloud and template point cloud to be registered; The coordinate system construction module is configured to construct principal axis coordinate systems for the source point cloud and the template point cloud, respectively. The candidate pose construction module is configured to: based on the principal axis coordinate system, construct at least two candidate initial transformation poses with opposite principal axis traversal orders and satisfying the legality of the rigid body coordinate system for the first principal axis direction of the source point cloud; The axial contour extraction module is configured to: determine the robust effective interval of the projection of the source point cloud and the template point cloud along the first principal axis direction, and uniformly divide the robust effective interval into several ordered segments; extract the point number distribution and lateral geometric statistics in each segment to generate the axial ordered contour features corresponding to the source point cloud and the template point cloud respectively. The spatial pre-detection module is configured to perform spatial consistency pre-detection on each candidate initial transformation pose and obtain spatial distance statistics. The candidate scoring and selection module is configured to: comprehensively score each candidate initial transformation pose based on axial ordered contour features and spatial distance statistics, and select the candidate initial transformation pose with the best score as the target initial transformation pose. The fine registration module is configured to: take the initial transformation pose of the target as the initial value, execute the local fine registration algorithm, and output the final rigid body transformation matrix from the source point cloud to the template point cloud.

8. An electronic device, characterized in that, It includes a memory and a processor, as well as computer instructions stored in the memory and running on the processor, which, when executed by the processor, complete the point cloud registration method for curved pipes based on axially ordered geometric priors as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that, Used to store computer instructions, which, when executed by a processor, complete the point cloud registration method for curved pipes based on axially ordered geometric priors as described in any one of claims 1-6.

10. A computer program product, characterized in that, The method includes a computer program that, when executed by a processor, implements the point cloud registration method for curved pipe fittings based on axially ordered geometric priors as described in any one of claims 1-6.