As you move the checkerboard around you will see three bars on the calibration sidebar increase in length. When the
CALIBRATE
button lights, you have enough data for calibration and can click
CALIBRATE
to see the results.
Calibration can take about a minute. The windows might be greyed out but just wait, it is working.
After the calibration is complete you will see the calibration results in the terminal and the calibrated image in the calibration window:
A successful calibration will result in real-world straight edges appearing straight in the corrected image.
A failed calibration usually results in blank or unrecognizable images, or images that do not preserve straight edges.
After a successful calibration, you can use the slider at the top of the calibration window to change the size of the rectified image. A scale of 0.0 means that the image is sized so that all pixels in the rectified image are valid. The rectified image has no border, but some pixels from the original image are discarded. A scale of 1.0 means that all pixels in the original image are visible, but the rectified image has black borders where there are no input pixels in the original image.
D = [-0.33758562758914146, 0.11161239414304096, -0.00021819272592442094, -3.029195446330518e-05]
K = [430.21554970319971, 0.0, 306.6913434743704, 0.0, 430.53169252696676, 227.22480030078816, 0.0, 0.0, 1.0]
R = [1.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 1.0]
P = [1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0]
# oST version 5.0 parameters
[image]
width
height
[narrow_stereo/left]
camera matrix
430.215550 0.000000 306.691343
0.000000 430.531693 227.224800
0.000000 0.000000 1.000000
distortion
-0.337586 0.111612 -0.000218 -0.000030 0.0000
rectification
1.000000 0.000000 0.000000
0.000000 1.000000 0.000000
0.000000 0.000000 1.000000
projection
1.000000 0.000000 0.000000 0.000000
0.000000 1.000000 0.000000 0.000000
0.000000 0.000000 1.000000 0.000000
If you are satisfied with the calibration, click
COMMIT
to send the calibration parameters to the camera for permanent storage. The GUI exits and you should see "writing calibration data to ..." in the console.
Creating a yml file
The
Camera Calibration Parser
helps you to create a yml file, which you can load with nearly all ros camera driver using the
camera_info_url
parameter.
Rectifying an image
Simply loading a calibration file does not rectify the image. For rectification, use the
image_proc package
.
Wiki: camera_calibration/Tutorials/MonocularCalibration (last edited 2019-09-19 20:59:44 by
rukie
)