class documentation
class CVATVideoPolygon(CVATVideoAnno, HasCVATPoints): (source)
Constructor: CVATVideoPolygon(frame, label, points, outside, ...)
A polygon in CVAT video format.
Parameters | |
frame | the 0-based frame number |
label | the polygon label string |
points | a list of (x, y) pixel coordinates defining the vertices of the polygon |
outside | whether the polygon is outside (invisible) |
occluded | whether the polygon is occluded |
keyframe | whether the frame is a keyframe |
attributes | a list of CVATAttribute instances |
Class Method | from |
Creates a CVATVideoPolygon from a <polygon> tag of a CVAT video annotation XML file. |
Class Method | from |
Creates a CVATVideoPolygon from a fiftyone.core.labels.Polyline . |
Method | __init__ |
Undocumented |
Method | to |
Returns a fiftyone.core.labels.Polyline representation of the polygon. |
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 CVATVideoPolygon
from a <polygon> tag of a
CVAT video annotation XML file.
Parameters | |
label | the object label |
d | a dict representation of a <polygon> tag |
Returns | |
a CVATVideoPolygon |
Creates a CVATVideoPolygon
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 CVATVideoPolygon |
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 polygon.
Parameters | |
frame | the (width, height) of the video frames |
Returns | |
a fiftyone.core.labels.Polyline |