Table of Contents

Class Tracker

Namespace
Emgu.CV.Legacy
Assembly
Emgu.CV.dll

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

nint

Methods

DisposeObject()

Release the unmanaged memory associated with this tracker

protected override void DisposeObject()

Init(Mat, Rectangle)

Initialize the tracker with a know bounding box that surrounding the target.

public bool Init(Mat image, Rectangle boundingBox)

Parameters

image Mat

The initial frame

boundingBox Rectangle

The initial bounding box

Returns

bool

True if successful.

Update(Mat, out Rectangle)

Update the tracker, find the new most likely bounding box for the target.

public bool Update(Mat image, out Rectangle boundingBox)

Parameters

image Mat

The current frame

boundingBox Rectangle

The 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)