Package org.opencv.tracking
Class legacy_MultiTracker
- java.lang.Object
-
- org.opencv.core.Algorithm
-
- org.opencv.tracking.legacy_MultiTracker
-
public class legacy_MultiTracker extends Algorithm
This class is used to track multiple objects using the specified tracker algorithm. The %MultiTracker is naive implementation of multiple object tracking. It process the tracked objects independently without any optimization accross the tracked objects.
-
-
Constructor Summary
Constructors Modifier Constructor Description legacy_MultiTracker()Constructor.protectedlegacy_MultiTracker(long addr)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static legacy_MultiTracker__fromPtr__(long addr)booleanadd(legacy_Tracker newTracker, Mat image, Rect2d boundingBox)Add a new object to be tracked.protected voidfinalize()MatOfRect2dgetObjects()Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithmbooleanupdate(Mat image, MatOfRect2d boundingBox)Update the current tracking status.-
Methods inherited from class org.opencv.core.Algorithm
clear, empty, getDefaultName, getNativeObjAddr, save
-
-
-
-
Method Detail
-
__fromPtr__
public static legacy_MultiTracker __fromPtr__(long addr)
-
add
public boolean add(legacy_Tracker newTracker, Mat image, Rect2d boundingBox)
Add a new object to be tracked.- Parameters:
newTracker- tracking algorithm to be usedimage- input imageboundingBox- a rectangle represents ROI of the tracked object- Returns:
- automatically generated
-
update
public boolean update(Mat image, MatOfRect2d boundingBox)
Update the current tracking status.- Parameters:
image- input imageboundingBox- the tracking result, represent a list of ROIs of the tracked objects.- Returns:
- automatically generated
-
getObjects
public MatOfRect2d getObjects()
Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm- Returns:
- automatically generated
-
-