Skip to content

Free Motion Capture for Everyone πŸ’€βœ¨

TypeScript

adding mediapipe json definition

Jon PC Win Hallwaycad56d30786f
diff --git a/freemocap/dev_scratchpad/dev_alpha/default_json_definitions/freemocap_mediapipe_json.json b/freemocap/dev_scratchpad/dev_alpha/default_json_definitions/freemocap_mediapipe_json.json
new file mode 100644
index 00000000..20a7bfb2
--- /dev/null
+++ b/freemocap/dev_scratchpad/dev_alpha/default_json_definitions/freemocap_mediapipe_json.json
@@ -0,0 +1,550 @@
+{
+ "mediapipe_skel_info": {
+ "body": {
+ "body_mass_segments": {
+ "head": {
+ "parent": "neck",
+ "child": "head_center",
+ "anthropometric_definition": {
+ "proportional_length": 0.064,
+ "proportional_mass": 0.081,
+ "center_of_mass_proximal": 0,
+ "center_of_mass_distal": 1
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 180
+ ],
+ "elevation": [
+ 0,
+ 180
+ ]
+ }
+ },
+ "torso": {
+ "parent": "neck",
+ "child": "sacrum",
+ "anthropometric_definition": {
+ "proportional_length": 0.288,
+ "proportional_mass": 0.497,
+ "center_of_mass_proximal": 50,
+ "center_of_mass_distal": 50
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 180
+ ],
+ "elevation": [
+ 0,
+ 180
+ ]
+ }
+ },
+ "right_clavicle": {
+ "parent": "neck",
+ "child": "right_shoulder",
+ "anthropometric_definition": {
+ "proportional_length": 0.129,
+ "proportional_mass": null,
+ "center_of_mass_proximal": 0.712,
+ "center_of_mass_distal": 0.288
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_upper_arm": {
+ "parent": "right_shoulder",
+ "child": "right_elbow",
+ "anthropometric_definition": {
+ "proportional_length": 0.186,
+ "proportional_mass": 0.028,
+ "center_of_mass_proximal": 0.436,
+ "center_of_mass_distal": 0.564
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_lower_arm": {
+ "parent": "right_elbow",
+ "child": "right_wrist",
+ "anthropometric_definition": {
+ "proportional_length": 0.146,
+ "proportional_mass": 0.016,
+ "center_of_mass_proximal": 0.43,
+ "center_of_mass_distal": 0.57
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_hand": {
+ "parent": "right_wrist",
+ "child": "right_hand_middle_knuckle",
+ "anthropometric_definition": {
+ "proportional_length": 0.108,
+ "proportional_mass": 0.006,
+ "center_of_mass_proximal": 0.506,
+ "center_of_mass_distal": 0.494
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_hip": {
+ "parent": "sacrum",
+ "child": "right_hip",
+ "anthropometric_definition": {
+ "proportional_length": 0.096,
+ "proportional_mass": 0.071,
+ "center_of_mass_proximal": 0.5,
+ "center_of_mass_distal": 0.5
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_upper_leg": {
+ "parent": "right_hip",
+ "child": "right_knee",
+ "anthropometric_definition": {
+ "proportional_length": 0.245,
+ "proportional_mass": 0.1,
+ "center_of_mass_proximal": 0.433,
+ "center_of_mass_distal": 0.567
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_lower_leg": {
+ "parent": "right_knee",
+ "child": "right_ankle",
+ "anthropometric_definition": {
+ "proportional_length": 0.246,
+ "proportional_mass": 0.0456,
+ "center_of_mass_proximal": 0.433,
+ "center_of_mass_distal": 0.567
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_thumb": {
+ "parent": "right_wrist",
+ "child": "right_thumb",
+ "anthropometric_definition": {
+ "proportional_length": 0.05,
+ "proportional_mass": null,
+ "center_of_mass_proximal": 0.5,
+ "center_of_mass_distal": 0.5
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "right_foot ": {
+ "parent": "right_ankle",
+ "child": "right_foot_index",
+ "anthropometric_definition": {
+ "proportional_length": 0.152,
+ "proportional_mass": 0.0145,
+ "center_of_mass_proximal": 0.5,
+ "center_of_mass_distal": 0.5
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_clavicle": {
+ "parent": "neck",
+ "child": "left_shoulder",
+ "anthropometric_definition": {
+ "proportional_length": 0.129,
+ "proportional_mass": null,
+ "center_of_mass_proximal": 0.712,
+ "center_of_mass_distal": 0.288
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_upper_arm": {
+ "parent": "left_shoulder",
+ "child": "left_elbow",
+ "anthropometric_definition": {
+ "proportional_length": 0.186,
+ "proportional_mass": 0.028,
+ "center_of_mass_proximal": 0.436,
+ "center_of_mass_distal": 0.564
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_lower_arm": {
+ "parent": "left_elbow",
+ "child": "left_wrist",
+ "anthropometric_definition": {
+ "proportional_length": 0.146,
+ "proportional_mass": 0.016,
+ "center_of_mass_proximal": 0.43,
+ "center_of_mass_distal": 0.57
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_hand": {
+ "parent": "left_wrist",
+ "child": "left_hand_middle_knuckle",
+ "anthropometric_definition": {
+ "proportional_length": 0.108,
+ "proportional_mass": 0.006,
+ "center_of_mass_proximal": 0.506,
+ "center_of_mass_distal": 0.494
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_thumb": {
+ "parent": "left_wrist",
+ "child": "left_thumb",
+ "anthropometric_definition": {
+ "proportional_length": 0.05,
+ "proportional_mass": null,
+ "center_of_mass_proximal": 0.5,
+ "center_of_mass_distal": 0.5
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_hip": {
+ "parent": "sacrum",
+ "child": "left_hip",
+ "anthropometric_definition": {
+ "proportional_length": 0.096,
+ "proportional_mass": 0.071,
+ "center_of_mass_proximal": 0.5,
+ "center_of_mass_distal": 0.5
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_upper_leg": {
+ "parent": "left_hip",
+ "child": "left_knee",
+ "anthropometric_definition": {
+ "proportional_length": 0.245,
+ "proportional_mass": 0.1,
+ "center_of_mass_proximal": 0.433,
+ "center_of_mass_distal": 0.567
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_lower_leg": {
+ "parent": "left_knee",
+ "child": "left_ankle",
+ "anthropometric_definition": {
+ "proportional_length": 0.246,
+ "proportional_mass": 0.0456,
+ "center_of_mass_proximal": 0.433,
+ "center_of_mass_distal": 0.567
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "left_foot ": {
+ "parent": "left_ankle",
+ "child": "left_foot_index",
+ "anthropometric_definition": {
+ "proportional_length": 0.152,
+ "proportional_mass": 0.0145,
+ "center_of_mass_proximal": 0.5,
+ "center_of_mass_distal": 0.5
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ }
+ },
+ "virtual_markers": {
+ "head_center": {
+ "left_ear": 0.333,
+ "right_ear": 0.333,
+ "nose": 0.334
+ },
+ "neck": {
+ "left_shoulder": 0.5,
+ "right_shoulder": 0.5
+ },
+ "sacrum": {
+ "left_hip": 0.5,
+ "right_hip": 0.5
+ },
+ "left_hand_middle_knuckle": {
+ "left_index": 0.5,
+ "left_pinky": 0.5
+ },
+ "right_hand_middle_knuckle": {
+ "right_index": 0.5,
+ "right_pinky": 0.5
+ },
+ "center_of_mass": {
+ "etc": 0.9
+ }
+ },
+ "tracked_point_names": [
+ "nose",
+ "left_eye_inner",
+ "left_eye",
+ "left_eye_outer",
+ "right_eye_inner",
+ "right_eye",
+ "right_eye_outer",
+ "left_ear",
+ "right_ear",
+ "mouth_left",
+ "mouth_right",
+ "left_shoulder",
+ "right_shoulder",
+ "left_elbow",
+ "right_elbow",
+ "left_wrist",
+ "right_wrist",
+ "left_pinky",
+ "right_pinky",
+ "left_index",
+ "right_index",
+ "left_thumb",
+ "right_thumb",
+ "left_hip",
+ "right_hip",
+ "left_knee",
+ "right_knee",
+ "left_ankle",
+ "left_heel",
+ "right_heel",
+ "left_foot_index",
+ "right_foot_index"
+ ]
+ },
+ "hands": {
+ "body_segments": {
+ "constrain_length_bool": false,
+ "left_upper_arm": {
+ "parent": "left_shoulder",
+ "child": "left_elbow",
+ "anthropometric_definition": {
+ "proportional_length": 0.186,
+ "proportional_mass": 0.028,
+ "center_of_mass_proximal": 0.436,
+ "center_of_mass_distal": 0.564
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "etc": {}
+ },
+ "virtual_markers": {
+ "neck": {
+ "left_shoulder": 0.5,
+ "right_shoudler": 0.5
+ },
+ "center_of_mass": {
+ "etc": 0.9
+ }
+ },
+ "dotto_names": [
+ "nose",
+ "left_eye_inner",
+ "butt",
+ "etc"
+ ]
+ },
+ "face": {
+ "body_segments": {
+ "constrain_length_bool": false,
+ "left_upper_arm": {
+ "parent": "left_shoulder",
+ "child": "left_elbow",
+ "anthropometric_definition": {
+ "proportional_length": 0.186,
+ "proportional_mass": 0.028,
+ "center_of_mass_proximal": 0.436,
+ "center_of_mass_distal": 0.564
+ },
+ "spherical_joint_limits": {
+ "azimuth": [
+ 0,
+ 360
+ ],
+ "elevation": [
+ 0,
+ 360
+ ]
+ }
+ },
+ "etc": {}
+ },
+ "virtual_markers": {
+ "neck": {
+ "left_shoulder": 0.5,
+ "right_shoudler": 0.5
+ },
+ "center_of_mass": {
+ "etc": 0.9
+ }
+ },
+ "dotto_names": [
+ "nose",
+ "left_eye_inner",
+ "butt",
+ "etc"
+ ]
+ }
+ }
+}
\ No newline at end of file