Package org.opencv.tracking
Class legacy_Tracker
- java.lang.Object
- 
- org.opencv.core.Algorithm
- 
- org.opencv.tracking.legacy_Tracker
 
 
- 
- Direct Known Subclasses:
- legacy_TrackerBoosting,- legacy_TrackerCSRT,- legacy_TrackerKCF,- legacy_TrackerMedianFlow,- legacy_TrackerMIL,- legacy_TrackerMOSSE,- legacy_TrackerTLD
 
 public class legacy_Tracker extends Algorithm Base abstract class for the long-term tracker:
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedlegacy_Tracker(long addr)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static legacy_Tracker__fromPtr__(long addr)protected voidfinalize()booleaninit(Mat image, Rect2d boundingBox)Initialize the tracker with a known bounding box that surrounded the targetbooleanupdate(Mat image, Rect2d boundingBox)Update the tracker, find the new most likely bounding box for the target- 
Methods inherited from class org.opencv.core.Algorithmclear, empty, getDefaultName, getNativeObjAddr, save
 
- 
 
- 
- 
- 
Method Detail- 
__fromPtr__public static legacy_Tracker __fromPtr__(long addr) 
 - 
initpublic boolean init(Mat image, Rect2d boundingBox) Initialize the tracker with a known bounding box that surrounded the target- Parameters:
- image- The initial frame
- boundingBox- The initial bounding box
- Returns:
- True if initialization went succesfully, false otherwise
 
 - 
updatepublic boolean update(Mat image, Rect2d 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)
 
 
- 
 
-