class documentation

An object in VOC detection format.

Parameters
namethe object label
bndboxa VOCBoundingBox
**attributesadditional custom attributes
Class Method from_annotation_dict Creates a VOCObject from a VOC annotation dict.
Class Method from_detection Creates a VOCObject from a fiftyone.core.labels.Detection.
Method __init__ Undocumented
Method to_detection Returns a fiftyone.core.labels.Detection representation of the object.
Instance Variable attributes Undocumented
Instance Variable bndbox Undocumented
Instance Variable name Undocumented
@classmethod
def from_annotation_dict(cls, d): (source)

Creates a VOCObject from a VOC annotation dict.

Parameters
dan annotation dict
Returns
a VOCObject
@classmethod
def from_detection(cls, detection, metadata, extra_attrs=True): (source)

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

Parameters
detectiona fiftyone.core.labels.Detection
metadataa fiftyone.core.metadata.ImageMetadata instance for the image
extra_attrs:True

whether to include extra object attributes. Supported values are:

  • True: include all extra attributes found
  • False: do not include extra attributes
  • a name or list of names of specific attributes to include
Returns
a VOCObject
def __init__(self, name, bndbox, **attributes): (source)

Undocumented

def to_detection(self, frame_size, extra_attrs=True): (source)

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

Parameters
frame_sizethe (width, height) of the image
extra_attrs:True

whether to include extra annotation attributes on the object. Supported values are:

  • True: include all extra attributes found
  • False: do not include extra attributes
  • a name or list of names of specific attributes to include
Returns
a fiftyone.core.labels.Detection
attributes = (source)

Undocumented

Undocumented

Undocumented