public class Tracklet
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
TODO Should assign an IDRANK to each track or use some other methods to identify them.
Modifier and Type | Class and Description |
---|---|
static class |
Tracklet.BoundingBox
The BoundingBox class stores the location of an object in a single static
frame.
|
static class |
Tracklet.Identifier
Identifier of a tracklet.
|
Modifier and Type | Field and Description |
---|---|
Tracklet.Identifier |
id
The identifier of the track.
|
Tracklet.BoundingBox[] |
locationSequence
A sequence of locations (as a form of BoundingBox) of the pedestrian
at each moment in the tracklet.
|
int |
numTracklets
The total number of tracklets in the video.
|
int |
startFrameIndex
The starting frame index of this track in the source video.
|
Constructor and Description |
---|
Tracklet() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Tracklet.BoundingBox> |
getSamples()
|
void |
sample(int numSamples)
Select some bounding boxes as the appearance samples of the pedestrian.
|
java.lang.String |
toString()
Transform this tracklet to Json string.
|
public Tracklet.Identifier id
public int numTracklets
public int startFrameIndex
public Tracklet.BoundingBox[] locationSequence
public java.lang.String toString()
toString
in class java.lang.Object
public void sample(int numSamples)
numSamples
- number of samples to be selected.public java.util.Collection<Tracklet.BoundingBox> getSamples()