Ask Your Question
1

camera_calibration cameracalibrator.py 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 (http://www.ros.org/wiki/camera_calibration). I can start "cameracalibrator.py" 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 cameracalibrator.py --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
2

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 cameracalibrator.py --size 8x6 --square 0.039 /image:=gscam/image_raw

Thankyou however

edit flag offensive delete link more
2

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

Comments

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 650 times

Last updated: Oct 02 '12