Package calib3d

This library offers several tools for manipulation of calibrated cameras, projective geometry and computations using homogenous coordinates.

Camera calibration allows to determine the relation between the camera's pixels (2D coordinates) and points in the real world (3D coordinates). It implies computation using homogenous coordinates. This python library aims at simplifying implementations of projective geometry computations, building on top of numpy and cv2.

The different modules are document here:

Expand source code
__doc__ = r"""
This library offers several tools for manipulation of calibrated cameras, projective geometry and computations using homogenous coordinates.

Camera calibration allows to determine the relation between the camera's pixels (2D coordinates) and points in the real world
(3D coordinates). It implies computation using homogenous coordinates. This python library aims at simplifying implementations
of projective geometry computations, building on top of `numpy` and `cv2`.

The different modules are document here:

- [Computations with homogenous coordinates](./points.html)
- [Projective geometry and calibrated cameras](./calib.html)
- [Drawing 3D objects on a 2D canvas using projective geometry](./draw.html)

"""

from .points import Point3D, Point2D, VanishingPoint
from .calib import Calib, parameters_to_affine_transform, compute_rotation_matrix, line_plane_intersection, compute_shear_rectification_matrix
from .draw import ProjectiveDrawer

Sub-modules

calib3d.calib

Theoretical introduction …

calib3d.draw

Projective Drawing …

calib3d.points

Working with homogenous coordinates …

calib3d.pycuda
calib3d.tf1