/Stereo-Geometry

A comprehensive tutorial on Stereo Geometry and Stereo Rectification

Primary LanguageJupyter Notebook

A comprehensive tutorial on Stereo Geometry and Stereo Rectification with Examples.

Setting up

Assuming you've anaconda installed, create a virtual environment and install dependencies.

Create Virtual Environment

conda create -n stereo-geometry python=3.6 anaconda
conda activate stereo-geometry

Clone and Install dependencies

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

Article

The code follows this article