Class Tracker
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Base abstract class for the long-term tracker
public abstract class Tracker : Algorithm, IDisposable, ICvPtrHolder
- Inheritance
-
Tracker
- Implements
- Derived
- Inherited Members
Constructors
Tracker(Ptr)
protected Tracker(Ptr ptrObj)
Parameters
ptrObjPtr
Methods
DisposeManaged()
Releases managed resources
protected override void DisposeManaged()
Init(Mat, Rect)
Initialize the tracker with a know bounding box that surrounding the target
public void Init(Mat image, Rect boundingBox)
Parameters
Update(Mat, ref Rect)
Update the tracker, find the new most likely bounding box for the target
public bool Update(Mat image, ref Rect boundingBox)
Parameters
imageMatThe current frame
boundingBoxRectThe bounding box that represent the new target location, if true was returned, not modified otherwise
Returns
- bool
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)