class documentation
class CVATVideoPolyline(CVATVideoAnno, HasCVATPoints): (source)
Constructor: CVATVideoPolyline(frame, label, points, outside, ...)
A polyline in CVAT video format.
Parameters | |
frame | the 0-based frame number |
label | the polyline label string |
points | a list of (x, y) pixel coordinates defining the vertices of the polyline |
outside | whether the polyline is outside (invisible) |
occluded | whether the polyline is occluded |
keyframe | whether the frame is a keyframe |
attributes | a list of CVATAttribute instances |
Class Method | from |
Creates a CVATVideoPolyline from a fiftyone.core.labels.Polyline . |
Class Method | from |
Creates a CVATVideoPolyline from a <polyline> tag of a CVAT video annotation XML file. |
Method | __init__ |
Undocumented |
Method | to |
Returns a fiftyone.core.labels.Polyline representation of the polyline. |
Instance Variable | frame |
Undocumented |
Instance Variable | label |
Undocumented |
Inherited from CVATVideoAnno
:
Static Method | _parse |
Undocumented |
Static Method | _parse |
Undocumented |
Method | _to |
Undocumented |
Inherited from HasCVATPoints
(via CVATVideoAnno
):
Instance Variable | points |
a list of (x, y) pixel coordinates defining points |
Property | points |
Undocumented |
Static Method | _parse |
Undocumented |
Static Method | _to |
Undocumented |
Static Method | _to |
Undocumented |
Static Method | _to |
Undocumented |
Creates a CVATVideoPolyline
from a
fiftyone.core.labels.Polyline
.
Parameters | |
frame | the frame number |
polyline | a fiftyone.core.labels.Polyline |
frame | the (width, height) of the video frames |
Returns | |
a CVATVideoPolyline |
Creates a CVATVideoPolyline
from a <polyline> tag of a
CVAT video annotation XML file.
Parameters | |
label | the object label |
d | a dict representation of a <polyline> tag |
Returns | |
a CVATVideoPolyline |
def __init__(self, frame, label, points, outside=None, occluded=None, keyframe=None, attributes=None):
(source)
¶
Undocumented
Returns a fiftyone.core.labels.Polyline
representation of
the polyline.
Parameters | |
frame | the (width, height) of the video frames |
Returns | |
a fiftyone.core.labels.Polyline |