class documentation
class CVATShape(CVATLabel): (source)
Constructor: CVATShape(label_dict, class_map, attr_id_map, server_id_map, ...)
A shape returned by the CVAT API.
Parameters | |
label | the dictionary containing the label information loaded from the CVAT API |
class | a dictionary mapping label IDs to class strings |
attr | a dictionary mapping attribute IDs attribute names for every label |
server | a dictionary mapping server IDs to FiftyOne label IDs |
metadata | a dictionary containing the width and height of the frame |
index | the tracking index of the shape |
immutable | immutable attributes inherited by this shape from its track |
occluded | a dictionary mapping class names to the corresponding attribute linked to the CVAT occlusion widget, if any |
group | a dictionary mapping class names to the corresponding attribute linked to the CVAT group id, if any |
group | an optional group id value for this shape when it cannot be parsed from the label dict |
Class Method | polyline |
Converts a fiftyone.core.labels.Polyline to a fiftyone.core.labels.Detection with a segmentation mask. |
Class Method | polylines |
Converts a fiftyone.core.labels.Polylines to a fiftyone.core.labels.Segmentation . |
Method | __init__ |
Undocumented |
Method | to |
Converts this shape to a fiftyone.core.labels.Detection . |
Method | to |
Converts this shape to a fiftyone.core.labels.Detection with instance mask. |
Method | to |
Converts this shape to a fiftyone.core.labels.Keypoint . |
Method | to |
Converts this shape to a fiftyone.core.labels.Polyline . |
Method | to |
Converts this shape to a fiftyone.core.labels.Polylines . |
Instance Variable | frame |
Undocumented |
Instance Variable | index |
Undocumented |
Instance Variable | points |
Undocumented |
Method | _parse |
Undocumented |
Method | _to |
Undocumented |
Inherited from CVATLabel
:
Instance Variable | attributes |
Undocumented |
Instance Variable | fo |
Undocumented |
Instance Variable | id |
Undocumented |
Instance Variable | label |
Undocumented |
Method | _set |
Undocumented |
Method | _set |
Undocumented |
Converts a fiftyone.core.labels.Polyline
to a
fiftyone.core.labels.Detection
with a segmentation mask.
Parameters | |
polyline | a fiftyone.core.labels.Polyline |
frame | the (width, height) of the frame |
Returns | |
a fiftyone.core.labels.Detection |
Converts a fiftyone.core.labels.Polylines
to a
fiftyone.core.labels.Segmentation
.
Parameters | |
polylines | a fiftyone.core.labels.Polylines |
frame | the (width, height) of the frame |
mask | a dict mapping integer pixel values to label strings |
Returns | |
a fiftyone.core.labels.Segmentation |
def __init__(self, label_dict, class_map, attr_id_map, server_id_map, metadata, index=None, immutable_attrs=None, occluded_attrs=None, group_id_attrs=None, group_id=None):
(source)
¶
overrides
fiftyone.utils.cvat.CVATLabel.__init__
Undocumented
Converts this shape to a fiftyone.core.labels.Detection
with instance mask.
Returns | |
a fiftyone.core.labels.Detection |