OpenCV453
|
This class is used to track multiple objects using the specified tracker algorithm. [詳解]
#include <tracking_legacy.hpp>
cv::Algorithmを継承しています。
公開メンバ関数 | |
CV_WRAP | MultiTracker () |
Constructor. | |
~MultiTracker () CV_OVERRIDE | |
Destructor | |
CV_WRAP bool | add (Ptr< cv::legacy::Tracker > newTracker, InputArray image, const Rect2d &boundingBox) |
Add a new object to be tracked. [詳解] | |
bool | add (std::vector< Ptr< legacy::Tracker > > newTrackers, InputArray image, std::vector< Rect2d > boundingBox) |
Add a set of objects to be tracked. [詳解] | |
bool | update (InputArray image) |
Update the current tracking status. The result will be saved in the internal storage. [詳解] | |
CV_WRAP bool | update (InputArray image, CV_OUT std::vector< Rect2d > &boundingBox) |
Update the current tracking status. [詳解] | |
CV_WRAP const std::vector< Rect2d > & | getObjects () const |
Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm | |
![]() | |
virtual CV_WRAP void | clear () |
Clears the algorithm state [詳解] | |
virtual void | write (FileStorage &fs) const |
Stores algorithm parameters in a file storage [詳解] | |
CV_WRAP void | write (const Ptr< FileStorage > &fs, const String &name=String()) const |
simplified API for language bindings これはオーバーロードされたメンバ関数です。利便性のために用意されています。元の関数との違いは引き数のみです。 | |
virtual CV_WRAP void | read (const FileNode &fn) |
Reads algorithm parameters from a file storage [詳解] | |
virtual CV_WRAP bool | empty () const |
Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read [詳解] | |
virtual CV_WRAP void | save (const String &filename) const |
virtual CV_WRAP String | getDefaultName () const |
静的公開メンバ関数 | |
static CV_WRAP Ptr< MultiTracker > | create () |
Returns a pointer to a new instance of MultiTracker | |
![]() | |
template<typename _Tp > | |
static Ptr< _Tp > | read (const FileNode &fn) |
Reads algorithm from the file node [詳解] | |
template<typename _Tp > | |
static Ptr< _Tp > | load (const String &filename, const String &objname=String()) |
Loads algorithm from the file [詳解] | |
template<typename _Tp > | |
static Ptr< _Tp > | loadFromString (const String &strModel, const String &objname=String()) |
Loads algorithm from a String [詳解] | |
限定公開変数類 | |
std::vector< Ptr< Tracker > > | trackerList |
< storage for the tracker algorithms. [詳解] | |
std::vector< Rect2d > | objects |
その他の継承メンバ | |
![]() | |
void | writeFormat (FileStorage &fs) const |
This class is used to track multiple objects using the specified tracker algorithm.
The MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.
CV_WRAP bool cv::legacy::tracking::MultiTracker::add | ( | Ptr< cv::legacy::Tracker > | newTracker, |
InputArray | image, | ||
const Rect2d & | boundingBox | ||
) |
Add a new object to be tracked.
newTracker | tracking algorithm to be used |
image | input image |
boundingBox | a rectangle represents ROI of the tracked object |
bool cv::legacy::tracking::MultiTracker::add | ( | std::vector< Ptr< legacy::Tracker > > | newTrackers, |
InputArray | image, | ||
std::vector< Rect2d > | boundingBox | ||
) |
Add a set of objects to be tracked.
newTrackers | list of tracking algorithms to be used |
image | input image |
boundingBox | list of the tracked objects |
bool cv::legacy::tracking::MultiTracker::update | ( | InputArray | image | ) |
Update the current tracking status. The result will be saved in the internal storage.
image | input image |
CV_WRAP bool cv::legacy::tracking::MultiTracker::update | ( | InputArray | image, |
CV_OUT std::vector< Rect2d > & | boundingBox | ||
) |
Update the current tracking status.
image | input image |
boundingBox | the tracking result, represent a list of ROIs of the tracked objects. |
< storage for the tracker algorithms.
storage for the tracked objects, each object corresponds to one tracker algorithm.