1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-18 08:44:11 +08:00

tracking: rework tracking API

- simplify Tracker API
- fix perf tests (don't measure video decoding)
This commit is contained in:
Alexander Alekhin
2020-10-27 21:18:18 +00:00
parent 2cb3f65131
commit 80c197590c
89 changed files with 3629 additions and 4334 deletions

View File

@@ -38,11 +38,11 @@ Explanation
You can add all tracked objects at once to the MultiTracker as shown in the code.
In this case, all objects will be tracked using same tracking algorithm as specified in decaration of MultiTracker object.
If you want to use different tracker algorithms for each tracked object,
You should add the tracked objects one by one and specify their tracking algorithm using the variant of @ref cv::MultiTracker::add.
@sa cv::MultiTracker::add( const String& trackerType, const Mat& image, const Rect2d& boundingBox )
You should add the tracked objects one by one and specify their tracking algorithm using the variant of @ref cv::legacy::MultiTracker::add.
@sa cv::legacy::MultiTracker::add( const String& trackerType, const Mat& image, const Rect2d& boundingBox )
-# **Obtaining the result**
@snippet tracking/samples/tutorial_multitracker.cpp result
You can access the result from the public variable @ref cv::MultiTracker::objects provided by the MultiTracker class as shown in the code.
You can access the result from the public variable @ref cv::legacy::MultiTracker::objects provided by the MultiTracker class as shown in the code.