OpenCV
4.8.0
Open Source Computer Vision
|
Base abstract class for the long-term Multi Object Trackers: More...
#include <opencv2/tracking/tracking_legacy.hpp>
Public Member Functions | |
MultiTracker_Alt () | |
Constructor for Multitracker. More... | |
bool | addTarget (InputArray image, const Rect2d &boundingBox, Ptr< legacy::Tracker > tracker_algorithm) |
Add a new target to a tracking-list and initialize the tracker with a known bounding box that surrounded the target. More... | |
bool | update (InputArray 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:
|
inline |
Constructor for Multitracker.
bool cv::legacy::MultiTracker_Alt::addTarget | ( | InputArray | image, |
const Rect2d & | boundingBox, | ||
Ptr< legacy::Tracker > | tracker_algorithm | ||
) |
Add a new target to a tracking-list and initialize the tracker with a known bounding box that surrounded the target.
image | The initial frame |
boundingBox | The initial bounding box of target |
tracker_algorithm | Multi-tracker algorithm |
bool cv::legacy::MultiTracker_Alt::update | ( | InputArray | 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::legacy::MultiTracker_Alt::boundingBoxes |
Bounding Boxes list for Multi-Object-Tracker.
std::vector<Scalar> cv::legacy::MultiTracker_Alt::colors |
List of randomly generated colors for bounding boxes display.
int cv::legacy::MultiTracker_Alt::targetNum |
Current number of targets in tracking-list.
Trackers list for Multi-Object-Tracker.