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_index
and positionend_index
in thekeypoints
list.- Variables:
start_index – The list index in the Pose attribute
keypoints
where the connection starts.end_index – The list index in the Pose attribute
keypoints
where the connection ends.confidence – Labelling confidence. Must be between 0 and 1.