A point cloud optimization method based on ground features and computer-readable storage medium

By collecting and processing the coordinate data of multiple groups of ground points, the error caused by multi-line lidar when generating high-precision maps is eliminated, the problem of point cloud maps not matching the actual scene is solved, and the accuracy of point cloud maps and mapping accuracy are improved. sex.

CN112861674BActive Publication Date: 2024-09-06ZHONGZHEN TONGXI (JIANGSU) ROBOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110115668.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2024-09-06
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

When multi-line lidar generates high-precision maps, due to sensor errors and point cloud key frame registration errors, the point cloud map deviates from the actual scene. Especially when splicing a long road surface, a large ground elevation difference may occur, resulting in ground It looks sloped, which is not true.

Method used

Construct a coordinate matrix by collecting coordinate data of multiple sets of ground points, calculate the average three-dimensional coordinates, perform singular value decomposition, correct the position and attitude matrix, eliminate errors, generate more accurate point cloud data, and splice to generate a more accurate map.

Benefits of technology

The accuracy of the point cloud map is improved, the height error of the laser point cloud map is corrected, and the mapping error of the high-precision map is reduced, making the point cloud data more consistent with the actual scene.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112861674B
    Figure CN112861674B
Patent Text Reader

Abstract

The present invention discloses a point cloud optimization method based on ground features and a computer-readable storage medium, the point cloud optimization method comprising: constructing a coordinate matrix; constructing an average three-dimensional coordinate vector; obtaining a first reference matrix according to the coordinate matrix and the average three-dimensional coordinate vector; multiplying the first reference matrix with its transposed matrix to obtain a second reference matrix, performing singular value decomposition on the second reference matrix to obtain a right singular matrix; constructing a third reference matrix according to the right singular matrix and processing the data in the first point cloud set to obtain a second point cloud set. The point cloud optimization method of the present invention corrects the height error of the laser point cloud map, improves the accuracy of the point cloud, and thereby reduces the mapping error of the high-precision map.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of unmanned driving technology, and in particular to a point cloud optimization method based on ground features and a computer-readable storage medium. Background Art

[0002] In the field of unmanned driving, high-precision maps play an extremely important role, because unmanned vehicles must refer to the semantics of the elements in the high-precision map to operate normally. The so-called high-precision map, on the one hand, refers to the rich semantics of the map, and on the other hand, it refers to the high accuracy of the map. At present, there is no clear definition of high-precision maps in the industry, which leads to different ways of making high-precision maps for each company. Most high-precision maps are made by integrating data from multiple sensors, such as multi-line lidar, cameras, and imu, and some high-precision maps are made by only using part of the sensor data. This patent mainly optimizes and improves the part of making high-precision maps with multi-line lidar.

[0003] The idea of ​​multi-line LiDAR mapping is to align the features between the LiDAR data frames, and then stitch the point cloud data of all frames together to generate a point cloud map. There are two main problems with this approach: first, the LiDAR data itself has a sensor error; second, there will be errors when aligning the point cloud keyframes, which will accumulate and cause the final point cloud map to deviate from the actual scene, especially when stitching longer roads, which may produce a large ground elevation difference. The accumulated elevation difference makes the originally flat road surface look like it has a slope, which is different from the actual collected scene. Summary of the invention

[0004] In view of the above, the present invention provides a point cloud optimization method based on ground features and a computer-readable storage medium, which can improve the accuracy of point cloud maps. The technical solution is as follows:

[0005] In one aspect, the present invention provides a point cloud optimization method based on ground features, the point cloud optimization method comprising the following steps:

[0006] S1. Collecting multiple sets of coordinate data of ground points, wherein the multiple sets of coordinate data constitute a first point cloud set;

[0007] S2. construct a coordinate matrix using the three-dimensional coordinates of all ground points, and calculate the average three-dimensional coordinates based on the three-dimensional coordinates of all ground points to obtain an average three-dimensional coordinate vector, and subtract the average three-dimensional coordinate vector from the sub-vector corresponding to each ground point in the coordinate matrix to obtain a first reference matrix;

[0008] S3. Multiplying the first reference matrix and its transposed matrix to obtain a second reference matrix, and performing singular value decomposition on the second reference matrix to obtain a right singular matrix;

[0009] S4. Replace the upper left corner of the fourth-order unit matrix with the inverse matrix of the right singular matrix to obtain a third reference matrix, and use the third reference matrix to multiply the multiple posture matrices in the first point cloud set by left to obtain multiple corrected posture matrices, and the multiple corrected posture matrices constitute the second point cloud set.

[0010] Furthermore, in step S1, the acquisition of coordinate data of multiple groups of ground points includes: acquiring multiple frames of ground images, marking the coordinate data of ground points in the multiple frames of ground images, and at least two frames of ground images in the multiple frames of ground images have image contents that partially or completely overlap.

[0011] Furthermore, the multiple frames of ground images are collected at different times.

[0012] Furthermore, the posture matrix is ​​a fourth-order square matrix, and each posture matrix includes three-dimensional coordinate data and azimuth data of a corresponding ground point.

[0013] Furthermore, the coordinate data is collected by a laser radar.

[0014] Furthermore, the point cloud optimization method further comprises the following steps:

[0015] S5. Stitching the data in the second point cloud set to obtain a point cloud map.

[0016] On the other hand, the present invention provides a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the point cloud optimization method described above when executed by a processor.

[0017] The present invention has the following technical effects:

[0018] The data in the point cloud set has been optimized to make the stitched point cloud data more consistent with the actual scene. To a certain extent, the height error of the laser point cloud map has been corrected, the accuracy of the point cloud map has been improved, and the construction error of the high-precision map has been reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a schematic diagram of a point cloud optimization method provided by an embodiment of the present invention; DETAILED DESCRIPTION

[0020] The technical solution of the present invention is further described below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0021] In one embodiment of the present invention, the present invention provides a point cloud optimization method based on ground features, the point cloud optimization method comprising the following steps:

[0022] S1. Collecting multiple sets of coordinate data of ground points, wherein the multiple sets of coordinate data constitute a first point cloud set;

[0023] The coordinate data can be collected by a laser radar, which can collect images while moving. Therefore, the collected images have differences in time and follow a certain time sequence, but the image data may or may not include the time sequence information.

[0024] S2. construct a coordinate matrix using the three-dimensional coordinates of all points, and calculate the average three-dimensional coordinates according to the three-dimensional coordinates of all points to obtain an average three-dimensional coordinate vector, and subtract the average three-dimensional coordinate vector from the sub-vector corresponding to each ground point in the coordinate matrix to obtain a first reference matrix;

[0025] The coordinate matrix can be set as follows: each column vector is the three-dimensional coordinate of a ground point. N ground points are required to complete the stitching of the point cloud map. The coordinate matrix is ​​a 3*N matrix. The column vector in the first reference matrix is ​​obtained by subtracting the column vector in the coordinate matrix from the average three-dimensional coordinate vector. The first reference matrix is ​​also a 3*3 matrix.

[0026] S3. Multiplying the first reference matrix and its transposed matrix to obtain a second reference matrix, and performing singular value decomposition on the second reference matrix to obtain a right singular matrix;

[0027] The transposed matrix of the first reference matrix is ​​also a matrix, so the second reference matrix is ​​also a 3*3 matrix. Correspondingly, performing singular value decomposition on the second reference matrix will result in three matrices, namely, the left singular matrix, the eigenvalue matrix, and the right singular matrix. All three matrices are 3*3 matrices. Since the second reference matrix is ​​a square matrix, the eigenvalue decomposition is actually performed on the second reference matrix.

[0028] S4. Replace the upper left corner of the fourth-order unit matrix with the inverse matrix of the right singular matrix to obtain a third reference matrix, and use the third reference matrix to multiply the multiple posture matrices in the first point cloud set by left to obtain multiple corrected posture matrices, and the multiple corrected posture matrices constitute the second point cloud set.

[0029] The third reference matrix is ​​a 4*4 matrix, and correspondingly, the bit posture matrix is ​​a 4*M matrix, where the size of M is determined according to the amount of information protected by the bit posture matrix. In one embodiment of the present invention, the bit posture matrix is ​​a fourth-order square matrix, and each bit posture matrix includes the three-dimensional coordinate data and azimuth data of the corresponding ground point. In fact, the fourth-order third reference matrix is ​​constructed in step S4 because the bit posture matrix has four column vectors. Therefore, when left-multiplied with the bit posture matrix, the third reference matrix must have four row vectors.

[0030] Through the above steps, a second point cloud set is obtained from the first point cloud set. Compared with the first point cloud set, the data of the second point cloud set eliminates errors and is a better point cloud set.

[0031] In one embodiment of the present invention, the point cloud optimization method further includes the following steps:

[0032] S5. Stitching the data in the second point cloud set to obtain a point cloud map.

[0033] The "ground points" mentioned in the present invention do not only refer to specific points on the ground surface. Because the radar data collection itself has certain errors, all points collected within a preset range are regarded as ground points, that is, points near the ground height will be collected and processed so as to obtain a more accurate point cloud map later.

[0034] In step S1, the acquisition of coordinate data of multiple sets of ground points includes: acquiring multiple frames of ground images, marking the coordinate data of ground points in the multiple frames of ground images, and the image contents of at least two frames of ground images in the multiple frames of ground images partially or completely overlap. Therefore, by identifying and matching the feature points of the overlapping parts, the multiple images can be spliced ​​together to obtain a point cloud map.

[0035] The point cloud map reflects the situation on the ground. For the unmanned driving system, the driving strategy can be determined based on the point cloud map. In other words, the data in the first point cloud set is sufficient to stitch together a point cloud map; however, since the data in the first point cloud set is directly collected and only undergoes simple preliminary processing, there are some errors. When the data in the first point cloud set is used to stitch the point cloud map, errors in height and angle will occur when stitching together images of different frames, resulting in height differences and slopes that do not exist in reality appearing in the point cloud map.

[0036] At present, no matter which mapping method is used, the sensor errors and solution errors cannot be eliminated. They can only be improved and optimized through effective methods, so that the mapping results are more in line with the actual scene. The data in the second point cloud set has eliminated the errors after the above processing, and there is no false height difference and false slope in the spliced ​​point cloud map. In other words, starting from the idea of ​​normalization, it is believed that the point sets collected near the ground height belong to ground data, and then the point cloud sets near the ground are extracted for processing, so that an accurate ground feature and transformation matrix can be obtained, and then the pose information of the point cloud of each key frame is updated based on the ground feature, so as to achieve the effect of optimizing the point cloud; the point cloud road information is smoother and closer to the real scene, which greatly improves the error of the registration calculation.

[0037] It should be noted that the present invention is only applicable to multi-line laser mapping in low-speed and flat road scenes, and is not applicable to scenes with continuous and obvious undulations on the ground.

[0038] Attached Figure 1 It represents an embodiment of the present invention, in which "constructing the feature matrix of the point cloud set" refers to obtaining the second reference matrix; "SVD decomposition to obtain the ground direction and transformation matrix" is equivalent to steps S3 and S4 to finally obtain the corrected posture matrix; in this example, "updating the point cloud posture" is equivalent to replacing the first point cloud set with the second point cloud set.

[0039] In one embodiment of the present invention, the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the point cloud optimization method described above are implemented. The storage medium may be a USB flash drive, a hard disk, etc.

[0040] The point cloud optimization method of the present invention effectively solves the problem of elevation deviation between point cloud data and actual scene in the process of multi-line laser radar mapping.

[0041] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope thereof. Any equivalent structure or equivalent process transformation made by using the contents of the present invention specification and drawings, directly or indirectly applied in other related technical fields, is also included in the patent protection scope of the present invention.

Claims

1. A point cloud optimization method based on ground features, characterized in that: The point cloud optimization method comprises the following steps: S1. Collecting multiple sets of coordinate data of ground points, wherein the multiple sets of coordinate data constitute a first point cloud set; S2. construct a coordinate matrix using the three-dimensional coordinates of all ground points, and calculate the average three-dimensional coordinates based on the three-dimensional coordinates of all ground points to obtain an average three-dimensional coordinate vector, and subtract the average three-dimensional coordinate vector from the sub-vector corresponding to each ground point in the coordinate matrix to obtain a first reference matrix, wherein the sub-vector corresponding to the ground point is the three-dimensional coordinate of the ground point; S3. Multiplying the first reference matrix and its transposed matrix to obtain a second reference matrix, and performing singular value decomposition on the second reference matrix to obtain a right singular matrix; S4. Replace the upper left corner of the fourth-order unit matrix with the inverse matrix of the right singular matrix to obtain a third reference matrix, and use the third reference matrix to multiply the plurality of position and posture matrices in the first point cloud set by left, to obtain a plurality of modified position and posture matrices, and the plurality of modified position and posture matrices constitute a second point cloud set; S5. Stitching the data in the second point cloud set to obtain a point cloud map.

2. The point cloud optimization method according to claim 1, characterized in that: In step S1, the acquisition of coordinate data of multiple groups of ground points includes: acquiring multiple frames of ground images, marking the coordinate data of ground points in the multiple frames of ground images, and at least two frames of ground images in the multiple frames of ground images have image contents that partially or completely overlap.

3. The point cloud optimization method according to claim 2, characterized in that: The multiple frames of ground images are collected at different times.

4. The point cloud optimization method according to claim 1, characterized in that: The position and posture matrix is ​​a fourth-order square matrix, and each position and posture matrix includes three-dimensional coordinate data and azimuth data of a corresponding ground point.

5. The point cloud optimization method according to claim 1, characterized in that: The coordinate data is collected by a laser radar.

6. A non-transitory computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the steps of the point cloud optimization method according to any one of claims 1 to 5 are implemented.