class documentation

A bounding box in VOC detection format.

Parameters
xminthe top-left x coordinate
yminthe top-left y coordinate
xmaxthe bottom-right x coordinate
ymaxthe bottom-right y coordinate
Class Method from_bndbox_dict Creates a VOCBoundingBox from a bndbox dict.
Class Method from_detection_format Creates a VOCBoundingBox from a bounding box stored in fiftyone.core.labels.Detection format.
Method __init__ Undocumented
Method to_detection_format Returns a representation of the bounding box suitable for storing in the bounding_box field of a fiftyone.core.labels.Detection.
Instance Variable xmax Undocumented
Instance Variable xmin Undocumented
Instance Variable ymax Undocumented
Instance Variable ymin Undocumented
@classmethod
def from_bndbox_dict(cls, d): (source)

Creates a VOCBoundingBox from a bndbox dict.

Parameters
da bndbox dict
Returns
a VOCBoundingBox
@classmethod
def from_detection_format(cls, bounding_box, frame_size): (source)

Creates a VOCBoundingBox from a bounding box stored in fiftyone.core.labels.Detection format.

Parameters
bounding_box[x-top-left, y-top-left, width, height]
frame_sizethe (width, height) of the image
Returns
a VOCBoundingBox
def __init__(self, xmin, ymin, xmax, ymax): (source)

Undocumented

def to_detection_format(self, frame_size): (source)

Returns a representation of the bounding box suitable for storing in the bounding_box field of a fiftyone.core.labels.Detection.

Parameters
frame_sizethe (width, height) of the image
Returns
[x-top-left, y-top-left, width, height]

Undocumented

Undocumented

Undocumented

Undocumented