/dscamera

Python library for Double Sphere Camera Model

Primary LanguagePythonMIT LicenseMIT

PyPI - Python Version pytest GitHub release (latest by date) codecov Code style: black GitHub pre-commit Imports: isort

Double Sphere Camera Model

Unofficial Python library of Double Sphere Camera Model for fisheye cameras.

Reference:

V. Usenko, N. Demmel, and D. Cremers, "The Double Sphere Camera Model", Proc. of the Int. Conference on 3D Vision (3DV), 2018.

Requirements

Python >= 3.6 with numpy and opencv.

Installation

Run the following command.

git clone https://github.com/matsuren/dscamera
cd dscamera
python setup.py install

Camera calibration

Please use Basalt for fisheye camera calibration. The detail instruction is available here.

Example

Please check example folder for fisheye image rectifications.

Input fisheye image:

Output perspective image:

Output equirectangular image: