class documentation

An OpenLABEL polyline.

Method to_label Convert this shape to a FiftyOne label.

Inherited from OpenLABELShape:

Class Method from_shape_dict Constructs a shape from a dictionary of information.
Method __init__ Undocumented
Instance Variable attributes Undocumented
Instance Variable coords Undocumented
Instance Variable stream Undocumented

Inherited from AttributeParser (via OpenLABELShape):

Class Method _parse_attributes Undocumented
Class Method _parse_name_val_attributes Undocumented
Constant _IGNORE_KEYS Undocumented
Constant _STREAM_KEYS Undocumented
def to_label(self, label, attributes, width, height): (source) ΒΆ

Convert this shape to a FiftyOne label.

Parameters
labelthe class label for this shape
attributesa dictionary of attributes for this shape
widththe width of the frame in pixels
heightthe height of the frame in pixels
Returns
an fiftyone.core.labels.Polyline