Enhanced odometer method based on laser radar and camera fusion
Through deep completion network and Bayesian inference technology, camera images are converted into pseudo-lidar point clouds and fused with lidar data, which solves the problem of insufficient performance of lidar and camera fusion odometry, and significantly improves the accuracy of vehicle pose estimation. and stability.
Patent Information
- Application Number
- CN202410841023.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-27
- Publication Date
- 2024-09-13
AI Technical Summary
The existing lidar and camera fusion odometry methods have problems such as poor performance, insufficient fusion of images and lidar point cloud data, and overconfidence of sensor modes in different environments, resulting in insufficient vehicle pose estimation accuracy and stability.
The camera images are converted into pseudo-lidar point clouds through the deep completion network, and Bayesian inference is used to fuse the lidar and camera data to generate a fused point cloud to evenly consider sensor weights for pose estimation.
It significantly reduces the average trajectory error and improves the odometry estimation accuracy and stability. Compared with the method using camera or lidar alone, the error is reduced by 90% and 40%, and is 45% better than the best competing method.
Smart Images

Figure CN118640928A
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of autonomous driving, and in particular relates to an enhanced odometer method based on the fusion of laser radar and camera. Background Art
[0002] Autonomous vehicles integrate functions such as environmental perception, wireless communication, and intelligent computing, providing users with high-quality services and convenient travel experience. Mobile positioning, as one of the most important functions in the field of autonomous driving, has attracted widespread attention from scholars. One method of mobile positioning is to use the Global Navigation Satellite System (GNSS). Although advanced GNSS can provide positioning accurate to a few centimeters, autonomous vehicles cannot rely entirely on GNSS due to problems such as signal delay and service quality. Another method of mobile positioning is the odometer method, which uses data from the vehicle's own sensors to track the vehicle's movement and estimate the change in the vehicle's position and direction angle relative to the previous moment.
[0003] With the popularity of cameras and lidar in modern vehicles, visual odometry and lidar odometry have become the mainstream odometry methods. Visual odometry and lidar odometry estimate the motion trajectory of autonomous vehicles by analyzing the image changes and lidar point cloud changes in two adjacent frames caused by vehicle motion, respectively. However, since the images generated by the camera lack depth information, it is difficult to accurately locate the vehicle in the world coordinate system using only images; due to the sparsity of the lidar point cloud, the incorrect association of point cloud features in consecutive frames may cause the vehicle's pose estimation to drift. Therefore, in order to improve the comprehensive perception capability of autonomous vehicles, visual and lidar fusion odometry that fuses cameras with lidar has become increasingly important. Visual and lidar fusion odometry can be divided into enhanced visual odometry, enhanced lidar odometry, and concurrent visual and lidar fusion odometry. Enhanced visual odometry uses visual odometry as its main framework and uses depth information obtained from lidar measurements to enhance its estimation results; enhanced lidar odometry uses lidar to estimate vehicle motion while using a camera for drift correction; concurrent visual and lidar odometry combines lidar and image data for motion estimation.
[0004] Although these classic fusion odometry methods have their own advantages, they also have some inherent defects. The enhanced visual odometry with lidar-assisted vision does not perform feature association between the image and the lidar point cloud, but only uses the depth information extracted by the lidar. Due to the sparsity of the lidar point cloud, many pixels in the image are not assigned depth values, so additional interpolation methods are required to make up for the missing depth values. Similarly, the limitation of the enhanced lidar odometry with vision-assisted lidar is that different sensor measurements cannot be used simultaneously in the optimization process. In addition, most concurrent vision and lidar odometry ignores the correlation between sensor performance and the environment, and cannot dynamically adjust the weights of the lidar and camera, which may lead to overconfident estimates of certain sensor modalities. Summary of the invention
[0005] In order to overcome the shortcomings of the prior art, the present invention provides an enhanced odometer method based on the fusion of laser radar and camera. First, the image data generated by the camera is converted into pseudo laser radar point cloud data using a deep completion network, so that the image data and the laser radar point cloud data have a consistent representation. Secondly, Bayesian inference is used to fuse the pseudo laser radar point cloud data with the laser radar point cloud data, and the fused point cloud data is generated by calculating the reprojection error and confidence map of the two. Finally, the fused point cloud is used as the input of the odometer to achieve an odometer that balances the weights of the laser radar and the camera. Compared with the pseudo laser radar point cloud data converted only by the camera, the average trajectory error of the present invention is reduced by about 90%, and compared with the average trajectory error of the laser radar point cloud data converted only by the laser radar, the average trajectory error is reduced by about 40%; compared with the optimal competitive method, the average trajectory error is reduced by about 45%, which effectively improves the estimation accuracy of the odometer.
[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:
[0007] Step 1: Convert the point cloud L generated by the lidar into a sparse depth map S, and input the sparse depth map S and the image I generated by the camera into the depth completion network to obtain a dense depth map D. Finally, the dense depth map D is back-projected into the 3D space to be converted into a pseudo lidar point cloud P.
[0008] Step 2: According to the reprojection error E of the lidar point cloud L and the pseudo lidar point cloud P, calculate the confidence map C of the lidar point cloud L and the pseudo lidar point cloud P respectively L With C P , and use this as a basis to calculate the fused point cloud F;
[0009] Step 3: Use the fused point cloud F as an arbitrary lidar odometry frame input to estimate the current vehicle pose.
[0010] Furthermore, the step 1 is specifically as follows:
[0011] Step 1-1: Align the LiDAR with the camera;
[0012] The point cloud L generated by the laser radar is L = [x L ,y L ,z L ] T According to the known camera intrinsic parameter matrix, it is converted into a sparse depth map S = [u L ,v L ,1] T , the formula is as follows:
[0013]
[0014] in Represents the transformation matrix from the lidar coordinate system to the camera coordinate system, R rect is the correction matrix, is the transformation matrix from the camera coordinate system to the image coordinate system;
[0015] Step 1-2: Perform depth estimation on pixels that do not contain depth values, and input the obtained sparse depth map S and image I into a depth completion network similar to PENet to obtain a dense depth map D;
[0016] Step 1-3: Back-project the dense depth map D into 3D space to convert it into a pseudo LiDAR point cloud P.
[0017] Furthermore, the step 2 is specifically as follows:
[0018] Bayesian inference is used to fuse lidar and camera, and their confidence maps are estimated by calculating the reprojection error E, as follows:
[0019]
[0020] Where X represents the 3D coordinate of the current point cloud in the laser radar coordinate system, Represents the 2D coordinates of the current point cloud in the image coordinate system, and M represents the total number of points in the current point cloud;
[0021] The confidence map of each point cloud is calculated as C = e -λE , where λ is a normalization constant; if the calculated depth is negative, the confidence is set to zero; through Bayesian reasoning, the output of the fused point cloud F is calculated as follows:
[0022]
[0023] Furthermore, in step 3, the LOAM framework is used to perform pose estimation.
[0024] The beneficial effects of the present invention are as follows:
[0025] 1. The present invention greatly improves the accuracy and stability of odometer estimation of vehicle posture, solves the problems of poor performance of lidar and camera fusion odometer, inability to fully fuse image and lidar point cloud data, and overconfident estimation of certain sensor modes in different environments.
[0026] 2. Compared with pseudo-lidar point cloud data converted only by camera, the average trajectory error of the present invention is reduced by about 90%, and compared with using only lidar point cloud data, the average trajectory error is reduced by about 40%; compared with the best competitive method, the average trajectory error is reduced by about 45%, which effectively improves the estimation accuracy of the odometer. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 A flowchart for implementing the laser radar and camera fusion odometer method in the present invention;
[0028] Figure 2 This is a comparison chart of average trajectory errors of different sensors used in the present invention;
[0029] Figure 3 This is a comparison diagram of trajectory estimation and trajectory truth using different sensors in the present invention. DETAILED DESCRIPTION
[0030] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0031] The purpose of the present invention is to provide an enhanced odometer method based on the fusion of lidar and camera to solve the problems of poor performance of the lidar and camera fusion odometer, inability to fully fuse image and lidar point cloud data, and overconfident estimation of a certain type of sensor modality in different environments.
[0032] according to Figure 1 As shown, the present invention provides an enhanced odometer method based on laser radar and camera fusion, comprising the following steps:
[0033] Step 1: Convert the point cloud L generated by the lidar into a sparse depth map S, and input the sparse depth map S and the image I generated by the camera into the depth completion network to obtain a dense depth map D. Finally, the dense depth map D is back-projected into the 3D space and converted into a pseudo lidar point cloud P.
[0034] Specifically, in step 1, in order to fuse the LiDAR point cloud L with the image I, the LiDAR and the camera need to be aligned first. The point cloud L generated by the LiDAR is L ,y L ,z L ] TAccording to the known camera intrinsic parameter matrix, it is converted into a sparse depth map S = [u L ,v L ,1] T , the formula is as follows:
[0035]
[0036] in Represents the transformation matrix from the lidar coordinate system to the camera coordinate system, R rect is the correction matrix, is the transformation matrix from the camera coordinate system to the image coordinate system.
[0037] Then, since the sparse depth map S is sparse, only about 10 percent of the pixels have corresponding depths. In order to make each pixel contain the corresponding depth, it is necessary to estimate the depth of pixels that do not contain depth values. The obtained sparse depth map S and image I need to be input into a depth completion network similar to PENet to obtain a dense depth map D. Finally, the dense depth map D is reversely projected into 3D space and converted into a pseudo lidar point cloud P.
[0038] Step 2: Calculate the confidence map C based on the reprojection error E of the lidar point cloud L and the pseudo lidar point cloud P. L With C P , and use this as a basis to calculate the fused point cloud F.
[0039] Specifically, in step 2, due to the sparsity of lidar measurements, the sparse lidar point cloud L cannot be directly fused with the dense pseudo lidar point cloud P. Considering that lidar and camera should have different weights in different environments, Bayesian reasoning is used to fuse the two. Their confidence maps are estimated by calculating the reprojection error E, as follows:
[0040]
[0041] Where X represents the 3D coordinate of the current point cloud in the laser radar coordinate system, Represents the 2D coordinates of the current point cloud in the image coordinate system, and M represents the total number of points in the current point cloud.
[0042] To indicate the certainty of the estimate, the confidence map of each point cloud is calculated as C = e -λE , where λ is a normalization constant. In this way, pixels with larger / smaller reprojection errors are mapped to smaller / larger confidence values, which are in the range of [0,1]. Therefore, larger confidence values correspond to smaller reprojection errors, indicating that the depth prediction is more certain. If the calculated depth is negative, the confidence is set to zero. Through Bayesian inference, the output of the fused point cloud F is calculated as follows:
[0043]
[0044] Step 3: Use the fused point cloud F as an arbitrary lidar odometry frame input to estimate the current vehicle pose.
[0045] Specifically, in step 3, the data format of the fused point cloud F generated using Bayesian reasoning is completely consistent with the data format of the original point cloud collected by the lidar. This means that without complex data conversion or format adjustment, the fused point cloud F can be directly input into the odometer that uses the lidar point cloud as input for pose estimation. In this invention, the LOAM framework is used for pose estimation, which has been proven to be stable and performs well in the field of lidar odometers. The specific mileage calculation method is as follows:
[0046]
[0047] Experimental comparison
[0048] refer to Figure 2 As shown, Figure 2 A comparison of the average trajectory errors using different sensors (% / 100 meters) is given, and it can be seen that although the pseudo-lidar generated using images alone is far inferior to the performance of the lidar alone, the fusion method proposed in the present invention effectively utilizes both and is more stable than using lidar alone, especially in urban and rural scenes. This is mainly because in these scenes, the depth of the scene is greater than other scenes, and the sparsity of the lidar point cloud causes the lidar odometer to incorrectly extract unstable features at long distances, making it difficult to obtain accurate matches between consecutive frames. The fused point cloud of the present invention increases the density of reliable point clouds to reduce the proportion of unstable point clouds, thereby achieving excellent performance.
[0049] Referring to Table 1, Table 1 shows the specific numerical comparison of the average trajectory error (%) of different sensors in various environments. Compared with the pseudo-lidar point cloud data converted by camera only, the average trajectory error of the present invention is reduced by about 90%, and compared with the average trajectory error of using only the lidar point cloud data, the average trajectory error is reduced by about 40%.
[0050] Table 1 Comparison of average trajectory errors of different sensors (%)
[0051]
[0052] refer to Figure 3 As shown, Figure 3A comparison of trajectory estimation and trajectory truth using different sensors is given. It can be seen that except for highway scenes, the method of the present invention outperforms other competing methods on the KITTI odometer dataset, showing significant improvements, especially in scenes with more planar features such as urban scenes, rural scenes, and large postures. Highway scenes have limited planar structures and many dynamic objects. First, dynamic objects such as moving vehicles may be mistakenly identified as edge points by the odometer. These dynamic features are unreliable and challenging to accurately match between consecutive frames. In addition, the odometer method of the present invention relies on the extraction of planar points and edge points. Due to the bumps of the vehicle, the extraction of planar points in the vertical dimension can easily lead to errors. Despite this, in most cases, the fusion method of the present invention is still superior to other methods.
[0053] Referring to Table 2, Table 2 shows the specific numerical comparison of the average trajectory error (%) of the method of the present invention and the competing methods on the KITTI odometer dataset. Compared with the best competing method, the average trajectory error of the present invention is reduced by about 45%.
[0054] Table 2 Comparison of average trajectory errors between the proposed method and the competitive method (%)
[0055]
[0056] Without loss of generality, this embodiment experiments on the enhanced odometer method based on lidar and camera fusion on the KITTI odometer dataset. The KITTI odometer dataset is an autonomous driving dataset that includes stereo grayscale and color camera images, point clouds captured by Velodyne lidar sensors (10Hz, 64 laser beams, range 100m), and calibration files. This embodiment uses various scenes of the KITTI odometer dataset for evaluation, as shown in Table 3.
[0057] Table 3 KITTI odometry dataset
[0058]
[0059] For the competing methods, this embodiment is compared with the state-of-the-art methods on the KITTI odometry dataset, including classic lidar odometry, learning-based lidar odometry, classic visual odometry, learning-based visual odometry, classic visual and lidar fusion odometry, and learning-based visual and lidar fusion odometry.
[0060] For the deep completion network, PENet is used in this embodiment. For each sequence, the normalization constant of the confidence map is selected as 0.75. The embodiment uses the average trajectory error (%) to evaluate the positioning accuracy. All experiments are performed on a laptop equipped with an AMD Ryzen 7 5800H 3.20GHz CPU, NVIDIA GeForce RTX 3060Laptop GPU and 16GB RAM.
[0061] In summary, the present invention provides an enhanced odometer method based on the fusion of laser radar and camera. By converting image data into pseudo-lidar point cloud and fusing it with the point cloud data generated by the laser radar, the accuracy and stability of the odometer for vehicle posture estimation are greatly improved, and the problems of poor performance of the laser radar and camera fusion odometer, insufficient fusion of image and laser radar point cloud data, and overconfident estimation of a certain type of sensor modality in different environments are solved. The present invention first uses a deep completion network to convert the image data generated by the camera into pseudo-lidar point cloud data, so that the image data and the laser radar point cloud data have a consistent representation form. Secondly, the present invention uses Bayesian inference to fuse the pseudo-lidar point cloud data with the laser radar point cloud data, and generates fused point cloud data by calculating the reprojection error and confidence map of the two. Finally, the present invention uses the fused point cloud as the input of the odometer to realize an odometer that balances the weights of the laser radar and the camera. Compared with pseudo-lidar point cloud data converted only by camera, the average trajectory error of the present invention is reduced by about 90%, and compared with using only lidar point cloud data, the average trajectory error is reduced by about 40%; compared with the best competitive method, the average trajectory error is reduced by about 45%, effectively improving the estimation accuracy of the odometer.
Claims
1. An enhanced odometer method based on laser radar and camera fusion, characterized in that: The steps include: Step 1: Convert the point cloud L generated by the lidar into a sparse depth map S, and input the sparse depth map S and the image I generated by the camera into the depth completion network to obtain a dense depth map D. Finally, the dense depth map D is back-projected into the 3D space to be converted into a pseudo lidar point cloud P. Step 2: According to the reprojection error E of the lidar point cloud L and the pseudo lidar point cloud P, calculate the confidence map C of the lidar point cloud L and the pseudo lidar point cloud P respectively L With C P , and use this as a basis to calculate the fused point cloud F; Step 3: Use the fused point cloud F as an arbitrary lidar odometry frame input to estimate the current vehicle pose.
2. The enhanced odometer method based on laser radar and camera fusion according to claim 1, characterized in that: The step 1 is specifically as follows: Step 1-1: Align the LiDAR with the camera; The point cloud L generated by the laser radar is L = [x L ,y L ,z L ] T According to the known camera intrinsic parameter matrix, it is converted into a sparse depth map S = [u L ,v L ,1] T , the formula is as follows: in Represents the transformation matrix from the lidar coordinate system to the camera coordinate system, R rect is the correction matrix, is the transformation matrix from the camera coordinate system to the image coordinate system; Step 1-2: Perform depth estimation on pixels that do not contain depth values, and input the obtained sparse depth map S and image I into a depth completion network similar to PENet to obtain a dense depth map D; Step 1-3: Back-project the dense depth map D into 3D space to convert it into a pseudo LiDAR point cloud P.
3. The enhanced odometer method based on laser radar and camera fusion according to claim 2, characterized in that: The step 2 is specifically as follows: Bayesian inference is used to fuse lidar and camera, and their confidence maps are estimated by calculating the reprojection error E, as follows: Where X represents the 3D coordinate of the current point cloud in the laser radar coordinate system, Represents the 2D coordinates of the current point cloud in the image coordinate system, and M represents the total number of points in the current point cloud; The confidence map of each point cloud is calculated as c = e -λE , where λ is a normalization constant; if the calculated depth is negative, the confidence is set to zero; through Bayesian reasoning, the output of the fused point cloud F is calculated as follows:
4. The enhanced odometer method based on laser radar and camera fusion according to claim 3, characterized in that: In step 3, the LOAM framework is used to perform pose estimation.
