OpenCV has a number of built-in tracking methods:
- A BOOSTING tracker: An old tracker based on Haar cascades.
- A MIL tracker: Has better accuracy than the BOOSTING tracker.
- A Kernelized Correlation Filters (KCF) tracker: This is faster than the BOOSTING and MIL trackers.
- A CSRT tracker: This is more accurate than KCF but the tracking can be slower.
- The MedianFlow tracker: This tracker works when the object has a regular movement and is visible for the entire sequence.
- The TLD tracker: Do not use it.
- The MOSSE tracker: A very fast tracker but not as accurate as CSRT or KCF.
- The GOTURN tracker: A deep learning-based object tracker.
The implementation of the preceding methods in OpenCV is as follows:
tracker = cv2.TrackerBoosting_create() ...