heethesh / lidar_camera_calibration

Light-weight camera LiDAR calibration package for ROS using OpenCV and PCL (PnP + LM optimization)
BSD 3-Clause "New" or "Revised" License
536 stars 118 forks source link

Which target to use the calibrate the camera? #13

Closed gonultasbu closed 3 years ago

gonultasbu commented 3 years ago

Hello,

I recorded a rosbag while showing a regular checkerboard template with 25mm squares a a calibration target to the camera, however the camera calibration script doesn't seem to do anything with that rosbag. It just plays the rosbag, finished it, and restarts. Corresponding calibration data folders are empty.

Thank you.

heethesh commented 3 years ago

You can use any target supported by the ROS camera_calibration package. Update the parameters you use in this line and run the following commands. The camera calibrator GUI should show up. The calibrated parameters are stored at ~/.ros/camera_info.

sudo apt install ros-melodic-camera-calibration # or ros-kinetic
roslaunch lidar_camera_calibration camera_calibration.launch
gonultasbu commented 3 years ago

Turns out I needed to adjust the parameters (square size and checkerboard size) indeed and hold the calibration target closer. Thanks for the clarification!