Roadside view ground segmentation method, system and medium based on point cloud two-dimensional density
Through the roadside perspective ground rapid segmentation method based on the two-dimensional point cloud density, the problem of the limitation of ground point cloud extraction assumptions in the existing technology is solved, the roadside lidar point cloud is quickly and accurately segmented, and the self-driving vehicle is improved. real-time perception capabilities.
Patent Information
- Application Number
- CN202210565810.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-23
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2042-05-23
AI Technical Summary
Existing technologies have assumptions limitations when extracting ground point clouds from roadside lidar point clouds in real time, resulting in poor algorithm performance and difficulty in achieving fast and accurate segmentation.
A roadside perspective ground rapid segmentation method based on point cloud two-dimensional density is used. Through density calculation and density descending point cloud, the density threshold is obtained, the initial seed points are screened, and the plane model is fitted to reduce the amount of calculation in the iterative process and improve real-time performance. and accuracy.
It achieves fast and accurate segmentation of ground point clouds, improves real-time performance and computing efficiency, and ensures accurate perception of the drivable area for autonomous vehicles.
Smart Images

Figure CN114820662B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of intelligent transportation infrastructure, and in particular to a roadside ground segmentation method, system and medium based on two-dimensional density of point clouds. Background Art
[0002] The new generation of communication technology is developing rapidly. The Internet of Vehicles technology based on 5G-V2X provides strong support for the realization of fully unmanned driving functions for networked autonomous vehicles. Higher bandwidth is used for vehicle-road communication, so that the laser radar arranged on the roadside can provide the networked autonomous driving vehicles with perception data based on the laser radar point cloud from the roadside perspective in real time. The ground point cloud from the roadside perspective can provide autonomous driving vehicles with a wide field of view, stable and reliable drivable area. Real-time and accurate segmentation of the ground point cloud from the roadside laser radar point cloud is still one of the key technologies that need to be solved urgently.
[0003] The roadside LiDAR point cloud contains the spatial information of all traffic participants. At the same time, the point cloud data collected in real time can be roughly divided into ground points and non-ground points. The drivable area of the vehicle can be obtained by extracting the ground point cloud. This is of great significance for providing a safe area in the blind spot when the vehicle is severely blocked, thereby providing beyond-line-of-sight information for the trajectory planning of driverless cars. At present, most methods for extracting ground point clouds need to make certain assumptions, such as the existence of boundaries and their continuity as much as possible, all point clouds must be traversed after a large number of sampling, and the road area is relatively low in terrain. These assumptions are not necessarily the best conditions for the processing of point cloud data, and therefore limit the algorithm from performing better. Summary of the invention
[0004] In view of the prior art, the purpose of the present invention is to provide a method for fast ground segmentation from a roadside perspective based on the two-dimensional density of point clouds, which can process point cloud data to achieve real-time and accurate segmentation of ground point clouds.
[0005] Based on this, the technical solution of the present invention is as follows:
[0006] In a first aspect, the present invention proposes a method for fast segmentation of the ground from a roadside perspective based on two-dimensional density of point clouds, the method comprising the following steps:
[0007] Obtain the original ground point cloud data from the roadside perspective in the radar coordinate system;
[0008] Based on the original point cloud data, density calculation is used to obtain two-dimensional density and density descending point clouds;
[0009] Based on the two-dimensional density and the density descending point cloud, a density threshold of the two-dimensional density of the point cloud is obtained;
[0010] Based on density threshold, two-dimensional density, and density descending point cloud, the segmented ground point cloud is obtained.
[0011] In the above technical solution, by calculating the two-dimensional density of the point cloud and using the two-dimensional density to perform the initial segmentation of the original point cloud, part of the ground point cloud in the original point cloud can be quickly extracted. Since the search space of the segmentation method is converted from the entire point cloud to a low-density area, the number of point clouds in the search space is reduced, and thus the amount of calculation is reduced, thereby improving the real-time performance of the ground point cloud segmentation.
[0012] In the above technical solution, the density calculation includes the following steps:
[0013] Preprocess the original point cloud data into ROI grid point cloud, and then obtain the kd tree constructed based on the ROI grid point cloud, which improves the speed of neighbor point search and has high real-time performance;
[0014] Use kd tree to search the radius R of k nearest neighbor points in Euclidean space of all ROI grid point clouds k ;
[0015] The two-dimensional density is calculated according to the following formula:
[0016]
[0017] Among them, k is the number of points searched by all ROI grid point clouds, density xoy ∈R n×1 is a two-dimensional density matrix of the ROI grid point cloud containing n points;
[0018] Sort the point cloud by its two-dimensional density to obtain point cloud data in descending order of density.
[0019] In the above technical solution, the density threshold is obtained by the following steps:
[0020] Extract z coordinate data based on density descending point cloud data;
[0021] Performing histogram statistics on the z-coordinate data, setting quantiles, and determining z-coordinate index values corresponding to the quantiles;
[0022] Using the z-coordinate index value and the two-dimensional density, the density value corresponding to the quantile is extracted as the density threshold.
[0023] As a further improvement of the above technical solution, the present invention uses part of the ground point cloud as the initial ground point cloud for ground model fitting, which can reduce the time consumption of ground point cloud search in the iterative process under the premise of accurately extracting the ground point cloud, thereby realizing fast and accurate segmentation of the ground point cloud, including the steps of:
[0024] The density descending point cloud is screened according to the density threshold, and the points with density lower than the density threshold are selected and set as the initial seed points;
[0025] Set the initial seed point to the current ground point;
[0026] Use the current ground point to solve the plane model ax+by+cz+d=0;
[0027] In the formula, a, b, c, d are the parameters to be solved;
[0028] The solved plane model is used to screen the initial seed points and select the ground points for the next iteration, which make the following inequality hold:
[0029] ax+by+cz+d≤dist TH
[0030] Where: dist TH is the vertical error distance threshold of the plane model;
[0031] Determine whether the difference in point cloud quantity between the ground point of the next iteration and the current ground point exceeds the threshold. If the difference in point cloud quantity exceeds the set threshold, update the ground point of the next iteration to the current ground point, re-solve the plane model and select the ground point of the next iteration until the difference in point cloud quantity between the ground point of the next iteration and the current ground point does not exceed the set threshold. In the calculation process of this technical solution, since the grid point cloud in the low-density area is used as the seed point to replace all the grid points for ground model parameter fitting, the amount of calculation in the ground model fitting process is greatly reduced, and the real-time performance is further improved; and since the fitting model is used to search for ground points in all grid data, the ground points are segmented quickly and accurately.
[0032] In the above technical solution, the pretreatment comprises the following steps:
[0033] The original point cloud data is subjected to effective area filtering, and the effective area filtering formula is as follows:
[0034]
[0035] Among them, pts 0 (x, y, z) is the original point cloud data PTS 0 point, Rth is the set radius, which is determined by setting the monitored range, PTS Rth Point cloud data after filtering for the effective area;
[0036] The point cloud data after effective area filtering is subjected to elevation direct filtering, and the elevation direct filtering formula is as follows:
[0037] PTS Hth ={ptsRth (x,y,z)|pts Rth (x,y,z)∈PTS Rth , z min ≤z≤z max}
[0038] Among them, pts Rth (x, y, z) is the point cloud PTS after filtering in the effective area Rth point, z min 、z max is the set minimum value and the set maximum value;
[0039] Point cloud PTS after elevation direct filtering Hth Perform ROI area filtering, where the ROI area is the region of interest, i.e., the area where the road is located, and the restriction condition is determined by setting the road area;
[0040] The point cloud after ROI area filtering is voxel filtered to obtain the ROI grid point cloud.
[0041] As a further improvement of the above technical solution, the set radius, the set minimum value, and the set maximum value are related to the collection device of the original point cloud data. In one embodiment, the original point cloud data is collected by arranging a laser radar sensor on the roadside.
[0042] In a second aspect, the present invention proposes a roadside ground fast segmentation system based on two-dimensional density of point clouds, the system comprising a memory and a processor, the memory storing a computer program that can be loaded by the processor and execute any of the above methods.
[0043] In a third aspect, the present invention provides a computer-readable storage medium, characterized in that it stores a computer program that can be loaded by a processor and execute any one of the above methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 , a flow chart of an implementation of the method of the present invention;
[0045] Figure 2 , a schematic diagram of a preprocessing module implemented according to the preprocessing related implementation steps of the method of the present invention;
[0046] Figure 3 , a schematic diagram of a density calculation module implemented according to the density calculation related implementation steps of the method of the present invention;
[0047] Figure 4 , a schematic diagram of a density threshold calculation module implemented according to the density threshold calculation related implementation steps of the method of the present invention;
[0048] Figure 5, a schematic diagram of a ground segmentation module implemented according to the ground segmentation related implementation steps of the method of the present invention;
[0049] Figure 6 , a schematic diagram of a system structure implemented according to the method of the present invention. DETAILED DESCRIPTION
[0050] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0051] During the implementation of the method of the present invention, the device for collecting the original ground point cloud data is a laser radar sensor, which is deployed on the roadside. Figure 1 shown.
[0052] First, the original ground point cloud data obtained from the roadside perspective by the lidar sensor is preprocessed using the following method to obtain the ROI grid point cloud:
[0053] PTS of the collected original point cloud 0 Perform effective area filtering to limit the effective monitoring radius of the laser radar. The effective area filtering formula is as follows:
[0054]
[0055] Among them, pts 0 (x, y, z) is the original point cloud PTS 0 point, Rth is the effective monitoring radius, which is determined by setting the range to be monitored, PTS Rth It is the point cloud data after filtering in the effective area.
[0056] Point cloud PTS after filtering the effective area Rth Perform elevation pass filtering to limit the monitoring height of the laser radar. The elevation pass filtering formula is as follows:
[0057] PTS Hth ={pts Rth (x,y,z)|pts Rth (x,y,z)∈PTS Rth , z min ≤z≤z max}
[0058] Among them, pts Rth (x, y, z) is the point cloud PTS after filtering in the effective area Rth point, z min 、z max To monitor the minimum and maximum values of scene height, PTS is determined by the relative distance between the laser radar installation height and the ground and the maximum height of traffic facilities.Hth It is the point cloud data after elevation direct filtering.
[0059] For the point cloud PTS after elevation direct filtering Hth Perform ROI area filtering to extract the key monitoring range of the laser radar. The ROI area filtering formula is as follows:
[0060] PTS ROI ={pts Hth (x,y,z)|pts Hth (x,y,z)∈PTS Hth , pts Hth (x, y, z)∈ROI}
[0061] Among them, pts Hth (x, y, z) is the point cloud PTS after elevation direct filtering Hth Points, ROI is the region of interest, that is, the area where the road is located. The restriction conditions are determined by setting the road area. PTS ROI It is the point cloud data after filtering in the ROI area.
[0062] Perform voxel filtering on the point cloud after ROI area filtering to reduce the number of point clouds, and use the voxelized point cloud as the output data of the preprocessing module to output the ROI grid point cloud. The voxel filtering formula is as follows:
[0063] PTS voxel =voxel(PTS ROI )
[0064] Among them, voxel() is a voxelization function, which converts the input point cloud into a voxel representation. voxel It is the ROI grid point cloud data output after voxelization processing.
[0065] The above method steps are implemented as a preprocessing module, such as Figure 2 shown.
[0066] Then, the two-dimensional density and density descending point cloud of the point cloud are obtained based on the ROI grid point cloud data, which specifically includes the following steps:
[0067] (2.1) Construct a kd tree for the ROI grid point cloud to improve the speed of neighbor point search;
[0068] (2.2) Use the kd tree to search the radius R of the k nearest neighbor points in the Euclidean space of all ROI grid point clouds k ;
[0069] (2.3) Calculate the two-dimensional density of all ROI grid point clouds. The two-dimensional density calculation formula is as follows:
[0070]
[0071] Among them, k is the number of points searched by all ROI grid point clouds, R k is the radius R of the k nearest neighbors k , density xoy ∈R n×1 is a two-dimensional density matrix of the ROI grid point cloud containing n points;
[0072] (2.4) Sort the point cloud in descending order according to its two-dimensional density, obtain the point cloud data in descending order of density, and output the point cloud in descending order of density pts sort and the corresponding order of two-dimensional density d sort .
[0073] Implement steps (2.1)-(2.4) as a density calculation module, such as Figure 3 shown.
[0074] Next, based on the two-dimensional density and the density descending point cloud processing, the density threshold of the point cloud two-dimensional density is obtained, which specifically includes the following steps:
[0075] (3.1) Process the density descending point cloud data and extract the z coordinate data pts z ;
[0076] (3.2) Perform histogram statistics on the extracted z coordinate data, set the quantile, and determine the coordinate index value z corresponding to the quantile THidx ;
[0077] (3.3) Use the quantile coordinate index value and two-dimensional density to extract the density value corresponding to the quantile And set the density value as the density threshold d TH Output.
[0078] In step (3.2), if the quantile is set to 95%, the points that obey the normal distribution are mostly concentrated within 95% outside the sample center, making the data used to segment the ground point cloud effective, reducing the amount of calculation, and making the ground point cloud have higher accuracy and stronger stability.
[0079] Steps (3.1)-(3.3) are implemented as a density threshold calculation module, such as Figure 4 shown.
[0080] Finally, based on the density threshold, two-dimensional density, and density descending point cloud, the segmented ground point cloud is obtained, including the following steps:
[0081] (4.1) According to the density threshold, the density descending point cloud is screened, and the points with density lower than the density threshold are selected and set as the initial seed points. The selection rule of the seed points is as follows:
[0082]
[0083] Among them, pts sort (x, y, z) is the point cloud pts in descending density sort point, Points sort The two-dimensional density of (x, y, z), seeds is the selected seed point.
[0084] (4.2) Set the initial seed point to the current ground point pts g,i ;
[0085] (4.3) Use the current ground point to solve the plane model ax+by+cz+d=0; where a, b, c, d are the parameters to be solved;
[0086] (4.4) Use the solved plane model to screen the initial seed points and select the ground points for the next iteration. The selection rule is as follows:
[0087] pts g,i+1 ={pts seeds (x,y,z)|pts seeds (x, y, z)∈seeds, ax+by+cz+d≤dist TH}
[0088] Among them, pts seeds (x, y, z) is the point cloud in the seed point seeds, dist TH is the vertical error distance threshold of the plane model. Considering the existence of curbs and road slopes, dist is set TH is a fixed value, i.e. dist TH =0.3m, pts g,i+1 is the ground point for the next iteration;
[0089] (4.5) Determine whether the difference in point cloud quantity between the ground point of the next iteration and the current ground point exceeds the set threshold; if the difference in point cloud quantity exceeds the set threshold, update the ground point of the next iteration to the current ground point, and execute (4.3) to (4.5); if the difference in point cloud quantity does not exceed the threshold, use the plane model obtained in this iteration to search for ground points in all density descending point clouds, and output the extracted ground point cloud data. The set threshold can be 1%, 2%, 5%, etc., but when the set threshold is 1%, the method of the present invention has the best effect on ground point cloud segmentation when implemented.
[0090] The search process of ground points is as follows:
[0091] ptsg,out ={pts sort (x,y,z)|pts sort (x,y,z)∈pts sort ,ax+by+cz+d≤dist TH}
[0092] Among them, pts g,out The extracted ground point cloud data.
[0093] The number of initial seed points obtained in step (4.2) is usually greater than 500. When these seed points are substituted into the plane model of (4.3), if the rank is less than 3, the values of one dimension need to be all equal. If all x are equal, the laser radar needs to be completely covered. If all y are equal, the laser radar also needs to be completely covered. This working condition usually does not occur in actual use. When all z are equal, the ground needs to be absolutely level, and the signal returned by the laser radar is completely undisturbed. In actual use, according to the requirements of the standard document JTG B01-2014 "Highway Engineering Technical Standards", the road surface meets certain slope requirements. In addition, there are curbs, potholes, etc. on the road. At the same time, the laser emitted by the laser radar will form a spot and return a signal. It is difficult to return absolutely consistent z coordinate data. Finally, the installed radar generally has a small range of jitter. Therefore, at least one set of a, b, c, and d values can be solved.
[0094] In the implementation of the method of the present invention, the principal component analysis method is used to determine the values of a, b, and c by extracting the main vector, and d is set to the installation height of the laser radar. The plane model obtained by the principal component analysis method cannot make all points satisfy the plane model. Therefore, when implementing the method of the present invention, the minimum mean square error of the distance from the point to the plane is taken as the optimization goal, so as to find the values of a, b, c, and d that satisfy the minimum mean square error. When searching for ground points, by judging ax+by+cz+d≤dist TH Is it true? If true, the searched point is a ground point. If not true, the searched point is not a ground point. Implement steps (4.1)-(4.5) as a ground segmentation module, such as Figure 5 shown.
[0095] The above steps are only one case of the implementation of the method of the present invention, and the operations of the method of the present invention may be implemented in a non-sequential manner. On the contrary, the operations may be implemented in a reverse order or simultaneously. In addition, one or more other operations may be added to the method flow. One or more operations may also be removed from the method flow.
[0096] According to the method of the present invention, the present invention can be further implemented as a roadside ground fast segmentation system based on point cloud two-dimensional density. An implementation system of the present invention, its structure diagram is as follows Figure 6 shown.
[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method of the present disclosure can be implemented by means of software plus necessary general hardware, and of course can also be implemented by special hardware including special integrated circuits, special CPUs, special memories, special components, etc. In general, all functions performed by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures used to implement the same function can also be various, such as analog circuits, digital circuits or special circuits, etc. However, for the present disclosure, software program implementation is a better implementation method in most cases.
[0098] Although the embodiments of the present invention are described above in conjunction with the accompanying drawings, the present invention is not limited to the above specific embodiments and application fields, and the above specific embodiments are only illustrative and instructive, rather than restrictive. A person of ordinary skill in the art can also make many forms under the guidance of this specification and without departing from the scope of protection of the claims of the present invention, all of which belong to the protection of the present invention.
Claims
1. A roadside ground segmentation method based on two-dimensional density of point cloud, characterized in that: The method comprises the following steps: Obtain the original ground point cloud data from the roadside perspective in the radar coordinate system; Based on the original point cloud data, density calculation is used to obtain two-dimensional density and density descending point cloud, and then based on the two-dimensional density and density descending point cloud, the density threshold of the two-dimensional density of the point cloud is obtained. The steps include: Sort by two-dimensional density of point cloud to obtain point cloud data in descending order of density; Extract z coordinate data based on density descending point cloud data; Performing histogram statistics on the z-coordinate data, setting quantiles, and determining z-coordinate index values corresponding to the quantiles; Using the z-coordinate index value and the two-dimensional density, extracting the density value corresponding to the quantile as a density threshold; Based on the density threshold, the two-dimensional density, and the density descending point cloud, a segmented ground point cloud is obtained, the steps comprising: screening the density descending point cloud according to the density threshold, selecting points with a density lower than the density threshold, and setting them as initial seed points; Set the initial seed point to the current ground point; Use the current ground point to solve the plane model ax+by+cz+d=0; In the formula, a, b, c, and d are the parameters to be solved. The values of a, b, and c are determined by extracting the main vector, and d is set to the installation height of the laser radar; Use the solved plane model to screen the initial seed points and select the ground points for the next iteration; Determine whether the difference in the number of point clouds between the ground points of the next iteration and the current ground points exceeds the threshold. If the difference in the number of point clouds exceeds the set threshold, the ground points of the next iteration are updated to the current ground points, the plane model is re-solved and the ground points of the next iteration are selected until the difference in the number of point clouds between the ground points of the next iteration and the current ground points does not exceed the set threshold.
2. The method according to claim 1, characterized in that The density calculation comprises the following steps: Preprocess the original point cloud data into ROI grid point cloud, and then obtain the kd tree constructed based on the ROI grid point cloud; Use kd tree to search the radius R of k nearest neighbor points in Euclidean space of all ROI grid point clouds k ; The two-dimensional density is calculated according to the following formula: Among them, k is the number of points searched by all ROI grid point clouds, density xoy ∈R n×1 is a two-dimensional density matrix of the ROI grid point cloud containing n points.
3. The method according to claim 2, characterized in that The pretreatment comprises the following steps: The original point cloud data is subjected to effective area filtering, and the effective area filtering formula is as follows: Among them, pts0(x, y, z) is the point of the original point cloud data PTS0, Rth is the set radius, which is determined by setting the monitored range, PTS Rth Point cloud data after filtering for the effective area; The point cloud data after effective area filtering is subjected to elevation direct filtering, and the elevation direct filtering formula is as follows: PTS Hth ={pts Rth (x, y, z)|pts Rth (x,y,z)∈PTS Rth ,z min ≤z≤z max } Among them, pts Rth (x, y, z) is the point cloud PTS after filtering in the effective area Rth point, z min 、z max is the set minimum value and the set maximum value; Point cloud PTS after elevation direct filtering Hth Perform ROI area filtering, where the ROI area is the region of interest, i.e., the area where the road is located, and the restriction condition is determined by setting the road area; The point cloud after ROI area filtering is voxel filtered to obtain the ROI grid point cloud.
4. The method according to claim 3, characterized in that The set radius, the set minimum value, and the set maximum value are related to the acquisition device of the original point cloud data.
5. The method according to claim 1, characterized in that The original point cloud data is collected by arranging a laser radar sensor on the road side.
6. A roadside ground segmentation system based on point cloud two-dimensional density, characterized in that: The system comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes the method according to any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that: A computer program is stored which can be loaded by a processor and execute the method according to any one of claims 1 to 5.
