ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

camera_calibration buttons are disabled

asked 2012-10-02 03:00:06 -0500

aldo85ita gravatar image

Hi everybody! I'm trying to do a monocular camera calibration with camera_calibration package ( I can start "" but the buttons "CALIBRATE","SAVE" and "COMMIT" are disabled. See: image description

So I can't do the calibration.

These are my commands:

export GSCAM_CONFIG="v4l2src num-buffers=-1 device=/dev/video1 caps=\"video/x-raw-yuv,width=640,height=480,format=(fourcc)YUY2\" ! ffmpegcolorspace"
roscd gscam
cd bin
rosrun gscam gscam &
rosrun camera_calibration --size 9x7 --square 0.039 /image:=gscam/image_raw &

And these are the node connections: image description

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-10-02 06:54:55 -0500

aldo85ita gravatar image

I find the fault!! I set the inner squares inside the checkboard (9x7) instead of the inner corners (8x6). So the right command is:

rosrun camera_calibration --size 8x6 --square 0.039 /image:=gscam/image_raw

Thankyou however

edit flag offensive delete link more

answered 2012-10-02 04:46:41 -0500

The buttons are disabled until you've captured enough samples to calibrate.

edit flag offensive delete link more


You need also different enough samples: try to move your camera or the calibration pattern around. Especially try different levels of zoom and place it around the corners of your image with different orientations...

Thomas gravatar image Thomas  ( 2012-10-02 05:01:50 -0500 )edit

worked for me i used the same chessboard print as used here. colorful lines appear on chessboard(actual boxes:9x7). the calibrate button appears only after sufficient(20-25) pics are taken from the video stream. it takes some time to turn blue from grey. when u click the calibrate button then save button will turn blue ,click it and the see the address(in terminal window) where camera calibration result data is saved.(maybe in zip format) extract the zip and you will see there some photos and the yaml file. the yaml file contain the calibration parameters for your camera.

YugalSharma gravatar image YugalSharma  ( 2020-03-13 13:03:38 -0500 )edit

Question Tools


Asked: 2012-10-02 03:00:06 -0500

Seen: 923 times

Last updated: Oct 02 '12