Class Tracker
Long-term tracker
public abstract class Tracker : UnmanagedObject, IDisposable
- Inheritance
-
Tracker
- Implements
- Derived
- Inherited Members
Constructors
Tracker()
protected Tracker()
Fields
_trackerPtr
The native pointer to the tracker
protected nint _trackerPtr
Field Value
Methods
DisposeObject()
Release the unmanaged memory associated with this tracker
protected override void DisposeObject()
Init(IInputArray, Rectangle)
Initialize the tracker with a know bounding box that surrounding the target.
public void Init(IInputArray image, Rectangle boundingBox)
Parameters
image
IInputArrayThe initial frame
boundingBox
RectangleThe initial bounding box
Update(IInputArray, out Rectangle)
Update the tracker, find the new most likely bounding box for the target.
public bool Update(IInputArray image, out Rectangle boundingBox)
Parameters
image
IInputArrayThe current frame
boundingBox
RectangleThe 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)