OpenCV
3.2.0
Open Source Computer Vision
|
Base abstract class for the long-term Multi Object Trackers: More...
#include "tracker.hpp"
Public Member Functions | |
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... | |
Public Attributes | |
std::vector< Rect2d > | boundingBoxes |
Bounding Boxes list for Multi-Object-Tracker. More... | |
std::vector< Scalar > | colors |
List of randomly generated colors for bounding boxes display. More... | |
int | targetNum |
Current number of targets in tracking-list. More... | |
std::vector< Ptr< Tracker > > | trackers |
Trackers list for Multi-Object-Tracker. More... | |
Base abstract class for the long-term Multi Object Trackers:
cv::MultiTracker_Alt::MultiTracker_Alt | ( | ) |
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.
image | The initial frame |
boundingBox | The initial boundig box of target |
tracker_algorithm_name | Multi-tracker algorithm name |
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.
image | The current frame |
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.