Base abstract class for the long-term Multi Object Trackers:
More...
#include "tracker.hpp"
|
| MultiTracker_Alt () |
| Constructor for Multitracker. More...
|
|
bool | addTarget (const Mat &image, const Rect2d &boundingBox, String tracker_algorithm_name) |
| Add a new target to a tracking-list and initialize the tracker with a know bounding box that surrounding the target. More...
|
|
bool | update (const Mat &image) |
| Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets. More...
|
|
Base abstract class for the long-term Multi Object Trackers:
- See also
- Tracker, MultiTrackerTLD
cv::MultiTracker_Alt::MultiTracker_Alt |
( |
| ) |
|
|
inline |
Constructor for Multitracker.
bool cv::MultiTracker_Alt::addTarget |
( |
const Mat & |
image, |
|
|
const Rect2d & |
boundingBox, |
|
|
String |
tracker_algorithm_name |
|
) |
| |
Add a new target to a tracking-list and initialize the tracker with a know bounding box that surrounding the target.
- Parameters
-
image | The initial frame |
boundingBox | The initial boundig box of target |
tracker_algorithm_name | Multi-tracker algorithm name |
- Returns
- True if new target initialization went succesfully, false otherwise
bool cv::MultiTracker_Alt::update |
( |
const Mat & |
image | ) |
|
Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets.
- Parameters
-
- Returns
- True means that all targets were located and false means that tracker couldn't locate one of the targets in current frame. Note, that latter does not imply that tracker has failed, maybe target is indeed missing from the frame (say, out of sight)
std::vector<Rect2d> cv::MultiTracker_Alt::boundingBoxes |
Bounding Boxes list for Multi-Object-Tracker.
std::vector<Scalar> cv::MultiTracker_Alt::colors |
List of randomly generated colors for bounding boxes display.
int cv::MultiTracker_Alt::targetNum |
Current number of targets in tracking-list.
std::vector<Ptr<Tracker> > cv::MultiTracker_Alt::trackers |
Trackers list for Multi-Object-Tracker.
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