class documentation

A list of keypoints in an image.

Parameters
labela label for the points
pointsa list of (x, y) keypoints in [0, 1] x [0, 1]
confidencea list of confidences in [0, 1] for each point
indexan index for the keypoints
instancean instance of Instance to link this keypoint label to other similar labels
attributesa dict mapping attribute names to Attribute instances
Method to_shapely Returns a Shapely representation of this instance.
Class Variable confidence Undocumented
Class Variable index Undocumented
Class Variable label Undocumented
Class Variable points Undocumented

Inherited from _HasAttributesDict:

Method delete_attribute Deletes the attribute with the given name.
Method get_attribute_value Gets the value of the attribute with the given name.
Method has_attribute Determines whether the label has an attribute with the given name.
Method iter_attributes Returns an iterator over the custom attributes of the label.
Method set_attribute_value Sets the value of the attribute with the given name.

Inherited from _HasID (via _HasAttributesDict):

Class Variable tags Undocumented
Instance Variable id Undocumented
Method _id.setter Undocumented
Property _id Undocumented

Inherited from _HasInstance (via _HasAttributesDict, _HasID):

Property instance_id The label's instance ID, or None if it does not have one.
def to_shapely(self, frame_size=None): (source)

Returns a Shapely representation of this instance.

Parameters
frame_size:Nonethe (width, height) of the image. If provided, the returned geometry will use absolute coordinates
Returns
a shapely.geometry.multipoint.MultiPoint
confidence: None = (source)

Undocumented

Undocumented

Undocumented

Undocumented