public class MultiTracker extends Algorithm
Modifier | Constructor and Description |
---|---|
|
MultiTracker()
Constructor.
|
protected |
MultiTracker(long addr) |
Modifier and Type | Method and Description |
---|---|
static MultiTracker |
__fromPtr__(long addr) |
boolean |
add(Tracker newTracker,
Mat image,
Rect2d boundingBox)
Add a new object to be tracked.
|
static MultiTracker |
create()
Returns a pointer to a new instance of MultiTracker
|
protected void |
finalize() |
MatOfRect2d |
getObjects()
Returns a reference to a storage for the tracked objects, each object corresponds to one tracker algorithm
|
boolean |
update(Mat image,
MatOfRect2d boundingBox)
Update the current tracking status.
|
clear, empty, getDefaultName, getNativeObjAddr, save
protected MultiTracker(long addr)
public MultiTracker()
public static MultiTracker __fromPtr__(long addr)
public static MultiTracker create()
public boolean add(Tracker newTracker, Mat image, Rect2d boundingBox)
newTracker
- tracking algorithm to be usedimage
- input imageboundingBox
- a rectangle represents ROI of the tracked objectpublic boolean update(Mat image, MatOfRect2d boundingBox)
image
- input imageboundingBox
- the tracking result, represent a list of ROIs of the tracked objects.public MatOfRect2d getObjects()
Generated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2