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
imageMatThe initial frame
boundingBoxRect2dThe initial bounding box of target
trackerAlgorithmLegacyTrackerMulti-tracker algorithm
Returns
- bool
True if new target initialization went successfully, false otherwise