CameraTransform: A Python package for perspective corrections and image mapping

Gerum R, Richter S, Winterl A, Mark C, Fabry B, Le Bohec C, Paranhos Zitterbart D (2019)


Publication Type: Journal article

Publication year: 2019

Journal

Book Volume: 10

Article Number: 100333

DOI: 10.1016/j.softx.2019.100333

Abstract

Camera images and video recordings are simple and non-invasive tools to investigate animals in their natural habitat. Quantitative evaluations, however, often require an exact reconstruction of object positions, sizes, and distances in the image. Here, we provide an open source software package to perform such calculations. Our approach allows the user to correct for perspective distortion, transform images to “bird's-eye” view projections, or transform image-coordinates to real-world coordinates and vice versa. The extrinsic camera parameters that are necessary to perform such image corrections and transformations (elevation, tilt/roll angle, and heading of the camera) are obtained from the image using contextual information such as a visible horizon, GPS coordinates of landmarks, known object sizes, or images of the same object obtained from different viewing angles. All mathematical operations are implemented in the Python package CameraTransform. The performance of the implementation is evaluated using computer-generated synthetic images with known camera parameters. Moreover, we test our algorithm on images of emperor penguin colonies, and demonstrate that the camera tilt and roll angles can be estimated with an error of less than one degree, and the camera elevation with an error of less than 5%. The CameraTransform software package simplifies camera matrix-based image transformations and the extraction of quantitative image information. An extensive documentation and usage examples in an ecological context are provided at http://cameratransform.readthedocs.io.

Authors with CRIS profile

Involved external institutions

How to cite

APA:

Gerum, R., Richter, S., Winterl, A., Mark, C., Fabry, B., Le Bohec, C., & Paranhos Zitterbart, D. (2019). CameraTransform: A Python package for perspective corrections and image mapping. SoftwareX, 10. https://doi.org/10.1016/j.softx.2019.100333

MLA:

Gerum, Richard, et al. "CameraTransform: A Python package for perspective corrections and image mapping." SoftwareX 10 (2019).

BibTeX: Download