February 2020
Intermediate to advanced
372 pages
9h 26m
English
From the Python standard library, we will use the math module for trigonometric calculations, and the timeit module for accurate time measurement (which will enable us to use a Kalman filter more effectively). As usual, we will also use NumPy and OpenCV. Thus, our implementation of ImageTrackingDemo.py begins with the following import statements:
import mathimport timeitimport cv2import numpy
Now, let's proceed to the implementation of the helper functions.