_calibrate_camera
Module Contents
Functions
|
Calibrate cameras for distortion and fisheye effects. |
- calibrate_camera(calibration_images_paths: list[str], checkerboard_size: tuple[int, int] = (9, 9)) tuple[tuple[int, Ellipsis], numpy.typing.NDArray[numpy.float_], numpy.typing.NDArray[numpy.float_]]
Calibrate cameras for distortion and fisheye effects.
In order to use this function effectively please use at least 5 valid calibration images, with differently places checkerboards. The checkerboard has to be fully visible with no occlusion, but it does mot have to lie flat on the ground.
- Parameters:
calibration_images_paths – The calibration images.
checkerboard_size – The checkerboard size. Note if you have a 10 x 10 checkerboard the size should be (9, 9).
- Returns:
The dimension of the calibration images, the camera matrix and the distortion coefficient.