The pinhole camera model is the simplest mathematical model as well as others, yet it can be applied to a lot of real photography devices. This recipe tells you how to calibrate your camera, for example, finding its intrinsic parameters and distortion coefficients.
Pinhole camera model calibration
Getting ready
Before you proceed with this recipe, you need to install the OpenCV (version 3.3 or greater) Python API package.
How to do it
You need to complete the following steps:
- Import the necessary modules:
import cv2
import numpy as np
- Capture frames from the camera,...