class documentation
class CVATTrack(object): (source)
Constructor: CVATTrack(id, label, width, height, ...)
An annotation track in CVAT video format.
Parameters | |
id | the ID of the track |
label | the label for the track |
width | the width of the video frames, in pixels |
height | the height of the video frames, in pixels |
boxes | a dict mapping frame numbers to CVATVideoBox
instances |
polygons | a dict mapping frame numbers to
CVATVideoPolygon instances |
polylines | a dict mapping frame numbers to
CVATVideoPolyline instances |
points | a dict mapping frame numbers to CVATVideoPoints
instances |
Class Method | from |
Creates a CVATTrack from a dictionary of labels. |
Class Method | from |
Creates a CVATTrack from a <track> tag of a CVAT video annotation XML file. |
Method | __init__ |
Undocumented |
Method | iter |
Returns an iterator over the annotations in the track. |
Method | to |
Returns fiftyone.core.labels.Label representations of the annotations. |
Instance Variable | boxes |
Undocumented |
Instance Variable | height |
Undocumented |
Instance Variable | id |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | points |
Undocumented |
Instance Variable | polygons |
Undocumented |
Instance Variable | polylines |
Undocumented |
Instance Variable | width |
Undocumented |
Property | has |
Whether this track has 2D boxes. |
Property | has |
Whether this track has keypoints. |
Property | has |
Whether this track has polygons or polylines. |
Static Method | _add |
Undocumented |
Creates a CVATTrack
from a dictionary of labels.
Parameters | |
id | the ID of the track |
labels | a dict mapping frame numbers to
fiftyone.core.labels.Label instances |
frame | the (width, height) of the video frames |
Returns | |
a CVATTrack |
def __init__(self, id, label, width, height, boxes=None, polygons=None, polylines=None, points=None):
(source)
¶
Undocumented
Returns an iterator over the annotations in the track.
Returns | |
an iterator that emits CVATVideoAnno instances |
Returns fiftyone.core.labels.Label
representations of the
annotations.
Returns | |
a dict mapping frame numbers to
fiftyone.core.labels.Label instances |