Table of Contents

Class MultiTracker

Namespace
OpenCvSharp.Tracking.Legacy
Assembly
OpenCvSharp.dll

Base class for high-level OpenCV algorithms

public class MultiTracker : Algorithm, IDisposable
Inheritance
MultiTracker
Implements
Inherited Members

Methods

Add(LegacyTracker, Mat, Rect2d)

Add a new object to be tracked.

public bool Add(LegacyTracker newTracker, Mat image, Rect2d boundingBox)

Parameters

newTracker LegacyTracker

tracking algorithm to be used

image Mat

input image

boundingBox Rect2d

a rectangle represents ROI of the tracked object

Returns

bool

Create()

Returns a pointer to a new instance of MultiTracker.

public static MultiTracker Create()

Returns

MultiTracker

GetObjects()

Returns the storage for the tracked objects, each object corresponds to one tracker algorithm.

public Rect2d[] GetObjects()

Returns

Rect2d[]

Update(Mat)

Update the current tracking status. The result will be saved in the internal storage.

public bool Update(Mat image)

Parameters

image Mat

input image

Returns

bool