Laser radar-camera online self-calibration method based on semantic edge alignment
Through the online self-calibration method of semantic edge alignment, the problem of extrinsic parameter deviation of lidar and camera sensors in autonomous vehicles is solved, achieving accurate calibration and improved stability in any scene, improved adaptability and robustness, and is applicable Multi-sensor fusion for autonomous vehicles.
Patent Information
- Application Number
- CN202410777917.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-06-17
AI Technical Summary
The extrinsic parameter deviation between lidar and camera sensors in autonomous vehicles gradually decreases during driving. Existing self-calibration technology relies on specific structural objects and scene constraints, and its adaptability and robustness are insufficient.
An online self-calibration method based on semantic edge alignment is adopted to perform semantic segmentation on camera images and lidar point cloud data, extract semantic edges, and use the initial external parameter matrix to project the point cloud semantic edges to the camera image coordinate system, and optimize it through iteration Align the edges of the projected 2D point cloud with the semantic edges of the image to obtain the calibrated extrinsic parameter matrix.
It achieves accurate online calibration of the external parameter matrix between the lidar and the camera without relying on specific calibration objects, improves the stability of the sensor parameters and scene adaptability, and can perform self-calibration in scenes of any shape, reminding The car owner repaired the abnormality and improved the multi-sensor fusion accuracy of autonomous driving.
Smart Images

Figure CN118736019A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a laser radar-camera self-calibration method in the field of autonomous driving technology and multi-sensor fusion, and in particular to a laser radar-camera online self-calibration method based on semantic edge alignment. Background Art
[0002] To ensure accurate and stable perception of the surrounding environment, self-driving cars are usually equipped with a series of different sensors. Cameras and lidar are the two main types of sensors used in self-driving cars. The complementary characteristics of the two sensors make them the preferred combination for many perception tasks. Lidar sensors are able to obtain spatial data over a large range, but have low resolution and no color information, while camera sensors can obtain high-resolution RGB images, but are sensitive to light and have no distance information. In order to make up for each other's weaknesses, the combination of lidar and camera sensors has become a typical and indispensable setup for mobile robots and self-driving car applications.
[0003] As a key prerequisite for the combination, accurate extrinsics, i.e. estimating the transformation matrix between the two sensor coordinate systems, is usually the first and crucial step. Artificial targets such as chessboards are usually used for parameter calibration. However, the accuracy of these calibration parameters will decrease over time due to aging, bumps, collisions, etc. of the sensors during driving. Especially on vehicles, large errors in rotation parameters are more common than errors in translation parameters. Therefore, an accurate and reliable online calibration method is needed to calibrate the offset calibration parameters online during vehicle driving by effectively fusing geometric and optical information.
[0004] Existing self-calibration technologies usually require specific structural objects such as pillars, poles or large planes in the scene, or require prior constraints such as parallel lane lines, and the scene adaptability of online self-calibration is not strong. This method uses the semantic edge information of arbitrary shapes in general road scenes, and realizes self-calibration by aligning the semantic edges in the image and the laser, which greatly improves the robustness of the calibration scene. Summary of the invention
[0005] The purpose of the present invention is to overcome the deficiencies in the prior art and to provide a method for online self-calibration of lidar and camera based on semantic edge alignment without a calibration device, thereby solving the problem of external parameter deviation between sensors during the driving process of an autonomous vehicle.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] 1. A LiDAR-Camera Online Self-calibration Method Based on Semantic Edge Alignment
[0008] 1) Perform semantic segmentation processing on the image data collected by the camera to obtain the image semantic segmentation result, and extract the image semantic edge according to the semantic segmentation result;
[0009] 2) Perform semantic segmentation processing on the point cloud data collected by the lidar to obtain the point cloud semantic segmentation result, and extract the point cloud semantic edge according to the point cloud semantic segmentation result;
[0010] 3) Use the initial extrinsic parameter matrix to project the semantic edge of the point cloud to the camera image coordinate system to obtain the projected 2D point cloud edge; perform iterative optimization of the extrinsic parameters based on the projected 2D point cloud edge and the image semantic edge, so that the projected 2D point cloud edge is aligned with the image semantic edge, thereby obtaining the calibrated extrinsic parameter matrix.
[0011] In the above 1), the image semantic edge is obtained by processing the image semantic segmentation result using an edge extraction method.
[0012] In the above 2), the semantic edge of the point cloud is extracted according to the point cloud semantic segmentation result, specifically:
[0013] Firstly, the semantic segmentation result of the point cloud is transformed into a surround view to obtain a sparse surround view image, which contains 4 channels, representing the 3D coordinates and semantic prediction results of the point cloud respectively. Then, the sparse surround view image is filled and completed into a dense image to obtain a dense surround view image. Then, the edge detection method is used to extract the edge on the dense surround view image to obtain the semantic edge of the point cloud.
[0014] The specific aspects of 3) are:
[0015] 3.1) According to the current external parameter matrix and the camera's internal parameter matrix, the semantic edge of the point cloud is projected onto the image to generate the projected 2D point cloud edge in the camera image coordinate system;
[0016] 3.2) Count the number of image semantic edge points of the same category near each 2D point cloud projection point in the projected 2D point cloud edge and record it as the matching number of each 2D point cloud projection point. If the matching number of each 2D point cloud projection point is greater than or equal to 1, then each 2D point cloud projection point is recorded as a matching edge point.
[0017] 3.3) If the ratio of the number of matched edge points to the number of points in the edge of the projected 2D point cloud is less than the preset threshold, a calibration abnormality alarm is issued, otherwise execute 3.4);
[0018] 3.4) Perform weighted summation on each 2D point cloud projection point according to the semantic category weight and the number of matches to obtain the matching confidence of each 2D point cloud projection point, and take the result of accumulating the matching confidence of all 2D point cloud projection points in the edge of the projected 2D point cloud as the matching confidence of the current external parameter matrix;
[0019] 3.5) Repeat 3.1)-3.4) to search the external parameters from coarse to fine, and take the external parameter matrix with the highest matching confidence as the calibrated external parameter matrix.
[0020] In the above 1), a neural network is used to perform semantic segmentation processing on the image data collected by the camera to obtain an image semantic segmentation result.
[0021] In the above 2), a neural network is used to perform semantic segmentation processing on the point cloud data collected by the lidar to obtain a point cloud semantic segmentation result.
[0022] 2. A computer device
[0023] The device comprises a memory and a processor, wherein the memory stores a computer program, and the steps of the method are implemented when the processor executes the computer program.
[0024] 3. A computer-readable storage medium
[0025] The medium stores a computer program, which implements the steps of the method when executed by a processor.
[0026] IV. A COMPUTER PROGRAM PRODUCT
[0027] The product comprises a computer program / instructions which, when executed by a processor, implement the steps of the method.
[0028] Compared with the prior art, the present invention has the following advantages:
[0029] 1. The present invention makes full use of the correspondence between the semantic edge of the LiDAR point cloud and the semantic edge of the camera image. Without the need for specific calibration objects, it can adapt to the edge matching of semantic categories of arbitrary shapes, realize the online calibration of the external parameter matrix between the LiDAR and the camera, and ensure the stability of the parameters between sensors during the driving process of the autonomous driving vehicle. The design of the calibration abnormality alarm takes into account the specific problems in the actual driving scene of the vehicle, reminding the owner that maintenance is needed.
[0030] 2. The present invention uses a neural network to obtain semantic segmentation results of images and point clouds, which has more stable characteristics and better robustness than traditional algorithms. As the amount of data collected during vehicle driving increases, the segmentation effect of the trained neural network will also be more accurate.
[0031] 3. The present invention does not rely on specific features in the scene, has high calibration accuracy and good reliability, solves the limitation of existing self-calibration methods that are overly dependent on specific artificial scenes such as pillars and lane lines, improves the scene adaptability of online self-calibration of lidar and camera, and has high practical value for accurate multi-sensor fusion of autonomous driving. Existing online calibration algorithms rely on features and assumptions in the scene, such as always being able to see lane lines and that the lane lines are parallel, the ground is horizontal, etc., while the present invention does not require specific and clear targets in the scene. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the technical solution of the embodiment of the present invention and better reflect the innovation and practicality of the invention as well as the basic technical principles, the present invention is further described in detail below with reference to the accompanying drawings.
[0033] Figure 1 The figure is a flow chart of the overall method of the present invention.
[0034] Figure 2 It is the image semantic edge map of the embodiment of the present invention.
[0035] Figure 3 This is a point cloud semantic edge map according to an embodiment of the present invention.
[0036] Figure 4 This is a laser radar point cloud projection image before and after calibration of an embodiment of the present invention. DETAILED DESCRIPTION
[0037] The present invention will be further described in detail 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.
[0038] The embodiment and implementation process of the complete method according to the invention content of the present invention are as follows:
[0039] like Figure 1 As shown, the present invention provides a lidar-camera online self-calibration method based on semantic edge alignment, comprising the following steps:
[0040] 1) Use a neural network to perform semantic segmentation on the image data collected by the camera to obtain dense image semantic segmentation results. Based on the semantic segmentation results, use the edge extraction method to extract the image semantic edges;
[0041] 1) Specifically:
[0042] 1.1) Use the OneFormer image semantic segmentation network to process the original image and obtain the semantic segmentation result of the original image size. Different semantic categories are represented by different RGB colors;
[0043] 1.2) For the semantic segmentation image obtained in 1.1), the Canny operator is used to fit the semantic edge, such as Figure 2 As shown, different colors represent different semantic categories.
[0044] 2) Use a neural network to perform semantic segmentation on the point cloud data collected by the lidar to obtain the point cloud semantic segmentation result, and extract the point cloud semantic edge based on the point cloud semantic segmentation result;
[0045] like Figure 3 As shown, step 2) is specifically as follows:
[0046] 2.1) Use Cylinder3d point cloud semantic segmentation network to process the original point cloud and predict the semantic category of each point in the point cloud;
[0047] 2.2) For the semantic segmentation result of the point cloud obtained in 2.1), the point cloud is transformed into a surround view (Range-View) through the laser radar beam and its vertical and horizontal resolutions, and a sparse surround view image corresponding to the semantic segmentation result of the point cloud is generated. The sparse surround view image contains 4 channels, which represent the 3D coordinates of the point cloud and the semantic prediction results respectively. In the following steps, the semantic category single channel image of the sparse surround view image is processed;
[0048] 2.3) The sparse annular view image obtained in step 2.2) is sparse. In order to fit the edge using the Canny operator, the inpaint function in the opencv library is first used to fill the pixels at the hole position to obtain a dense annular view image;
[0049] 2.4) The Canny edge detection method is used to extract the semantic edges of the semantic category channels of the sparse surround view image. Since the 3D position of the original point cloud is stored in the channel of the sparse surround view image, the semantic edges of the original point cloud can be directly obtained, thereby obtaining the semantic edges of the point cloud.
[0050] 3) Use the initial calibrated extrinsic parameter matrix to project the semantic edge of the point cloud to the camera image coordinate system to obtain the projected 2D point cloud edge; iteratively optimize the extrinsic parameters based on the projected 2D point cloud edge and the image semantic edge so that the projected 2D point cloud edge is aligned with the image semantic edge, thereby obtaining the calibrated extrinsic parameter matrix.
[0051] Step 3) is specifically:
[0052] 3.1) According to the current calibration extrinsic matrix and the camera's intrinsic matrix, the semantic edge of the point cloud is projected onto the image to generate the projected 2D point cloud edge in the camera image coordinate system. The mathematical expression of the projection is as follows:
[0053]
[0054] Among them, X, Y, Z are the 3D position coordinate values of the point cloud in the laser radar coordinate system, T is the external parameter matrix between the laser radar and the camera, K is the camera internal parameter matrix, Zc is the depth of the point in the camera coordinate system, and u and v are the two pixel coordinate values of the projection point.
[0055] 3.2) Count the number of image semantic edge points of the same category within the 5x5 pixel window (centered on the 2D point cloud projection point) of each 2D point cloud projection point in the projected 2D point cloud edge and record it as the matching number of each 2D point cloud projection point. If the matching number of each 2D point cloud projection point is greater than or equal to 1, then each 2D point cloud projection point is recorded as a matching edge point.
[0056] 3.3) If the ratio of the number of matched edge points to the number of points in the edge of the projected 2D point cloud is less than 0.037, a calibration abnormality alarm is issued to remind the owner that repairs are needed when the external parameter deviation is too large, otherwise execute 3.4);
[0057] 3.4) Add weights to different semantic categories, such as car category weight 3, pole category weight 5, traffic sign category weight 7, and other analog weights are 1; perform weighted summation of each 2D point cloud projection point according to the semantic category weight and the number of matches to obtain the matching confidence of each 2D point cloud projection point, and take the result of accumulating the matching confidence of all 2D point cloud projection points in the edge of the projected 2D point cloud as the matching confidence of the current external parameter matrix;
[0058] 3.5) Repeat 3.1)-3.4) to perform external parameter search from coarse to fine at the three rotation angles of roll, pitch and yaw, and use the external parameter matrix with the highest matching confidence as the calibrated external parameter matrix. Specifically, first perform a local optimal search at 1.5° intervals between -5° and 5.5°, then perform a more refined local optimal search at 0.5° intervals between the angle range of -1.5° to 1.5° of the local optimal solution, and finally search at 0.2° intervals between the angle range of -0.5° to 0.5° of the refined local optimal angle.
[0059] Figure 4The effect of the present invention before and after calibration on the KITTI Odometry dataset is demonstrated, where the first row is the result of projecting all points in the point cloud onto the image, and the second row is the result of aligning the edge of the projected 2D point cloud with the semantic edge of the image. The first column is the result after true value projection according to the laser radar-camera extrinsic parameter calibration, the second column is the projection result after adding 5 degrees of random noise at three rotation angles, and the third column is the projection result of the present invention after self-calibration and correction of the extrinsic parameters after adding random noise. Before calibration, from the perspective of semantic edge projection, there is an obvious deviation between the semantic edge of the point cloud and the semantic edge of the image; after calibration, the larger rotation error is corrected by the algorithm, and the edge alignment result is almost completely consistent with the result of the true value projection.
[0060] Table 1 lists the calibration results of the present invention under the KITTI Odometry dataset. Select any 4 frames of data in the dataset, randomly add 5-degree angle noise and 3-degree angle noise respectively, and after calibrating the lidar-camera extrinsic parameters by the present invention, calculate the error between the calibration result and the true value. It can be seen from the table that the calibration accuracy of the rotation angle of the present invention is less than 0.5 degrees. At the same time, the angle outlier value is set to 4°. When 5-degree noise is added, the effectiveness of the abnormal alarm function is proved, and the alarm time is counted. As shown in the last column of Table 1, the alarm time is less than 0.1s.
[0061] Table 1 shows the self-calibration results of the present invention under the KITTI Odometry dataset
[0062]
[0063] To further demonstrate the effectiveness of the present invention, Table 2 lists the calibration results of the present invention under the KITTI Odometry dataset 00 sequence. Random noise is uniformly added to all data in the 00 sequence, and the average error between the calibration value and the true value after calibration by the present invention is calculated. It can be seen from the table that the present invention also achieves an accuracy of less than 0.5 degrees over the entire sequence.
[0064] Table 2 shows the self-calibration results of the present invention under the KITTI Odometry00 sequence
[0065] 00 sequence roll(°) pitch(°) yaw(°) Average calibration error (°) 5 degrees noise 0.0980 0.1534 0.2277 0.1597 3 degrees noise 0.1310 0.1351 0.2266 0.1643
[0066] Finally, it should be noted that the above embodiments and explanations are only used to illustrate the technical solution of the present invention rather than to limit it. Those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope disclosed in the technical solution of the present invention, which should be included in the scope of protection of the claims of the present invention.
Claims
1. A lidar-camera online self-calibration method based on semantic edge alignment, characterized in that: The steps include: 1) Perform semantic segmentation processing on the image data collected by the camera to obtain the image semantic segmentation result, and extract the image semantic edge according to the semantic segmentation result; 2) Perform semantic segmentation processing on the point cloud data collected by the lidar to obtain the point cloud semantic segmentation result, and extract the point cloud semantic edge according to the point cloud semantic segmentation result; 3) Use the initial extrinsic parameter matrix to project the semantic edge of the point cloud to the camera image coordinate system to obtain the projected 2D point cloud edge; perform iterative optimization of the extrinsic parameters based on the projected 2D point cloud edge and the image semantic edge, so that the projected 2D point cloud edge is aligned with the image semantic edge, thereby obtaining the calibrated extrinsic parameter matrix.
2. The method for online self-calibration of a laser radar and a camera based on semantic edge alignment according to claim 1, characterized in that: In the above 1), the image semantic edge is obtained by processing the image semantic segmentation result using an edge extraction method.
3. The method for online self-calibration of a laser radar and a camera based on semantic edge alignment according to claim 1, characterized in that: In the above 2), the semantic edge of the point cloud is extracted according to the point cloud semantic segmentation result, specifically: Firstly, the semantic segmentation result of the point cloud is transformed into a surround view to obtain a sparse surround view image, which contains 4 channels, representing the 3D coordinates and semantic prediction results of the point cloud respectively. Then, the sparse surround view image is filled and completed into a dense image to obtain a dense surround view image. Then, the edge detection method is used to extract the edge on the dense surround view image to obtain the semantic edge of the point cloud.
4. The method for online self-calibration of a laser radar and a camera based on semantic edge alignment according to claim 1, characterized in that: The specific aspects of 3) are: 3.1) According to the current external parameter matrix and the camera's internal parameter matrix, the semantic edge of the point cloud is projected onto the image to generate the projected 2D point cloud edge in the camera image coordinate system; 3.2) Count the number of image semantic edge points of the same category near each 2D point cloud projection point in the projected 2D point cloud edge and record it as the matching number of each 2D point cloud projection point. If the matching number of each 2D point cloud projection point is greater than or equal to 1, then each 2D point cloud projection point is recorded as a matching edge point. 3.3) If the ratio of the number of matched edge points to the number of points in the edge of the projected 2D point cloud is less than the preset threshold, a calibration abnormality alarm is issued, otherwise execute 3.4); 3.4) Perform weighted summation on each 2D point cloud projection point according to the semantic category weight and the number of matches to obtain the matching confidence of each 2D point cloud projection point, and take the result of accumulating the matching confidence of all 2D point cloud projection points in the edge of the projected 2D point cloud as the matching confidence of the current external parameter matrix; 3.5) Repeat 3.1)-3.4) to search the external parameters from coarse to fine, and take the external parameter matrix with the highest matching confidence as the calibrated external parameter matrix.
5. The method for online self-calibration of a laser radar and a camera based on semantic edge alignment according to claim 1, characterized in that: In the above 1), a neural network is used to perform semantic segmentation processing on the image data collected by the camera to obtain an image semantic segmentation result.
6. The method for online self-calibration of a laser radar and a camera based on semantic edge alignment according to claim 1, characterized in that: In the above 2), a neural network is used to perform semantic segmentation processing on the point cloud data collected by the lidar to obtain a point cloud semantic segmentation result.
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
Citation Information
Patent Citations
Laser radar and camera online joint calibration method based on depth weighting
CN113327296A
Joint calibration method and system for vehicle sensor, vehicle and storage medium
CN115205396A
Joint calibration method for laser radar and camera under dark condition
CN117058249A
Robust laser radar-camera self-calibration method
CN117392237A
Semantic segmentation method and device, equipment, medium and automatic driving vehicle
CN117671263A
Cited By
Laser radar-camera calibration method based on block optimization and semantic compensation
CN120876620A
