An example of camera calibration using direct linear transformation (DLT).
The initial DLT estimate is updated with geometric error minimization using non-linear optimization.
For a written explanation of DLT and the code, see N. Krishna's original blog post.
-
calibration/geometry.py
-
calibration/losses.py
-
calibration/projection.py
-
camera-calibration.ipynb
git clone https://github.com/DiTo97/camera-calibration.git
cd camera-calibration
python -m venv venv
source venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
Then, just play with camera-calibration.ipynb
on Jupyter.