class documentation
class CVATImagePoints(CVATImageAnno, HasCVATPoints): (source)
Constructor: CVATImagePoints(label, points, occluded, attributes)
A set of keypoints in CVAT image format.
Parameters | |
label | the keypoints label string |
points | a list of (x, y) pixel coordinates defining the vertices of the keypoints |
occluded | whether the keypoints are occluded |
attributes | a list of CVATAttribute instances |
Class Method | from |
Creates a CVATImagePoints from a fiftyone.core.labels.Keypoint . |
Class Method | from |
Creates a CVATImagePoints from a <points> tag of a CVAT image annotation XML file. |
Method | __init__ |
Undocumented |
Method | to |
Returns a fiftyone.core.labels.Keypoint representation of the points. |
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 CVATImagePoints
from a
fiftyone.core.labels.Keypoint
.
Parameters | |
keypoint | a fiftyone.core.labels.Keypoint |
metadata | a fiftyone.core.metadata.ImageMetadata for the
image |
Returns | |
a CVATImagePoints |
Creates a CVATImagePoints
from a <points> tag of a
CVAT image annotation XML file.
Parameters | |
d | a dict representation of a <points> tag |
Returns | |
a CVATImagePoints |
Returns a fiftyone.core.labels.Keypoint
representation of
the points.
Parameters | |
frame | the (width, height) of the image |
Returns | |
a fiftyone.core.labels.Keypoint |