class documentation

An annotation track in CVAT video format.

Parameters
idthe ID of the track
labelthe label for the track
widththe width of the video frames, in pixels
heightthe height of the video frames, in pixels
boxesa dict mapping frame numbers to CVATVideoBox instances
polygonsa dict mapping frame numbers to CVATVideoPolygon instances
polylinesa dict mapping frame numbers to CVATVideoPolyline instances
pointsa dict mapping frame numbers to CVATVideoPoints instances
Class Method from_labels Creates a CVATTrack from a dictionary of labels.
Class Method from_track_dict Creates a CVATTrack from a <track> tag of a CVAT video annotation XML file.
Method __init__ Undocumented
Method iter_annos Returns an iterator over the annotations in the track.
Method to_labels 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_boxes Whether this track has 2D boxes.
Property has_points Whether this track has keypoints.
Property has_polylines Whether this track has polygons or polylines.
Static Method _add_outside_shapes Undocumented
@classmethod
def from_labels(cls, id, labels, frame_size): (source)

Creates a CVATTrack from a dictionary of labels.

Parameters
idthe ID of the track
labelsa dict mapping frame numbers to fiftyone.core.labels.Label instances
frame_sizethe (width, height) of the video frames
Returns
a CVATTrack
@classmethod
def from_track_dict(cls, d, frame_size): (source)

Creates a CVATTrack from a <track> tag of a CVAT video annotation XML file.

Parameters
da dict representation of an <track> tag
frame_sizethe (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

def iter_annos(self): (source)

Returns an iterator over the annotations in the track.

Returns
an iterator that emits CVATVideoAnno instances
def to_labels(self): (source)

Returns fiftyone.core.labels.Label representations of the annotations.

Returns
a dict mapping frame numbers to fiftyone.core.labels.Label instances

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

polygons: None = (source)

Undocumented

polylines: None = (source)

Undocumented

Undocumented

Whether this track has 2D boxes.

Whether this track has keypoints.

@property
has_polylines = (source)

Whether this track has polygons or polylines.

@staticmethod
def _add_outside_shapes(shapes): (source)

Undocumented