Using a stereo camera, depth is determined by the concept of triangulation and stereo matching. By constraining the problem on a 2D plane known as the epipolar plane, we can simplify the formal search to a line search along the epipolar line.
- Identify similar points from feature descriptors.
- Match feature correspondence using a matching cost function.
- Using epipolar geometry, find and match correspondence in one picture frame to the other.
- Compute disparity from known correspondence.
- Compute depth from known disparity.
git clone https://github.com/Prat33k-dev/Stereo_Depth_Estimation.git
cd Stereo_Depth_Estimation/code
python3 stereo.py --filePath ../data_files/ --dataset 1
- FilePath - Dataset Path file path. Default :- '../data_files/'
- dataset - Dataset Number . Default :- '1'
Matches |
---|
Epipolar lines for unrectified images |
---|
Epipolar lines for rectified images |
---|
Disparity Map |
---|
Depth Map |
---|