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

camera_calibration: checkerboard target not found [closed]

asked 2012-08-15 08:44:07 -0600

updated 2013-01-24 01:09:52 -0600

Hello everyone!

I am having a really hard time calibrating my Videre Design stereo cameras within ROS. My driver node is publishing the appropriate CameraInfo and Image messages, but the calibration tool is never able to find the checkerboard pattern.

I have tried better illumination and even printed targets of different sizes. What could I be doing wrong? Is there any chance my driver node is not behaving as expected?

I tried to use the videre_stereo_cam package initially, but I was never able to get it to work. So I simply wrote a wrapper node for the SVS (Small Vision System, by SRI International) libraries we used prior to ROS and, as far my judgement goes, it is working perfectly fine.

Thanks for your attention!

EDIT: Turns out the problem was with the definition of the size parameter of camera_calibrator. OpenCV expects the number of inner corners, not the number of squares. That was quite misleading and I was only able to figure that out after reading this.

I suggest the documentation and/or tutorials are more explicit about that. OpenCV documentation is quite clear about how cvFindChessboardCorners works), but the user of camera_calibration won't know that function is used until they open the source code.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by georgebrindeiro
close date 2012-09-05 19:07:03

Comments

Could you post some pictures from your camera in which the checkerboard can't be detected?

Dan Lazewatsky gravatar image Dan Lazewatsky  ( 2012-08-15 10:42:53 -0600 )edit

Sure thing! I will post them here as soon as I get back to the lab tommorow.

georgebrindeiro gravatar image georgebrindeiro  ( 2012-08-15 17:04:14 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-09-05 19:06:45 -0600

Turns out the problem was with the definition of the size parameter of camera_calibrator. OpenCV expects the number of inner corners, not the number of squares. That was quite misleading and I was only able to figure that out after reading this.

I suggest the documentation and/or tutorials are more explicit about that. OpenCV documentation is quite clear about how cvFindChessboardCorners works), but the user of camera_calibration won't know that function is used until they open the source code.

edit flag offensive delete link more

Comments

I also spent today struggling with this. Its rather exact too. A 9x9 checkerboard would require a 8x8, searching for a smaller 8x7 would fail.

rukie gravatar image rukie  ( 2019-09-19 16:18:14 -0600 )edit

Question Tools

Stats

Asked: 2012-08-15 08:44:07 -0600

Seen: 2,379 times

Last updated: Jan 24 '13