acfr / cam_lidar_calibration

(ITSC 2021) Optimising the selection of samples for robust lidar camera calibration. This package estimates the calibration parameters from camera to lidar frame.
Apache License 2.0
438 stars 103 forks source link

Lidar centre vs pointcloud projection #10

Closed lundstrom14 closed 2 years ago

lundstrom14 commented 2 years ago

Hi, thanks for a great tool.

I'm wondering why the lidar centre looks to be projected spot on, but the resulting pointcloud is way off target. I'm using a wide angle lens (74 degree fov), but should have relatively low distortion.

Even if the result is expected to behave worse at the camera edges this much re-projection error for the pointcloud is very unexpected. Is the lidar centre projected differently?

Mean reprojection error across  31 samples
- Error (pix) =  9.391 pix, stdev =  5.864
- Error (mm)  = 32.677 mm , stdev = 18.313

Screenshot from 2021-12-14 11-55-49

Thank you,

darrenjkt commented 2 years ago

It does appear to have low distortion but you can't really be sure that it doesn't affect the calibration. Double-check the distortion matrix in your camera driver and you'll have to implement a rectification of the image in this repo.

Additionally, you should have an open area for capturing chessboard samples. Make sure you get poses that span the width of the image frame, and also which go from near to far. If you don't have chessboard poses in the extremities of the image, it may not find a good calibration. Make sure you also included poses where the chessboard is tilted up and down in order to get more varied normals.