A pipeline depression detection method based on lidar under limited view angle

By adopting a pipeline indentation detection method based on lidar, the problems of centerline fitting error and benchmark drift in pipeline indentation detection under limited viewing angle are solved, realizing high-precision indentation detection and multi-dimensional result output, and improving the adaptability and visualization effect of the detection.

CN123160579APending Publication Date: 2026-11-24CHONGQING INST OF SURVEYING & MAPPING SCI & TECH (CHONGQING MAP COMPILATION CENT)
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing methods for detecting pipe indentations suffer from problems such as large centerline fitting errors, severe reference drift, difficulty in distinguishing multiple echoes, poor adaptability to fixed depth thresholds, and insufficient self-consistency of detection results under conditions of limited viewing angle and incomplete unilateral scanning.

Method used

A pipeline indentation detection method based on lidar is adopted. By collecting pipeline point cloud data, preprocessing it to determine the initial axial and cross-sectional coordinates, dividing the local point cloud into segments, constructing the design circle, generating axial-circumferential unfolded point cloud and dividing it into meshes, identifying the indented area and performing geometric quantization, and outputting multi-dimensional detection results.

Benefits of technology

It achieves high-precision pipe indentation detection under limited viewing angle, reduces centerline fitting error, improves point cloud data utilization and geometric reconstruction accuracy, and enhances the cross-scene adaptability and visualization of detection results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160579A_ABST
    Figure CN123160579A_ABST
Patent Text Reader

Abstract

This invention relates to the field of pipeline inspection technology and discloses a pipeline indentation detection method based on lidar under a limited viewpoint. The method includes: acquiring and preprocessing pipeline point cloud data of the pipe segment to be inspected; determining the initial axial direction and first and second cross-sectional coordinates of the pipe segment to be inspected based on the preprocessed point cloud dataset, and dividing and filtering effective local point cloud segments; determining the pipeline centerline and corrected first and second cross-sectional coordinates of the pipe segment to be inspected; determining the unfolded position of each preprocessed pipeline point by constructing a design circle based on the corrected first and second cross-sectional coordinates to generate an axial-circumferential unfolded point cloud, and dividing it into a grid; constructing a main continuous pipe surface grid set and a representative value of the main pipe surface; and performing indentation region identification and geometric quantization based on the main continuous pipe surface grid set and the representative value of the main pipe surface to generate the inspection result of the pipe segment to be inspected. This invention improves the accuracy of pipeline indentation detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of pipeline inspection technology, and specifically to a method for detecting pipeline indentations based on lidar under limited viewing angle. Background Technology

[0002] Pipelines may develop localized dents, ellipticization, flattening, or other geometric deformations during manufacturing, hoisting, transportation, backfilling, external impact, support failure, localized loads, or long-term service. The depth, axial length, circumferential width of dents, and their combination with defects such as welds, corrosion, and scratches, form an important basis for subsequent safety assessments and maintenance decisions.

[0003] Existing methods for detecting pipe indentations mainly include measurements with rulers and depth gauges, comparison with contour templates, mechanical profilometers, total stations or photogrammetry, structured light scanning, and 3D laser scanning. Contact methods are suitable for verifying a small number of measurement points, but they are difficult to continuously describe the entire appearance of the indentation; 3D laser scanning can quickly obtain a large number of spatial coordinate points, and therefore is gradually being used for geometric inspection of the outer surface of pipes.

[0004] Current point cloud analysis typically employs the following processing path: denoising and cropping the pipe point cloud; fitting the pipe axis using principal component analysis or a cylindrical model; establishing a reference cylinder based on the nominal pipe diameter or fitting radius; calculating the distance from each point to the cylinder axis, and using the difference between the reference radius and the measured radial distance as the amount of depression or bulge; subsequently, outputting the depression depth and size through point cloud slicing, cross-section fitting, cylinder surface unfolding, cloud map display, and maximum value search.

[0005] Based on this, existing pipeline point cloud deformation detection methods have the following shortcomings: when fitting a cylinder with an incomplete point cloud on one side, the center, radius, and axis parameters are severely coupled, which easily leads to reference drift; a single global axis is difficult to adapt to local posture changes such as pipe bending, and the overall deformation is easily superimposed on the local detection results; under complex field conditions, it is difficult to effectively distinguish between multi-layer echoes and the real pipe surface; using a single deepest point to represent the depth of the depression is easily dominated by noise and has poor repeatability; fixed depth thresholds lack adaptability to different pipe diameters, equipment, and surface conditions; in addition, existing solutions mostly only output a single point cloud distance or a single cross-section analysis, lacking a complete closed loop from reference recovery and continuous surface extraction to multi-dimensional quantitative analysis, resulting in insufficient self-consistency of the detection results. Summary of the Invention

[0006] To address the aforementioned shortcomings in the existing technology, this invention provides a method for detecting pipe indentations based on lidar under limited viewing angle.

[0007] To achieve the above-mentioned objectives, the technical solution adopted by this invention is as follows: A method for detecting pipe indentations based on lidar under limited viewing angle, comprising the following steps: Collect and preprocess the pipe point cloud data of the pipe section to be inspected to generate a preprocessed pipe point cloud dataset. Based on the preprocessed pipeline point cloud dataset, the initial axial direction and the coordinates of the first and second cross sections of the pipe segment to be detected are determined. At the same time, local point cloud segments are divided and effective local point cloud segments are selected. Based on the effective local point cloud segments and the first and second cross-sectional coordinates of each pipe point after preprocessing, the pipe centerline of the pipe segment to be inspected and the corrected first and second cross-sectional coordinates are determined. Based on the corrected coordinates of the first and second cross sections, the unfolded positions of each preprocessed pipe point are determined by constructing a design circle to generate an axial-circumferential unfolded point cloud and divide it into a mesh. Based on the mesh generated by axial-circumferential unfolded point cloud, a set of continuous pipe surface meshes and representative values ​​of the main pipe surface are constructed. Based on the continuous pipe surface mesh set and the representative value of the main pipe surface, the concave area is identified and geometrically quantized to generate the detection result of the pipe segment to be detected.

[0008] The present invention has the following beneficial effects: 1. The present invention proposes a pipeline indentation detection method based on lidar under limited viewing angle, which realizes high-precision detection of pipeline indentation under limited viewing angle and single-sided incomplete scanning conditions, effectively reducing the contamination of indentation depth measurement by centerline fitting error and reference drift; 2. This invention also achieves effective identification of multi-layer echo signals and accurate extraction of the main pipe surface, significantly improving the utilization rate of point cloud data and the accuracy of pipe wall geometry reconstruction; further, it realizes adaptive abnormal echo identification based on spatial continuity, avoiding the misjudgment and missed judgment problems caused by fixed depth truncation threshold, and greatly improving the cross-scene adaptability of the method under different pipe states and detection conditions; 3. This invention performs neighborhood robust statistics based on the net concavity of adjacent continuous pipe surface grids within the effective concave region to obtain the robust concavity depth at each grid position, and determines the maximum concavity depth accordingly. This effectively reduces the impact of random noise and local outliers on the maximum depth calculation, and improves the stability and consistency of repeated detection of the same concavity in different detection batches. 4. This invention can also simultaneously output multi-dimensional test results such as unfolded diagrams, contour maps, cross-sectional diagrams, longitudinal profile diagrams, three-dimensional morphological diagrams, and quality confidence markers, comprehensively improving the visualization, verifiability, and engineering practical value of the test results. Attached Figure Description

[0009] Figure 1 This is a schematic diagram of the process for a pipeline indentation detection method based on lidar under a limited viewing angle proposed in this invention. Detailed Implementation

[0010] The specific embodiments of the present invention are described below to enable those skilled in the art to understand the present invention. However, it should be understood that the present invention is not limited to the scope of the specific embodiments. For those skilled in the art, various changes are obvious as long as they are within the spirit and scope of the present invention as defined and determined by the appended claims. All inventions utilizing the concept of the present invention are protected.

[0011] The specific embodiments of this invention are as follows: like Figure 1 As shown, a method for detecting pipe indentations based on lidar under limited viewing angle includes the following steps: Step 1: Collect and preprocess the pipe point cloud data of the pipe section to be inspected to generate a preprocessed pipe point cloud dataset.

[0012] This step involves pipeline point cloud data acquisition and preprocessing. The principle is as follows: A 3D laser scanning device is set up on the outside of the pipeline to be inspected, fixed to one side of the pipeline, with the scanning field of view facing the pipeline segment to be inspected, covering the concave area of ​​the segment and a certain range of normal pipe wall around it. Continuous scanning of the pipeline's outer surface is performed based on a single observation direction to obtain the original 3D point cloud of the visible local arc surface of the pipeline. Subsequently, the original point cloud undergoes processes such as extraction of the area to be inspected, removal of obvious environmental points, processing of duplicate points, initial screening of isolated anomalies, and optional point cloud downsampling, forming a preprocessed pipeline point cloud dataset for subsequent pipeline geometric analysis.

[0013] Specifically, the process of collecting and preprocessing pipeline point cloud data of the pipe section to be inspected to generate a preprocessed pipeline point cloud dataset is as follows: (1) Use a three-dimensional laser scanning device to scan the pipe section to be inspected and generate a pipe point cloud dataset, which is represented as:

[0014]

[0015] In the formula, For pipeline point cloud datasets; For the first The coordinate vectors of the pipe points; This represents the total number of pipeline points. , , The first The pipeline points are at , , Coordinates along the axis.

[0016] In this embodiment, a 3D laser scanning device is fixedly positioned on the outside of the pipe segment to be inspected, with the scanning direction facing the outer surface of the pipe. The scanning device remains relatively stationary with respect to the pipe, and continuously scans the pipe segment from this fixed position, ensuring the scanning field of view covers the concave area and the normal pipe wall areas on both axial and circumferential sides of the concave area. During the scanning process, the scanning device continuously outputs the 3D spatial coordinates of each pipe point, thus obtaining the pipe point cloud dataset.

[0017] In addition, when the scanning equipment is able to output quality attributes such as reflection intensity, echo sequence number, and timestamp, the quality attributes and corresponding three-dimensional coordinates are saved synchronously. Simultaneously, the design outer diameter of the pipeline, the location of the scanning equipment, the scanning direction, the scanning distance, and on-site information affecting point cloud quality, such as water mist, humidity, and occlusion, are recorded.

[0018] After data collection was completed, a pipe point cloud dataset was obtained, which includes the outer surface of the pipe, surrounding environmental objects, and a small number of abnormal measurement points. The outer diameter of the pipe in this invention is [missing information]. If the specific value is 660mm, then the design radius is... .

[0019] (2) Determine the region of interest (ROI) of the pipe section to be inspected, extract the pipe point cloud data of the ROI, and generate the point cloud of the ROI, represented as:

[0020] In the formula, Point cloud of the area to be detected; For the first The coordinate vector of the points to be detected; Region of interest.

[0021] In this embodiment, the region of interest is determined based on the spatial location of the pipe segment to be detected in the pipe point cloud. The region of interest (ROI) should cover the recessed area of ​​the actual pipe section to be inspected and a certain range of normal pipe wall around it, while excluding environmental areas far from the pipe as much as possible. Finally, the points located within the ROI are extracted as the points to be inspected, resulting in a point cloud of the area to be inspected.

[0022] In an optional embodiment of the present invention, the region of interest can be determined using a three-dimensional bounding box, a manually selected region, a polygonal region, or based on the known location of the pipeline on site. This process removes ground, wall, and other irrelevant environmental points that are far from the target pipeline segment.

[0023] (3) Remove duplicate points, non-pipeline points, and outliers from the point cloud of the region to be detected, and generate a preprocessed pipeline point cloud dataset, represented as:

[0024] In the formula, This is the preprocessed pipeline point cloud dataset; For the preprocessed first One pipeline point; This represents the number of pipe points after preprocessing.

[0025] In this embodiment, the point cloud of the region to be detected is first... Spatial distribution checks are performed: Ground points, support points, surrounding structure points, and other environmental points that are clearly separated from the main pipeline point cloud are deleted based on their spatial location and distance from the main pipeline wall point cloud. Duplicate points with the same or nearly identical spatial coordinates are merged or deleted, retaining only valid measurement points that characterize the corresponding pipeline wall surface to reduce the impact of duplicate data on subsequent calculations. Furthermore, only points that can be clearly identified as non-pipeline targets are deleted; data is not deleted based on the radial deviation of a point relative to the design circle to avoid misclassifying genuine depressions as anomalies before the pipeline baseline is established.

[0026] Secondly, after removing duplicate points and non-pipeline points, the remaining points in the point cloud of the area to be detected are preliminarily screened and removed based on local neighborhood relationships. Specifically: For any remaining point Search for its nearest neighbor points, calculate the average distance from the remaining point to all its neighbors, and represent it as:

[0027] In the formula, For the first The average distance from each remaining point to all its neighboring points; The number of neighboring points; For the first The coordinate vectors of the remaining points; For the first The remaining point of the first The coordinate vector of the neighboring points.

[0028] Extract the median of the average distances from all remaining points to all neighboring points, and calculate the median absolute deviation, expressed as:

[0029] In the formula, This represents the absolute deviation of the median. For median operators; It is the median of the average distances from all remaining points to all neighboring points.

[0030] Based on the median and median absolute deviation, a decision threshold is calculated. If the average distance from a remaining point to all neighboring points is greater than the decision threshold, the remaining point is regarded as an isolated outlier and removed.

[0031] Specifically, the judgment threshold is expressed as:

[0032] In the formula, This is a preset dimensionless isolation point determination coefficient, used to adjust the strictness of the initial screening of isolation points.

[0033] In this embodiment, the number of neighboring points is 16. That is, for each remaining point in the current set of points to be processed, the 16 nearest neighboring points are searched, excluding the remaining point itself, and the average distance from the remaining point to the aforementioned neighboring points is calculated. Based on the average neighborhood distance of all remaining points, the median and median absolute deviation are calculated, and the judgment threshold is determined according to the above formula.

[0034] In this embodiment, The value is set to 8 and remains unchanged throughout this initial screening process. The impact of point cloud density on the judgment threshold is reflected through the statistical distribution of the average neighborhood distance. It is not directly calculated from point cloud density or the number of neighboring points.

[0035] In an optional embodiment of the present invention, the point cloud of the region to be detected, from which outliers are removed, may also be downsampled, specifically as follows: When the original point cloud is large, voxel downsampling can be performed on the point cloud of the region to be detected after removing outliers: Let the voxel side length be... Divide the space into sections with sides of length . A cubic mesh; for multiple points within the same voxel, the average of its three-dimensional coordinates or the point closest to the voxel center is used as the representative point of that voxel.

[0036] For the The set of points contained within an individual element When the mean of the coordinates is used as the representative point, it is represented as:

[0037] In the formula, For the first The coordinates of the representative point of an individual element; For the first The set of all points within an individual element; For the first Individual inner first The coordinate vector of each point.

[0038] Among them, voxel size or voxel side length The point cloud spacing should be determined based on the average point spacing of the field point cloud, and it should be ensured that the downsampled point cloud can still continuously represent the local arc and concave surface of the pipeline, and that the actual geometric shape of the concave area is not changed due to excessive downsampling.

[0039] Finally, the point cloud of the region to be detected after removing outliers is the preprocessed pipeline point cloud dataset, represented as:

[0040] In the formula, This is the preprocessed pipeline point cloud dataset; For the preprocessed first One pipeline point; This represents the number of pipe points after preprocessing.

[0041] In summary, this step, after extracting the area to be detected, cleaning up obvious environmental points, processing duplicate points, initially screening isolated anomalies, and performing optional downsampling, yields a preprocessed pipeline point cloud dataset. This preprocessed pipeline point cloud dataset mainly includes normal pipe wall points, pipe wall points that may belong to real depression areas, and a small number of candidate points whose status as anomalous echoes cannot be determined at this stage. Each point retains its three-dimensional coordinates and can simultaneously retain quality attributes such as reflection intensity, echo sequence number, and timestamp. Furthermore, this preprocessed pipeline point cloud dataset serves as the input for step two, used to determine the pipeline axis, establish a local coordinate system for the pipeline, and perform axial segmentation.

[0042] Step 2: Based on the preprocessed pipeline point cloud dataset, determine the initial axial direction and the coordinates of the first and second cross sections of the pipe segment to be detected, and at the same time divide the local point cloud segments and select the effective local point cloud segments.

[0043] This step involves determining the pipeline axis and dividing the local point cloud into segments. The principle is as follows: Based on the preprocessed pipeline point cloud dataset obtained in step one, the initial pipeline axis is determined, and a local coordinate system for the pipeline is established using the initial axis as a reference. The preprocessed pipeline points are transformed from the scanning device coordinate system to the local pipeline coordinate system to obtain the axial coordinates and the positions of the first and second cross-sections corresponding to each preprocessed pipeline point. Furthermore, the pipeline point cloud is segmented locally according to the axial coordinates to form multiple local point cloud segments distributed sequentially along the pipeline length direction, thereby providing input data for the local cross-section center fitting in step three.

[0044] Specifically, based on the preprocessed pipeline point cloud dataset, the initial axial direction and the coordinates of the first and second cross sections of the pipe segment to be detected are determined. Simultaneously, local point cloud segments are divided, and the process of selecting effective local point cloud segments is as follows: (1) Perform principal component analysis on the preprocessed pipeline point cloud dataset to determine the initial axis of the pipe segment to be detected, specifically: 1) Based on the preprocessed pipeline point cloud dataset, calculate the geometric center of the point cloud, i.e.:

[0045] In the formula, It is the geometric center of the point cloud.

[0046] Based on the geometric center of the point cloud, calculate the point cloud covariance matrix, i.e.:

[0047] In the formula, The point cloud covariance matrix; This is a transpose operation.

[0048] Eigenvalue decomposition is performed on the point cloud covariance matrix to generate eigenvectors and their corresponding eigenvalues, as follows:

[0049] In the formula, The point cloud covariance matrix is ​​the first... 1 eigenvector; For the first The eigenvalues ​​corresponding to each eigenvector.

[0050] Sort the eigenvalues ​​from largest to smallest as follows:

[0051] In the formula, , , These are the first, second, and third eigenvalues, respectively.

[0052] The eigenvector corresponding to the largest eigenvalue is taken as the initial axis of the pipe segment to be detected, expressed as:

[0053] In the formula, The initial axial direction of the pipe section to be inspected; This is the eigenvector corresponding to the first eigenvalue.

[0054] In an optional embodiment of the present invention, when the installation direction of the pipe to be tested is known on site, or the relative installation relationship between the scanning equipment and the pipe segment to be tested has been determined, the known direction of the pipe segment to be tested can be directly used as the initial axial direction. .

[0055] (2) Within the cross-section perpendicular to the initial axial direction of the pipe section to be inspected, construct mutually orthogonal first unit basis vectors and second unit basis vectors, expressed as:

[0056]

[0057]

[0058]

[0059] In the formula, Let them be the first unit basis vectors; It is the second unit basis vector.

[0060] (3) Take the initial axis as the pipe axis, take the first unit basis vector and the second unit basis vector as the cross-sectional direction, establish a local coordinate system of the pipe based on the pipe axis and cross-sectional direction, and determine the origin of the local coordinate system.

[0061] In this embodiment, the geometric center of the point cloud or a preset reference position within the pipe segment to be inspected is selected as the local coordinate origin, preferably the geometric center of the point cloud. This is the local coordinate origin.

[0062] (4) Using the local coordinate origin as a reference, calculate the projection of each preprocessed pipe point in the axial and transverse directions of the pipe, and generate the axial coordinates, first cross-sectional coordinates, and second cross-sectional coordinates of each preprocessed pipe point, as follows:

[0063]

[0064]

[0065] In the formula, For the preprocessed first Axial coordinates of each pipe point; For the preprocessed first The coordinates of the first cross section of each pipeline point; For the preprocessed first The second cross-sectional coordinates of each pipeline point; The position vector of the origin of the local coordinate system of the pipeline in the original three-dimensional coordinate system is used, i.e., the local coordinate origin. This invention preferentially uses the geometric center of the point cloud. This is the local coordinate origin.

[0066] (5) Based on the axial coordinates, the first cross-sectional coordinates, and the second cross-sectional coordinates, the local coordinates of each pipe point after preprocessing are obtained, as follows: .

[0067] (6) Based on the axial coordinates of all pipe points after preprocessing, determine the effective axial range and axial length, expressed as:

[0068]

[0069]

[0070] In the formula, , These are the lower and upper limits of the axial range, respectively. , These are operations to retrieve the minimum and maximum values, respectively. The axial length is the actual length of the pipe covered by the preprocessed pipe point cloud dataset.

[0071] (7) Based on the axial range, the preprocessed pipeline point cloud dataset is divided into several local point cloud segments along the axial length direction to obtain a set of local point cloud segments, represented as:

[0072]

[0073]

[0074] In the formula, For local point cloud segments; , , They are the 1st, 2nd, and 3rd respectively. A local point cloud segment; For the first A local point cloud segment; Number the local point cloud segments; For the first The range of a local point cloud segment; For the first The axial length of a local point cloud segment.

[0075] For the pipe section to be tested with an outer diameter of 660 mm designed in this invention, it is preferable to set the axial length of the local point cloud segment to 20-30 mm. The specific value can be adjusted according to the actual point cloud density, scanning distance and local arc coverage range.

[0076] In an optional embodiment of the present invention, to reduce the influence of fixed segment boundaries on subsequent circle center fitting results, it is preferable to use a sliding window with a certain overlap range for axial segmentation. Let the width of the local point cloud window be... The step size for moving two adjacent windows along the pipe axis is And satisfy: Then we have: No. The center position of each local point cloud window is:

[0077] In the formula, For the first The center position of a local point cloud window.

[0078] The corresponding number A local point cloud segment is defined as: .

[0079] Preferably, the width of the local point cloud window can be set to 30 mm and the axial movement step size to 20 mm, so that 10 mm of common point cloud data is retained between two adjacent local point cloud segments. Using overlapping segmentation can reduce the influence of local point cloud density changes and segment boundary positions on local cross-section fitting, and improve the continuity of subsequent calculation results of adjacent local center points.

[0080] (8) Perform validity checks on each local point cloud segment and generate valid local point cloud segments.

[0081] In this embodiment, after axial segmentation is completed, the number of points and spatial distribution of each local point cloud segment are checked: the first segment is... The number of points contained in a local point cloud segment is denoted as:

[0082] In the formula, For the first The number of pipeline points in a local point cloud segment.

[0083] When local point cloud segment If a point cloud contains a sufficient number of valid pipe points, and the valid pipe points can form a continuous local pipe wall arc segment within the cross section, then the local point cloud segment is determined as a valid point cloud segment.

[0084] For point cloud segments that are affected by occlusion, weak reflection, or local point cloud missingness, resulting in insufficient effective point count or insufficient coverage of local arc segments, the current axial window can be expanded or merged with adjacent point cloud segments.

[0085] This step only segments and determines validity based on the axial coordinates, number of points, and spatial continuity of the point cloud, and does not delete data based on the radial deviation of the point cloud relative to the design circle.

[0086] Step 3: Based on the effective local point cloud segments and the first and second cross-sectional coordinates of each pipe point after preprocessing, determine the pipe centerline of the pipe segment to be inspected and the corrected first and second cross-sectional coordinates.

[0087] This step involves local center estimation and pipeline centerline recovery based on design radius constraints. The principle is as follows: based on multiple effective local point cloud segments obtained in step two and the preprocessed first and second cross-sectional coordinates of each pipeline point... Based on the pipeline design radius As a fixed constraint, local center estimation is performed on the single-sided visible arcs in each local point cloud segment; the center sequence is evaluated and smoothed based on the axial coordinates, fitting residuals and effective points of each local center to obtain the pipeline centerline that changes continuously with the pipeline axis, and the first and second cross-sectional coordinates of each pipeline point after preprocessing are corrected accordingly.

[0088] Specifically, the process of determining the pipeline centerline and corrected first and second cross-sectional coordinates of the pipeline segment to be inspected, based on the effective local point cloud segment and the preprocessed coordinates of each pipeline point in the first and second cross-sections, is as follows: (1) Extract the coordinates of the first and second cross sections of each preprocessed pipe point within each effective local point cloud segment, and generate the local cross section point set corresponding to each effective local point cloud segment, as follows:

[0089] In the formula, For the first The set of local cross-section points corresponding to each effective local point cloud segment; For the first One effective local point cloud segment.

[0090] (2) Extract the mean or median of the axial coordinates of each preprocessed pipe point within each effective local point cloud segment as the representative axial coordinates of each effective local point cloud segment.

[0091] In this implementation, the average axial coordinate of each preprocessed pipe point within each effective local point cloud segment is extracted as the representative axial coordinate of each effective local point cloud segment, expressed by the formula:

[0092] In the formula, For the first The representative axial coordinate of the effective local point cloud segment, i.e., the first... The mean axial coordinates of each preprocessed pipe point within an effective local point cloud segment. For the first The number of preprocessed pipeline points contained in an effective local point cloud segment.

[0093] (3) Using the design radius of the pipe segment to be inspected as a fixed constraint, a local circle center fitting objective function based on the fixed radius constraint is constructed. By minimizing the local circle center fitting objective function, the local circle center of each effective local point cloud segment is generated, as follows:

[0094]

[0095]

[0096] In the formula, For the first The local center of a valid local point cloud segment; , The first The x and y coordinates of the local center of a valid local point cloud segment; This is an operation to retrieve the minimum value; A robust loss function; , These are the x and y coordinates of the candidate's local center, respectively. For the design radius; The radial fitting residual corresponding to the candidate local center represents the difference between the distance from the preprocessed pipeline point to the candidate local center and the design radius. The transition parameter of the robust loss function is determined by combining the ranging accuracy of the 3D laser scanning equipment and the radial dispersion of the local point cloud of the pipe section to be inspected, and is used to distinguish between small residuals and large residuals.

[0097] In this implementation, a robust loss function is used to reduce the impact of a small number of flying points, anomalous echoes, or local concave points on the estimation of local circle center coordinates, while maintaining the design radius. Do not participate in free change.

[0098] (4) Based on the local center of each effective local point cloud segment, calculate the median value and median absolute deviation of the fitting residuals for each effective local point cloud segment, expressed as:

[0099]

[0100] In the formula, For the first The median value of the fitting residuals for each effective local point cloud segment; It is a median function; For the first The preprocessed first effective local point cloud segment The fitting residuals of each pipeline point; For the first The median absolute deviation of the residuals of an effective local point cloud segment.

[0101] In this embodiment, the number of pipe points in the effective local point cloud segment, the coverage area of ​​the visible arc, and the median absolute deviation of the residual can be combined. For the local center Quality evaluation is performed. When the number of pipe points in a certain local point cloud segment is small, the visible arc range is small, or the fitting residual is significantly large, this location is marked as low-quality center data and will not participate in the subsequent centerline smoothing fitting.

[0102] (5) Combine the representative axial coordinates of each effective local point cloud segment with the local center to generate a sequence of local center points for each effective local point cloud segment, as follows:

[0103] In the formula, For the first A sequence of local center points for an effective local point cloud segment; The effective number of local point cloud segments.

[0104] In this embodiment, since there is a continuous spatial relationship between adjacent effective local point cloud segments, the position of adjacent local center should change slowly with the axis under normal circumstances; local scanning error, point cloud density change or local abnormal echo may cause the position of individual center to deviate from the overall change trend, so the local center sequence is smoothly fitted.

[0105] (6) The relationship between the local center of each effective local point cloud segment and the axial coordinate is smoothly fitted to generate the offset of the local center, which is expressed as:

[0106]

[0107] In the formula, , These are the x and y coordinates of the local center, respectively. For axial coordinates; , axial coordinates The horizontal and vertical coordinate offsets of the local center of the circle.

[0108] In this embodiment, the offset of the local center is preferably fitted using cubic smoothed splines, low-order polynomials, or local weighted regression.

[0109] When using a cubic smoothed spline, the x-axis offset is determined by the following formula. , represented as:

[0110] In the formula, This is an operation to retrieve the minimum value; For the first The weights of each effective local point cloud segment are determined in this embodiment. Each local point cloud segment has already undergone validity screening before entering the centerline fitting process; therefore, the weights are taken as follows: ; The smoothing parameter in the horizontal axis direction is used to balance the fitting error of local center data with the smoothness of the fitting curve. In this embodiment, the generalized cross-validation method is used to determine the parameter value that minimizes the generalized cross-validation error. x-axis offset The second derivative of .

[0111] Accordingly, when using cubic smoothed splines, the ordinate offset is determined by the following formula. , represented as:

[0112] In the formula, This is an operation to retrieve the minimum value; The smoothing parameter in the vertical axis direction is used to balance the fitting error of local center data with the smoothness of the fitting curve. In this embodiment, the generalized cross-validation method is used to determine the parameter value that minimizes the generalized cross-validation error. The offset of the vertical axis The second derivative of .

[0113] (7) Based on the offset of the local center, generate the pipe centerline of the pipe segment to be inspected, as follows:

[0114] In the formula, The axial coordinate of the pipe section to be inspected The position vector of the pipe centerline at the location; The position vector of the origin of the local coordinate system of the pipeline in the original three-dimensional coordinate system is preferred in this embodiment, which is the geometric center of the preprocessed pipeline point cloud.

[0115] (8) Based on the pipeline centerline of the pipe section to be inspected, the coordinates of the first and second cross sections of each preprocessed pipe point are corrected to generate the corrected coordinates of the first and second cross sections, as follows:

[0116]

[0117] In the formula, , These are the preprocessed numbers. The corrected coordinates of the first and second cross sections of each pipeline point; , axial coordinates The horizontal and vertical coordinate offsets of the local center of the circle.

[0118] After the above corrections, the corrected first and second cross-sectional coordinates of each preprocessed pipe point are all based on the local pipe center at the corresponding axial coordinate of the pipe point as the origin, thereby reducing the impact of overall pipe tilt, slight bending, installation deviation and local center drift on subsequent radial deviation calculations.

[0119] Step 4: Based on the corrected coordinates of the first and second cross sections, the unfolded positions of each preprocessed pipe point are determined by constructing a design circle to generate an axial-circumferential unfolded point cloud and divide it into a mesh.

[0120] This step involves designing the circular recovery, calculating the radial deviation, and unfolding the pipe surface. The principle is as follows: based on the three-dimensional centerline of the pipe to be tested obtained in step three and the corrected first and second cross-sectional coordinates of each pipe point, a design radius is established at each axial coordinate. The design circle is calculated; the radial distance from each pipe point to the corresponding local center is calculated, and the difference between the design radius and the measured radial distance is used as the initial radial deviation; the circumferential position of each pipe point is further calculated, and the three-dimensional local pipe surface is converted into axial-circumferential unfolded data, providing a unified data expression form for continuous pipe surface identification and abnormal echo separation in step five.

[0121] Specifically, based on the corrected coordinates of the first and second cross-sections, the unfolded positions of each preprocessed pipe point are determined by constructing a design circle to generate an axial-circumferential unfolded point cloud, and the process of meshing is as follows: (1) Based on the corrected coordinates of the first cross section, the second cross section, and the design radius, construct the design circle, represented as:

[0122] In the formula, , These are the corrected coordinates of the first and second cross-sections, respectively.

[0123] In this embodiment, a circle is designed to serve as the geometric reference for calculating the radial deviation of the measured pipe wall at this axial coordinate.

[0124] (2) Based on the corrected coordinates of the first and second cross sections, calculate the radial distance from each preprocessed pipe point to the local pipe center, as follows:

[0125] In the formula, For the preprocessed first The radial distance from each pipe point to the local pipe center (the local pipe center of the design circle).

[0126] (3) Based on the design radius and the radial distance from each pre-processed pipe point to the local pipe center, calculate the initial radial deviation of each pre-processed pipe point relative to the design circle, expressed as:

[0127] In the formula, For the preprocessed first The initial radial deviation of each pipe point relative to the design circle.

[0128] In this embodiment, for scanning the outer surface of the pipe, if This indicates that the pipe point is recessed inwards relative to the design circle towards the local pipe center; if This indicates that the pipe point is offset outwards relative to the design circle; when When it is close to zero, it means that the pipeline point is basically consistent with the design circle.

[0129] This step only calculates the initial radial deviation of each pipe point relative to the design circle, and does not directly rely on individual pipe points. Numerical analysis is used to determine pipe indentations in order to avoid abnormal echoes or random measurement errors directly controlling the test results.

[0130] (4) Based on the corrected coordinates of the first and second cross sections, calculate the circumferential angle of each preprocessed pipe point relative to the local pipe center, expressed as:

[0131] In the formula, For the preprocessed first The circumferential angle of a pipe point relative to the local pipe center; It is the biarctangent function.

[0132] (5) Based on the circumferential angle and design radius of each preprocessed pipe point relative to the local pipe center, calculate the circumferential coordinates of each preprocessed pipe point in the circumferential direction of the pipe section to be inspected, as follows:

[0133] In the formula, For the preprocessed first The circumferential coordinates of a point on the pipeline in the direction of the circumference of the pipeline to be measured.

[0134] (6) Based on the axial coordinates, circumferential coordinates, and initial radial deviation, the unfolded positions of each pipe point after preprocessing are obtained, as follows:

[0135] In the formula, For the preprocessed first The unfolded positions of each pipeline point.

[0136] (7) Based on the unfolded positions of each pipe point after preprocessing, an axial-circumferential unfolded point cloud is generated, represented as:

[0137] In the formula, This is an axial-circumferential unfolded point cloud.

[0138] (8) Divide the axial-circumferential unfolded point cloud into several regular grids.

[0139] In this implementation, the axial-circumferential unfolded point cloud is divided into several regular grids: let the axial dimension of the grid be... The circumferential dimension of the mesh is Then the first Each grid is represented as:

[0140] In the formula, , These are the grid numbers in the axial and circumferential directions, respectively. For the first One grid; For the grid in the axial direction Scope; For the grid in the circumferential direction The range.

[0141] In this implementation, the grid size is determined based on the actual average point spacing, scanning distance, and point cloud density. It is preferably 2 to 10 times the local average point spacing, so that a single grid can contain a certain number of pipe points while maintaining the spatial resolution of local concave boundaries.

[0142] Finally, this step outputs the initial radial deviation of each pipe point relative to the design circle. , corresponding axial coordinates and circumferential coordinates and the mesh established according to the axial-circumferential position In step five, the axial-circumferential unfolded point cloud and regular mesh are used as inputs to identify possible multi-layer echoes at the same axial-circumferential location and to recover the true continuous pipe wall surface based on the spatial continuity of adjacent regions.

[0143] Step 5: Based on the mesh generated by the axial-circumferential unfolded point cloud, construct the main continuous pipe surface mesh set and the representative value of the main pipe surface.

[0144] This step involves identifying the main continuous pipe surface and separating abnormal echoes. The principle is as follows: Based on the grid obtained in step four, the pipe points are layered according to the initial radial deviation within each grid to form one or more candidate point layers; the number of pipe points, radial representative value, dispersion, and continuity relationship with adjacent grid candidate point layers are calculated for each candidate point layer; by region growth or continuity constraints, candidate point layers that can stably and continuously extend in the axial and circumferential directions are selected as the main pipe wall surface, and scattered point layers that cannot form a stable continuous pipe surface are marked as abnormal echoes or low-confidence candidate point layers.

[0145] Specifically, the process of constructing the main continuous pipe surface mesh set and the representative value of the main pipe surface based on the mesh of the axial-circumferential unfolded point cloud is as follows: (1) Extract the initial radial deviation of all pipe points in each grid after preprocessing, and sort them in ascending order. Determine whether the absolute value of the difference between two adjacent initial radial deviations after sorting is less than or equal to the radial layering interval parameter. If yes, divide the pipe points corresponding to these two initial radial deviations into the same candidate point layer; otherwise, divide them into different candidate point layers, and finally generate several candidate point layers.

[0146] In this embodiment, for any mesh obtained in step four Extract the initial radial deviation of all pipe points within the preprocessed grid. and in accordance with Sort by size from smallest to largest. Let the radial deviations of any two adjacent sorted pairs be... and When both conditions are met: When, they are grouped into the same candidate point layer; when the following conditions are met: At that time, they are divided into different candidate point layers. The radial layering interval parameter can be determined based on the ranging accuracy of the equipment and the radial dispersion of the local point cloud. , These are the preprocessed numbers. The, the The initial radial deviation of each pipe point relative to the design circle. Therefore, within the same grid... The inner layer forms one or more candidate point layers, represented as:

[0147] In the formula, , , They are grids The 1st, the 2nd, the 3rd A candidate point layer.

[0148] (2) Calculate the number of pipe points in each candidate point layer, expressed as:

[0149] In the formula, For grid The The number of pipeline points in each candidate point layer; For grid The A candidate point layer.

[0150] (3) Calculate the median and median absolute deviation of the initial radial deviation of all pipe points within each candidate point layer, expressed as:

[0151]

[0152] In the formula, For grid The The median of the initial radial deviations of all pipe points in the candidate point layer; For grid The The median absolute deviation of the initial radial deviation of all pipe points in the candidate point layer.

[0153] In this implementation, Used to characterize the point cloud support level of the candidate point layer; Used to represent the representative radial position of the candidate point layer within the current grid; This is used to characterize the radial dispersion within the candidate point layer. When the scanning device can output quality attributes such as reflection intensity and echo number, the average or median quality attributes corresponding to the candidate point layer can be further calculated and used as auxiliary parameters for evaluating the quality of the candidate point layer.

[0154] (4) Compare the absolute value of the difference between the median of the initial radial deviations of all pipe points in any two adjacent candidate point layers of any two adjacent grids. If the difference is less than or equal to the maximum radial change, then establish a connection between the two adjacent candidate point layers. If not, do not process, and finally generate the main continuous pipe surface grid set.

[0155] In this embodiment, for two axially or circumferentially adjacent meshes, for the candidate point layer Candidate point layer with adjacent grids When it satisfies Furthermore, when two candidate point layers are spatially adjacent, a continuous connection is established between these two candidate point layers. This is the maximum allowable radial variation between adjacent pipe surfaces, determined based on the local noise level of the point cloud and the actual allowable degree of continuous variation of the pipe wall. For grid The The median of the initial radial deviation of all pipe points in the candidate point layer.

[0156] Furthermore, if it is necessary to further calculate the local normal vector, the included angle between the normals of adjacent candidate point layers can also be required to satisfy:

[0157] In the formula, It is the inverse cosine function; , They are grids The Local normal unit vector of each candidate point layer, mesh The Local normal unit vectors of candidate point layers; This is the maximum allowable normal angle.

[0158] In this step, a seed point layer is selected from candidate point layers with a large number of pipe points, low internal dispersion, and stable connection with adjacent grids, and then a region growth is performed along the axial and circumferential adjacent grids.

[0159] For the currently selected main point layer, only candidate point layers that satisfy the radial continuity condition, spatial adjacency condition, and optional normal continuity condition are added to the main pipe surface; the adjacency search is continuously performed until it can no longer be expanded, resulting in a set of main continuous pipe surface meshes continuously distributed along the pipe axis and circumference. .

[0160] The selection of the main pipe surface is determined based on the spatial continuity, point support, and internal dispersion of the candidate point layer, and does not use a fixed depression depth as a condition for deleting candidate point layers. Therefore, when the actual depression region exists continuously between adjacent grids, its pipe wall points can still be retained as part of the main continuous pipe surface.

[0161] Meanwhile, for other candidate point layers in the same grid that were not selected by the main continuous pipe surface, the original data is not directly deleted. Instead, they are marked as anomalous echo candidate point layers or low confidence point layers according to their relative radial position with the main pipe surface, the number of points and the degree of spatial continuity.

[0162] When a candidate point layer has a small number of points, a large degree of internal dispersion, and cannot form a continuous extension in adjacent axial or circumferential grids, it is preferentially marked as an anomalous echo; when it has a certain number of points but its relationship with the main pipe surface is unclear, it is reserved as low-confidence candidate data for subsequent quality evaluation and manual review.

[0163] (5) Calculate the representative value of the main pipe surface for each grid in the main continuous pipe surface grid set, expressed as:

[0164] In the formula, For grid The representative value of the main pipe surface; For grid The middle layer was selected as a candidate point layer for the main continuous pipe surface.

[0165] In this embodiment, by using the median value of the candidate point layer instead of a single deepest point, the impact of random flying points and local anomaly ranging on subsequent depression depth calculation can be reduced.

[0166] Finally, step five outputs the main continuous pipe surface mesh set. and representative value of the main pipe surface Simultaneously, it outputs the labels of abnormal echo candidate point layers or low-confidence point layers that were not selected by the main tube surface.

[0167] Among them, the main continuous pipe surface mesh set and representative value of the main pipe surface As input to step six, it is used to determine the true continuous depression area after excluding the influence of scattered abnormal echoes, and to calculate the maximum depth, axial length, circumferential width and typical cross-section of the depression.

[0168] Step 6: Based on the main continuous pipe surface mesh set and the representative value of the main pipe surface, perform concave region identification and geometric quantization to generate the detection results of the pipe segment to be detected.

[0169] This step involves identifying the concave region, geometric quantification, and outputting results. The principle is as follows: Based on the continuous pipe surface mesh set obtained in step five, a concave judgment benchmark is established, and continuous concave regions within the continuous pipe surface mesh set are identified; connected component analysis is used to determine the spatial range of the concave region, and the maximum depth, axial length, circumferential width, area, and optional volume of the concave region are calculated based on the continuous pipe surface data; further, the cross-section corresponding to the maximum concave location is extracted, the measured cross-section is compared with the design circle with a design radius of 330 mm, and the pipe surface unfolding diagram, typical cross-section diagram, longitudinal section, and three-dimensional concave results are output.

[0170] Specifically, the process of identifying and geometrically quantizing concave regions based on the main continuous pipe surface mesh set and representative values ​​of the main pipe surface, and generating the detection results of the pipe segment to be inspected, is as follows: (1) Using the design circle as the calculation datum for the concavity, calculate the background correction amount and the net concavity of the main tube surface, expressed as:

[0171]

[0172] In the formula, This is the background correction amount; For axial coordinates; Circular coordinates; For grid The net inward concavity of the main tube surface.

[0173] In this embodiment, for cases where the design outer diameter is known, the scanning equipment is fixed, and the overall posture of the pipeline has been corrected by restoring the centerline in step three, the design circle is directly used as the concavity calculation reference. In this case, the background correction measurement is: .

[0174] In an optional embodiment of the present invention, when there are residual system deviations, slow pipe out-of-roundness, or low-frequency background changes still exist after centerline correction, a region far from the local depression core and with gentle radial changes can be selected from the main continuous pipe surface mesh set as a normal reference region. Fitting slowly changing background correction amount And perform background correction on the main pipe surface, as shown below:

[0175] in, For grid The net indentation of the main tube surface; , The first The first axial coordinate, the first One circumferential coordinate.

[0176] For the outer surface of the pipe This indicates that the position is recessed relative to the reference pipe facing the center of the pipe.

[0177] (2) Calculate the median value of net concavity, median absolute deviation, and robust discrete scale of the normal reference region, and set the concavity identification threshold, expressed as:

[0178]

[0179]

[0180]

[0181] In the formula, This is the median value of the net concavity in the normal reference area; This is the normal reference area; This represents the median absolute deviation of the normal reference area. It is a robust discrete scale; The threshold for indentation identification; The threshold coefficient is preferably set to 2 to 5.

[0182] In addition, for detection scenarios with clearly defined engineering tolerance requirements, the allowable concavity amount specified in the engineering specifications can be directly used as the concavity identification threshold. .

[0183] (3) Determine the grid If the net concavity of the main tube surface is greater than the concavity identification threshold, then the mesh is marked as a concavity candidate mesh; otherwise, it is marked as a non-concavity mesh. The final candidate set is generated as follows:

[0184] In the formula, This is the candidate set.

[0185] In this embodiment, each valid grid in the main continuous tube surface is judged: when the following conditions are met: If the condition is met, the mesh is marked as a concave candidate mesh; otherwise, it is marked as a non-concave mesh. Finally, all concave candidate meshes are combined into a candidate set.

[0186] (4) Based on the adjacency relationship of each grid, perform connected region analysis on the candidate set, and classify the grids that are axially or circumferentially adjacent and both satisfy the concavity judgment into the same connected region, generate several concavity candidate connected regions and perform validity screening to generate effective concavity regions.

[0187] In this embodiment, the candidate set is evaluated based on the adjacency relationship of the axial-circumferential regular grid. Connectivity analysis is performed, which involves grouping axially or circumferentially adjacent meshes that all satisfy the depression criterion into the same connected region, forming one or more candidate connected regions for depression, represented as: ,in , , They are the 1st, 2nd, and 3rd respectively. A concave candidate connected region.

[0188] Meanwhile, connected regions that are too small, consist of only a few isolated grids, or cannot form a stable continuous range in the axial or circumferential directions are eliminated; connected regions that meet the requirements of minimum number of grids, minimum axial length, or minimum projected area are retained as effective concave regions.

[0189] By using continuous region determination, the depression identification result is determined by a set of spatially continuous main pipe surface data, rather than by a single extreme point in the original point cloud.

[0190] (5) Based on the net concavity of the main continuous pipe surface grid within each effective concave region, determine the robust concavity depth at each grid location, and calculate the maximum concavity depth and the maximum concavity location, specifically: For the One effective depression area Any continuous tubular mesh within the main body The current mesh and the main continuous pipe surface mesh that are adjacent to it in the axial or circumferential direction and belong to the same effective depression region are formed into a local neighborhood. By utilizing local neighborhoods, the depth of the concavity at the current grid location is determined jointly by multiple spatially continuous main tube surface grids, rather than directly by the extreme net concavity of a single grid.

[0191] Based on the net concavity of each continuous pipe surface mesh within the local neighborhood, the robust concavity depth corresponding to the current mesh is calculated and expressed as:

[0192] In the formula, For grid The corresponding robust indentation depth; For local neighborhood grids The net inward concavity of the main tube surface; , These are the axial and circumferential indices of the mesh within the local neighborhood, respectively. For grid The corresponding local neighborhood; This is for median calculation.

[0193] For the The maximum value among the robust depression depths of each main continuous pipe surface grid within the effective depression region is determined as the th effective depression region. The maximum depression depth of each effective depression area , represented as: ; Will satisfy Main body continuous pipe surface grid The corresponding axial coordinates and circumferential coordinates The location of the maximum indentation is determined and denoted as:

[0194] In the formula, For the first The maximum depression depth of each effective depression area; This is for retrieving the maximum value. This is the location of the greatest indentation; , These are the axial and circumferential coordinates corresponding to the location of the maximum indentation, respectively.

[0195] In this embodiment, the median net concavity of multiple continuous pipe surface grids within a local neighborhood is used to characterize the robust concavity depth at the current grid location. Furthermore, the maximum concavity depth is determined within the effective concavity region, thereby reducing the impact of local measurement fluctuations of a single main pipe surface grid on the calculation result of the maximum concavity depth. The determined maximum concavity location serves as the basis for subsequent extraction of the maximum concavity cross-section.

[0196] (6) Calculate the axial influence length and circumferential arc width of each effective depression region to obtain the circumferential angle width of each effective depression region, expressed as:

[0197]

[0198]

[0199] In the formula, For the first The axial influence length of each effective concave region; For the first One axial coordinate; This is an operation to retrieve the minimum value; For the first The circumferential arc length and width of the effective concave region; For the first One circumferential coordinate; For the first The circumferential angle width of the effective concave region; The design radius is set at 330mm.

[0200] (7) Calculate the projected area of ​​each effective recessed region on the unfolded plane of the pipe surface, and express it as:

[0201] In the formula, For the first The projected area of ​​each effective recessed region on the unfolded plane of the pipe surface; For the first Number of grids in each effective concave region; The axial grid size of the effective recessed area; The circumferential grid size represents the effective recessed area.

[0202] In this embodiment, for the effective concave region represented by a regular grid, the axial grid size is set to be... The circumferential grid size is The effective number of effective grids contained in the effective concave region is The projected area of ​​the effective concave region on the unfolded plane of the pipe can be approximately expressed as: .

[0203] In an optional embodiment of the present invention, when it is necessary to estimate the depression volume of the effective depression region relative to the reference tube surface, the following can be calculated:

[0204] In the formula, for The effective recessed area is the recessed volume relative to the reference tube surface.

[0205] Therefore, the projected area and the volume of the depression can be used as auxiliary evaluation indicators for the geometric range of the depression.

[0206] (8) Based on the location of the maximum indentation, extract the axial coordinates of the location of the maximum indentation from the continuous pipe surface mesh set of the main body. For nearby measured pipe points, generate the maximum concavity cross-section. Using the local center as the center and the design radius as the radius, establish a theoretical design circle, and superimpose the maximum concavity cross-section. Calculate the indentation of each measured pipe point within the maximum concavity cross-section relative to the theoretical design circle, expressed as:

[0207] In the formula, This refers to the amount of concavity. For the design radius; This represents the radial distance from the measured point on the pipeline to the local center of the circle.

[0208] In this embodiment, the axial coordinate of the maximum depression position is first determined. The measured pipe points near the axial coordinate are extracted from the continuous pipe surface mesh set to form the cross-section of the maximum depression. Then, the local center of this location, recovered in step three, is used as the center, and the design radius is used as the radius. Using a radius of , establish a corresponding theoretical design circle, and overlay the maximum concavity cross-section (measured cross-sectional profile) onto the theoretical design circle for display. For any measured pipe point within this maximum concavity cross-section, its indentation relative to the theoretical design circle is still calculated using the formula... Calculations are performed. This allows the theoretical design circle position, the maximum concave cross section (measured pipe wall profile), the maximum concave position, and the maximum concave depth to be displayed on the same cross-sectional view, enabling direct comparison between the measured and designed pipe cross sections.

[0209] Finally, for each valid depression region, the output should include at least the following detection results: 1. Maximum indentation depth and its axial and circumferential positions; 2. Axial influence on length ; 3. Circumferential arc length and width and circumferential angle width ; 4. Projected area and optional recess volume ; 5. Comparison of the cross-section of the maximum depression at the location of the maximum depression with the theoretical design circle; 6. Development diagram of axial-circumferential concavity of the pipeline; 7. A longitudinal profile extracted along the center of the depression or the location of the maximum depression; 8. Three-dimensional display results of the main continuous pipe surface, the candidate layer of abnormal echoes, and the effective depression area.

[0210] When the effective depression area overlaps with the low-confidence candidate point layer, or when the main pipe surface coverage near the effective depression area is insufficient, a data quality mark is added to the detection result, and a supplementary scan or other measurement methods are suggested for verification.

[0211] Thus, based on the local point cloud of the pipeline obtained from a single observation direction, after data acquisition and preprocessing, axial determination and segmentation, estimation of the center of the design radius constraint circle, comparison of the design circle and unfolding of the pipe surface, identification of the main continuous pipe surface and quantification of the concave area, the detection results such as the location, maximum depth and spatial range of the pipeline concavity are finally obtained.

[0212] In summary, the pipeline indentation detection method based on lidar under limited viewing angle proposed in this invention achieves the following technical effects: 1. Applicable to pipeline inspection under conditions of incomplete point cloud on one side; This invention utilizes design radius constraints and multiple axial local cross-sections to jointly restore the pipeline centerline, without requiring the acquisition of complete circumferential point cloud data. It can adapt to narrow field environments and single-station scanning conditions, overcomes the dependence of traditional methods on complete cross-sectional data, and significantly expands the applicable scenarios of the inspection equipment.

[0213] 2. Effectively reduces the contamination of depression depth measurement by reference drift; the centerline restored by this invention adapts to the axial position, which can separate low-frequency deformation components such as overall pipe tilt, slight bending and local center drift from the real depression, avoids the centerline fitting error from being transmitted to the depression depth calculation stage, and improves the accuracy of depth measurement.

[0214] 3. It has the capability of multi-layer echo processing and conforms to the topology of the pipe surface. This invention constructs multiple candidate point layers in each unfolded grid and filters the main continuous pipe surface based on the axial-circumferential spatial continuity criterion. Compared with conventional distance outlier filtering methods, it makes fuller use of the topological continuity prior of the pipe surface and can effectively distinguish between real pipe wall echoes and false echoes generated by multi-layer media.

[0215] 4. Avoids fixed-depth truncation and has cross-scene adaptive capability; This invention does not rely on a preset maximum indentation depth threshold for anomaly determination, but rather on the point cloud density, internal dispersion and spatial connectivity of the candidate point layer, and can combine multi-dimensional features such as local normal consistency to comprehensively identify abnormal echoes. It has good cross-working conditions and cross-scene adaptability, avoiding misjudgment and omission of fixed threshold methods under different pipeline conditions.

[0216] 5. The maximum indentation depth estimation has higher repeatability stability. This invention performs neighborhood robust statistics based on the net indentation amount of the continuous pipe surface grid of the adjacent main body within the effective indentation area, and determines the maximum indentation depth accordingly, instead of directly taking the extreme value of a single original deepest point or a single grid. This effectively suppresses the influence of random noise and local outliers on the calculation of the maximum value, and improves the repeatability and consistency of the same indentation in different detection batches.

[0217] 6. The test results are complete and verifiable; the present invention simultaneously outputs multi-dimensional test results such as unfolded diagrams, contour maps, cross-sectional diagrams, longitudinal profile diagrams, three-dimensional morphological diagrams, and quality confidence markers, providing comprehensive and traceable data support for engineering review, safety assessment, and subsequent maintenance decisions.

[0218] Specific embodiments have been used to illustrate the principles and implementation methods of this invention. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this invention. Therefore, the content of this specification should not be construed as a limitation of this invention.

[0219] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical teachings disclosed in this invention without departing from the spirit of the invention, and these modifications and combinations are still within the scope of protection of this invention.

Claims

1. A method for detecting pipe indentations based on lidar under limited viewing angle, characterized in that, Includes the following steps: Collect and preprocess the pipe point cloud data of the pipe section to be inspected to generate a preprocessed pipe point cloud dataset. Based on the preprocessed pipeline point cloud dataset, the initial axial direction and the coordinates of the first and second cross sections of the pipe segment to be detected are determined. At the same time, local point cloud segments are divided and effective local point cloud segments are selected. Based on the effective local point cloud segments and the first and second cross-sectional coordinates of each pipe point after preprocessing, the pipe centerline of the pipe segment to be inspected and the corrected first and second cross-sectional coordinates are determined. Based on the corrected coordinates of the first and second cross sections, the unfolded positions of each preprocessed pipe point are determined by constructing a design circle to generate an axial-circumferential unfolded point cloud and divide it into a mesh. Based on the mesh generated by axial-circumferential unfolded point cloud, a set of continuous pipe surface meshes and representative values ​​of the main pipe surface are constructed. Based on the continuous pipe surface mesh set and the representative value of the main pipe surface, the concave area is identified and geometrically quantized to generate the detection result of the pipe segment to be detected.

2. The pipe dent detection method according to claim 1, characterized in that, The process of collecting and preprocessing pipeline point cloud data of the pipe section to be inspected to generate a preprocessed pipeline point cloud dataset is as follows: The pipe section to be inspected is scanned using a 3D laser scanning device to generate a pipe point cloud dataset, represented as follows: in, For pipeline point cloud datasets; For the first The coordinate vectors of the pipe points; This represents the total number of pipeline points. , , The first The pipeline points are at , , Coordinates along the axis; Determine the region of interest (ROI) of the pipe segment to be inspected, extract the pipe point cloud data of the ROI, and generate the point cloud of the ROI, represented as: in, Point cloud of the area to be detected; For the first The coordinate vector of the points to be detected; Region of interest; After removing duplicate points, non-pipeline points, and outliers from the point cloud of the region to be detected, a preprocessed pipeline point cloud dataset is generated, represented as follows: in, This is the preprocessed pipeline point cloud dataset; For the preprocessed first One pipeline point; This represents the number of pipe points after preprocessing.

3. The pipe dent detection method according to claim 2, characterized in that, Based on the preprocessed pipeline point cloud dataset, the initial axial direction and coordinates of the first and second cross sections of the pipe segment to be inspected are determined. Simultaneously, local point cloud segments are divided, and the process of selecting effective local point cloud segments is as follows: Based on the preprocessed pipeline point cloud dataset, the geometric center of the point cloud is calculated, i.e.: in, The geometric center of the point cloud; Based on the geometric center of the point cloud, calculate the point cloud covariance matrix, i.e.: in, The point cloud covariance matrix; This is a transpose operation; Eigenvalue decomposition is performed on the point cloud covariance matrix to generate eigenvectors and their corresponding eigenvalues, as follows: in, The point cloud covariance matrix is ​​the first... 1 eigenvector; For the first The eigenvalues ​​corresponding to each eigenvector; The eigenvector corresponding to the largest eigenvalue is taken as the initial axis of the pipe segment to be detected, expressed as: in, The initial axial direction of the pipe section to be inspected; This is the eigenvector corresponding to the first eigenvalue, i.e., the eigenvector corresponding to the largest eigenvalue; Within the cross-section perpendicular to the initial axial direction of the pipe segment to be inspected, construct mutually orthogonal first unit basis vectors and second unit basis vectors, represented as: in, Let them be the first unit basis vectors; It is the second unit basis vector; The initial axis is taken as the pipe axis, and the first unit basis vector and the second unit basis vector are taken as the transverse direction. A local coordinate system for the pipe is established based on the pipe axis and the transverse direction, and the origin of the local coordinate system is determined. Using the local coordinate origin as a reference, the projections of each preprocessed pipe point in the axial and transverse directions of the pipe are calculated, generating the axial coordinates, first cross-sectional coordinates, and second cross-sectional coordinates of each preprocessed pipe point, as shown below: in, For the preprocessed first Axial coordinates of each pipe point; For the preprocessed first The coordinates of the first cross section of each pipeline point; For the preprocessed first The second cross-sectional coordinates of each pipeline point; This is the position vector of the origin of the local coordinate system of the pipeline in the original three-dimensional coordinate system; Based on the axial coordinates, the first cross-sectional coordinates, and the second cross-sectional coordinates, the local coordinates of each pipe point after preprocessing are obtained, as follows: ; Based on the axial coordinates of all preprocessed pipe points, the effective axial range and axial length are determined, expressed as follows: in, , These are the lower and upper limits of the axial range, respectively. , These are operations to retrieve the minimum and maximum values, respectively. This refers to the axial length. Based on the axial range, the preprocessed pipeline point cloud dataset is divided into several local point cloud segments along the axial length direction, resulting in a set of local point cloud segments, represented as: in, For local point cloud segments; , , They are the 1st, 2nd, and 3rd respectively. A local point cloud segment; For the first A local point cloud segment; Number the local point cloud segments; For the first The range of a local point cloud segment; For the first The axial length of a local point cloud segment; Perform a validity check on each local point cloud segment to generate a valid local point cloud segment.

4. The pipe dent detection method according to claim 3, characterized in that, The process of determining the pipeline centerline and corrected first and second cross-sectional coordinates of the pipeline segment to be inspected, based on the effective local point cloud segment and the preprocessed coordinates of each pipeline point in the first and second cross-sections, is as follows: Extract the first and second cross-sectional coordinates of each preprocessed pipe point within each effective local point cloud segment to generate the local cross-sectional point set corresponding to each effective local point cloud segment, represented as follows: in, For the first The set of local cross-section points corresponding to each effective local point cloud segment; For the first One effective local point cloud segment; The mean or median value of the axial coordinates of each preprocessed pipe point within each effective local point cloud segment is extracted as the representative axial coordinate of each effective local point cloud segment. Using the design radius of the pipe segment to be inspected as a fixed constraint, a local center fitting objective function based on the fixed radius constraint is constructed. By minimizing the local center fitting objective function, the local center of each effective local point cloud segment is generated, represented as: in, For the first The local center of a valid local point cloud segment; , The first The x and y coordinates of the local center of a valid local point cloud segment; This is an operation to retrieve the minimum value; A robust loss function; These are the x and y coordinates of the candidate's local center, respectively. For the design radius; The turning point parameter for robust losses; The radial fitting residuals corresponding to the candidate local center; Based on the local center of each effective local point cloud segment, the median value and median absolute deviation of the fitting residuals for each effective local point cloud segment are calculated and expressed as: in, For the first The median value of the fitting residuals for each effective local point cloud segment; It is a median function; For the first The preprocessed first effective local point cloud segment The fitting residuals of each pipeline point; For the first The median absolute deviation of the residuals of each effective local point cloud segment; The representative axial coordinates of each effective local point cloud segment are combined with the local center to generate a sequence of local center points for each effective local point cloud segment, represented as follows: in, For the first A sequence of local center points for an effective local point cloud segment; For the first The representative axial coordinates of an effective local point cloud segment; The effective number of local point cloud segments; The relationship between the local center of each effective local point cloud segment and the axial coordinate is smoothly fitted to generate the offset of the local center, which is expressed as: in, , These are the x and y coordinates of the local center, respectively. For axial coordinates; , axial coordinates The horizontal and vertical coordinate offsets of the local center of the circle; Based on the offset of the local center, the pipe centerline of the pipe segment to be inspected is generated, represented as: in, The axial coordinate of the pipe section to be inspected The position vector of the pipe centerline at the location; Based on the pipeline centerline of the pipe section to be inspected, the coordinates of the first and second cross-sections of each preprocessed pipe point are corrected to generate the corrected coordinates of the first and second cross-sections, as follows: in, , These are the preprocessed numbers. The corrected coordinates of the first and second cross sections of each pipeline point; , axial coordinates The horizontal and vertical coordinate offsets of the local center of the circle.

5. The pipe dent detection method according to claim 4, characterized in that, Based on the corrected coordinates of the first and second cross sections, the unfolded positions of each preprocessed pipe point are determined by constructing a design circle to generate an axial-circumferential unfolded point cloud. The process of meshing is as follows: Based on the corrected coordinates of the first and second cross-sections and the design radius, a design circle is constructed, represented as: in, , These are the corrected coordinates of the first and second cross-sections, respectively. Based on the corrected coordinates of the first and second cross sections, the radial distance from each preprocessed pipe point to the local pipe center is calculated and expressed as follows: in, For the preprocessed first The radial distance from each pipe point to the local pipe center; Based on the design radius and the radial distance from each pre-processed pipe point to the local pipe center, the initial radial deviation of each pre-processed pipe point relative to the design circle is calculated and expressed as: in, For the preprocessed first Initial radial deviation of each pipe point relative to the design circle; Based on the corrected coordinates of the first and second cross-sections, the circumferential angles of each preprocessed pipe point relative to the local pipe center are calculated and expressed as follows: in, For the preprocessed first The circumferential angle of a pipe point relative to the local pipe center; It is the biarctangent function; Based on the circumferential angle and design radius of each preprocessed pipe point relative to the local pipe center, the circumferential coordinates of each preprocessed pipe point in the circumferential direction of the pipe section to be inspected are calculated and expressed as: in, For the preprocessed first The circumferential coordinates of a point on the pipeline in the direction of the circumference of the pipeline to be measured; Based on the axial coordinates, circumferential coordinates, and initial radial deviation, the unfolded positions of each pipe point after preprocessing are obtained, as follows: in, For the preprocessed first The expanded positions of each pipeline point; Based on the unfolded positions of each pipe point after preprocessing, an axial-circumferential unfolded point cloud is generated, represented as: in, This represents an axial-circumferential unfolded point cloud. The axial-circumferential unfolded point cloud is divided into several regular grids.

6. The pipe dent detection method according to claim 5, characterized in that, The process of constructing the main continuous pipe surface mesh set and the representative value of the main pipe surface based on the mesh generated by axial-circumferential unfolding point cloud is as follows: Extract the initial radial deviation of all pipe points in each grid after preprocessing, and sort them in ascending order. Determine whether the absolute value of the difference between two adjacent initial radial deviations after sorting is less than or equal to the radial layering interval parameter. If so, classify the pipe points corresponding to these two initial radial deviations into the same candidate point layer; otherwise, classify them into different candidate point layers, and finally generate several candidate point layers. The number of pipeline points in each candidate point layer is calculated and expressed as follows: in, For grid The The number of pipeline points in each candidate point layer; For grid The One candidate point layer; The median and median absolute deviation of the initial radial deviation of all pipe points within each candidate point layer are calculated and expressed as follows: in, For grid The The median of the initial radial deviations of all pipe points in the candidate point layer; For grid The The median absolute deviation of the initial radial deviation of all pipe points in the candidate point layer; Compare the absolute value of the difference between the median of the initial radial deviations of all pipe points in any two adjacent candidate point layers of any two adjacent grids. If the difference is less than or equal to the maximum radial variation, then establish a connection between the two adjacent candidate point layers. If not, no action is taken, and the main continuous pipe surface grid set is finally generated. The representative value of the main pipe surface for each grid in the continuous pipe surface mesh set is represented as follows: in, For grid The representative value of the main pipe surface; For grid The middle layer was selected as a candidate point layer for the main continuous pipe surface.

7. The pipe dent detection method according to claim 6, characterized in that, The process of identifying and geometrically quantizing concave regions based on the continuous pipe surface mesh set and representative values ​​of the main pipe surface, and generating the detection results for the pipe segment to be inspected, is as follows: Using the design circle as the calculation benchmark for the concavity, the background correction amount and the net concavity of the main tube surface are calculated and expressed as: in, This is the background correction amount; For axial coordinates; Circular coordinates; For grid The net indentation of the main tube surface; A region with a gentle radial variation was selected from the main continuous pipe surface mesh set as the normal reference region. Calculate the median value of net concavity, median absolute deviation, and robust discrete scale of the normal reference region, and set a concavity identification threshold, expressed as: in, This is the median value of the net concavity in the normal reference area; This is the normal reference area; This represents the median absolute deviation of the normal reference area. It is a robust discrete scale; The threshold for indentation identification; This is the threshold coefficient; Detect grid If the net concavity of the main tube surface is greater than the concavity identification threshold, then the mesh is marked as a concavity candidate mesh; otherwise, it is marked as a non-concavity mesh. The final candidate set is generated as follows: in, For the candidate set; The main body is a continuous pipe surface mesh set; Based on the adjacency relationship of each grid, a connected region analysis is performed on the candidate set. Grids that are axially or circumferentially adjacent and both satisfy the concavity criterion are grouped into the same connected region, generating several concavity candidate connected regions and filtering them for effectiveness to generate effective concavity regions. For each main continuous pipe surface mesh in each effective concave region, the adjacent main continuous pipe surface meshes in the axial and circumferential directions are extracted to form a local neighborhood; the median value of the net concavity of each main continuous pipe surface mesh in the local neighborhood is calculated as the robust concavity depth corresponding to the current main continuous pipe surface mesh; the maximum value of the robust concavity depth in each effective concavity region is determined as the maximum concavity depth of the corresponding effective concavity region, and the mesh position corresponding to the maximum concavity depth is determined as the maximum concavity position; Calculate the axial influence length and circumferential arc width of each effective depression region to obtain the circumferential angle width of each effective depression region, expressed as: in, For the first The axial influence length of each effective concave region; For the first One axial coordinate; For the first One effective concave area; This is for retrieving the maximum value. This is an operation to retrieve the minimum value; For the first The circumferential arc length and width of the effective concave region; For the first One circumferential coordinate; For the first The circumferential angle width of the effective concave region; For the design radius; The projected area of ​​each effective recessed region on the unfolded plane of the pipe surface is calculated and expressed as: in, For the first The projected area of ​​each effective recessed region on the unfolded plane of the pipe surface; For the first Number of grids in each effective concave region; The axial grid size of the effective recessed area; The circumferential grid size for the effective recessed area; Based on the location of the maximum indentation, the axial coordinates of the maximum indentation location are extracted from the continuous pipe surface mesh set. For nearby measured pipe points, generate the maximum concavity cross-section. Using the local center as the center and the design radius as the radius, establish a theoretical design circle, and superimpose the maximum concavity cross-section. Calculate the indentation of each measured pipe point within the maximum concavity cross-section relative to the theoretical design circle, expressed as: in, This refers to the amount of concavity. For the design radius; This represents the measured radial distance from the pipe point to the local center of the circle. The final output is the detection results for each effective depression area.