public class Tracker extends Algorithm
Modifier | Constructor and Description |
---|---|
protected |
Tracker(long addr) |
Modifier and Type | Method and Description |
---|---|
static Tracker |
__fromPtr__(long addr) |
protected void |
finalize() |
boolean |
init(Mat image,
Rect2d boundingBox)
Initialize the tracker with a known bounding box that surrounded the target
|
boolean |
update(Mat image,
Rect2d boundingBox)
Update the tracker, find the new most likely bounding box for the target
|
clear, empty, getDefaultName, getNativeObjAddr, save
public static Tracker __fromPtr__(long addr)
public boolean init(Mat image, Rect2d boundingBox)
image
- The initial frameboundingBox
- The initial bounding boxpublic boolean update(Mat image, Rect2d boundingBox)
image
- The current frameboundingBox
- The bounding box that represent the new target location, if true was returned, not
modified otherwiseGenerated on Wed Oct 9 2019 23:24:43 UTC / OpenCV 4.1.2