This class is used to track multiple objects using the specified tracker algorithm. The MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.
More...
#include "tracker.hpp"
|
| MultiTracker (const String &trackerType="") |
| Constructor. In the case of trackerType is given, it will be set as the default algorithm for all trackers. More...
|
|
| ~MultiTracker () |
| Destructor. More...
|
|
bool | add (const Mat &image, const Rect2d &boundingBox) |
| Add a new object to be tracked. The defaultAlgorithm will be used the newly added tracker. More...
|
|
bool | add (const String &trackerType, const Mat &image, const Rect2d &boundingBox) |
| Add a new object to be tracked. More...
|
|
bool | add (const String &trackerType, const Mat &image, std::vector< Rect2d > boundingBox) |
| Add a set of objects to be tracked. More...
|
|
bool | add (const Mat &image, std::vector< Rect2d > boundingBox) |
| Add a set of objects to be tracked using the defaultAlgorithm tracker. More...
|
|
bool | update (const Mat &image) |
| Update the current tracking status. The result will be saved in the internal storage. More...
|
|
bool | update (const Mat &image, std::vector< Rect2d > &boundingBox) |
| Update the current tracking status. More...
|
|
This class is used to track multiple objects using the specified tracker algorithm. The MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.
cv::MultiTracker::MultiTracker |
( |
const String & |
trackerType = "" | ) |
|
Constructor. In the case of trackerType is given, it will be set as the default algorithm for all trackers.
- Parameters
-
trackerType | the name of the tracker algorithm to be used |
cv::MultiTracker::~MultiTracker |
( |
| ) |
|
bool cv::MultiTracker::add |
( |
const Mat & |
image, |
|
|
const Rect2d & |
boundingBox |
|
) |
| |
Add a new object to be tracked. The defaultAlgorithm will be used the newly added tracker.
- Parameters
-
image | input image |
boundingBox | a rectangle represents ROI of the tracked object |
bool cv::MultiTracker::add |
( |
const String & |
trackerType, |
|
|
const Mat & |
image, |
|
|
const Rect2d & |
boundingBox |
|
) |
| |
Add a new object to be tracked.
- Parameters
-
trackerType | the name of the tracker algorithm to be used |
image | input image |
boundingBox | a rectangle represents ROI of the tracked object |
bool cv::MultiTracker::add |
( |
const String & |
trackerType, |
|
|
const Mat & |
image, |
|
|
std::vector< Rect2d > |
boundingBox |
|
) |
| |
Add a set of objects to be tracked.
- Parameters
-
trackerType | the name of the tracker algorithm to be used |
image | input image |
boundingBox | list of the tracked objects |
bool cv::MultiTracker::add |
( |
const Mat & |
image, |
|
|
std::vector< Rect2d > |
boundingBox |
|
) |
| |
Add a set of objects to be tracked using the defaultAlgorithm tracker.
- Parameters
-
image | input image |
boundingBox | list of the tracked objects |
bool cv::MultiTracker::update |
( |
const Mat & |
image | ) |
|
Update the current tracking status. The result will be saved in the internal storage.
- Parameters
-
image | input imagestorage for the tracked objects, each object corresponds to one tracker algorithm. |
bool cv::MultiTracker::update |
( |
const Mat & |
image, |
|
|
std::vector< Rect2d > & |
boundingBox |
|
) |
| |
Update the current tracking status.
- Parameters
-
image | input image |
boundingBox | the tracking result, represent a list of ROIs of the tracked objects. |
String cv::MultiTracker::defaultAlgorithm |
|
protected |
std::vector<Rect2d> cv::MultiTracker::objects |
std::vector< Ptr<Tracker> > cv::MultiTracker::trackerList |
|
protected |
< storage for the tracker algorithms.
default algorithm for the tracking method.
The documentation for this class was generated from the following file:
- /build/master-contrib_docs-mac/opencv_contrib/modules/tracking/include/opencv2/tracking/tracker.hpp