class documentation
class CVATImagePolyline(CVATImageAnno, HasCVATPoints): (source)
Constructor: CVATImagePolyline(label, points, occluded, attributes)
A polyline in CVAT image format.
Parameters | |
label | the polyline label string |
points | a list of (x, y) pixel coordinates defining the vertices of the polyline |
occluded | whether the polyline is occluded |
attributes | a list of CVATAttribute instances |
Class Method | from |
Creates a CVATImagePolyline from a fiftyone.core.labels.Polyline . |
Class Method | from |
Creates a CVATImagePolyline from a <polyline> tag of a CVAT image annotation XML file. |
Method | __init__ |
Undocumented |
Method | to |
Returns a fiftyone.core.labels.Polyline representation of the polyline. |
Instance Variable | label |
Undocumented |
Inherited from CVATImageAnno
:
Static Method | _parse |
Undocumented |
Static Method | _parse |
Undocumented |
Method | _to |
Undocumented |
Inherited from HasCVATPoints
(via CVATImageAnno
):
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 CVATImagePolyline
from a
fiftyone.core.labels.Polyline
.
If the fiftyone.core.labels.Polyline
is composed of multiple
shapes, one CVATImagePolyline
per shape will be generated.
Parameters | |
polyline | a fiftyone.core.labels.Polyline |
metadata | a fiftyone.core.metadata.ImageMetadata for the
image |
Returns | |
a list of CVATImagePolyline instances |
Creates a CVATImagePolyline
from a <polyline> tag of a
CVAT image annotation XML file.
Parameters | |
d | a dict representation of a <polyline> tag |
Returns | |
a CVATImagePolyline |
Returns a fiftyone.core.labels.Polyline
representation of
the polyline.
Parameters | |
frame | the (width, height) of the image |
Returns | |
a fiftyone.core.labels.Polyline |