Skip to content

tkarabela/fisheye-lens-model

Repository files navigation

Fisheye lens calibration

What

This is a notebook for determining intrinsic parameters of fisheye lenses (principal point, focal length). It is based on maximizing collinearity of a chessboard pattern undistorted to rectilinear projection. The lens model used is PTGui parametric fisheye projection.

Why

I didn't have luck with out-of-the-box OpenCV fisheye calibration, so I just used the chessboard preprocessing and created a simpler, hopefully more robust alternative.

It can be useful for:

  • setting initial camera intrinsics for COLMAP
  • measuring the focal length and projection of your fisheye lens

How

uv sync
jupyter lab

Open the fisheye_lens_model.ipynb notebook, then follow the instructions there.

License

MIT (see LICENSE.txt).