Base abstract class for the long-term tracker.
More...
#include <opencv2/video/tracking.hpp>
|
virtual | ~Tracker () |
|
virtual void | init (InputArray image, const Rect &boundingBox)=0 |
| Initialize the tracker with a known bounding box that surrounded the target. More...
|
|
virtual bool | update (InputArray image, Rect &boundingBox)=0 |
| Update the tracker, find the new most likely bounding box for the target. More...
|
|
Base abstract class for the long-term tracker.
◆ Tracker()
◆ ~Tracker()
virtual cv::Tracker::~Tracker |
( |
| ) |
|
|
virtual |
◆ init()
virtual void cv::Tracker::init |
( |
InputArray |
image, |
|
|
const Rect & |
boundingBox |
|
) |
| |
|
pure virtual |
Python: |
---|
| None | = | cv.Tracker.init( | image, boundingBox | ) |
Initialize the tracker with a known bounding box that surrounded the target.
- Parameters
-
image | The initial frame |
boundingBox | The initial bounding box |
◆ update()
virtual bool cv::Tracker::update |
( |
InputArray |
image, |
|
|
Rect & |
boundingBox |
|
) |
| |
|
pure virtual |
Python: |
---|
| retval, boundingBox | = | cv.Tracker.update( | image | ) |
Update the tracker, find the new most likely bounding box for the target.
- Parameters
-
image | The current frame |
boundingBox | The bounding box that represent the new target location, if true was returned, not modified otherwise |
- Returns
- True means that target was located and false means that tracker cannot locate target 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)
The documentation for this class was generated from the following file: