camera_calibration: checkerboard target not found [closed]
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.
Could you post some pictures from your camera in which the checkerboard can't be detected?
Sure thing! I will post them here as soon as I get back to the lab tommorow.