3D point cloud point-by-point microelement earthwork volume measurement method based on UAV aerial photography

The UAV is equipped with lidar and visible light camera to perform SLAM three-dimensional RGB reconstruction and point-by-point micro-element method measurement, which solves the problems of low efficiency and poor accuracy of earth and stone measurement, achieves efficient and accurate earth and stone measurement, and automatically identifies excavation area, the error is controlled within 5%.

CN117647791BActive Publication Date: 2024-09-17XIAN INNO AVIATION TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202311699093.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-12
Publication Date
2024-09-17
Estimated Expiration
2043-12-12

AI Technical Summary

Technical Problem

Existing earthwork volume measurement methods based on 3D point clouds have problems such as low calculation efficiency, poor accuracy, and inability to automatically identify excavation areas. In particular, during the civil construction process, the earthwork volume accounting efficiency is low, the collection cycle is long, and review is difficult. .

Method used

UAVs equipped with lidar and visible light cameras are used to perform SLAM three-dimensional RGB reconstruction. Through pre-processing and key area segmentation, the volume of earth and stone is directly measured using the point-by-point micro-element method, including downsampling, noise removal and concave feature segmentation, and automatic identification. Excavate the area and measure the amount of excavation and filling.

Benefits of technology

It achieves high measurement accuracy, short acquisition cycle, low difficulty of review, and measurement error within 5%. It can automatically identify the excavation area and improve measurement efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117647791B
    Figure CN117647791B
Patent Text Reader

Abstract

The present invention discloses a 3D point cloud point-by-point microelement earthwork volume measurement method based on unmanned aerial vehicle aerial photography. The construction site is scanned by a unmanned aerial vehicle equipped with a laser radar and a visible light camera. The collected laser and visual data are reconstructed in real-time 3D RGB through SLAM to obtain an accurate original landform point cloud model. Then the point cloud data is preprocessed, and then the key areas of the preprocessed point cloud model after excavation are segmented. Finally, according to the preprocessed and key area segmented point cloud data, the earthwork volume is directly measured by the point-by-point microelement method to obtain the excavation amount or the filling amount. The measurement method of the present invention has a short collection period, low verification difficulty and high measurement accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of application of unmanned aerial vehicle (UAV) aerial photography data, and in particular relates to a 3D point cloud point-by-point microelement earthwork volume measurement method based on unmanned aerial vehicle (UAV) aerial photography. Background Art

[0002] Earthwork measurement based on 3D point cloud is a method of calculating earthwork volume using point cloud data obtained by drone-mounted laser radar technology. By carrying aerial photography equipment such as cameras and laser radars, image information of the ground or objects can be obtained from the air. This technology makes it efficient and accurate to obtain terrain data. For example, during the construction of oil and gas pipeline projects, the amount of earthwork is large. Accurate measurement can budget the amount of construction earthwork, which is directly related to the project cost estimate and scheme selection. During the project settlement stage, construction units and project owners often have disputes over the calculation of earthwork volume in civil engineering projects, especially when the construction line is long and the project changes more. The traditional measurement mode has the disadvantages of long collection cycle, insufficient collection data, and difficulty in review, resulting in the project volume given in the design document often differing greatly from the actual amount, making it difficult to accurately calculate the project cost. Through the deep integration of drone technology and the oil and gas pipeline industry, the 3D point cloud obtained by drone aerial photography of the construction area is used to realize point-by-point microelement automatic measurement of earthwork volume, making the calculation of earthwork volume efficient and convenient.

[0003] The existing earthwork measurement solutions based on 3D point cloud are indirect method and direct method. The indirect method is to calculate the earthwork volume by reconstructing the surface generated by the three-dimensional point cloud. Errors will inevitably be introduced in the process of measuring the earthwork volume through the indirect method, which will be explained in detail later. The direct method is to directly use the laser point cloud to calculate the earthwork volume, which can avoid the errors caused by the indirect method.

[0004] The general process of the indirect method is as follows:

[0005] 1) Divide the area consisting of the maximum and minimum values ​​of x and the maximum and minimum values ​​of y into a grid;

[0006] 2) Calculate the volume of the cylinder corresponding to each grid;

[0007] 3) Add the volumes of all the cylinders to get the earthwork volume;

[0008] This method still reconstructs the point cloud twice, introducing unnecessary fitting errors in the process of triangulated mesh reconstruction, reducing the accuracy of the point cloud itself. Although the final result has only a 0.5% error with the measurement result of mainstream surveying and mapping software, these software also use triangulation to reconstruct the point cloud twice, simplifying the point cloud computing earthwork volume process and introducing new modeling errors, resulting in a certain error between the final result and the actual earthwork volume.

[0009] The reasons for the errors in the secondary reconstruction of laser point clouds (such as triangulation reconstruction) are as follows:

[0010] When the laser radar scans the construction area, due to the gaps in the soil pile on the ground, some laser points can pass through the gaps due to the multi-echo characteristics of the laser radar. Although this makes the point cloud surface uneven, this is the actual terrain. If it is reconstructed by meshing, this structure will be destroyed. Although the data is smoothed, the cost is an increase in error, and the laser radar's advantage in accuracy is lost to a certain extent. Therefore, the accuracy of the laser point cloud direct method has higher development potential than the indirect method measurement accuracy.

[0011] The direct method is to directly use laser point cloud to calculate the volume of earth and stone, which can avoid the errors caused by the indirect method. However, the existing point cloud direct measurement method has the disadvantages of low calculation efficiency, poor accuracy, and inability to automatically identify the excavation area. Therefore, it is necessary to develop a new measurement method that directly uses laser point cloud to calculate the volume of earth and stone. Summary of the invention

[0012] The purpose of the present invention is to overcome the deficiencies of the above-mentioned prior art and provide a 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography.

[0013] The purpose of the present invention is to provide a 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography, which directly measures the earthwork volume through laser point cloud to solve the problems of long collection cycle and great difficulty in review caused by low efficiency of earthwork volume calculation during civil construction.

[0014] In order to solve the technical problem, the technical solution of the present invention is: a 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography, comprising the following steps:

[0015] Step 1: Use a drone equipped with a laser radar and a visible light camera to scan the construction site, and perform SLAM 3D RGB reconstruction to obtain a point cloud model of the construction site; the construction site includes the construction site before excavation, the construction site after excavation, and the construction site after backfilling, and the point cloud model includes the point cloud model before excavation, the point cloud model after excavation, and the point cloud model after backfilling;

[0016] Step 2: Preprocess the point cloud data in the point cloud model, downsample and remove outlier noise points;

[0017] Step 3: Segment the key areas of the pre-processed excavation point cloud model, and directly segment them using the object morphology law;

[0018] Step 4: Based on the pre-processed and key area segmented point cloud data, the earthwork volume is directly measured using the point-by-point microelement method;

[0019] When the construction site includes the construction site before excavation and the construction site after excavation, the volume of earthwork is directly measured by point-by-point microelement method based on the comparative analysis of the point cloud data of the construction site before excavation and the construction site after excavation to obtain the excavation volume;

[0020] When the construction site includes the construction site after excavation and the construction site after backfilling, the volume of earth and stone is directly measured by point-by-point microelement method according to the comparative analysis of the point cloud data of the construction site after excavation and the construction site after backfilling, and the backfilling volume is obtained;

[0021] When the construction site is a post-excavation construction site, the reference surface is inferred through the segmentation results of the key area. Through the comparative analysis between the point cloud of the key area of ​​the point cloud model after excavation and the reference surface, the point-by-point differential element method is used to directly measure the volume of earth and stone to obtain the excavation volume.

[0022] Preferably, the SLAM 3D RGB reconstruction comprises the following steps:

[0023] Step 1-1: Calculate the IMU prior pose, calculate the relative motion of the IMU between two scans of the UAV-mounted laser radar, and obtain the IMU prior information for pose estimation through the Kalman filter;

[0024] Step 1-2: Update the LiDAR posterior pose, use the Kalman filter to update the IMU prior information to obtain the final LIO posterior state, and obtain the relative motion information between two LiDAR scan frames;

[0025] Step 1-3: Align visual features, synchronize the visual color information of the visible light camera to the laser point cloud through the camera and the lidar external parameters, and color the laser point cloud;

[0026] Step 1-4: Loop detection to eliminate accumulated errors;

[0027] Step 1-5: 3D reconstruction, superimposing the posterior state on the laser point cloud, and giving absolute position information to each laser scan combined with GPS information.

[0028] Preferably, the pretreatment comprises the following steps:

[0029] Step 2-1: Downsampling, using equal interval sampling method for downsampling;

[0030] Step 2-2: Noise removal: detect and remove outlier noise points using the average neighborhood algorithm.

[0031] Preferably, the point cloud set of the point cloud model is {p i |i∈N}, where N is the total number of points in the point cloud, p i is the i-th point, and the equal interval sampling method is used for downsampling. The interval is set to k, and the point cloud set after downsampling is expressed as where p i and p j There is the following relationship

[0032] p j =p K·i

[0033] Where K·i represents the interval K multiplied by the index i of the point cloud, and represents the point cloud set {p i |i∈N} is the K·i-th point.

[0034] Preferably, the step 2-2 comprises the following steps:

[0035] Step 2-2-1: Arrange the point cloud data in the point cloud model in ascending order of point cloud coordinate values, and use the KD-TREE method to sort the point cloud;

[0036] Step 2-2-2: Take any point in the point cloud data and search for the K nearest neighboring points of the point;

[0037] Step 2-2-3: Calculate the average distance between the point and its K nearest neighboring points, divide the sum of the distances between the point and its K nearest neighboring points by K to get the average distance, and compare the average distance value with the set threshold. The set threshold range is 0.5 to 1 meter. If it is greater than the set threshold, it is an outlier noise point and is removed.

[0038] Preferably, the step 3 is specifically:

[0039] Step 3-1: Downsampling, reducing the complexity of point cloud data, using equal interval sampling method for downsampling;

[0040] Step 3-2: Select a segmentation feature, and select a concave feature as the segmentation feature. The concave feature is that there is a large change in the gradient of adjacent points in the point cloud data and the point cloud in the tunnel is lower than the edge of the tunnel. The concave feature meets the condition that the Z-axis gradient change is greater than a first empirical threshold, and the range of the first empirical threshold is 0.5 to 0.6 times the Z-axis gradient change;

[0041] Step 3-3: Feature calculation, using a point-by-point traversal method to search for each point in the point cloud model using the concave feature in step 3-2, and retaining points whose Z-axis gradient change is greater than the first empirical threshold;

[0042] Step 3-4: Clustering, grouping points with similar features, traversing the concave feature points extracted in step 3-3, and classifying them into one category when the distance between the concave feature points is less than the second empirical threshold. The range of the second empirical threshold is 2.5 to 4.5 meters. For the clustered concave feature points, only the largest group is retained, which is recorded as the largest clustering area;

[0043] Step 3-5: Upsampling, compare the largest cluster area with the original point cloud model, find the area enclosed by the cluster and the area within the third empirical threshold as the final key area. The third empirical threshold range is 1 to 2 meters, and the edges of the segmented area are smoothed by plane fitting.

[0044] Preferably, the step 4 is specifically:

[0045] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0046] Step 4-1: Calculate the step length Δx, that is, the distance between two points. The calculation formula is as follows:

[0047]

[0048] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0049] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0050] Step 4-3: Calculate the reference plane. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. Take the point with the largest category and directly calculate the average altitude. That is, add up the altitude of each point and divide it by the number of points. The final average altitude is the reference plane:

[0051] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0052]

[0053] Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is the altitude of the lower surface of the cylinder in three-dimensional space. The upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface is the reference surface height.

[0054] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0055] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set pi is empty;

[0056] Step 4-7: Add up the volumes of all columns to get the final earthwork volume.

[0057] Preferably, when the construction site includes the construction site before excavation and the construction site after excavation, the earthwork volume measurement method is:

[0058] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the point cloud model of the construction site after excavation is used to obtain the key area through step 3. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0059] Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows:

[0060]

[0061] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0062] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0063] Step 4-3: Calculate the reference plane. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. The point is selected in the point cloud model of the construction site before excavation. Take the largest category point to directly calculate the average altitude, that is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference plane:

[0064] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0065]

[0066] Among them, z1 and z2 are the z-axis coordinates of the first and second points, that is, the altitude values ​​of the laser points. These two points are the coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is used as the altitude of the lower surface of the cylinder in three-dimensional space; the upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference surface height, which is obtained from the point cloud model before excavation;

[0067] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set pi Laser spot inside the central column;

[0068] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0069] Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the excavation volume.

[0070] Preferably, when the construction site includes the construction site after excavation and the construction site after backfilling, the earthwork volume measurement method is:

[0071] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is obtained by step 3 for the point cloud model of the construction site after excavation. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0072] Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows:

[0073]

[0074] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0075] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0076] Step 4-3: Calculate the reference surface. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. The point is selected in the point cloud model of the construction site after backfilling. Then take the largest category point to directly calculate the average altitude, that is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference surface:

[0077] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0078]

[0079] Among them, z1 and z2 are the z-axis coordinates of the first and second points, that is, the altitude values ​​of the laser points. These two points are coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the column, and the average height is used as the altitude of the lower surface of the column in three-dimensional space; the upper surface of the column is the same as the lower surface, and the altitude of the upper surface position is the reference surface height, which is obtained from the point cloud model after backfilling;

[0080] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0081] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0082] Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the fill volume.

[0083] Preferably, when the construction site is a post-excavation construction site, the earthwork volume measurement method is:

[0084] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is obtained by step 3 for the point cloud model of the construction site after excavation. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0085] Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows:

[0086]

[0087] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0088] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0089] Step 4-3: Calculate the reference plane, search for the point with the highest altitude in the key area, and use the altitude of this point as the reference plane, that is, the estimated ground plane;

[0090] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0091]

[0092] Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. These two points are coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is used as the altitude of the lower surface of the cylinder in three-dimensional space. The upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference plane height, which is the estimated ground plane height value.

[0093] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0094] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0095] Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the excavation volume.

[0096] Compared with the prior art, the advantages of the present invention are:

[0097] (1) The present invention uses an unmanned aerial vehicle equipped with a laser radar and a visible light camera to scan the construction site. The collected laser and visual data are reconstructed in real-time 3D RGB by SLAM to obtain an accurate original topographic point cloud model. The point cloud data is then preprocessed, and then the key areas of the preprocessed point cloud model after excavation are segmented. Finally, based on the preprocessed and key area segmented point cloud data, the point-by-point microelement method is used to directly measure the volume of earth and stone to obtain the excavation volume or fill volume. The measurement method of the present invention has a short collection period, low verification difficulty, and high measurement accuracy.

[0098] (2) The present invention removes the point cloud noise information to the maximum extent by preprocessing the noise information in the original topographic point cloud model, greatly reduces interference, and improves measurement accuracy;

[0099] (3) The present invention uses laser point cloud to directly measure the volume of earth and stone by point-by-point microelement method, without introducing redundant errors through quadratic surface reconstruction, and restores the real topography more accurately, so the accuracy is higher and the efficiency is higher. Through testing, the error between the earth and stone volume measured by this method and the actual volume is within 5%;

[0100] (4) The present invention can more accurately reflect the actual excavated earth and stone volume by comparing the point cloud data models twice, before excavation and after excavation or after excavation and backfilling;

[0101] (5) The present invention automatically extracts the point cloud model of the key area through the geomorphological features (i.e., the morphological laws of the objects) of the point cloud model of the excavation area, and can automatically identify the excavation area. There is no need to manually select the excavation area, thereby improving efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0102] Figure 1 , a flow chart of a method for measuring earthwork volume by point-by-point microelement of 3D point cloud based on drone aerial photography of the present invention;

[0103] Figure 2 , the present invention removes noise points before and after preprocessing the point cloud model generated by SLAM;

[0104] Figure 3 , the present invention performs key area segmentation on the pre-processed point cloud model;

[0105] Figure 4 , schematic diagram of the point cloud cylinder microelement of the present invention.

[0106] Figure 5 , a line graph showing comparative analysis results of earthwork volume in six regions using the method of the present invention and other methods. DETAILED DESCRIPTION

[0107] The specific implementation mode of the present invention is described below in conjunction with embodiments:

[0108] It should be noted that the structures, proportions, sizes, etc. shown in this specification are only used to match the contents disclosed in the specification so that people familiar with this technology can understand and read them, and are not used to limit the conditions under which the present invention can be implemented. Any structural modification, change in proportional relationship or adjustment of size should still fall within the scope of the technical content disclosed in the present invention without affecting the effects and purposes that can be achieved by the present invention.

[0109] Example 1

[0110] like Figure 1 As shown, the present invention discloses a 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography, comprising the following steps:

[0111] Step 1: Use a drone equipped with a laser radar and a visible light camera to scan the construction site, and perform SLAM 3D RGB reconstruction to obtain a point cloud model of the construction site; the construction site includes the construction site before excavation, the construction site after excavation, and the construction site after backfilling, and the point cloud model includes the point cloud model before excavation, the point cloud model after excavation, and the point cloud model after backfilling;

[0112] Step 2: Preprocess the point cloud data in the point cloud model, downsample and remove outlier noise points;

[0113] Step 3: Segment the key areas of the pre-processed excavation point cloud model, and directly segment them using the object morphology law;

[0114] Step 4: Based on the pre-processed and key area segmented point cloud data, the earthwork volume is directly measured using the point-by-point microelement method;

[0115] When the construction site includes the construction site before excavation and the construction site after excavation, the volume of earthwork is directly measured by point-by-point microelement method based on the comparative analysis of the point cloud data of the construction site before excavation and the construction site after excavation to obtain the excavation volume;

[0116] When the construction site includes the construction site after excavation and the construction site after backfilling, the volume of earth and stone is directly measured by point-by-point microelement method according to the comparative analysis of the point cloud data of the construction site after excavation and the construction site after backfilling, and the backfilling volume is obtained;

[0117] When the construction site is a post-excavation construction site, the reference surface is inferred through the segmentation results of the key area. Through the comparative analysis between the point cloud of the key area of ​​the point cloud model after excavation and the reference surface, the point-by-point differential element method is used to directly measure the volume of earth and stone to obtain the excavation volume.

[0118] Example 2

[0119] Preferably, the SLAM 3D RGB reconstruction comprises the following steps:

[0120] Step 1-1: Calculate the IMU prior pose, calculate the relative motion of the IMU between two scans of the UAV-mounted laser radar, and obtain the IMU prior information for pose estimation through the Kalman filter;

[0121] Step 1-2: Update the LiDAR posterior pose, use the Kalman filter to update the IMU prior information to obtain the final LIO posterior state, and obtain the relative motion information between two LiDAR scan frames;

[0122] Step 1-3: Align visual features, synchronize the visual color information of the visible light camera to the laser point cloud through the camera and the lidar external parameters, and color the laser point cloud;

[0123] Step 1-4: Loop detection to eliminate accumulated errors;

[0124] Step 1-5: 3D reconstruction, superimposing the posterior state on the laser point cloud, and giving absolute position information to each laser scan combined with GPS information.

[0125] Example 3

[0126] Preferably, the pretreatment comprises the following steps:

[0127] Step 2-1: Downsampling, using equal interval sampling method for downsampling;

[0128] Step 2-2: Noise removal: detect and remove outlier noise points using the average neighborhood algorithm.

[0129] Preferably, the point cloud set of the point cloud model is {p i |i∈N}, where N is the total number of points in the point cloud, p i is the i-th point, and the equal interval sampling method is used for downsampling. The interval is set to k, and the point cloud set after downsampling is expressed as where p i and p j There is the following relationship

[0130] p j =p K·i

[0131] Where K·i represents the interval K multiplied by the index i of the point cloud, and represents the point cloud set {p i |i∈N} is the K·i-th point.

[0132] Preferably, the step 2-2 comprises the following steps:

[0133] Step 2-2-1: Arrange the point cloud data in the point cloud model in ascending order of point cloud coordinate values, and use the KD-TREE method to sort the point cloud;

[0134] Step 2-2-2: Take any point in the point cloud data and search for the K nearest neighboring points of the point;

[0135] Step 2-2-3: Calculate the average distance between the point and its K nearest neighboring points, divide the sum of the distances between the point and its K nearest neighboring points by K to get the average distance, and compare the average distance value with the set threshold. The set threshold range is 0.5 to 1 meter. If it is greater than the set threshold, it is an outlier noise point and is removed.

[0136] Example 4

[0137] Preferably, the step 3 is specifically:

[0138] Step 3-1: Downsampling, reducing the complexity of point cloud data, using equal interval sampling method for downsampling;

[0139] Step 3-2: Select a segmentation feature, and select a concave feature as the segmentation feature. The concave feature is that there is a large change in the gradient of adjacent points in the point cloud data and the point cloud in the tunnel is lower than the edge of the tunnel. The concave feature meets the condition that the Z-axis gradient change is greater than a first empirical threshold, and the range of the first empirical threshold is 0.5 to 0.6 times the Z-axis gradient change;

[0140] Step 3-3: Feature calculation, using a point-by-point traversal method to search for each point in the point cloud model using the concave feature in step 3-2, and retaining points whose Z-axis gradient change is greater than the first empirical threshold;

[0141] Step 3-4: Clustering, grouping points with similar features, traversing the concave feature points extracted in step 3-3, and classifying them into one category when the distance between the concave feature points is less than the second empirical threshold. The range of the second empirical threshold is 2.5 to 4.5 meters. For the clustered concave feature points, only the largest group is retained, which is recorded as the largest clustering area;

[0142] Step 3-5: Upsampling, compare the largest cluster area with the original point cloud model, find the area enclosed by the cluster and the area within the third empirical threshold as the final key area. The third empirical threshold range is 1 to 2 meters, and the edges of the segmented area are smoothed by plane fitting.

[0143] Example 5

[0144] Preferably, the step 4 is specifically:

[0145] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0146] Step 4-1: Calculate the step length Δx, that is, the distance between two points. The calculation formula is as follows:

[0147]

[0148] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0149] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0150] Step 4-3: Calculate the reference plane. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. Take the point with the largest category and directly calculate the average altitude. That is, add up the altitude of each point and divide it by the number of points. The final average altitude is the reference plane:

[0151] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0152]

[0153] Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is the altitude of the lower surface of the cylinder in three-dimensional space. The upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface is the reference surface height.

[0154] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0155] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0156] Step 4-7: Add up the volumes of all columns to get the final earthwork volume.

[0157] Preferably, when the construction site includes the construction site before excavation and the construction site after excavation, the earthwork volume measurement method is:

[0158] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the point cloud model of the construction site after excavation is used to obtain the key area through step 3. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0159] Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows:

[0160] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0161] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0162] Step 4-3: Calculate the reference plane. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. The point is selected in the point cloud model of the construction site before excavation. Take the largest category point to directly calculate the average altitude, that is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference plane:

[0163] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0164]

[0165] Among them, z1 and z2 are the z-axis coordinates of the first and second points, that is, the altitude values ​​of the laser points. These two points are the coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is used as the altitude of the lower surface of the cylinder in three-dimensional space; the upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference surface height, which is obtained from the point cloud model before excavation;

[0166] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0167] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0168] Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the excavation volume.

[0169] Preferably, when the construction site includes the construction site after excavation and the construction site after backfilling, the earthwork volume measurement method is:

[0170] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is obtained by step 3 for the point cloud model of the construction site after excavation. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0171] Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows:

[0172] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0173] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0174] Step 4-3: Calculate the reference surface. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. The point is selected in the point cloud model of the construction site after backfilling. Then take the largest category point to directly calculate the average altitude, that is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference surface:

[0175] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0176]

[0177] Among them, z1 and z2 are the z-axis coordinates of the first and second points, that is, the altitude values ​​of the laser points. These two points are coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the column, and the average height is used as the altitude of the lower surface of the column in three-dimensional space; the upper surface of the column is the same as the lower surface, and the altitude of the upper surface position is the reference surface height, which is obtained from the point cloud model after backfilling;

[0178] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0179] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0180] Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the fill volume.

[0181] Preferably, when the construction site is a post-excavation construction site, the earthwork volume measurement method is:

[0182] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is obtained by step 3 for the point cloud model of the construction site after excavation. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents;

[0183] Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows:

[0184] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2;

[0185] Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area;

[0186] Step 4-3: Calculate the reference plane, search for the point with the highest altitude in the key area, and use the altitude of this point as the reference plane, that is, the estimated ground plane;

[0187] Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows:

[0188]

[0189] Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. These two points are coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is used as the altitude of the lower surface of the cylinder in three-dimensional space. The upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference plane height, which is the estimated ground plane height value.

[0190] Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column;

[0191] Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty;

[0192] Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the excavation volume.

[0193] Example 6

[0194] The complete steps of the measuring method of the present invention are as follows:

[0195] Step 1: Calculate the earthwork volume before, after, and after backfilling at the construction site. First, obtain a point cloud model of the construction site. Use a drone equipped with Livox and a visible light camera to scan the construction site and perform SLAM 3D RGB reconstruction to obtain a point cloud model.

[0196] The SLAM (Simultaneous Localization and Mapping) refers to a subject equipped with specific sensors estimating its own movement and building an environmental map during movement without prior knowledge of the environment.

[0197] The SLAM reconstruction method of the present invention adopts the algorithm of reference [Liu Xiangzhen. Research on SLAM outdoor scene positioning and reconstruction technology based on visual laser fusion inertial navigation [D]. Yan'an University, 2023.], and the general algorithm flow can be summarized into the following five steps:

[0198] 1) Calculate the IMU prior pose (pose is the position and attitude of the drone). Calculate the relative motion of the IMU between two scans of the drone-mounted laser radar (this belongs to the prior art and will not be described in detail in this invention), and obtain the prior information of pose estimation through the Kalman filter;

[0199] 2) The laser radar posterior pose is updated, and the IMU prior information is updated using the Kalman filter to obtain the final posterior state of the LIO to obtain the relative motion information between two laser radar scanning frames (which belongs to the prior art and will not be described in detail in this invention);

[0200] 3) Visual feature alignment: synchronize the visual color information of the visible light camera to the laser point cloud through the camera and the lidar external parameters to color the laser point cloud;

[0201] 4) Loop detection: The purpose of loop detection is to determine whether the previous position has been reached. Due to the existence of errors, the odometer estimation result often does not keep up with the previous position after reaching it, so loop detection is necessary. Through loop detection, when the previous position is reached at a certain moment, this information will be fed back to the back end, and the back end will pull the current position of the odometer to the previous position, thereby eliminating the accumulated error to a certain extent.

[0202] 5) 3D reconstruction, superimposing the a posteriori state on the laser point cloud, giving absolute position information to each laser scan combined with GPS information. GPS only aligns the local state quantity to the global coordinate system.

[0203] Step 2: Preprocessing: In order to increase the processing speed, it is necessary to first downsample the point cloud model and eliminate noise and clutter in the data to improve the processing efficiency and accuracy of the algorithm.

[0204] Step 2-1: Note that the point cloud set is {p i |i∈N}, where N is the total number of points in the point cloud, p i is the i-th point, and the equal interval sampling method is used for downsampling. The interval is set to k, then the downsampled point cloud set can be expressed as where p i and p j There is the following relationship

[0205] p j =p K·i

[0206] Where K·i represents the interval K multiplied by the index i of the point cloud, that is, the point cloud set {p i |i∈N} is the K·i-th point.

[0207] In the measurement of earthwork volume, considering that high-altitude noise will affect subsequent measurements, it is necessary to eliminate noise points, such as high-voltage cables, birds, etc.

[0208] Step 2-2: Detect outlier noise points using the average neighborhood algorithm.

[0209] The average neighborhood algorithm is a distance-based outlier detection method. It determines whether the average distance between a point in the point cloud data and its neighboring points exceeds a fixed value. The specific steps are as follows:

[0210] 1) Arrange the point cloud in ascending order according to the point cloud coordinate value, and use the KD-TREE method to sort the point cloud;

[0211] 2) Take any point in the 3D point cloud data and search for the K nearest neighbor points of the point, that is, the K points closest to the point;

[0212] 3) Calculate the average distance between the point and its K nearest neighbors. Here, the Euclidean distance is used to calculate the average distance, that is, the sum of the distances between any point and its K nearest neighbors is divided by K. The average distance value is compared with the set threshold. If it is greater than the set threshold, it is an outlier point. The threshold is usually between 0.5 and 1 meter.

[0213] like Figure 2 As shown, Figure 2 (a) is the point cloud before noise removal, and (b) is the point cloud after noise removal.

[0214] Step 3: The area that needs earthwork measurement is usually an irregular area. It is necessary to segment the key area and detect the features related to the morphological laws of the excavation area in the ground point cloud. These features may include elevation, slope, curvature, etc. By calculating these features, the morphological laws of the terrain can be better described, such as the morphology of trenches and riverbeds.

[0215] According to the results of morphological rules, the point cloud data is segmented to separate the channel area from the non-channel area. Clustering, surface fitting analysis and other methods will be used to optimize the smoothness of the edge after segmentation. The main process includes:

[0216] 1) Downsampling, reducing the complexity of the point cloud, using the equal-interval sampling method mentioned above;

[0217] 2) Select segmentation features. For the tunnel area where the earthwork volume needs to be calculated, the main feature is that the gradient of adjacent points in the point cloud has a large change and the point cloud in the tunnel is lower than the edge of the tunnel. This feature is recorded as a concave feature. The concave feature meets the requirement that the Z-axis gradient change is greater than a certain threshold. The threshold is an empirical value and is adjusted according to the actual situation. Usually, the gradient threshold of a one-meter point can be set to 0.5 meters;

[0218] 3) Feature calculation: Use the point-by-point traversal method to search each point in the point cloud model using the features in 2), and retain the points whose Z-axis gradient change is greater than the threshold;

[0219] 4) Clustering: group points with similar features, traverse the concave feature points extracted in 3), and classify them into one category when the distance between concave feature points is less than a certain distance threshold. The threshold is an empirical value and can be flexibly adjusted according to the actual scene task. For the channel scene, 3 meters can usually be used. Only the largest group is retained for the clustered concave feature points, and the largest cluster area is recorded as the key area;

[0220] 5) Upsampling, compare the largest cluster area with the original point cloud model, find the area surrounded by the cluster and the area within a certain threshold range as the final key area. The edge of the segmented area is smoothed by plane fitting. For the specific fitting method, please refer to the reference [Zeng Qihong, Mao Jianhua, Li Xianhua, et al. Lidar point cloud plane fitting filtering algorithm [J]. Journal of Wuhan University: Information Science Edition, 2008 (1): 4. DOI: CNKI: SUN: WHCH. 0.2008-01-006.], the segmentation effect is shown in the figure Figure 3 shown.

[0221] Step 4: Calculation of earthwork volume; Calculate the earthwork volume based on the point cloud data of preprocessing and key area segmentation. According to the comparative analysis of the data before and after the excavation of the trench area, the excavation volume of the trench area can be obtained through the earthwork volume detection algorithm. According to the comparative analysis of the data after the excavation and backfilling of the trench area, the backfill volume of the trench area can be obtained. When there is only data after excavation, the reference plane is inferred through the segmentation results, and the automatic detection of the earthwork volume of the trench area is achieved through comparative analysis between the points and the reference plane. The present invention uses laser point clouds to directly measure the earthwork volume through the point-by-point microelement method, without introducing redundant errors through quadratic surface reconstruction, and restores the real topography more accurately, so the accuracy is higher.

[0222] The present invention uses laser point cloud to directly measure the earthwork volume through point-by-point microelement method. Through the cylinder microelement strategy, the rectangular width or step length Δx of the upper and lower surfaces of the cylinder is flexibly selected according to the point cloud density. Each cylinder covers at least one point, such as Figure 4 The figure shows a schematic diagram of a point cloud cylinder microelement. By accumulating and summing each cylinder, when the point cloud is dense enough and there are enough cylinders, the volume of all cylinders can fit the volume of the excavation area (key area). The microelement cylinder is divided, and the bottom position of the microelement cylinder is the position of the point, and the top position is the reference plane position. When only the post-excavation point cloud model is used, the reference plane is the ground plane; when the pre-excavation and post-excavation models are used, the reference plane is searched from the pre-excavation or post-backfill model.

[0223] Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ). The excavation area can be represented by a laser point set {p i, i∈(0,n)}, then the overall process of step 4 is as follows:

[0224] 1) Calculate the step length Δx, that is, the distance between two points, as follows:

[0225]

[0226] Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same goes for y1 and y2.

[0227] 2) A rectangle is obtained with the midpoint of the two points in 1) as the center and Δx as the side length, and the laser points in the rectangular coverage area are obtained;

[0228] 3) Calculate the reference plane. The points within a certain threshold range around the two points in 1) are clustered by altitude. The maximum category point is taken to directly calculate the average altitude. That is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference plane.

[0229] 4) Calculate the average height of the laser points in 2) The calculation is as follows:

[0230]

[0231] Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. The rectangular position in 2) is taken as the lower surface of the cylinder, and the average height is taken as the altitude of the lower surface of the cylinder in three-dimensional space; the upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference surface height.

[0232] 5) Calculate the volume of the cylinder in 4) and discard the point set p i Laser spot inside the central column;

[0233] 6) Repeat 1), 2), 3), 4), 5) until the laser point set p i is empty;

[0234] 7) Add up the volumes of all columns to get the final earthwork volume.

[0235] Taking the earthwork volume measurement of the trench excavation result as an example, the mainstream professional surveying and mapping software on the market was used for comparative testing with the method of the present invention, including: DJI Zhitu and Global Mapper Pro. DJI Zhitu uses a direct method to measure the earthwork volume of point clouds, and Global Mapper Pro uses triangular mesh reconstruction to indirectly measure the earthwork volume through point clouds. The measurement results of some data are shown in the following table (unit: cubic meter).

[0236] Table 1

[0237]

[0238] Table 1 shows that 6 groups of trenches with relatively standardized excavation were selected for testing. Geometry is the earthwork volume result geometrically calculated based on the on-site measurement results as the actual value for comparison. Other is the result calculated by oblique photography modeling. Compared with the method based on point cloud, it can be seen that the comprehensive error of the calculation result using laser point cloud is smaller than that based on oblique photography.

[0239] Taking Geometry as the true value, this method is compared with other methods to calculate the error index of each method. Absolute Error and relative Error are used as comparison indicators, see Table 2:

[0240] Table 2

[0241]

[0242] From the data in Table 2, it can be observed that this method performs relatively well in terms of absolute error and relative error. The error between the volume of earthwork measured by the method of the present invention and the actual volume is mostly controlled within 5%, which is better than other solutions. The absolute error represents the difference between the calculated result and the actual value. The smaller the value, the closer the calculated result is to the true value. In the example data, the relative error of this method in regions 1, 5 and 6 is significantly lower than that of other methods, indicating that this method is superior in terms of the relative accuracy of the calculated results; the absolute error in regions 5 and 6 is significantly smaller than that of other methods, indicating that the calculated results of this method are closer to the true value.

[0243] like Figure 5 As shown in the figure, a line graph of comparative analysis results of earthwork volume in six regions between the method of the present invention and other methods is shown. The graph includes the real result GT, i.e., the Geometry result in the table. From these groups of data, it can be seen that the method of the present invention is very stable in accuracy and has extremely low error control. The direct earthwork volume measurement algorithm based on point cloud is closest to the real result in accuracy.

[0244] The working principle of the present invention is as follows:

[0245] like Figure 1As shown, the present invention discloses a 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography. First, laser data is acquired by using a drone equipped with a laser radar and an RGB camera, and SLAM three-dimensional RGB reconstruction is performed; then the model is preprocessed, mainly including data downsampling and noise reduction operations; after the preprocessing is completed, the key areas of the point cloud model after excavation are segmented, and when there are multiple periods of three-dimensional point cloud data (point cloud model before excavation, point cloud model after excavation, or point cloud model after backfilling) input, a comparison method will be automatically called for local comparison, the excavation area will be acquired, and the earthwork volume will be directly measured using the point-by-point microelement method; when only one point cloud data (point cloud model after excavation) is input, the reference surface will be automatically estimated, and the volume between the reference surface and the point-by-point microelement method will be directly measured.

[0246] The present invention uses an unmanned aerial vehicle equipped with a laser radar and a visible light camera to scan the construction site, and the collected laser and visual data are reconstructed through real-time 3D RGB SLAM to obtain an accurate original topographic point cloud model, then the point cloud data is preprocessed, and then the key areas of the preprocessed point cloud model after excavation are segmented, and finally, based on the preprocessed and key area segmented point cloud data, the point-by-point infinitesimal method is used to directly measure the earthwork volume to obtain the excavation volume or the filling volume. The measurement method of the present invention has a short collection period, low verification difficulty, and high measurement accuracy.

[0247] The present invention removes the point cloud noise information to the maximum extent by preprocessing the noise information in the original topographic point cloud model, greatly reduces interference and improves measurement accuracy.

[0248] The present invention uses laser point cloud to directly measure the volume of earth and stone by point-by-point microelement method, without introducing redundant errors through quadratic surface reconstruction, and restores the real topography more accurately, so the accuracy is higher and the efficiency is higher. Through testing, the error between the earth and stone volume measured by this method and the actual volume is within 5%.

[0249] The present invention can more accurately reflect the actual excavated earth and stone volume by comparing the point cloud data models twice, before excavation and after excavation or after excavation and backfilling.

[0250] The present invention automatically extracts the point cloud model of the key area through the geomorphic features (i.e., the morphological laws of the objects) of the point cloud model of the excavation area, and can automatically identify the excavation area without the need for manual selection of the excavation area, thereby improving efficiency.

[0251] The preferred embodiments of the present invention are described in detail above, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.

[0252] Many other changes and modifications may be made without departing from the concept and scope of the present invention.It should be understood that the present invention is not limited to the specific embodiments, and the scope of the present invention is defined by the appended claims.

Claims

1. A 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography, characterized in that: The following steps are involved: Step 1: Use a drone equipped with a laser radar and a visible light camera to scan the construction site, and perform SLAM 3D RGB reconstruction to obtain a point cloud model of the construction site; the construction site includes the construction site before excavation, the construction site after excavation, and the construction site after backfilling, and the point cloud model includes the point cloud model before excavation, the point cloud model after excavation, and the point cloud model after backfilling; Step 2: Preprocess the point cloud data in the point cloud model, downsample and remove outlier noise points; Step 3: Segment the key areas of the pre-processed excavation point cloud model, and directly segment them using the object morphology law; Step 4: Based on the pre-processed and key area segmented point cloud data, the earthwork volume is directly measured using the point-by-point microelement method; When the construction site includes the construction site before excavation and the construction site after excavation, the volume of earthwork is directly measured by point-by-point microelement method based on the comparative analysis of the point cloud data of the construction site before excavation and the construction site after excavation to obtain the excavation volume; When the construction site includes the construction site after excavation and the construction site after backfilling, the volume of earth and stone is directly measured by point-by-point microelement method according to the comparative analysis of the point cloud data of the construction site after excavation and the construction site after backfilling, and the backfilling volume is obtained; When the construction site is a post-excavation construction site, the reference surface is inferred through the segmentation results of the key area. Through the comparative analysis between the point cloud of the key area of ​​the post-excavation point cloud model and the reference surface, the earthwork volume is directly measured using the point-by-point differential element method to obtain the excavation volume. The step 4 is specifically as follows: Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is represented by a laser point set of n points {p i ,i∈(0,n)} represents; Step 4-1: Calculate the step length Δx, that is, the distance between two points. The calculation formula is as follows: Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2; Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area; Step 4-3: Calculate the reference plane. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. Take the point with the largest category and directly calculate the average altitude. That is, add up the altitude of each point and divide it by the number of points. The final average altitude is the reference plane: Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows: Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is the altitude of the lower surface of the cylinder in three-dimensional space. The upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface is the reference surface height. Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column; Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty; Step 4-7: Add up the volumes of all columns to get the final earthwork volume.

2. The 3D point cloud point-by-point microelement earthwork volume measurement method based on drone aerial photography according to claim 1 is characterized in that: The SLAM 3D RGB reconstruction includes the following steps: Step 1-1: Calculate the IMU prior pose, calculate the relative motion of the IMU between two scans of the UAV-mounted laser radar, and obtain the IMU prior information for pose estimation through the Kalman filter; Step 1-2: Update the LiDAR posterior pose, use the Kalman filter to update the IMU prior information to obtain the final LIO posterior state, and obtain the relative motion information between the two LiDAR scanning frames; Step 1-3: Align visual features, synchronize the visual color information of the visible light camera to the laser point cloud through the camera and the lidar external parameters, and color the laser point cloud; Step 1-4: Loop detection to eliminate accumulated errors; Step 1-5: 3D reconstruction, superimposing the posterior state on the laser point cloud, and giving absolute position information to each laser scan combined with GPS information.

3. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 1 is characterized in that: The pre-processing comprises the following steps: Step 2-1: Downsampling, using equal interval sampling method for downsampling; Step 2-2: Noise removal: detect and remove outlier noise points using the average neighborhood algorithm.

4. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 3 is characterized in that: The point cloud set of the point cloud model is {p i |i∈N}, where N is the total number of points in the point cloud, p i is the i-th point, and the equal interval sampling method is used for downsampling. The interval is set to k, and the point cloud set after downsampling is expressed as where p i and p j There is the following relationship p j =p K·i Where K·i represents the interval K multiplied by the index i of the point cloud, and represents the point cloud set {p i |i∈N} is the K·i-th point.

5. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 3 is characterized in that: The step 2-2 comprises the following steps: Step 2-2-1: Arrange the point cloud data in the point cloud model in ascending order of point cloud coordinate values, and use the KD-TREE method to sort the point cloud; Step 2-2-2: Take any point in the point cloud data and search for the K nearest neighboring points of the point; Step 2-2-3: Calculate the average distance between the point and its K nearest neighboring points, divide the sum of the distances between the point and its K nearest neighboring points by K to get the average distance, and compare the average distance value with the set threshold. The set threshold range is 0.5 to 1 meter. If it is greater than the set threshold, it is an outlier noise point and is removed.

6. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 3 is characterized in that: The step 3 is specifically as follows: Step 3-1: Downsampling, reducing the complexity of point cloud data, using equal interval sampling method for downsampling; Step 3-2: Select a segmentation feature, and select a concave feature as the segmentation feature. The concave feature is that there is a large change in the gradient of adjacent points in the point cloud data and the point cloud in the tunnel is lower than the edge of the tunnel. The concave feature meets the condition that the Z-axis gradient change is greater than a first empirical threshold, and the range of the first empirical threshold is 0.5 to 0.6 times the Z-axis gradient change; Step 3-3: Feature calculation, using a point-by-point traversal method to search for each point in the point cloud model using the concave feature in step 3-2, and retaining points whose Z-axis gradient change is greater than the first empirical threshold; Step 3-4: Clustering, grouping points with similar features, traversing the concave feature points extracted in step 3-3, and classifying them into one category when the distance between the concave feature points is less than the second empirical threshold. The range of the second empirical threshold is 2.5 to 4.5 meters. For the clustered concave feature points, only the largest group is retained, which is recorded as the largest clustering area; Step 3-5: Upsampling, compare the largest cluster area with the original point cloud model, find the area enclosed by the cluster and the area within the third empirical threshold as the final key area. The third empirical threshold range is 1 to 2 meters, and the edges of the segmented area are smoothed by plane fitting.

7. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 1 is characterized in that: When the construction site includes the construction site before excavation and the construction site after excavation, the method for measuring the volume of earth and stone is: Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the point cloud model of the construction site after excavation is used to obtain the key area through step 3. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents; Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows: Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2; Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area; Step 4-3: Calculate the reference plane. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. The point is selected in the point cloud model of the construction site before excavation. Take the largest category point to directly calculate the average altitude, that is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference plane: Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows: Among them, z1 and z2 are the z-axis coordinates of the first and second points, that is, the altitude values ​​of the laser points. These two points are the coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is used as the altitude of the lower surface of the cylinder in three-dimensional space; the upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference surface height, which is obtained from the point cloud model before excavation; Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column; Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty; Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the excavation volume.

8. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 1 is characterized in that: When the construction site includes the construction site after excavation and the construction site after backfilling, the method for measuring the volume of earth and stone is: Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is obtained by step 3 for the point cloud model of the construction site after excavation. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents; Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows: Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2; Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area; Step 4-3: Calculate the reference surface. Cluster the points within the third empirical threshold around the two points in step 4-1 by altitude. The point is selected in the point cloud model of the construction site after backfilling. Then take the largest category point to directly calculate the average altitude, that is, the altitude of each point is accumulated and divided by the number of points. The final average height is the reference surface: Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows: Among them, z1 and z2 are the z-axis coordinates of the first and second points, that is, the altitude values ​​of the laser points. These two points are coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the column, and the average height is used as the altitude of the lower surface of the column in three-dimensional space; the upper surface of the column is the same as the lower surface, and the altitude of the upper surface position is the reference surface height, which is obtained from the point cloud model after backfilling; Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column; Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty; Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the fill volume.

9. The method for measuring earthwork volume based on 3D point cloud point-by-point microelement of drone aerial photography according to claim 1 is characterized in that: When the construction site is a post-excavation construction site, the earthwork volume measurement method is: Note that the coordinates of laser point p can be expressed as (x, y, z), then the coordinates of the i-th laser point are (x i ,y i ,z i ), the key area is obtained by step 3 for the point cloud model of the construction site after excavation. The key area can be represented by a laser point set {p i ,i∈(0,n)} represents; Step 4-1: Calculate the step length Δx, which is the distance between two points in the point cloud model after excavation. The calculation formula is as follows: Where x1 is the x-coordinate of the first point, x2 is the x-coordinate of the second point, and the same is true for y1 and y2; Step 4-2: Take the midpoint of the two points in step 4-1 as the center and Δx as the side length to obtain a rectangle, and obtain the laser points in the rectangular coverage area; Step 4-3: Calculate the reference plane, search for the point with the highest altitude in the key area, and use the altitude of this point as the reference plane, that is, the estimated ground plane; Step 4-4: Calculate the average height of the laser points in step 4-2 The calculation formula is as follows: Where z1 and z2 are the z-axis coordinates of the first and second points, i.e., the altitude values ​​of the laser points. These two points are coordinate points in the point cloud model after excavation. The rectangular position in step 4-2 is the lower surface of the cylinder, and the average height is used as the altitude of the lower surface of the cylinder in three-dimensional space. The upper surface of the cylinder is the same as the lower surface, and the altitude of the upper surface position is the reference plane height, which is the estimated ground plane height value. Step 4-5: Calculate the volume of the cylinder in step 4-4 and discard the point set p i Laser spot inside the central column; Step 4-6: Repeat steps 4-1 to 4-5 until the laser point set p i is empty; Step 4-7: Add up the volumes of all columns to get the final earthwork volume, i.e. the excavation volume.

Citation Information

Patent Citations

  • Irregular object measurement method based on fusion of laser radar and camera

    CN113093216A

  • Bulk material volume measurement method based on image features and three-dimensional point cloud technology

    CN114419130A

  • Mine mining quantity calculation method based on laser radar point cloud

    CN114998338A

  • Method for measuring and calculating excavated and filled earth and rocks in power grid project by using high-density laser point cloud technology

    CN115655098A

  • Stacked material volume measurement method based on laser radar point cloud data

    CN115824052A