This repository contains the implementation of Stereo Visual Odometry (VO) pipeline in Python on the KITTI dataset. It processes stereo image data to estimate the motion of a camera (w.r.t its starting position) in 3D space using the approach of minimizing the 3D to 2D reprojection error.
- Feature detection using SIFT (Scale-Invariant Feature Transform)
- Feature matching using BFMatcher (Brute-Force Matcher)
- Triangulation of points
- 3D-2D motion estimation using PnP (Perspective-n-Point) with RANSAC (Random Sample Consensus)
- Python 3.8 or higher
- Required Python libraries:
numpymatplotlibopencv-pythonpytorchtqdm
- Clone this repository:
git clone https://github.com/FatimaYousif-01/Stereo_VO.git
- Navigate to the cloned directory:
cd Stereo_VO - Load the KITTI dataset in the folder
dataset/ - Run the main script:
python stereo_vo.py
- For checking the evaluation script:
- Copy the groundtruth trajectories (_gt.txt) for first 11 sequences and their estimated trajectories (_est.txt) in folder
evo_eval/results - In the evo_eval folder run:
python evo_metrics.py
- Copy the groundtruth trajectories (_gt.txt) for first 11 sequences and their estimated trajectories (_est.txt) in folder
The results below were evaluated using EVO, a recommended odometry and SLAM evaluation toolbox. Using this tool, we plotted the X-Z trajectory and computed the Absolute Pose Error (APE) and Relative Pose Error (RPE) metrics.
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
Estimated Trajectory and Groundtruth Trajectory |
|
Absolute Pose Error |
Relative Pose Error |
- Fatima Yousif
- Sawera Yaseen































