Connection¶
-
class
scenebox.models.annotation.Connection(start_index, end_index, confidence=None)¶ Specifies the starting/ending indices of connected keypoints of a single Pose. Only to be used when creating pose annotations.
Poses have a class attribute named
keypoints: a list of coordinates. To form Pose annotations, the connections between these keypoints must be specified. Each Connection class instance represents a connection between the keypoint at positionstart_indexand positionend_indexin thekeypointslist.- Variables:
start_index – The list index in the Pose attribute
keypointswhere the connection starts.end_index – The list index in the Pose attribute
keypointswhere the connection ends.confidence – Labelling confidence. Must be between 0 and 1.