public class Tracklet extends Object implements Serializable, 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.
|
private static long |
serialVersionUID
|
int |
startFrameIndex
The starting frame index of this track in the source video.
|
Constructor and Description |
---|
Tracklet()
|
Modifier and Type | Method and Description |
---|---|
Collection<Tracklet.BoundingBox>
|
getSamples()
|
void |
sample(int numSamples)
Select some bounding boxes as the appearance samples of the
pedestrian.
|
String |
toString()
Transform this tracklet to Json string.
|
private static final long serialVersionUID
public Tracklet.Identifier id
public int numTracklets
public int startFrameIndex
public Tracklet.BoundingBox[] locationSequence
public String toString()
public void sample(int numSamples)
numSamples
- number of samples to be selected.public Collection<Tracklet.BoundingBox> getSamples()