class documentation
class VOCObject(object): (source)
Constructor: VOCObject(name, bndbox, **attributes)
An object in VOC detection format.
Parameters | |
name | the object label |
bndbox | a VOCBoundingBox |
**attributes | additional custom attributes |
Class Method | from |
Creates a VOCObject from a VOC annotation dict. |
Class Method | from |
Creates a VOCObject from a fiftyone.core.labels.Detection . |
Method | __init__ |
Undocumented |
Method | to |
Returns a fiftyone.core.labels.Detection representation of the object. |
Instance Variable | attributes |
Undocumented |
Instance Variable | bndbox |
Undocumented |
Instance Variable | name |
Undocumented |
Creates a VOCObject
from a
fiftyone.core.labels.Detection
.
Parameters | |
detection | a fiftyone.core.labels.Detection |
metadata | a fiftyone.core.metadata.ImageMetadata instance
for the image |
extraTrue | whether to include extra object attributes. Supported values are:
|
Returns | |
a VOCObject |
Returns a fiftyone.core.labels.Detection
representation of
the object.
Parameters | |
frame | the (width, height) of the image |
extraTrue | whether to include extra annotation attributes on the object. Supported values are:
|
Returns | |
a fiftyone.core.labels.Detection |