OpenCV  3.4.19
Open Source Computer Vision
Public Member Functions | Public Attributes | List of all members
cv::MultiTracker_Alt Class Reference

Base abstract class for the long-term Multi Object Trackers: More...

#include <opencv2/tracking/tracker.hpp>

Inheritance diagram for cv::MultiTracker_Alt:
cv::MultiTrackerTLD

Public Member Functions

 MultiTracker_Alt ()
 Constructor for Multitracker. More...
 
bool addTarget (InputArray image, const Rect2d &boundingBox, Ptr< 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< Rect2dboundingBoxes
 Bounding Boxes list for Multi-Object-Tracker. More...
 
std::vector< Scalarcolors
 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...
 

Detailed Description

Base abstract class for the long-term Multi Object Trackers:

See also
Tracker, MultiTrackerTLD

Constructor & Destructor Documentation

◆ MultiTracker_Alt()

cv::MultiTracker_Alt::MultiTracker_Alt ( )
inline

Constructor for Multitracker.

Member Function Documentation

◆ addTarget()

bool cv::MultiTracker_Alt::addTarget ( InputArray  image,
const Rect2d boundingBox,
Ptr< Tracker tracker_algorithm 
)

Add a new target to a tracking-list and initialize the tracker with a known bounding box that surrounded the target.

Parameters
imageThe initial frame
boundingBoxThe initial bounding box of target
tracker_algorithmMulti-tracker algorithm
Returns
True if new target initialization went succesfully, false otherwise

◆ update()

bool cv::MultiTracker_Alt::update ( InputArray  image)

Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets.

Parameters
imageThe current frame
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)

Member Data Documentation

◆ boundingBoxes

std::vector<Rect2d> cv::MultiTracker_Alt::boundingBoxes

Bounding Boxes list for Multi-Object-Tracker.

◆ colors

std::vector<Scalar> cv::MultiTracker_Alt::colors

List of randomly generated colors for bounding boxes display.

◆ targetNum

int cv::MultiTracker_Alt::targetNum

Current number of targets in tracking-list.

◆ trackers

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: