public class Tracker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Tracker |
__fromPtr__(long addr) |
long |
getNativeObjAddr() |
void |
init(Mat image,
Rect boundingBox)
Initialize the tracker with a known bounding box that surrounded the target
|
boolean |
update(Mat image,
Rect boundingBox)
Update the tracker, find the new most likely bounding box for the target
|
public static Tracker __fromPtr__(long addr)
public long getNativeObjAddr()
public void init(Mat image, Rect boundingBox)
image
- The initial frameboundingBox
- The initial bounding boxpublic boolean update(Mat image, Rect boundingBox)
image
- The current frameboundingBox
- The bounding box that represent the new target location, if true was returned, not
modified otherwiseGenerated on 2021-12-25 08:13:27 / OpenCV 4.5.5