class documentation
class VOCBoundingBox(object): (source)
Constructor: VOCBoundingBox(xmin, ymin, xmax, ymax)
A bounding box in VOC detection format.
Parameters | |
xmin | the top-left x coordinate |
ymin | the top-left y coordinate |
xmax | the bottom-right x coordinate |
ymax | the bottom-right y coordinate |
Class Method | from |
Creates a VOCBoundingBox from a bndbox dict. |
Class Method | from |
Creates a VOCBoundingBox from a bounding box stored in fiftyone.core.labels.Detection format. |
Method | __init__ |
Undocumented |
Method | to |
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 |
Creates a VOCBoundingBox
from a bounding box stored in
fiftyone.core.labels.Detection
format.
Parameters | |
bounding | [x-top-left, y-top-left, width, height] |
frame | the (width, height) of the image |
Returns | |
a VOCBoundingBox |
Returns a representation of the bounding box suitable for storing in
the bounding_box field of a
fiftyone.core.labels.Detection
.
Parameters | |
frame | the (width, height) of the image |
Returns | |
[x-top-left, y-top-left, width, height] |