class documentation
class Keypoint(_HasAttributesDict, _HasID, Label): (source)
A list of keypoints in an image.
Parameters | |
label | a label for the points |
points | a list of (x, y) keypoints in [0, 1] x [0, 1] |
confidence | a list of confidences in [0, 1] for each point |
index | an index for the keypoints |
attributes | a dict mapping attribute names to Attribute
instances |
Method | to |
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 |
Deletes the attribute with the given name. |
Method | get |
Gets the value of the attribute with the given name. |
Method | has |
Determines whether the label has an attribute with the given name. |
Method | iter |
Returns an iterator over the custom attributes of the label. |
Method | set |
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 |
Undocumented |
Property | _id |
Undocumented |
Returns a Shapely representation of this instance.
Parameters | |
frameNone | the (width, height) of the image. If provided, the returned geometry will use absolute coordinates |
Returns | |
a shapely.geometry.multipoint.MultiPoint |