Ask Your Question
0

Stereo Camera Calibration Problems

asked 2018-01-10 06:05:38 -0600

leafdet gravatar image

I am trying to calibrate my stereo camera with the OpenCV Samples/stereo_calib.cpp file. I am getting a high rms error as well as a nonsensical rectified image output. I am entering the width,height,square size(side in cm),and the list of input left and right images. Is there any other parameter I should be wary of? What is the best procedure to calibrate it?

image descriptionimage description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-20 19:14:48 -0600

crackwitz gravatar image

tl;dr: hold the board very still or get a camera with global shutter.

Rolling shutter, a property of most webcams and some industrial cameras, can distort objects that are not perfectly still. If you've moved the board even just a little, it will affect everything you do with the picture, starting with intrinsic calibration.

To give you a sense of scale for the distortions: assuming a 30 fps video stream, the worst case rolling shutter lag is 33 ms. A pedestrian travels 40-50 mm in that time. if your hands are moving slightly, you can maybe expect a tenth of that, which is still A LOT in proportion to the checker square sizes most people use.

if you've printed your checker board pattern, make sure to measure the width and height of your squares. they might not be square at all.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-01-10 06:05:38 -0600

Seen: 582 times

Last updated: Feb 20 '19