Table of Contents

Method Update

Namespace
OpenCvSharp.Tracking.Legacy
Assembly
OpenCvSharp.dll

Update(Mat, ref Rect2d)

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

public bool Update(Mat image, ref Rect2d boundingBox)

Parameters

image Mat

The current frame

boundingBox Rect2d

The bounding box that represents 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 the current frame. Note that the latter does not imply that tracker has failed - the target may indeed be missing from the frame (say, out of sight).