Camera lenses produce distortions of an image. The calibration process aims to find parameters of these distortions, as well as the parameters of 3D points projection onto an image plane. This recipe tells you how to apply a camera matrix and distortion coefficients to get undistorted image points and distort them back.
Distorting and undistorting points
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...