class documentation

An object bounding box in CVAT video format.

Parameters
framethe 0-based frame number
labelthe object label string
xtlthe top-left x-coordinate of the box, in pixels
ytlthe top-left y-coordinate of the box, in pixels
xbrthe bottom-right x-coordinate of the box, in pixels
ybrthe bottom-right y-coordinate of the box, in pixels
outsidewhether the object is outside (invisible)
occludedwhether the object is occluded
keyframewhether the frame is a keyframe
attributesa list of CVATAttribute instances
Class Method from_box_dict Creates a CVATVideoBox from a <box> tag of a CVAT video annotation XML file.
Class Method from_detection Creates a CVATVideoBox from a fiftyone.core.labels.Detection.
Method __init__ Undocumented
Method to_detection Returns a fiftyone.core.labels.Detection representation of the box.
Instance Variable frame Undocumented
Instance Variable label Undocumented
Instance Variable xbr Undocumented
Instance Variable xtl Undocumented
Instance Variable ybr Undocumented
Instance Variable ytl Undocumented

Inherited from CVATVideoAnno:

Static Method _parse_anno_dict Undocumented
Static Method _parse_attributes Undocumented
Method _to_attributes Undocumented
@classmethod
def from_box_dict(cls, label, d): (source)

Creates a CVATVideoBox from a <box> tag of a CVAT video annotation XML file.

Parameters
labelthe object label
da dict representation of a <box> tag
Returns
a CVATVideoBox
@classmethod
def from_detection(cls, frame_number, detection, frame_size): (source)

Creates a CVATVideoBox from a fiftyone.core.labels.Detection.

Parameters
frame_numberthe frame number
detectiona fiftyone.core.labels.Detection
frame_sizethe (width, height) of the video frames
Returns
a CVATVideoBox
def __init__(self, frame, label, xtl, ytl, xbr, ybr, outside=None, occluded=None, keyframe=None, attributes=None): (source)
def to_detection(self, frame_size): (source)

Returns a fiftyone.core.labels.Detection representation of the box.

Parameters
frame_sizethe (width, height) of the video frames
Returns
a fiftyone.core.labels.Detection

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented