A non-contact method and system for measuring the volume of a roadbed test pit
By combining a line laser profile sensor with a rotating scanning device, and employing multi-level point cloud registration and differentiated downsampling, the problems of speed, stability, and traceability in roadbed test pit volume measurement were solved, achieving high-precision and high-efficiency test pit volume measurement.
Patent Information
- Application Number
- CN202611133674.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-29
- Publication Date
- 2026-11-24
Smart Images

Figure CN123154752A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of highway engineering technology, and more specifically, to a non-contact method and system for measuring the volume of roadbed test pits. Background Technology
[0002] The compaction degree of the subgrade and pavement structural layers is a key indicator for evaluating the filling quality of road engineering. Current compaction degree testing typically employs the test pit method, calculating density by measuring the mass of material excavated from the test pit and the pit's volume. While traditional methods such as sand filling and water filling are widely used, their procedures are cumbersome, time-consuming, and labor-intensive. Furthermore, they are affected by factors such as sand density calibration, sand filling techniques, pit wall roughness, wind force, and human readings, resulting in insufficient repeatability and traceability.
[0003] The feasibility study report points out that modern construction sites place higher demands on the automation and real-time performance of compaction testing. With the gradual development of automated excavation and rapid moisture content testing, the volume measurement of test pits has become a significant bottleneck restricting testing efficiency. Three-dimensional scanning technology can acquire the three-dimensional coordinates within the pit in a non-contact manner, generating a high-density point cloud, and possesses the advantages of digitally archiving the pit's shape, visually verifying it, and automatically calculating its volume.
[0004] However, roadbed test pits are characterized by their small diameter and depth, weak pit wall texture, repetitive and approximately centrally symmetrical geometric features, and complex outdoor lighting conditions. Taking a typical test pit with a diameter of approximately 200 mm and a depth of approximately 200 mm as an example, if the volume error is controlled within 0.5%, the distance measurement error needs to reach the order of approximately 0.19 mm; if the point spacing is 0.2 mm, the number of point clouds on the test pit surface can reach millions of points. This places high demands on scanning accuracy, coverage integrity, point cloud registration stability, and real-time processing efficiency.
[0005] Existing technologies, such as traditional sand-filling and water-filling methods, suffer from numerous operational steps, long testing times, significant human intervention, and difficulty in creating three-dimensional digital archives of the test pit. Handheld 3D scanners in small test pits exhibit issues such as unstable orientation, uncontrollable scanning paths, easy failure of feature tracking, insufficient on-site repeatability, and high equipment costs. Furthermore, a single top-down scan cannot simultaneously capture both the pit bottom and walls; excessively large incident angles on the pit walls can easily lead to increased measurement noise, localized gaps, or insufficient point cloud density.
[0006] Therefore, there is an urgent need to provide a method for measuring the volume of test pits on the construction site that can achieve rapid, stable, and traceable measurement by combining high-precision line laser profile measurement with a controllable rotary scanning mechanism. Summary of the Invention
[0007] The purpose of this invention is to address the problems of low automation, high susceptibility to manual operation and environmental factors, and time-consuming post-processing in existing handheld 3D scanning solutions, as well as the mechanical errors that affect measurement accuracy due to reliance on mechanism parameters in traditional line scanning solutions. This invention provides a non-contact method for measuring the volume of roadbed test pits.
[0008] This invention provides a non-contact method for measuring the volume of a test pit, comprising:
[0009] S1. A rotary scanning device equipped with a line laser profile sensor is placed above the pit to be tested, so that the measurement field of view of the line laser profile sensor covers at least a portion of the pit opening, pit wall and pit bottom.
[0010] S2. Control the rotary mechanism in the rotary scanning device to drive the line laser profile sensor to scan around at least one rotation axis, acquire line profile data at multiple scanning moments, and synchronously record the motion pose information corresponding to each line profile data; when a single scan cannot cover the test surface of the test pit, change the scanning orientation, height or translation position of the line laser profile sensor and perform supplementary scanning so that the point clouds obtained at different scanning positions have overlapping areas. Preferably, the rotary scanning device equipped with a line laser profile sensor is subjected to system calibration, which includes at least: intrinsic parameter calibration of the line laser profile sensor, laser plane calibration, extrinsic parameter calibration from the sensor coordinate system to the rotation axis coordinate system, extrinsic parameter calibration of the rotation axis relative to the device base coordinate system, and encoder zero-position calibration. Preferably, after calibration, the line contour points at each moment are transformed from the sensor coordinate system to the rotation axis coordinate system, and then transformed to the device coordinate system according to the rotation angle at that moment.
[0011] S3. Based on the calibration parameters of the line laser profile sensor and the swing pose information, the multi-frame line profile data is converted into multi-frame three-dimensional point clouds, and point cloud registration is performed to obtain the test pit point cloud under a unified coordinate system; the point cloud registration includes single-azimuth line laser point cloud merging, multi-azimuth coarse registration, and multi-scale fine registration. Preferably, the single-azimuth line laser point cloud merging and multi-azimuth coarse registration described in S3 specifically includes: synchronizing the line contour data, encoder angle, IMU attitude, and motor pose according to timestamps; calculating the coordinate transformation of each frame based on calibration extrinsic parameters, encoder angle, motor pose, and IMU attitude; merging multiple frames of two-dimensional line contours acquired by single-axis oscillation in the same azimuth into a three-dimensional surface point cloud; when using multi-azimuth scanning, obtaining three-dimensional surface point clouds in each azimuth according to the above process; establishing candidate registration pairs based on the expected overlapping areas of the three-dimensional surface point clouds in different azimuths; performing voxel downsampling on the point cloud and estimating the normal and curvature; and selecting points such as pit opening height abrupt change points, pit wall curvature change points, pit bottom and pit wall transition points, and perimeter... At least one of the edge ground points is used as a feature point; the feature descriptor of the feature point is calculated, and corresponding point pairs are obtained according to the descriptor similarity. False matches are eliminated based on the motion prior formed by the support rotation angle, lifting height, or orientation markers, and the Random Sample Consensus Algorithm (RANSAC) or robust pose estimation algorithm is used to obtain the coarse registration rigid body transformation between three-dimensional surface point clouds in different orientations; when the number of effective corresponding points or the inlier rate is lower than a preset threshold, the motion prior is used as the coarse registration rigid body transformation; or, artificial features with known geometric dimensions or codes are set in the scanning area with asymmetrical arrangement, and the artificial features are used as anchor points to eliminate ambiguity in matching approximately symmetrical structures; Preferably, the multi-scale fine registration in S3 specifically involves: setting multiple voxel scales from coarse to fine, and performing local fine registration on 3D surface point clouds in different orientations at each voxel scale. The first-level fine registration uses the rigid body transformation of the coarse registration as the initial value, and subsequent-level fine registrations use the result of the previous-level fine registration as the initial value. The local fine registration employs at least one of point-to-point iterative nearest point (ICP), point-to-surface (ICP), or normal distribution transformation (NDT). When the point cloud has color or reliable laser reflection intensity information, color ICP is used. During each level of fine registration iteration, corresponding points are re-established, and abnormal corresponding points are eliminated or weighted according to at least one of the corresponding point distance, normal angle, and curvature difference, until the pose increment or objective function change is less than a preset convergence threshold, or the preset maximum number of iterations is reached. Preferably, for obvious outliers in local point clouds, the system performs weight reduction or elimination based on overlap error, abrupt change in normal, point density anomaly, and laser reflection intensity anomaly, thereby reducing the impact of external interference on the registration results. Preferably, after registration is completed, the system performs statistical filtering and radius filtering on the point cloud under the unified coordinate system; the system outputs quality indicators including point cloud integrity rate, overlap registration error, point density and pit opening plane fitting residual; when the above indicators exceed the preset threshold, the system prompts for rescanning or re-scanning. Preferably, after determining the boundaries of the test pit, the system performs boundary-preserving downsampling on the point cloud: for key areas such as the pit walls, pit bottom, and pit opening edges, smaller voxel sizes are used or the original points are preserved; for flat ground and redundant areas, larger voxel sizes are used to reduce the computational load.
[0012] Step S3 employs a multi-level registration approach combining coarse and fine precision, along with noise removal and differentiated downsampling optimization, to achieve high-precision and robust fusion reconstruction of the test pit's line-scanned point cloud. This effectively overcomes the shortcomings of traditional line-laser scanning point cloud methods, such as splicing misalignment, accumulated bias, susceptibility to environmental interference, and large data redundancy. Furthermore, by combining ICP and NDT local fine registration with point cloud normal and surface smoothness constraints, and integrating multi-dimensional constraints to construct a pose graph for global optimization, it effectively corrects splicing errors between adjacent point clouds, eliminates accumulated bias, optimizes the surface morphology of the test pit walls and bottom, and avoids distortion and wrinkling problems.
[0013] In addition, a regionally differentiated downsampling strategy was adopted, which retains high-precision details in key morphological areas and simplifies data in flat and redundant areas. This significantly reduces the amount of computation while ensuring the accuracy of the test pit measurement, effectively balancing measurement accuracy and computational efficiency, and achieving high-precision, high-efficiency, and high-stability 3D point cloud reconstruction of the test pit.
[0014] S4. When the ground is flat, fit the reference plane at the pit opening based on the undisturbed ground point cloud around the test pit and determine the boundary of the test pit; when the ground is uneven, register the ground point cloud before excavation and the test pit point cloud after excavation to the same coordinate system, determine the boundary of the test pit based on the difference between the two, and use the surface surface corresponding to the ground point cloud before excavation within the boundary of the test pit as the reference surface. Preferably, S4 specifically includes: when the ground is level, extracting candidate ground points from the undisturbed ground point cloud around the test pit, using RANSAC plane fitting to obtain the pit opening reference plane, and determining the test pit boundary based on the height change, local gradient, curvature and spatial connectivity of the point cloud relative to the pit opening reference plane; When the ground is uneven, scans are performed before and after excavation to obtain ground point clouds before excavation and test pit point clouds after excavation. Common areas unaffected by excavation in the two scans are selected, and the two point clouds are registered to the same coordinate system according to the coarse and fine registration methods described in S3. A correspondence between the ground surface before and after excavation is established in the common parameter domain. The elevation difference or the signed distance along the local normal of the ground surface before excavation is calculated at the corresponding positions. Areas with differences greater than a preset difference threshold and which are interconnected are identified as the excavated areas. The outer contour of the excavated areas is used as the test pit boundary, and the ground surface corresponding to the ground point cloud before excavation within the test pit boundary is used as the reference surface. S5. Construct a closed triangular mesh using the pit reference plane or the reference surface and the test pit point cloud, and sum the volumes of the directed tetrahedrons formed by each triangular face of the closed triangular mesh to calculate the volume of the test pit. Preferably, the volume calculation in S5 specifically involves: triangulating the point cloud of the pit wall and bottom within the pit boundary to obtain the pit surface mesh; when the ground is flat, projecting the pit boundary onto the pit opening reference plane and generating a planar sealing mesh within the pit boundary; when the ground is uneven, triangulating the reference curved surface before excavation to generate a curved sealing mesh; connecting the corresponding boundaries of the pit surface mesh and the planar sealing mesh or curved sealing mesh to form a closed triangular mesh, and unifying the vertex order of each triangular face of the closed triangular mesh; summing the volumes of the directed tetrahedrons formed by each directed triangular face and the unified coordinate origin and taking the absolute value to obtain the pit volume.
[0015] Step S5 completes the point cloud clipping and closure based on the pit datum plane, and constructs a complete surface model of the test pit by combining various triangular mesh reconstruction methods. This effectively solves the problems of unclosed point cloud edges, discrete morphology, and low volume calculation accuracy. Compared with traditional simple cross-section estimation and two-dimensional projection estimation methods, this invention avoids the calculation deviation caused by irregular test pit morphology, and improves the accuracy and versatility of test pit volume measurement. At the same time, this calculation method has strong adaptability and stable calculation logic, and can match the point cloud data after high-precision registration and denoising in the early stage, realizing automated and high-precision quantitative calculation of test pit volume.
[0016] This invention also provides a non-contact test pit volume measurement system, applied to the aforementioned non-contact test pit volume measurement method. The system specifically includes: A line laser profile sensor, mounted on the rotary mechanism, is used to scan the test pit and acquire multiple frames of line profile data. A controller is used to control the movement of the rotary mechanism and synchronously record the swing pose information corresponding to each frame of line profile data. A data processing unit is used to process the line profile data and output measurement results, which include at least the test pit volume value, measurement time, point cloud file, reference surface parameters, pit opening boundary, registration error, point cloud integrity rate, volume calculation method, and inspection report. The data processing unit is also used to bind the measurement results with at least one of the following: construction pile number, inspection location, equipment number, and timestamp, to achieve digital traceability of the test pit inspection process.
[0017] Through the above technical solution, the present invention can achieve at least the following technical effects: 1. Compared with the sand filling method and the water filling method, this invention does not require filling medium, reduces manual operation and consumable use, avoids disturbing the original shape of the pit wall, and provides complete measurement indicators and digital archive information, realizing traceability and verification of the entire process of test pit testing. It effectively meets the standardized, digital and refined testing needs of engineering construction, and takes into account measurement accuracy, operation efficiency and engineering practicality.
[0018] 2. Rotary line scanning can obtain high-density cross-sectional data in close-range scenarios, adapting to the sub-millimeter measurement needs of small-sized roadbed test pits.
[0019] 3. This invention improves the spatial accuracy and surface smoothness of point cloud models through precise conversion from two-dimensional line contours to three-dimensional point clouds, multi-stage registration, noise reduction optimization, and differentiated downsampling processing. It can accurately define the measurement range of test pits and avoid random deviations caused by manually defining boundaries. Attached Figure Description
[0020] Figure 1 This is an overall flowchart of Embodiment 1 of the present invention.
[0021] Figure 2 This is a schematic diagram of the single-axis oscillating line sweeping operation of the rotary mechanism of the present invention.
[0022] Figure 3 This is a schematic diagram of the dual-axis oscillating line sweeping operation of the rotary mechanism of the present invention.
[0023] Figure 4 This is a schematic diagram of the single / dual-axis oscillation superimposed lifting / translation composite form of the rotary mechanism of the present invention for line scanning. Detailed Implementation
[0024] The accompanying drawings are for illustrative purposes only and should not be construed as limiting the invention. To better illustrate the following embodiments, some parts in the drawings may be omitted, enlarged, or reduced, and do not represent the actual product dimensions; it is understandable to those skilled in the art that some well-known structures and their descriptions may be omitted in the drawings.
[0025] Example 1 This embodiment provides a non-contact method for measuring the volume of roadbed test pits, such as... Figure 1 As shown, this invention is used to overcome the technical problems of low automation, high susceptibility to manual operation and environmental influence, time-consuming post-processing, and mechanical errors that affect measurement accuracy due to reliance on mechanism parameters in traditional line scanning schemes.
[0026] The methods specifically include: S1. A rotary scanning device equipped with a line laser profile sensor is positioned above the test pit, ensuring that the measurement field of view of the line laser profile sensor covers at least a portion of the pit's opening, walls, and bottom. The line laser profile sensor is fixed to the rotary mechanism, and the sensor's laser plane and the receiving imaging system are pre-calibrated for intrinsic and extrinsic parameters. The rotary mechanism can employ single-axis oscillation, dual-axis oscillation, or a combination of single-axis oscillation and lifting / translation / rotation. For typical cylindrical or near-cylindrical test pits, single-axis reciprocating oscillation is preferred, allowing the laser line to scan the pit's cross-section in a fan-shaped pattern. If necessary, the support or sensor can be rotated around the pit's center to compensate for wall obstruction and improve integrity.
[0027] Specifically, rotary mechanisms can employ single-axis oscillating line sweeping, such as... Figure 2 As shown, the laser line sweeps across the test pit cross-section in a fan-shaped scanning manner around the axis. A dual-axis oscillation method can also be used, such as... Figure 3 As shown, after the laser line performs a single-axis oscillation scan in each orientation, it can also rotate around another axis to several orientations to compensate for pit wall obstruction and improve integrity. If necessary, a composite form of single-axis oscillation or dual-axis oscillation combined with lifting / translation can also be used, such as... Figure 4 As shown, this is done to keep the distance between the sensor and the scanning point within the optimal range, thereby improving accuracy and completeness.
[0028] S2. Control the rotary mechanism in the rotary scanning device to drive the line laser profile sensor to scan around at least one rotation axis, acquire line profile data at multiple scanning moments, and synchronously record the motion pose information corresponding to each line profile data; when a single scan cannot cover the test surface of the test pit, change the scanning orientation, height or translation position of the line laser profile sensor and perform supplementary scanning so that the point clouds obtained at different scanning positions have overlapping areas. During the acquisition process, the controller outputs rotation commands according to preset angular velocity, angular step size, or point cloud density requirements, and simultaneously acquires the timestamp, swing angle, angular velocity, and attitude information of each line profile. The angular step size between adjacent line profiles can be adaptively set according to the target point spacing, for example, the rotation step size can be determined with a target spatial resolution of 0.2 mm, thereby achieving a balance between accuracy and acquisition time.
[0029] Specifically, the system calibration includes at least: intrinsic parameter calibration of the line laser profile sensor, laser plane calibration, extrinsic parameter calibration from the sensor coordinate system to the rotation axis coordinate system, extrinsic parameter calibration of the rotation axis relative to the device base coordinate system, and encoder zero-position calibration. After calibration, the line profile point collected at any time can be first converted from the sensor coordinate system to the rotation axis coordinate system, and then converted to the device coordinate system according to the rotation angle at that time.
[0030] Specifically, in order to reduce mechanical assembly errors, the system can perform a quick self-check before each on-site measurement: scan the known geometric references on the plane calibration plate, standard cylindrical container or bracket, estimate the rotation axis eccentricity, zero position deviation and scale error, and use them as prior constraints or initial correction terms for subsequent point cloud registration.
[0031] This invention effectively reduces systematic deviations caused by lens distortion, laser plane offset, rotary axis assembly, and encoder zero position by unifying the multi-coordinate system transformation relationship through multi-level complete calibration, establishes a stable coordinate transformation model, ensures the basic accuracy of the transformation from two-dimensional line contours to three-dimensional point clouds, and suppresses the cumulative error of volume calculation from the source.
[0032] S3. Point cloud registration includes three steps: single-azimuth line laser point cloud merging, multi-azimuth coarse registration, and multi-scale fine registration.
[0033] (1) Single-azimuth line laser point cloud merging: Synchronize line contour data, encoder angle, IMU attitude, and motor pose according to timestamps. Let the homogeneous coordinates of the j-th point in the k-th frame line contour in the sensor coordinate system S be . The homogeneous transformation from the sensor coordinate system S to the current local coordinate system B is: Then the homogeneous coordinates of the point after transformation are:
[0034] in, The result is obtained by multiplying the sensor calibration extrinsic parameters, encoder angle, motor pose, and IMU attitude correction. The converted line contour points from each frame at the same orientation are then merged to obtain the 3D surface point cloud for that orientation.
[0035] Where Pm represents the 3D surface point cloud of the m-th scanning orientation. When using multi-orientation scanning, following the steps described above, the point clouds of different orientations are line scanned and fused in their respective local coordinate systems. This step utilizes mechanism motion and calibration parameters to stitch together the 2D line laser point clouds acquired by single-axis oscillation into a 3D surface point cloud, without relying on surface texture or local geometric features.
[0036] (2) Multi-directional coarse registration: Candidate registration pairs are established based on the spatial adjacency relationship, scanning order, and expected overlapping area of the 3D surface point clouds in different azimuth directions. For example, the m-th azimuth and the (m+1)-th azimuth form a candidate registration pair point cloud. For the point cloud of each candidate registration pair, the following operations are performed: (a) Voxel downsampling is performed on the three-dimensional point cloud in each direction, and the normal and curvature are estimated. Points with abrupt changes in pit height, points with changes in pit wall curvature, transition points between pit bottom and pit wall, and surrounding ground points are preferentially selected as feature points. The system can also set up spheres, cylinders, and stepped blocks with known geometric dimensions or codes in an asymmetrical arrangement in the scanning area as artificial features, and use artificial features as anchor points.
[0037] (b) Calculate the FPFH, SHOT, deep learning descriptor, or local feature descriptor with equivalent discriminative power for the feature points, and obtain corresponding point pairs based on the minimum descriptor distance, nearest neighbor, or ratio test. For each pair of corresponding points (pi,qi), where pi is located at scan orientation m and qi is located at scan orientation n), utilize the motion prior transformation given by the bracket rotation angle, lifting height, and other mechanism poses. Transform point pi to the target coordinate system and calculate the reprojection error:
[0038] If the reprojection error exceeds a preset error threshold, the corresponding point pair is determined to be an incorrect match and is discarded. This constraint limits the attitude search to the range allowed by the mechanism's motion, and is used to exclude rotational mismatches caused by weak textures, weak geometry, and approximately centrosymmetric structures.
[0039] (c) Using RANSAC or other robust estimation methods, candidate rigid body transformations are obtained based on pairs of corresponding points. Let the set of pairs of corresponding points be C, the source point and the target point be pi and qj respectively, and the rotation matrix and translation vector of the rigid body transformation be R and t respectively. Then the coarse registration target can be expressed as:
[0040] Where ρ represents a truncated or other robust loss function. The system accepts the coarse registration result based on the number of RANSAC inliers, inlier rate, effective overlap rate of the point cloud, and the deviation of the candidate pose relative to the motion prior. When weak texture, weak geometry, or approximately symmetrical structure leads to the number of effective corresponding points or the inlier rate being lower than a preset threshold, the motion prior is directly used as the rigid body transformation for coarse registration; when setting artificial features, symmetric matching ambiguities are also eliminated based on the position, geometric size, or encoding consistency of the artificial features.
[0041] (3) Multi-scale fine registration: Multiple voxel scales are set from coarse to fine, and local fine registration is performed on the 3D surface point cloud in different orientations at each scale. The first level uses the coarse registration rigid body transformation as the initial value, and the subsequent levels use the fine registration result of the previous level as the initial value. Each level can use point-to-point ICP, point-to-surface ICP or NDT; when the point cloud has color or reliable laser reflection intensity information, colored ICP can also be used.
[0042] With the firstl Taking point-to-surface ICP as an example, let the set of corresponding points at the current scale be... M l If the normal vector of the target point qj is nj and the weight of the corresponding point is wij, then the optimization objective is:
[0043] Each iteration re-searches for corresponding points and removes or reduces the weight of abnormal corresponding points based on the distance to the corresponding point, the angle between the normals, the curvature difference, and the consistency of the boundary category. The six-degree-of-freedom pose is updated using the Gauss-Newton method, the Levenberg-Marquardt method, or an equivalent iterative method. When the pose increment and the change in the objective function are less than the preset convergence threshold, or when the preset maximum number of iterations is reached, the iteration at the current scale ends, and the result is passed to the next scale.
[0044] Specifically, based on coarse registration, this invention employs multi-stage point cloud registration to improve fusion accuracy. First, overlapping regions are extracted from adjacent frames or adjacent scan segments, and local fine registration is performed using iterative nearest point (ICP) matching, colored ICP, or normal distribution transformation (NDT). Second, the ordered point cloud structure formed by line scanning is combined to constrain the normal continuity and surface smoothness between adjacent lines. Third, a pose map is established for multi-frame point clouds, incorporating adjacent frame constraints, cross-directional overlap constraints, pit opening reference plane constraints, and motion prior constraints into the same optimization framework for global pose optimization.
[0045] Specifically, in weak geometry scenarios, the registration objective function can include a point-to-surface distance term, a normal consistency term, a motion prior penalty term, a pit opening plane consistency term, and a boundary continuity term. For obviously outlier local point clouds, the system performs weight reduction or removal based on overlap error, abrupt normal changes, point density anomalies, and laser reflection intensity anomalies to reduce the impact of soil particles, loose debris, and external interference on the registration results.
[0046] After registration, the system performs statistical filtering, radius filtering, curvature anomaly removal, and boundary preservation downsampling on the point cloud in a unified coordinate system. For critical areas affecting volume calculation, such as pit walls, pit bottoms, and pit mouth edges, smaller voxel sizes are used or original points are retained; for flat ground and redundant areas, larger voxel sizes are used to reduce computational load. The system simultaneously outputs quality indicators such as point cloud integrity rate, overlap registration error, point density, and pit mouth plane fitting residual. When the indicators exceed the threshold, a rescan or re-scan is prompted.
[0047] This step employs a multi-level fusion strategy, including motion prior coarse registration, multi-constraint global fine registration, and intelligent noise reduction and downsampling, effectively addressing the challenges of weak geometric features, symmetrical structures, easy misalignment during multi-directional stitching, and severe interference from on-site noise during test pit scanning. First, motion prior-based coarse stitching is achieved through encoder, IMU, motor pose, and calibration extrinsic parameters, providing high-precision initial pose for point cloud matching and effectively avoiding the problems of traditional registration getting stuck in local optima and matching failure in weak texture and near-symmetrical test pit scenarios. For multi-directional scanning scenarios, local line scan fusion combined with cross-directional coarse matching, along with geometric features such as the pit opening ground and continuous curved surfaces of the pit walls, significantly improves the stability and success rate of initial alignment of multi-view point clouds.
[0048] Based on this, outliers caused by soil debris and environmental interference on site are intelligently removed through multi-dimensional joint discrimination of overlap error, normal change, point density and reflection intensity, which improves the anti-interference ability and robustness of point cloud data under complex construction site conditions.
[0049] Finally, by combining multi-level filtering with a regionally differentiated downsampling strategy, high-precision details are preserved in the core volume calculation areas such as the pit bottom, pit walls, and pit mouth edges, while lightweight sampling is performed on flat and redundant areas, providing more standardized point cloud data for subsequent datum surface fitting, boundary extraction, and high-precision volume calculation.
[0050] S4. The roadbed test pit is an open structure. The volume calculation needs to determine the reference plane of the pit opening or the reference curved surface before excavation based on the flatness of the ground where the test pit is located, and determine the boundary of the test pit.
[0051] (1) When the ground is level, a candidate ground point set is extracted from the undisturbed ground point cloud around the pit opening, and the RANSAC is used to fit the pit opening reference plane. Three non-collinear points x1, x2, and x3 are randomly selected each time, and the unit normal vector n and intercept d of the candidate plane are calculated:
[0052]
[0053] For any point xi in the candidate point set, calculate its distance to the candidate plane:
[0054] Points where δi < τ are designated as interior points, where τ is a preset in-plane distance threshold. Random sampling is repeated a preset number of times, and the candidate plane with the largest number of interior points or the smallest weighted residual is selected. Least-squares fitting is then performed using all interior points to obtain the final pit reference plane. The main region of the test pit is identified based on the height abrupt change, local height gradient, curvature, and spatial connectivity of the point cloud relative to the reference plane, and the outer contour of the main region is determined as the test pit boundary.
[0055] (2) When the ground is uneven, a single plane is not used as the closure reference for the test pit. The system scans the ground once before excavation to obtain the ground point cloud P_pre before excavation; after excavation, it scans again to obtain the test pit point cloud P_post after excavation, which includes the test pit. From the two point clouds, a common area unaffected by excavation is selected, and the coordinate transformation T is obtained according to the multi-directional coarse registration and multi-scale fine registration methods described in S3, so that the transformed point cloud before excavation is:
[0056] Establish the spatial correspondence between the ground surface before and after excavation, using the same coordinate system as P_post. When the ground surface can be represented as a single-value elevation in the selected projection direction, obtain the ground surface elevation z_pre(u,v) before excavation and z_post(u,v) after excavation, and calculate: Δh(u,v) = z_pre(u,v) - z_post(u,v). When the ground surface cannot be represented as a single-value elevation, calculate the signed distance between the two ground surfaces along the local normal of the ground surface before excavation, and use the signed distance as Δh. Define the main area that satisfies Δh(u,v) > τ_h and is interconnected as the excavated area, where τ_h is the difference threshold set based on the point cloud ranging error and registration residual. Define the outer contour of the excavated area as the test pit boundary, and use the ground surface corresponding to the ground point cloud before excavation within the test pit boundary as the reference surface for closing the test pit. Changes smaller than the difference threshold are treated as measurement noise or undisturbed ground.
[0057] Specifically, for irregular or partially damaged pit openings, automatic boundary verification can be combined with rapid manual checks: the system displays the pit opening outline on the interface, allowing operators to make minor adjustments to boundary points. The corrected boundaries still participate in subsequent closed mesh construction and volume calculations, and the correction records are saved in the inspection archive.
[0058] In this invention, S4 employs either a pithead reference plane or a pre-excavation reference surface based on ground conditions. This not only suppresses scattered debris, minor unevenness, and loose fragments on flat surfaces using RANSAC, but also avoids systematic volume deviations caused by closing a single plane on sloping or undulating surfaces. The test pit boundary is determined by combining the differences in point clouds from previous and subsequent scans with height, gradient, curvature, and connectivity, reducing random errors caused by manual surface and boundary determination, and adapting to regular test pits, irregularly shaped test pits, and uneven ground scenarios.
[0059] This invention, S4, accurately constructs a reference surface for the test pit opening and automatically extracts the test pit contour boundary through robust plane fitting combined with multi-feature joint boundary recognition. This effectively solves the existing technical problems of open roadbed test pits lacking a unified closed reference, having high arbitrariness in manual surface selection, large boundary determination errors, and difficulty in accurately defining irregular pit openings. Furthermore, the fitting algorithm effectively removes interference from scattered debris, minor unevenness, and residual debris on the ground, ensuring that the fitted reference surface closely matches the actual original ground condition, effectively reducing the systematic deviations caused by traditional manual surface and boundary determination.
[0060] Meanwhile, this invention combines multi-dimensional features such as height abrupt change, curvature change, boundary gradient, and projected contour to automatically segment the test pit boundary. Compared with the single threshold recognition method, the boundary extraction accuracy is higher and the adaptability is stronger. It can be adapted to regular test pits as well as irregular test pits with local deformation and slight defects.
[0061] S5. Form a closed volume by triangulation, and then calculate the volume of the test pit by summing the volumes of directed tetrahedrons.
[0062] (1) When the ground is flat, the point cloud of the pit wall and the pit bottom within the boundary of the test pit is triangulated to obtain the test pit surface mesh; the test pit boundary is projected onto the pit mouth reference plane and constrained triangulation is performed within the projected boundary to obtain the planar sealing mesh; the upper and lower boundaries are resampled to establish a correspondence, and the corresponding boundaries of the test pit surface mesh and the planar sealing mesh are connected to form a closed triangular mesh.
[0063] (2) When the ground is uneven, the registered reference surface point cloud before excavation and the test pit point cloud after excavation are projected onto the common parameter domain. The same two-dimensional sampling nodes and triangular topology are established within the test pit boundary. The three-dimensional coordinates of each node are obtained by interpolation from the point clouds before and after excavation, forming an upper reference surface grid and a lower test pit surface grid. The corresponding boundary vertices of the upper and lower layers are connected along the test pit boundary to generate a sidewall sealing grid. The upper reference surface grid, the lower test pit surface grid, and the sidewall sealing grid constitute a closed triangular grid.
[0064] Specifically, the triangular mesh can be generated using constrained Delaunay triangulation, BPA, Poisson reconstruction, or methods with equivalent surface reconstruction capabilities. Before volume calculation, mesh holes, non-manifold edges, and repeated triangular faces are checked and repaired, and the vertex order of each triangular face is unified so that the normal of the triangular face faces towards the outside of the closed volume.
[0065] Suppose a closed triangular mesh contains N directed triangular faces, and the coordinate vectors of the three vertices of the k-th triangular face relative to the same origin are ak, bk, and ck, respectively. Then the volume V of the test pit is:
[0066] The above formula constructs a directed tetrahedron by connecting each directed triangular face to a unified coordinate origin. The directed volumes of the common parts within the closed mesh cancel each other out, and the sum of the volumes of all directed tetrahedrons is the volume of the removed portion; the absolute value is used to eliminate the positive and negative differences caused by the overall vertex rotation direction of the closed mesh.
[0067] The present invention S5 restores the three-dimensional morphology of the pit wall, pit bottom and ground surface before excavation by continuously closed triangular mesh, avoiding the loss of contour caused by direct calculation of discrete point cloud; it adopts a unified directional tetrahedral summation method under both flat and uneven ground conditions, which is suitable for any irregular test pit and avoids systematic volume deviation caused by using a single plane to seal the slope or undulating ground.
[0068] Example 2 This embodiment also provides a non-contact test pit volume measurement system, applied to the method of Embodiment 1. The system specifically includes: A line laser profile sensor, mounted on the rotary mechanism, is used to scan the test pit and acquire multiple frames of line profile data. A controller is used to control the movement of the rotary mechanism and synchronously record the swing pose information corresponding to each frame of line profile data. A data processing unit is used to process the line profile data and output measurement results, which include at least the test pit volume value, measurement time, point cloud file, reference surface parameters, pit opening boundary, registration error, point cloud integrity rate, volume calculation method, and inspection report. The data processing unit is also used to bind the measurement results with at least one of the following: construction pile number, inspection location, equipment number, and timestamp, to achieve digital traceability of the test pit inspection process.
[0069] In summary, the embodiments of the present invention have the following application prospects: This system is suitable for on-site test pit volume testing in various civil engineering projects. It has a wide application range and strong engineering practicality, primarily used for testing the compaction degree of roadbeds in highways, railways, and municipal roads; acceptance of compaction quality for backfilling of water conservancy dams, site slabs, and foundation pits; and verification of earthwork excavation and backfill volume in building construction sites. Furthermore, it can be extended to complex field conditions such as mine site leveling, stockpile pit repair, and slope excavation defect detection. It can adapt to complex on-site environments such as dust and lighting changes, and has strong anti-interference capabilities.
[0070] This system can be connected to a smart construction site platform to realize automatic uploading, batch statistics, quality trend analysis, and closed-loop management of test pit detection data. It replaces the traditional manual sampling inspection mode and realizes normalized, high-precision, and automated monitoring of roadbed backfill quality. It has good engineering promotion value and industrial application prospects.
[0071] The above embodiments are merely preferred embodiments of the present invention and do not constitute a limitation on the scope of protection of the present invention. Those skilled in the art should understand that various modifications, combinations, or substitutions can be made to the above embodiments without departing from the concept of the present invention, and all resulting technical solutions fall within the scope of protection claimed by the present invention.
Claims
1. A non-contact method for measuring the volume of a test pit, characterized in that, include: S1. A rotary scanning device equipped with a line laser profile sensor is placed above the pit to be tested, so that the measurement field of view of the line laser profile sensor covers at least a portion of the pit opening, pit wall and pit bottom. S2. Control the rotary mechanism in the rotary scanning device to drive the line laser profile sensor to scan around at least one rotation axis, acquire line profile data at multiple scanning moments, and synchronously record the motion pose information corresponding to each line profile data; when a single scan cannot cover the test surface of the test pit, change the scanning orientation, height or translation position of the line laser profile sensor and perform supplementary scanning so that the point clouds obtained at different scanning positions have overlapping areas. S3. Based on the calibration parameters of the line laser profile sensor and the swing pose information, the multi-frame line profile data is converted into multi-frame three-dimensional point clouds, and point cloud registration is performed to obtain the test pit point cloud under a unified coordinate system; the point cloud registration includes single-azimuth line laser point cloud merging, multi-azimuth coarse registration, and multi-scale fine registration. S4. When the ground is flat, fit the reference plane at the pit opening based on the undisturbed ground point cloud around the test pit and determine the boundary of the test pit; when the ground is uneven, register the ground point cloud before excavation and the test pit point cloud after excavation to the same coordinate system, determine the boundary of the test pit based on the difference between the two, and use the surface surface corresponding to the ground point cloud before excavation within the boundary of the test pit as the reference surface. S5. Construct a closed triangular mesh using the pit reference plane or the reference surface and the test pit point cloud, and sum the volumes of the directed tetrahedrons formed by each triangular face of the closed triangular mesh to calculate the volume of the test pit.
2. The method according to claim 1, characterized in that, Before S3, the rotary scanning device equipped with a wired laser contour sensor is calibrated systematically: The system calibration includes at least: intrinsic parameter calibration of the line laser profile sensor, laser plane calibration, extrinsic parameter calibration from the sensor coordinate system to the rotation axis coordinate system, extrinsic parameter calibration of the rotation axis relative to the device base coordinate system, and encoder zero-position calibration; After calibration, the line contour points at each moment are transformed from the sensor coordinate system to the rotation axis coordinate system, and then transformed to the device coordinate system according to the rotation angle at that moment.
3. The method according to claim 1, characterized in that, The single-azimuth line laser point cloud merging and multi-azimuth coarse registration described in S3 specifically include: The line contour data, encoder angle, IMU attitude and motor pose are synchronized according to the timestamp. The coordinate transformation of each frame is calculated based on the calibration external parameters, encoder angle, motor pose and IMU attitude. The multiple frames of two-dimensional line contours acquired by single-axis swing in the same orientation are merged into a three-dimensional surface point cloud. When using multi-directional scanning, the three-dimensional surface point cloud of each orientation is obtained according to the above process. Candidate registration pairs are established based on the expected overlapping areas of 3D surface point clouds in different orientations. The point clouds are downsampled using voxels and the normal and curvature are estimated. At least one of the following is selected as feature points: the height change point at the pit opening, the curvature change point of the pit wall, the transition point between the pit bottom and the pit wall, and the surrounding ground points. Calculate the feature descriptors of the feature points, obtain corresponding point pairs based on the descriptor similarity, eliminate incorrect matches based on the motion priors formed by the support rotation angle, lifting height or orientation markers, and use the Random Sample Consensus Algorithm (RANSAC) or robust pose estimation algorithm to obtain the coarse registration rigid body transformation between three-dimensional surface point clouds in different orientations. When the number of valid corresponding points or the interior point rate is lower than a preset threshold, the motion prior is used as a coarse registration rigid body transformation; or, artificial features with known geometric dimensions or codes are set in the scanning area with asymmetrical arrangement, and the artificial features are used as anchor points to eliminate ambiguity in the matching of approximately symmetrical structures.
4. The method according to claim 3, characterized in that, The multi-scale fine registration described in S3 specifically refers to: Multiple voxel scales are set from coarse to fine. Local fine registration of 3D surface point clouds in different orientations is performed at each voxel scale. The first level of fine registration uses the rigid body transformation of the coarse registration as the initial value, and the subsequent level of fine registration uses the result of the previous level of fine registration as the initial value. The local fine registration employs at least one of point-to-point iterative nearest point ICP, point-to-area ICP, or normal distribution transformation NDT; when the point cloud has color or reliable laser reflection intensity information, color ICP is used. During each level of fine registration iteration, corresponding points are re-established. Abnormal corresponding points are eliminated or weighted based on at least one of the corresponding point distance, normal angle, and curvature difference until the pose increment or objective function change is less than the preset convergence threshold, or the preset maximum number of iterations is reached.
5. The method according to claim 4, characterized in that: For local point clouds that are clearly outliers, the system reduces the weight or removes them based on overlap error, abrupt change in normal direction, point density anomaly, and laser reflection intensity anomaly.
6. The method according to claim 5, characterized in that, After registration is completed, the system performs statistical filtering and radius filtering on the point cloud under the unified coordinate system. The system outputs quality indicators including point cloud integrity rate, overlap registration error, point density and pit opening plane fitting residual. When the above indicators exceed the preset threshold, the system prompts for rescanning or re-scanning.
7. The method according to claim 6, characterized in that, After determining the boundaries of the test pit, the system performs boundary-preserving downsampling on the point cloud: For critical areas such as the pit walls, pit bottom, and pit mouth edges, use smaller voxel sizes or retain the original points; For flat terrain and redundant areas, larger voxel sizes are used to reduce computational load.
8. The method according to claim 1, characterized in that, S4 specifically includes: When the ground is flat, candidate ground points are extracted from the undisturbed ground point cloud around the test pit, and the pit opening reference plane is obtained by RANSAC plane fitting. The test pit boundary is determined according to the height change, local gradient, curvature and spatial connectivity of the point cloud relative to the pit opening reference plane. When the ground is uneven, scans are performed before and after excavation to obtain ground point clouds before excavation and test pit point clouds after excavation. Common areas unaffected by excavation in the two scans are selected, and the two point clouds are registered to the same coordinate system according to the coarse and fine registration methods described in S3. A correspondence between the ground surface before and after excavation is established in the common parameter domain. The elevation difference or the signed distance along the local normal of the ground surface before excavation is calculated at the corresponding positions. Areas with differences greater than a preset difference threshold and which are interconnected are identified as the excavated areas. The outer contour of the excavated areas is used as the test pit boundary, and the ground surface corresponding to the ground point cloud before excavation within the test pit boundary is used as the reference surface.
9. The method according to claim 1, characterized in that, The specific volume calculated using S5 is as follows: The point cloud of the pit wall and bottom within the boundary of the test pit is triangulated to obtain the surface mesh of the test pit; when the ground is flat, the boundary of the test pit is projected onto the reference plane at the pit opening and a planar sealing mesh is generated within the boundary of the test pit; when the ground is uneven, the reference surface before excavation is triangulated to generate a curved sealing mesh. Connect the corresponding boundaries of the test pit surface grid and the planar sealing grid or curved sealing grid to form a closed triangular grid, and unify the vertex order of each triangular face of the closed triangular grid; The volume of the test pit is obtained by summing the volumes of the directed tetrahedrons formed by each directed triangular face and the unified coordinate origin and taking the absolute value.
10. A non-contact test pit volume measurement system, characterized in that, The system applied to the non-contact test pit volume measurement method according to any one of claims 1-9 specifically includes: A line laser profile sensor is mounted on the rotary mechanism to scan the pit to be tested and acquire multiple frames of line profile data. The controller is used to control the movement of the rotary mechanism and synchronously record the swing pose information corresponding to the contour data of each frame. The data processing unit is used to process the line contour data and output measurement results, which include at least the test pit volume value, measurement time, point cloud file, reference surface parameters, pit opening boundary, registration error, point cloud integrity rate, volume calculation method, and inspection report. The data processing unit is also used to bind the measurement results with at least one of the following information: construction pile number, detection location, equipment number, and timestamp, so as to realize digital traceability of the test pit detection process.
