Factory function that returns a SkeletonModel for a well-known
pose estimation or motion capture marker set.
Examples
sk <- define_skeleton("BODY_25")
print(sk)
#> SkeletonModel: BODY_25
#> Keypoints: 25
#> Bones: 24
#> Root: MidHip
#> Regions: head, torso, right_arm, left_arm, pelvis, right_leg, left_leg, left_foot, right_foot
sk_coco <- define_skeleton("COCO")
get_bone_connections(sk_coco)
#> from_label to_label bone_name
#> 1 Neck RShoulder right_clavicle
#> 2 Neck LShoulder left_clavicle
#> 3 RShoulder RElbow right_upper_arm
#> 4 RElbow RWrist right_forearm
#> 5 LShoulder LElbow left_upper_arm
#> 6 LElbow LWrist left_forearm
#> 7 Neck RHip right_hip_joint
#> 8 RHip RKnee right_thigh
#> 9 RKnee RAnkle right_shank
#> 10 Neck LHip left_hip_joint
#> 11 LHip LKnee left_thigh
#> 12 LKnee LAnkle left_shank
#> 13 Neck Nose neck
#> 14 Nose REye nose_to_right_eye
#> 15 REye REar right_eye_to_ear
#> 16 Nose LEye nose_to_left_eye
#> 17 LEye LEar left_eye_to_ear