class documentation
class CVATVideoBox(CVATVideoAnno): (source)
Constructor: CVATVideoBox(frame, label, xtl, ytl, ...)
An object bounding box in CVAT video format.
Parameters | |
frame | the 0-based frame number |
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 |
outside | whether the object is outside (invisible) |
occluded | whether the object is occluded |
keyframe | whether the frame is a keyframe |
attributes | a list of CVATAttribute instances |
Class Method | from |
Creates a CVATVideoBox from a <box> tag of a CVAT video annotation XML file. |
Class Method | from |
Creates a CVATVideoBox from a fiftyone.core.labels.Detection . |
Method | __init__ |
Undocumented |
Method | to |
Returns a fiftyone.core.labels.Detection representation of the box. |
Instance Variable | frame |
Undocumented |
Instance Variable | label |
Undocumented |
Instance Variable | xbr |
Undocumented |
Instance Variable | xtl |
Undocumented |
Instance Variable | ybr |
Undocumented |
Instance Variable | ytl |
Undocumented |
Inherited from CVATVideoAnno
:
Static Method | _parse |
Undocumented |
Static Method | _parse |
Undocumented |
Method | _to |
Undocumented |
Creates a CVATVideoBox
from a <box> tag of a CVAT video
annotation XML file.
Parameters | |
label | the object label |
d | a dict representation of a <box> tag |
Returns | |
a CVATVideoBox |
Creates a CVATVideoBox
from a
fiftyone.core.labels.Detection
.
Parameters | |
frame | the frame number |
detection | a fiftyone.core.labels.Detection |
frame | the (width, height) of the video frames |
Returns | |
a CVATVideoBox |
def __init__(self, frame, label, xtl, ytl, xbr, ybr, outside=None, occluded=None, keyframe=None, attributes=None):
(source)
¶
Undocumented
Returns a fiftyone.core.labels.Detection
representation of
the box.
Parameters | |
frame | the (width, height) of the video frames |
Returns | |
a fiftyone.core.labels.Detection |