class documentation
class CVATImageBox(CVATImageAnno): (source)
Constructor: CVATImageBox(label, xtl, ytl, xbr, ...)
An object bounding box in CVAT image format.
Parameters | |
label | the object label string |
xtl | the top-left x-coordinate of the box, in pixels |
ytl | the top-left y-coordinate of the box, in pixels |
xbr | the bottom-right x-coordinate of the box, in pixels |
ybr | the bottom-right y-coordinate of the box, in pixels |
occluded | whether the object is occluded |
attributes | a list of CVATAttribute instances |
Class Method | from |
Creates a CVATImageBox from a <box> tag of a CVAT image annotation XML file. |
Class Method | from |
Creates a CVATImageBox from a fiftyone.core.labels.Detection . |
Method | __init__ |
Undocumented |
Method | to |
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 |
Undocumented |
Static Method | _parse |
Undocumented |
Method | _to |
Undocumented |
Creates a CVATImageBox
from a <box> tag of a CVAT image
annotation XML file.
Parameters | |
d | a dict representation of a <box> tag |
Returns | |
a CVATImageBox |
Creates a CVATImageBox
from a
fiftyone.core.labels.Detection
.
Parameters | |
detection | a fiftyone.core.labels.Detection |
metadata | a fiftyone.core.metadata.ImageMetadata for the
image |
Returns | |
a CVATImageBox |
Returns a fiftyone.core.labels.Detection
representation of
the box.
Parameters | |
frame | the (width, height) of the image |
Returns | |
a fiftyone.core.labels.Detection |