OpenCV453
公開メンバ関数 | 公開変数類 | 全メンバ一覧
cv::legacy::tracking::MultiTracker_Alt クラス

Base abstract class for the long-term Multi Object Trackers: [詳解]

#include <tracking_legacy.hpp>

cv::legacy::tracking::MultiTrackerTLDに継承されています。

公開メンバ関数

 MultiTracker_Alt ()
 Constructor for Multitracker
 
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 [詳解]
 
bool update (InputArray image)
 Update all trackers from the tracking-list, find a new most likely bounding boxes for the targets [詳解]
 

公開変数類

int targetNum
 Current number of targets in tracking-list
 
std::vector< Ptr< Tracker > > trackers
 Trackers list for Multi-Object-Tracker
 
std::vector< Rect2dboundingBoxes
 Bounding Boxes list for Multi-Object-Tracker
 
std::vector< Scalarcolors
 List of randomly generated colors for bounding boxes display
 

詳解

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

参照
Tracker, MultiTrackerTLD

関数詳解

◆ addTarget()

bool cv::legacy::tracking::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

引数
imageThe initial frame
boundingBoxThe initial bounding box of target
tracker_algorithmMulti-tracker algorithm
戻り値
True if new target initialization went succesfully, false otherwise

◆ update()

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

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

引数
imageThe current frame
戻り値
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)

このクラス詳解は次のファイルから抽出されました: