Documentation Index
Fetch the complete documentation index at: https://mintlify.com/opencv/opencv/llms.txt
Use this file to discover all available pages before exploring further.
Overview
OpenCV provides multiple tracking algorithms for different use cases:- Optical Flow (Lucas-Kanade): Track sparse feature points
- MIL Tracker: Multiple Instance Learning, CPU-friendly
- GOTURN: Deep learning tracker using Caffe models
- DaSiamRPN: State-of-the-art Siamese network tracker
- NanoTrack: Lightweight deep learning tracker
- Planar Tracking: Track planar objects using feature matching
Lucas-Kanade Optical Flow Tracker
Sparse optical flow tracking with automatic feature detection and back-tracking for verification.- Python
Modern DNN-Based Trackers
High-performance trackers using deep learning models.Planar Object Tracker
Track planar objects using feature matching with ORB and FLANN.Tracker Comparison
| Tracker | Speed | Accuracy | CPU/GPU | Use Case |
|---|---|---|---|---|
| Lucas-Kanade | Very Fast | Medium | CPU | Feature tracking, motion analysis |
| MIL | Fast | Good | CPU | General object tracking |
| GOTURN | Fast | Good | CPU/GPU | Real-time tracking |
| DaSiamRPN | Medium | Excellent | CPU/GPU | High accuracy requirements |
| NanoTrack | Fast | Very Good | CPU/GPU | Mobile/embedded |
| Planar | Medium | Excellent | CPU | Textured planar objects |
Key Parameters
Lucas-Kanade
Feature Detection
Model Downloads: Deep learning tracker models are available from:
Best Practices
Choose Right Tracker
Select based on your requirements:
- Speed critical: Lucas-Kanade or NanoTrack
- Accuracy critical: DaSiamRPN
- CPU-only: MIL or Lucas-Kanade
- Planar objects: Planar tracker
Next Steps
- Explore Video I/O for video handling
- Learn about Feature Detection for custom trackers
- Check Optical Flow for motion estimation
- See DNN Module for deep learning models
