Package org.opencv.video
Class Tracker
- java.lang.Object
- 
- org.opencv.video.Tracker
 
- 
- Direct Known Subclasses:
- TrackerCSRT,- TrackerDaSiamRPN,- TrackerGOTURN,- TrackerKCF,- TrackerMIL,- TrackerNano
 
 public class Tracker extends java.lang.ObjectBase abstract class for the long-term tracker
- 
- 
Field SummaryFields Modifier and Type Field Description protected longnativeObj
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedTracker(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Tracker__fromPtr__(long addr)protected voidfinalize()longgetNativeObjAddr()voidinit(Mat image, Rect boundingBox)Initialize the tracker with a known bounding box that surrounded the targetbooleanupdate(Mat image, Rect boundingBox)Update the tracker, find the new most likely bounding box for the target
 
- 
- 
- 
Method Detail- 
getNativeObjAddrpublic long getNativeObjAddr() 
 - 
__fromPtr__public static Tracker __fromPtr__(long addr) 
 - 
initpublic void init(Mat image, Rect boundingBox) Initialize the tracker with a known bounding box that surrounded the target- Parameters:
- image- The initial frame
- boundingBox- The initial bounding box
 
 - 
updatepublic boolean update(Mat image, Rect boundingBox) Update the tracker, find the new most likely bounding box for the target- Parameters:
- image- The current frame
- boundingBox- The bounding box that represent the new target location, if true was returned, not modified otherwise
- Returns:
- True means that target was located and false means that tracker cannot locate target in current frame. Note, that latter *does not* imply that tracker has failed, maybe target is indeed missing from the frame (say, out of sight)
 
 - 
finalizeprotected void finalize() throws java.lang.Throwable- Overrides:
- finalizein class- java.lang.Object
- Throws:
- java.lang.Throwable
 
 
- 
 
-