Ask Your Question

Stereo calibration for beginners

asked 2016-03-30 14:27:31 -0600

akihiko gravatar image

Hello, I'd like to make a stereo program in C++ with OpenCV 2.4. I just tested cv::StereoBM and cv::StereoSGBM without calibration, but the result was inaccurate.

Could you give me good references (URLs) written about recent stereo calibration with OpenCV? I also want some sample codes.

Although I googled stereo calibration with OpenCV, there are many resources including old ones, someone's trials, I couldn't find a good reference. Please recommend a good introduction.

Thanks! -- Akihiko

edit retag flag offensive close merge delete



can't help with a tutorial, but here's the sample code

berak gravatar imageberak ( 2016-03-31 01:36:06 -0600 )edit

This tutorial is quite recent and should guide you through all the necessary steps!

StevenPuttemans gravatar imageStevenPuttemans ( 2016-03-31 04:15:40 -0600 )edit

Thank you so much for the pages!

akihiko gravatar imageakihiko ( 2016-04-01 16:07:16 -0600 )edit

3 answers

Sort by ยป oldest newest most voted

answered 2016-04-01 16:14:09 -0600

akihiko gravatar image

updated 2016-04-01 16:24:21 -0600

A camera calibration tool implemented on ROS (Robot Operating System) was easy to use.

camera_calibration/Tutorials/Stereo Calibration:

Although for me this tool would be enough, its source code is available online (written in Python though).

Other good pages were:

Jay Rambhia: Stereo Calibration (introduced by #StevenPuttemans)

OpenCV documentation: Camera calibration With OpenCV

edit flag offensive delete link more

answered 2017-08-03 01:45:14 -0600

I just got 2 Xiaomi Yi 4k+ cameras which I plan to use for RGBD input for neural network training. And got into this calibration domain. I will probably need to test multiple methods and I am interested in <1mm precision for sure.

I have found following paper:

There is also available Multi Cam Self Calibration package, which sounds promissing:

I am interested in your results.

edit flag offensive delete link more

answered 2018-05-05 07:14:52 -0600

timmb gravatar image

I found these tutorials from Sourish Ghosh helpful:

Calibrating a camera (first step)

Stereo calibration of two cameras (second step)

Also this paper from Antonio Albiol has some good tips: Notes on the Use of Multiple Image Sizes at OpenCV stereo

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2016-03-30 14:27:31 -0600

Seen: 5,565 times

Last updated: May 05 '18