In this recipe, we're going to apply the Median Flow object tracker to track objects in a video. This tracker works in real time (even faster on modern hardware) and does its job accurately and steadily. Also, this tracker has a nice feature, it can determine the tracking failure. Let's see how we can use it in our applications.
The medial flow tracker
Getting ready
Before you proceed with this recipe, you need to install the OpenCV 3.x Python API package with the OpenCV Contrib modules.
How to do it...
The steps for this recipe are:
- Import all of the necessary...