Class cv::Tracker#
Base abstract class for the long-term tracker.
#include <opencv2/video/tracking.hpp>Collaboration diagram for cv::Tracker:
Detailed Description#
Base abstract class for the long-term tracker.
Constructor & Destructor Documentation#
Tracker()#
~Tracker()#
cv::Tracker::~Tracker()
Member Function Documentation#
getTrackingScore()#
float cv::Tracker::getTrackingScore()
Python:
cv.Tracker.getTrackingScore() -> retval
Return tracking score.
init()#
void cv::Tracker::init(
InputArray image,
const Rect & boundingBox )
Python:
cv.Tracker.init(image, boundingBox)
Initialize the tracker with a known bounding box that surrounded the target.
Parameters
image— The initial frameboundingBox— The initial bounding box
update()#
bool cv::Tracker::update(
InputArray image,
Rect & boundingBox )
Python:
cv.Tracker.update(image) -> retval, boundingBox
Update the tracker, find the new most likely bounding box for the target.
Parameters
image— The current frameboundingBox— 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)
Source file#
The documentation for this class was generated from the following file:
opencv2/video/tracking.hpp