pixano.features.schemas.annotations.tracklet
Tracklet(created_at=None, updated_at=None, **data)
Bases: Annotation
A Tracklet
is a temporal segment of a video sequence.
Attributes:
Name | Type | Description |
---|---|---|
start_timestep |
int
|
The start timestep of the tracklet. |
end_timestep |
int
|
The end timestep of the tracklet. |
start_timestamp |
float
|
The start timestamp of the tracklet. |
end_timestamp |
float
|
The end timestamp of the tracklet. |
Source code in pixano/features/schemas/base_schema.py
create_tracklet(id='', item_ref=ItemRef.none(), view_ref=ViewRef.none(), entity_ref=EntityRef.none(), source_ref=SourceRef.none(), start_timestep=-1, end_timestep=-1, start_timestamp=-1.0, end_timestamp=-1.0)
Create a Tracklet
instance.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
str
|
The tracklet id. |
''
|
item_ref
|
ItemRef
|
The item reference. |
none()
|
view_ref
|
ViewRef
|
The view reference. |
none()
|
entity_ref
|
EntityRef
|
The parent track reference. |
none()
|
source_ref
|
SourceRef
|
The source reference. |
none()
|
start_timestep
|
int
|
The start timestep of the tracklet. |
-1
|
end_timestep
|
int
|
The end timestep of the tracklet. |
-1
|
start_timestamp
|
float
|
The start timestamp of the tracklet. |
-1.0
|
end_timestamp
|
float
|
The end timestamp of the tracklet. |
-1.0
|
Returns:
Type | Description |
---|---|
Tracklet
|
The created |