Lidar Camera Calibration Issue
7 views (last 30 days)
Show older comments
Hi,
I used the Lidar Camera Calibration app from matlab to find the transformation between the two sensors. However, after projecting lidar points into the image, there is a clear shift in the projection. Sample images are as below; (Os: Ubuntu 20.04, MATLAB R2021b)




checkerSize = 110; % millimeters
padding = [44 35 43 35]; % millimeters
imageFilesPath = fullfile('camera');
pcFilesPath = fullfile('velo_2');
lidarCameraCalibrator(imageFilesPath,pcFilesPath,checkerSize,padding)
When projecting data, I used the below code;
J = undistortImage(image, camIntrincis.cameraParams.Intrinsics);
indices = findPointsInROI(ptCloud,[0 50 -15 15 -3 3]);
ptCloudProcessed = select(ptCloud,indices);
[imPts, imPtIdx] = projectLidarPointsOnImage(ptCloudProcessed, ...
camIntrincis.cameraParams.Intrinsics, veloToCam.tform);
clr = ptCloudProcessed.Location(imPtIdx, 1);
figure;
pcshow(ptCloudProcessed);
figure(f1);
imshow(J)
hold on
scatter(imPts(:,1),imPts(:,2), 2, clr, 'filled');
colormap hsv;
hold off
pause
My data has Lidar point clouds are from Velodyne HDL 64 with 10 fps and camera is 20 fps. However, images does not have a timestamp on it. Both lidar data is are stored as vpcap files for 60 seconds durations. But I manually achieve the synchronization between the two sensors. There two possible scenarios for the probelm, that I can think of;
- Two sensors are not properly synchronized. But when you look at the data this may not be the case. Lidar projectin seems always shifted higher than that of image position. Also always some of the lidar points on the road are projected on to the vehicle bonnet.
- I am doing something wrong or I need better data ?
Calibration results are also attached herewith. I have used about 30 image-lidar pairs for calibration.
Is there a way to rectify this error?
Appreciate any suggestions or inputs.
2 Comments
Kritika Bansal
on 14 Dec 2021
Hi,
As you mentioned- the images do not have timestamps, could you help us understand how are you achieving the synchronization between the camera and the lidar?
Also, would it be possible for you to share the data you are working with? You can also contact the technical support team to help you understand the results better.
-Kritika
Answers (0)
See Also
Categories
Find more on MATLAB Support Package for USB Webcams in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!