public class ObjectTimeFinder extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ObjectTimeFinder.TimeFinderListener<O,I>
An interface for objects that wish to be informed of object tracking
events during the time finder's execution.
|
Constructor and Description |
---|
ObjectTimeFinder() |
Modifier and Type | Method and Description |
---|---|
<I extends Image<?,I>,O> |
trackObject(ObjectTracker<O,I> objectTracker,
Video<I> video,
VideoTimecode keyframeTime,
Rectangle bounds,
ObjectTimeFinder.TimeFinderListener<O,I> listener)
Given a video, a keyframe (timecode) and a region of the image,
this method will attempt to track the the contents of the rectangle
from the given frame, back and forth to find the place
at which the object appears and disappears from the video.
|
public ObjectTimeFinder()
public <I extends Image<?,I>,O> IndependentPair<VideoTimecode,VideoTimecode> trackObject(ObjectTracker<O,I> objectTracker, Video<I> video, VideoTimecode keyframeTime, Rectangle bounds, ObjectTimeFinder.TimeFinderListener<O,I> listener)
I
- The type of image returned from the videoO
- The type of object being trackedobjectTracker
- The object tracker that will track the object for usvideo
- The videokeyframeTime
- The keyframe timecode to start atbounds
- The bounding box of the object you wish to tracklistener
- A listener for object tracking eventsIndependentPair
of timecodes delineating the start
and end of the video which contains the object