Table of Contents

Method AddTarget

Namespace
OpenCvSharp.Tracking.Legacy
Assembly
OpenCvSharp.dll

AddTarget(Mat, Rect2d, LegacyTracker)

Add a new target to a tracking-list and initialize the tracker with a known bounding box that surrounded the target.

public bool AddTarget(Mat image, Rect2d boundingBox, LegacyTracker trackerAlgorithm)

Parameters

image Mat

The initial frame

boundingBox Rect2d

The initial bounding box of target

trackerAlgorithm LegacyTracker

Multi-tracker algorithm

Returns

bool

True if new target initialization went successfully, false otherwise