Package org.opencv.tracking
Class MultiTracker
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.tracking.MultiTracker
 
 
- 
 public class 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 SummaryConstructors Modifier Constructor Description MultiTracker()Constructor.protectedMultiTracker(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MultiTracker__fromPtr__(long addr)booleanadd(Tracker newTracker, Mat image, Rect2d boundingBox)Add a new object to be tracked.static MultiTrackercreate()Returns a pointer to a new instance of MultiTrackerprotected 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.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static MultiTracker __fromPtr__(long addr) 
 - 
addpublic boolean add(Tracker newTracker, Mat image, Rect2d boundingBox) Add a new object to be tracked.- Parameters:
- newTracker- tracking algorithm to be used
- image- input image
- boundingBox- a rectangle represents ROI of the tracked object
- Returns:
- automatically generated
 
 - 
updatepublic boolean update(Mat image, MatOfRect2d boundingBox) Update the current tracking status.- Parameters:
- image- input image
- boundingBox- the tracking result, represent a list of ROIs of the tracked objects.
- Returns:
- automatically generated
 
 - 
getObjectspublic MatOfRect2d getObjects() Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm- Returns:
- automatically generated
 
 - 
createpublic static MultiTracker create() Returns a pointer to a new instance of MultiTracker- Returns:
- automatically generated
 
 
- 
 
-