class documentation

An object bounding box in CVAT image format.

Parameters
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
occludedwhether the object is occluded
attributesa list of CVATAttribute instances
Class Method from_box_dict Creates a CVATImageBox from a <box> tag of a CVAT image annotation XML file.
Class Method from_detection Creates a CVATImageBox from a fiftyone.core.labels.Detection.
Method __init__ Undocumented
Method to_detection Returns a fiftyone.core.labels.Detection representation of the box.
Instance Variable label Undocumented
Instance Variable xbr Undocumented
Instance Variable xtl Undocumented
Instance Variable ybr Undocumented
Instance Variable ytl Undocumented

Inherited from CVATImageAnno:

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

Creates a CVATImageBox from a <box> tag of a CVAT image annotation XML file.

Parameters
da dict representation of a <box> tag
Returns
a CVATImageBox
@classmethod
def from_detection(cls, detection, metadata): (source)
def __init__(self, label, xtl, ytl, xbr, ybr, occluded=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 image
Returns
a fiftyone.core.labels.Detection

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented