CRLF: Automatic Calibration and Refinement based on Line Feature for LiDAR and Camera in Road Scenes

Tao Ma, Zhizheng Liu, Guohang Yan, Yikang LiarXiv 2021

Abstract

For autonomous vehicles, an accurate calibration for LiDAR and camera is a prerequisite for multi-sensor perception systems. However, existing calibration techniques require either a complicated setting with various calibration targets, or an initial calibration provided beforehand, which greatly impedes their applicability in large-scale autonomous vehicle deployment. To tackle these issues, we propose a novel method to calibrate the extrinsic parameter for LiDAR and camera in road scenes. Our method introduces line features from static straight-line-shaped objects such as road lanes and poles in both image and point cloud and formulates the initial calibration of extrinsic parameters as a perspective-3-lines (P3L) problem. Subsequently, a cost function defined under the semantic constraints of the line features is designed to perform refinement on the solved coarse calibration. The whole procedure is fully automatic and user-friendly without the need to adjust environment settings or provide an initial calibration. We conduct extensive experiments on KITTI and our in-house dataset, quantitative and qualitative results demonstrate the robustness and accuracy of our method.

Introduction

Accurate alignment between LiDAR and cameras is critical for the perception systems of autonomous vehicles. Traditional calibration methods often rely on manual targets like checkerboards, which are labor-intensive and difficult to scale for large-scale fleet deployment. While target-less methods have emerged, they frequently encounter the "cold start" problem—requiring a near-accurate initial guess—and often rely on unstable dynamic features or ground-plane features that lack spatial diversity. CRLF (Calibration and Refinement based on Line Feature) addresses these challenges by utilizing static road features like lanes and poles for a fully automatic, "one-shot" calibration that works in standard road scenes.

Methodology

The CRLF pipeline is divided into three primary stages: feature extraction, coarse calibration, and refinement.

Overview of the CRLF pipeline showing feature extraction, coarse calibration via P3L, and semantic refinement.

Line Feature Extraction

In the point cloud, RANSAC is employed to identify the ground plane, followed by the extraction of road lanes based on LiDAR intensity (as lanes are highly reflective) and poles via vertical cluster identification in a 2D grid. Simultaneously, a semantic segmentation network (BiSeNet-V2) processes the camera images to identify lanes and poles. To handle the thinness of these objects, a Dense Conditional Random Field (CRF) operator is applied to these masks to sharpen contours, ensuring they match real-world edges precisely.

Coarse Calibration and Refinement

The initial calibration is modeled as a Perspective-3-Lines (P3L) problem. By matching at least three lines (e.g., two lanes and one pole) between the 3D and 2D domains, the system estimates the 6-Degrees-of-Freedom (6DoF) extrinsic parameters without prior knowledge. This coarse estimate is then refined using a cost function based on an Inverse Distance Transform (IDT), which measures the alignment between projected LiDAR points and semantic image masks. A random search optimization fine-tunes the rotation and translation parameters to maximize this alignment.

Experimental Results

The method was evaluated on the KITTI Raw Dataset and an in-house dataset featuring a 64-beam Hesai LiDAR and a high-resolution camera to demonstrate generality across hardware.

Performance and Accuracy

CRLF demonstrates high efficiency, completing the entire process in approximately 0.31 seconds on standard hardware. On the KITTI dataset, the refined Mean Absolute Error (MAE) reached approximately 0.08m in translation and between 0.2° and 0.5° in rotation (roll, pitch, yaw). The refinement stage proved robust, recovering accurate parameters even from initial miscalibration errors of up to 1 meter and 6 degrees.

Qualitative result showing the precise alignment of LiDAR points with the camera image after refinement.

Discussion and Conclusion

By prioritizing static objects like lanes and poles, CRLF avoids the pitfalls of motion blur and temporal synchronization issues associated with dynamic objects. The inclusion of poles provides essential vertical and depth constraints that ground-plane-only methods lack. While the system is highly effective, its performance remains dependent on the quality of semantic segmentation and feature extraction, which can be challenged by adverse weather or lighting. Future work will explore incorporating more diverse geometric shapes to further enhance robustness in complex urban environments.

Summary updated

BibTeX
@misc{ma2021crlf,
  author = {Tao Ma and Zhizheng Liu and Guohang Yan and Yikang Li},
  title = {{CRLF: Automatic Calibration and Refinement based on Line Feature for LiDAR and Camera in Road Scenes}},
  year = {2021},
  eprint = {2103.04558},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.04558},
}
Figure