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
newTrackerLegacyTrackertracking algorithm to be used
imageMatinput image
boundingBoxRect2da rectangle represents ROI of the tracked object
Returns
Create()
Returns a pointer to a new instance of MultiTracker.
public static MultiTracker Create()
Returns
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
imageMatinput image