A comprehensive tutorial on Stereo Geometry and Stereo Rectification with Examples.
Assuming you've anaconda installed, create a virtual environment and install dependencies.
conda create -n stereo-geometry python=3.6 anaconda
conda activate stereo-geometry
git clone https://github.com/wingedrasengan927/Stereo-Geometry.git
cd Stereo-Geometry
pip install -r requirements.txt
There are two main libraries we'll be using:
pytransform3d: This library has great functions for visualizations and transformations in the 3D space.
ipympl: It makes the matplotlib plot interactive allowing us to perform pan, zoom, and rotation in real time within the notebook which is really helpful when working with 3D plots.
Note: If you're using Jupyter Lab, please install the Jupyter Lab extension of ipympl from here
ipympl can be accessed in the notebook by including the magic command %matplotlib widget
The code follows this article