Aviation pipeline center line fitting method based on normal and curvature combined constraint
Through the combination of the joint constraint method based on normal and curvature and the AP-Net model, the problems of low efficiency and insufficient accuracy of aviation pipeline centerline measurement in traditional measurement methods are solved, and efficient and accurate aviation pipeline centerline simulation is achieved. combine.
Patent Information
- Application Number
- CN202411001038.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-25
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-25
AI Technical Summary
Traditional measurement methods used to measure the centerline of aviation pipelines during the aircraft assembly process have problems such as low efficiency, heavy tasks, cumbersome processes and low accuracy, which makes pipeline installation more difficult.
The joint constraint method based on normal and curvature is used to preprocess aviation pipeline point cloud data, and the AP-Net model is combined for image detection and hierarchical clustering. The least squares method is used to fit the center line to achieve high-precision and efficient center lines. Measurement.
It improves the efficiency and accuracy of aviation pipeline centerline measurement, reduces manual intervention, enhances automation, and ensures the reliability and accuracy of measurement results.
Smart Images

Figure CN118537389A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of three-dimensional point cloud data processing, and in particular to an aviation pipeline centerline fitting method based on normal and curvature joint constraints. Background Art
[0002] During aircraft assembly, the position of aviation piping installation is crucial. Due to tight space constraints, overlapping and complex piping shapes, measuring piping installation position has always been a significant challenge. The centerline is a crucial feature of aviation piping installation, indicating the ideal location and orientation for piping installation.
[0003] Determining the centerline position of pipelines is crucial in aircraft design and manufacturing, as it directly impacts aircraft performance, stability, and safety. However, traditional measurement methods often rely on manual methods, which suffer from low efficiency, heavy workload, and cumbersome procedures. Furthermore, the uncertainty of the centerline leads to low measurement accuracy for pipeline installation positions, making installation within tightly restricted layout spaces more difficult. Summary of the Invention
[0004] In view of the shortcomings of the existing technology, the present invention provides an aviation pipeline centerline fitting method based on the joint constraints of normal and curvature, which solves the current technical problem that it is difficult to accurately fit the centerline of the aviation pipeline.
[0005] To solve the above technical problems, the present invention provides the following technical solution: a method for fitting the centerline of an aviation pipeline based on the combined constraints of normal and curvature, the method comprising the following steps: S1. Obtain the input point cloud data of the aviation pipeline in any area and calculate the normal vector of each point in the input point cloud data. and principal curvatures ; S2, according to the normal vector of each point and principal curvatures Applying joint constraints of normal and principal curvature to the input point cloud data to obtain pre-processed pipeline point cloud data; S3. Use the AP-Net model to detect the aerial pipeline image and output the pipeline location information including the pipeline center point and bounding box; S4. Cluster the pipeline point cloud data according to the pipeline position information to obtain the main pipeline point cloud data of the aviation pipeline, and use the least squares method to perform centerline fitting on the main pipeline point cloud data.
[0006] Furthermore, in step S1, the specific process includes the following steps: S11. Use KNN method to find any point in the input point cloud data The n nearest neighbors of ; S12, calculate n nearest neighbor points The covariance matrix C is: ; in, Represents n nearest neighbors The average coordinates of S13, perform eigenvalue decomposition on the covariance matrix C, and take the eigenvector corresponding to the minimum eigenvalue as the point The normal vector of , that is: ; in, Indicates a point The normal vector of Indicates the minimum eigenvalue corresponding to the covariance matrix C The corresponding eigenvector; S14, according to the minimum eigenvalue corresponding to the covariance matrix C and the maximum eigenvalue Calculation Point The principal curvature ,Right now: ; in, is the maximum eigenvalue corresponding to the covariance matrix C.
[0007] Furthermore, in step S2, the specific process includes the following steps: S21. Randomly search for points Adjacent points , then point and adjacent points The difference in normal angles is ; S22, according to the difference in normal angles Define the normal angle error function , normal angle error function for: ; in, is the resolution of the input point cloud data acquisition device; D is the diameter of the pipeline during design; S23, calculate the principal curvatures respectively Curvature constraint error function ; principal curvature Curvature constraint error function for: ; principal curvature Curvature constraint error function for: ; S24, according to the normal angle error function and curvature constraint error function Determine the joint constraints of normal and curvature ,Right now: ; in, is the weight coefficient; S25. According to the joint constraint Judgment Point Whether the constraints are met; like When, it indicates a point If the constraints are met, the point is retained ; like When, it indicates a point If the constraint conditions are not met, the point will be deleted. ,in is the threshold of the error function.
[0008] Furthermore, in step S3, the specific process includes the following steps: S31, obtaining image data containing the center point and bounding box of each pipeline as a training set; S32. Training the AP-Net model using the training set to adjust internal parameters of the AP-Net model; S33. The aviation pipeline image is input into the trained AP-Net model to obtain pipeline location information for accurately locating the pipeline position.
[0009] Furthermore, in step S32, the specific process includes the following steps: S321. Generate a heat map of the ground truth of key points in the input image I during the prediction phase of the AP-Net model. , and according to the heat map Locate the center point of the aviation pipeline; S322. Use loss function Train the prediction phase of the AP-Net model; S323, through the loss function Train the local bias term and use it to compensate the center point; S324, generate the width and height of the bounding box centered on the key point according to the center point, that is, the pipeline position information including the pipeline center point and the bounding box, and use the loss function Conduct training; S325. Construct a loss function for training the AP-Net model ,in: ; in, .
[0010] Furthermore, in step S321, the specific process includes the following steps: S3211, detect the current Is there an air pipeline in the coordinates? Assume the category The corresponding one is the aviation pipeline; when When An air pipeline is detected at the current coordinates and enters S3211; when When There is no air pipeline at the current coordinates; S3212, according to category Each ground truth key point , calculate a low-resolution equivalent of ,in, , S3213, using Gaussian function Splice all ground truth keypoints into the heatmap middle, is the object size adaptive standard deviation; S3214, based on the true center point of the aviation pipeline , width and height to calculate the Gaussian kernel function , generate the real center point heat map of the aviation pipeline; S3215. Perform non-maximum suppression (NMS) on the true center point heat map predicted by the AP-Net model to determine the final center point prediction of the air pipeline.
[0011] Furthermore, in step S322, the loss function The expression is: ; in, and is a hyperparameter of the loss function; is the number of keypoints in a single image; Indicates the pixel position Belongs to category ; is the model's prediction at pixel location Belong to category probability.
[0012] Furthermore, in step S323, the loss function The expression is: ; in, is the bias value predicted by the network; It is a value calculated in advance during the training process; The expression of the local bias term is: ; Where W and H are the width and height of the input image I respectively; is the step size of the output corresponding to the original image.
[0013] Furthermore, in step S4, the specific process includes the following steps: S41, mapping the pipeline location information to a three-dimensional point cloud space, and using a hierarchical clustering method to obtain the main pipeline point cloud data; S42, establishing a least squares fitting model based on the three-dimensional curve model C; S43. Calculate each point in the main pipeline point cloud data The residual ,Right now: ; S44, according to the residual Calculation Point The residual sum of squares ,Right now: ; in, is all the points in the main pipeline point cloud, The radius of the main pipeline point cloud fitting; S45, continuously optimize the residual sum of squares The parameters in the main pipeline point cloud data make the residual sum of squares of all points The best least squares fitting model is obtained by minimizing the fitting, which is the center line of the main pipeline point cloud data.
[0014] By means of the above technical solution, the present invention provides an aviation pipeline centerline fitting method based on the combined constraints of normal and curvature, which has at least the following beneficial effects: 1. The present invention processes the point cloud data of aviation pipelines to realize the rapid measurement of the center line of aviation pipelines, which not only solves the problems of low measurement efficiency, heavy tasks, and complicated procedures, but also realizes high-precision measurement and ensures the reliability of measurement results.
[0015] 2. The present invention improves the accuracy of fitting by preprocessing the point cloud and applying constraints. At the same time, it combines the AP-Net model to realize image detection, reduces manual intervention, and comprehensively utilizes multiple technologies such as point cloud processing, image detection and mathematical modeling to improve the efficiency and automation of fitting, and also improve the accuracy and efficiency of pipeline centerline fitting.
[0016] 3. The present invention utilizes a point cloud preprocessing step based on curvature and normals to effectively filter out noise points and retain key information, combines image data to train a model to achieve precise pipeline positioning, and finally performs centerline fitting through hierarchical clustering and least squares method, thus realizing an efficient aviation pipeline centerline fitting method. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings: Figure 1 This is a flow chart of the aviation pipeline centerline fitting method of the present invention; Figure 2 This is the AP-Net network structure diagram for outputting pipeline location information of the present invention; Figure 3 This is the clustering result diagram of the main pipeline point cloud data of the present invention. DETAILED DESCRIPTION
[0018] To make the above-mentioned objectives, features, and advantages of the present invention more clearly understood, the present invention is further described below in detail with reference to the accompanying drawings and specific embodiments. This will enable a full understanding of how this application uses technical means to solve technical problems and achieve technical effects, and to implement the invention accordingly.
[0019] In recent years, with the development and widespread adoption of 3D scanning technology, it has been widely used in fields such as military equipment measurement, surveying and mapping, industrial manufacturing, and cultural heritage preservation. 3D scanning collects the spatial coordinates of a large number of discrete points on an object's surface and converts this point cloud data into a digital 3D model. It captures detailed information such as an object's shape, dimensions, and surface texture, transforming the physical object into a digital form for subsequent analysis, design, simulation, and manufacturing. Therefore, using 3D scanning technology to collect point cloud data for aviation pipelines, combined with advanced point cloud processing algorithms for subsequent processing, is bound to improve the efficiency of centerline measurement for these pipelines.
[0020] Piping systems are a key component of aircraft systems. Modern aircraft utilize a variety of piping systems that use liquids or gases as their working medium. These systems primarily consist of pressurized, enclosed channels composed of rigid pipes, flexible pipes, joints, connectors, and pipe fixtures to ensure the flow and energy transfer of the liquid or gas within them. During aircraft assembly, the location of aviation piping during installation is crucial. Due to strict space constraints, the overlapping and complex shapes of piping, and the complex layout, measuring the installation position of piping has always been a significant challenge. The centerline is a key feature of aviation piping, indicating its ideal location and orientation. Determining the centerline of a piping is crucial in aircraft design and manufacturing, as it directly impacts aircraft performance, stability, and safety. Traditional manual measurement methods often suffer from low efficiency, heavy workload, and cumbersome procedures. Therefore, measuring the centerline of aviation piping is of paramount importance. Measuring the centerline of aviation piping with high accuracy and efficiency is a pressing issue.
[0021] Based on the technical defects of the existing technology, please refer to Figure 1-Figure 3 This embodiment proposes a centerline fitting method for aviation pipelines based on the joint constraints of normals and curvatures. It uses a point cloud preprocessing step based on curvature and normals to effectively filter out noise points and retain key information. It then combines image data to train a model to achieve accurate pipeline positioning. Finally, it performs centerline fitting through hierarchical clustering and least squares method, achieving an efficient centerline fitting method for aviation pipelines. The method includes the following steps: S1. Obtain the input point cloud data of the aviation pipeline in any area and calculate the normal vector of each point in the input point cloud data. and principal curvatures ; In step S1, the specific process includes the following steps: S11. Use KNN method to find any point in the input point cloud data The n nearest neighbors of ; S12, calculate n nearest neighbor points The covariance matrix C is: ; in, Represents n nearest neighbors The average coordinates of S13, perform eigenvalue decomposition on the covariance matrix C, and take the eigenvector corresponding to the minimum eigenvalue as the point The normal vector of , that is: ; in, Indicates a point The normal vector of Indicates the minimum eigenvalue corresponding to the covariance matrix C The corresponding eigenvector; S14, according to the minimum eigenvalue corresponding to the covariance matrix C and the maximum eigenvalue Calculation Point The principal curvature ,Right now: ; in, is the maximum eigenvalue corresponding to the covariance matrix C.
[0022] In this embodiment, it is assumed that there is a point in the input point cloud data , use the KNN method to find its 5 nearest neighbor points, assuming that its 5 nearest neighbor points are , then the covariance matrix C can be expressed as: .in Represents the average coordinates of the 5 nearest neighbor points. Then perform eigenvalue decomposition on the covariance matrix C and take the eigenvector corresponding to the minimum eigenvalue as the target point The normal vector of : . Indicates a point The normal vector of Indicates the minimum eigenvalue corresponding to the covariance matrix C The corresponding eigenvector.
[0023] The principal curvature The calculation formula is: ; in, are the maximum and minimum eigenvalues corresponding to the covariance matrix C, respectively.
[0024] S2, according to the normal vector of each point and principal curvatures Applying a joint constraint of normal and principal curvature to the input point cloud data to obtain preprocessed pipeline point cloud data; in step S2, the specific process includes the following steps: S21. Randomly search for points Adjacent points , then point and adjacent points The difference in normal angles is ; S22, according to the difference in normal angles Define the normal angle error function , normal angle error function for: ; in, is the resolution of the input point cloud data acquisition device; D is the diameter of the pipeline during design; S23, calculate the principal curvatures respectively Curvature constraint error function ; principal curvature Curvature constraint error function for: ; principal curvature Curvature constraint error function for: ; S24, according to the normal angle error function and curvature constraint error function Determine the joint constraints of normal and curvature ,Right now: ; in, is the weight coefficient; S25. According to the joint constraint Judgment Point Whether the constraints are met; like When, it indicates a point If the constraints are met, the point is retained ; like When, it indicates a point If the constraint conditions are not met, the point will be deleted. ,in is the threshold of the error function, The value of depends on the diameter of the pipeline, so it is not specifically limited here.
[0025] This embodiment uses a joint constraint strategy and combines the normal and principal curvature information of the point cloud to accurately retain the pipeline point cloud data and effectively remove noise interference, thereby maintaining the integrity and accuracy of the pipeline point cloud data to the greatest extent.
[0026] S3, use the AP-Net model to detect the aerial pipeline image and output the pipeline location information including the pipeline center point and bounding box; the aerial pipeline image and the location of the aerial pipeline in any area in S1 are in the same area, that is, the aerial pipeline in the area is photographed using an industrial camera or other shooting equipment to obtain the corresponding aerial pipeline image. Figure 2As shown in the figure, the AP-Net model uses deep convolutional neural networks such as ResNet, DLA, and Hourglass as the backbone network and adopts a multi-scale feature fusion strategy to achieve accurate detection of aviation pipelines.
[0027] The AP-Net model is suitable for detecting image data of aerial pipelines, efficiently and concisely extracting pipeline center points and bounding boxes. Compared to traditional two-stage detection methods, the AP-Net model offers higher efficiency and accuracy in aerial pipeline detection, particularly excelling at handling small or densely packed objects. It also features multi-scale detection and good scalability. In step S3, the specific process includes the following steps: S31, obtaining image data containing the center point and bounding box of each pipeline as a training set; The image data including the center point and bounding box of each pipeline can be obtained from a known database, or obtained by image acquisition and annotation according to actual conditions, which will not be described in detail here.
[0028] S32: The AP-Net model is trained using the training set to adjust internal parameters of the AP-Net model. In step S32, the specific process includes the following steps: S321. Generate a heat map of the ground truth of key points in the input image I during the prediction phase of the AP-Net model. , and according to the heat map Locate the center point of the aviation pipeline; the input image is ,in and are the width and height of the image respectively. When predicting, the AP-Net model generates a heat map of key points, namely: ,in is the step size of the output corresponding to the original image, and is the number of detection categories corresponding to target detection. In step S321, the specific process includes the following steps: S3211, detect the current Is there an air pipeline in the coordinates? Assume the category The corresponding one is the aviation pipeline; when When An air pipeline is detected at the current coordinates and enters S3211; when When There is no air pipeline at the current coordinates; It should be noted that The AP-Net model predicts the pixel position Belongs to category The result of input pipeline image Extract feature maps through convolutional neural networks , from the feature map Get the heat map , for the category , heat map Each pixel position Corresponding to a value , indicating that the location is a category possibility; Set a threshold , used to determine which positions in the heat map are the center. If the heat map In position The value at is greater than the threshold , then it is believed that Category detected Objects, otherwise not detected: ; That is, based on the calculation of feature extraction and output feature map, the threshold is used to determine whether the position Detected categories of objects. is the convolutional layer; Is the sigmoid function, compressing the output to scope; The initial value of the threshold is set to 0.5, and then it is continuously adjusted to the optimal value based on the training effect of the network.
[0029] S3212, according to category Each ground truth key point , calculate a low-resolution equivalent of ,in, ; S3213, using Gaussian function Splice all ground truth keypoints into the heatmap middle; in, is the object size adaptive standard deviation; it is adjusted according to the dataset and pipeline distribution during training.
[0030] S3214, based on the true center point of the aviation pipeline , width and height to calculate the Gaussian kernel function , generate the real center point heat map of the aviation pipeline; S3215. Perform non-maximum suppression (NMS) on the true center point heat map predicted by the AP-Net model to determine the final center point prediction of the air pipeline.
[0031] Specifically, input pipeline image Extract feature maps through convolutional neural networks , from the feature map Generate heatmap through convolution layer , width and height images and offset map ; According to the true center point of the aviation pipeline The Gaussian kernel function is calculated based on the width and height of the air pipeline to generate the true center point heat map of the air pipeline. Finally, non-maximum suppression (NMS) is performed on the heat map predicted by the network to determine the final center point prediction of the air pipeline. and Both are convolutional layers.
[0032] S322. Use loss function The prediction phase of the AP-Net model is trained; the loss function The expression is: ; in, and is a hyperparameter of the loss function; is the number of keypoints in a single image; Indicates the pixel position Belongs to category ; is the model's prediction at pixel location Belong to category probability.
[0033] S323, through the loss function The local bias term is trained and used to compensate the center point; where: Loss Function The expression is: ; in, is the bias value predicted by the network; It is a value calculated in advance during the training process; The expression of the local bias term is: ; Where W and H are the width and height of the input image I respectively; is the step size of the output corresponding to the original image.
[0034] In this embodiment, the AP-Net model performs Downsampling will cause accuracy errors when the feature map is remapped to the original image, so a local bias value is used for the center point of each air pipeline: To compensate for it, use the loss function To train this bias value, the accuracy error caused by remapping the feature map to the original image is eliminated.
[0035] S324, generate the width and height of the bounding box centered on the key point according to the center point, that is, the pipeline position information including the pipeline center point and the bounding box, and use the loss function Conduct training; In this embodiment, it is assumed that is the bounding box of target k, which belongs to the aviation pipeline category , its center point is Use key points to predict all center points, and then regress the size of each target k, and finally regress to and use As the predicted value. In this process, the loss function is used Conduct training.
[0036] S325. Construct a loss function for training the AP-Net model ,in: ; in, .
[0037] The training method proposed in this embodiment can learn the feature representation and morphological information of the pipeline in the image by continuously adjusting the internal network parameters of the AP-Net model during the training process, thereby accurately locating and identifying the position and shape of the pipeline in the image.
[0038] S33: The aerial pipeline image is input into the trained AP-Net model to obtain pipeline location information that accurately locates the pipeline. In this step, the AP-Net model identifies the center point and bounding box of the pipeline and outputs this information, enabling more accurate positioning of the pipeline.
[0039] S4. Clustering the pipeline point cloud data according to the pipeline position information to obtain the main pipeline point cloud data of the aviation pipeline, and performing centerline fitting on the main pipeline point cloud data using the least squares method; in step S4, the specific process includes the following steps: S41, map the pipeline location information to the three-dimensional point cloud space, and use the hierarchical clustering method to obtain the main pipeline point cloud data, such as Figure 3 As shown. Among them, using Euclidean distance as the metric, point and point The Euclidean distance between for: ; In this embodiment, by setting the Euclidean distance threshold to , take each point in the pipeline point cloud as an initial cluster, calculate the Euclidean distance between each pair of points, and merge the points with Euclidean distance less than As the merging progresses, the distance between points in the point cloud is updated, and this process is repeated until all points are merged to a distance greater than until the cluster.
[0040] S42, establishing a least squares fitting model based on the three-dimensional curve model C; S43. Calculate each point in the main pipeline point cloud data The residual ; By selecting a suitable three-dimensional curve model C to establish a least square fitting model, the parameter equation of the three-dimensional curve model C is: .
[0041] S44, according to the residual Calculation Point The residual sum of squares In this embodiment, it is assumed that there is a , and its residual is expressed as: ; Then, the residual sum of squares of all points in the main pipeline point cloud data is expressed as: ; in, is all the points in the main pipeline point cloud, The radius of the main pipeline point cloud fitting.
[0042] S45, continuously optimize the residual sum of squares The parameters in the main pipeline point cloud data make the residual sum of squares of all points The optimal least squares fitting model is obtained by minimizing the fitting, and the optimal least squares fitting model is the center line of the main pipeline point cloud data.
[0043] The present invention processes the point cloud data of aviation pipelines to realize the rapid measurement of the center line of aviation pipelines, which not only solves the problems of low measurement efficiency, heavy tasks, and complicated procedures, but also realizes high-precision measurement and ensures the reliability of the measurement results.
[0044] The present invention improves the accuracy of fitting by preprocessing point clouds and imposing constraints. At the same time, it combines the AP-Net model to realize image detection, reduces manual intervention, and comprehensively utilizes multiple technologies such as point cloud processing, image detection and mathematical modeling to improve the efficiency and automation of fitting, and also improve the accuracy and efficiency of pipeline centerline fitting.
[0045] Those skilled in the art will appreciate that all or part of the steps in the above-mentioned embodiment methods can be accomplished by instructing the relevant hardware through a program. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0046] The above embodiments provide a detailed introduction to the present invention. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core ideas. At the same time, for those skilled in the art, according to the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.
Claims
1. A method for fitting the centerline of an aviation pipeline based on the joint constraints of normal and curvature, characterized in that: The method comprises the following steps: S1. Obtain the input point cloud data of the aviation pipeline in any area and calculate the normal vector of each point in the input point cloud data. and principal curvature ; S2, according to the normal vector of each point and principal curvature Applying joint constraints of normal and principal curvature to input point cloud data to obtain preprocessed pipeline point cloud data; S3, using the AP-Net model to detect the aviation pipeline image, and output the pipeline location information including the pipeline center point and bounding box; S4. Cluster the pipeline point cloud data according to the pipeline position information to obtain the main pipeline point cloud data of the aviation pipeline, and use the least squares method to perform centerline fitting on the main pipeline point cloud data.
2. The aviation pipeline centerline fitting method according to claim 1, characterized in that: In step S1, the specific process includes the following steps: S11. Use KNN method to find any point in the input point cloud data The n nearest neighbors of ; S12, calculate n nearest neighbor points The covariance matrix C of is: ; in, Represents n nearest neighbors The average coordinates of S13, perform eigenvalue decomposition on the covariance matrix C, and take the eigenvector corresponding to the minimum eigenvalue as the point The normal vector of is: ; in, Indicate point The normal vector of Represents the minimum eigenvalue corresponding to the covariance matrix C The corresponding eigenvector; S14, according to the minimum eigenvalue corresponding to the covariance matrix C and the maximum eigenvalue Calculation Point The principal curvature ,Right now: ; in, is the maximum eigenvalue corresponding to the covariance matrix C.
3. The aviation pipeline centerline fitting method according to claim 1, characterized in that: In step S2, the specific process includes the following steps: S21, Randomly search for points Neighboring points , then point and adjacent points The difference in the normal angles is ; S22, according to the difference of normal angle Define the normal angle error function , normal angle error function for: ; in, is the resolution of the input point cloud data acquisition device; D is the diameter of the pipeline when it is designed; S23, calculate the principal curvatures respectively The curvature constraint error function ; Principal curvature The curvature constraint error function for: ; Principal curvature The curvature constraint error function for: ; S24, according to the normal angle error function and the curvature constraint error function Determine the joint constraints of normal and curvature ,Right now: ; in, is the weight coefficient; S25. Based on joint constraints Judgment Point Whether the constraints are met; like When, it indicates a point If the constraints are met, the point is retained. ; like When, it indicates a point If the constraints are not met, delete the point ,in is the threshold of the error function.
4. The aviation pipeline centerline fitting method according to claim 1, characterized in that: In step S3, the specific process includes the following steps: S31, obtaining image data containing the center point and bounding box of each pipeline as a training set; S32, training the AP-Net model using the training set to adjust internal parameters of the AP-Net model; S33. The aviation pipeline image is input into the trained AP-Net model to obtain pipeline location information for accurately locating the pipeline position.
5. The aviation pipeline centerline fitting method according to claim 4, characterized in that: In step S32, the specific process includes the following steps: S321. Generate a heat map of the ground truth of key points in the input image I during the prediction phase of the AP-Net model , and according to the heat map Locate the center point of the aviation pipeline; S322. Use loss function Train the prediction phase of the AP-Net model; S323, through the loss function Train the local bias term and use it to compensate the center point; S324, generate the width and height of the bounding box centered on the key point according to the center point, that is, the pipeline position information including the pipeline center point and the bounding box, and use the loss function Conduct training; S325. Construct a loss function for training the AP-Net model ,in: ; in, .
6. The aviation pipeline centerline fitting method according to claim 5, characterized in that: In step S321, the specific process includes the following steps: S3211, detect the current Whether there is an air pipeline in the coordinates, assuming the category The corresponding one is the aviation pipeline; when When The aviation pipeline is detected in the current coordinates and enters S3211; when When There is no air pipeline in the current coordinates; S3212, according to category Each ground truth key point , calculate a low-resolution equivalent of ,in, , S3213, using Gaussian function Splice all ground truth key points into the heat map middle, is the object size adaptive standard deviation; S3214, based on the true center point of the aviation pipeline , width, and height to calculate the Gaussian kernel function , generate the real center point heat map of the aviation pipeline; S3215. Perform non-maximum suppression (NMS) on the real center point heat map predicted by the AP-Net model to determine the prediction of the final center point of the air pipeline.
7. The aviation pipeline centerline fitting method according to claim 5, characterized in that: In step S322, the loss function The expression is: ; in, and is a hyperparameter of the loss function; is the number of keypoints in a single image; Indicates the pixel position Belongs to category ; is the model's prediction at pixel location Belongs to category probability.
8. The aviation pipeline centerline fitting method according to claim 5, characterized in that: In step S323, the loss function The expression is: ; in, is the bias value predicted by the network; It is a value calculated in advance during the training process; The expression of the local bias term is: ; Where W and H are the width and height of the input image I respectively; is the step size of the output corresponding to the original image.
9. The aviation pipeline centerline fitting method according to claim 1, characterized in that: In step S4, the specific process includes the following steps: S41, mapping the pipeline location information to the three-dimensional point cloud space, and using a hierarchical clustering method to obtain the main pipeline point cloud data; S42, establishing a least square fitting model based on the three-dimensional curve model C; S43, calculate each point in the main pipeline point cloud data The residual ,Right now: ; S44, based on residual Calculation Point The residual sum of squares ,Right now: ; in, is all the points in the main pipeline point cloud, The radius fitted by the point cloud of the main pipeline; S45, continuously optimize the residual sum of squares The parameters in make the residual sum of squares of all points in the main pipeline point cloud data The best least squares fitting model is obtained by minimizing the fitting, which is the center line of the main pipeline point cloud data.
Citation Information
Patent Citations
Part point cloud registration method, device, equipment and medium
CN116109685A
Three-Dimensional Object Modelling Fitting & Tracking
US20140334670A1
