public class Tracker extends Object
Modifier and Type | Field and Description |
---|---|
protected long |
nativeObj |
Modifier | Constructor and Description |
---|---|
protected |
Tracker(long addr) |
Modifier and Type | Method and Description |
---|---|
static Tracker |
__fromPtr__(long addr) |
protected void |
finalize() |
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 long getNativeObjAddr()
public static Tracker __fromPtr__(long addr)
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 otherwiseCopyright © 2024. All rights reserved.