aujfa / stereo-vision-3D-reconstruction

A C++ application for 3D image reconstruction from two images using stereo vision technique

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stereo Vision 3D Reconstruction

This is a C++ application for 3D image reconstruction from two images using stereo vision technique. Stereo pair was obtained with two low resolution web cameras.

stereo-vision-3D-reconstruction.mp4

Requirements

  • Two webcams or stereo camera
  • openCV 3.4.0 (with contrib module)
  • A chessboard pattern pattern.png which you can download from here

Steps

  1. Print the chessboard pattern and paste it on a hard surface or display it on your phone or tablet. The print/image needs to be as straight as possible!
  2. Capture multiple images of the chessboard pattern from the different views (as you can see here) for calibration using takeChessboardImages() function from camera_calibrator.cpp.
  3. I have included one stereo pair. You need to make your own with the cameras you calibrated. Create a stereo pair using takeStereoPair() from camera_calibrator.cpp.
  4. Finally, reconstruct the scene with ReconstructPointCloud() from camera_calibrator.cpp.

* blendPictures() is a helper function to ease the process of aligning the cameras for the stereo pair capture. It is not needed for reconstruction.

* opencv_world340d.dll is compiled binary for Visual Studio 2017 32-bit. If you have some other IDE, you need to compile your own binary from source.

Resources

About

A C++ application for 3D image reconstruction from two images using stereo vision technique


Languages

Language:C++ 100.0%