Spaces:
Running on T4
Running on T4
Download docs/motion-coach-payload.schema.json from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 22.2 kB
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/docs/motion-coach-payload.schema.json
- Command line
-
hf download hf://spaces/modventures/baseball-engine/docs/motion-coach-payload.schema.json
-
curl -L -o motion-coach-payload.schema.json https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/docs/motion-coach-payload.schema.json
22.2 kB
| { | |
| "$defs": { | |
| "CoachAthlete": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "athlete_id": { | |
| "maxLength": 180, | |
| "minLength": 1, | |
| "pattern": "\\S", | |
| "title": "Athlete Id", | |
| "type": "string" | |
| }, | |
| "batting_hand": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "left", | |
| "right" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Batting Hand" | |
| }, | |
| "lead_foot": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "left", | |
| "right" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Lead Foot" | |
| }, | |
| "age_years": { | |
| "anyOf": [ | |
| { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Age Years" | |
| }, | |
| "height_cm": { | |
| "anyOf": [ | |
| { | |
| "exclusiveMinimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Height Cm" | |
| } | |
| }, | |
| "required": [ | |
| "athlete_id" | |
| ], | |
| "title": "CoachAthlete", | |
| "type": "object" | |
| }, | |
| "CoachContext": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "sport": { | |
| "const": "baseball", | |
| "default": "baseball", | |
| "title": "Sport", | |
| "type": "string" | |
| }, | |
| "practice_type": { | |
| "default": "unknown", | |
| "enum": [ | |
| "tee", | |
| "front_toss", | |
| "side_toss", | |
| "pitching_machine", | |
| "live_pitching", | |
| "game", | |
| "dry_swing", | |
| "unknown" | |
| ], | |
| "title": "Practice Type", | |
| "type": "string" | |
| } | |
| }, | |
| "title": "CoachContext", | |
| "type": "object" | |
| }, | |
| "CoachEvent": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "video_time_s": { | |
| "anyOf": [ | |
| { | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Video Time S" | |
| }, | |
| "capture_time_s": { | |
| "anyOf": [ | |
| { | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Capture Time S" | |
| }, | |
| "status": { | |
| "enum": [ | |
| "available", | |
| "limited", | |
| "unavailable" | |
| ], | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "source": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "manual_review", | |
| "pose_estimated", | |
| "bat_ball_detector", | |
| "derived_from_contact" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Source" | |
| }, | |
| "reasons": { | |
| "items": { | |
| "enum": [ | |
| "contact_not_verified", | |
| "contact_not_applicable", | |
| "event_not_detected", | |
| "event_timing_uncertain", | |
| "required_event_unavailable", | |
| "required_event_limited", | |
| "lead_foot_unknown", | |
| "required_landmarks_unusable", | |
| "ground_plane_unknown", | |
| "scale_is_model_estimated", | |
| "scale_unknown", | |
| "excessive_interpolation", | |
| "occlusion_unresolved", | |
| "temporal_inconsistency", | |
| "capture_time_unknown", | |
| "follow_through_not_recorded", | |
| "model_accuracy_unvalidated" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Reasons", | |
| "type": "array" | |
| }, | |
| "source_frame_index": { | |
| "anyOf": [ | |
| { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Source Frame Index" | |
| } | |
| }, | |
| "required": [ | |
| "video_time_s", | |
| "capture_time_s", | |
| "status", | |
| "source", | |
| "reasons" | |
| ], | |
| "title": "CoachEvent", | |
| "type": "object" | |
| }, | |
| "CoachEvents": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "stride_start": { | |
| "$ref": "#/$defs/CoachEvent" | |
| }, | |
| "front_foot_down": { | |
| "$ref": "#/$defs/CoachEvent" | |
| }, | |
| "contact": { | |
| "$ref": "#/$defs/CoachEvent" | |
| }, | |
| "follow_through": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/CoachEvent" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null | |
| } | |
| }, | |
| "required": [ | |
| "stride_start", | |
| "front_foot_down", | |
| "contact" | |
| ], | |
| "title": "CoachEvents", | |
| "type": "object" | |
| }, | |
| "ExtendedMeasurement": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "value": { | |
| "anyOf": [ | |
| { | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Value" | |
| }, | |
| "status": { | |
| "enum": [ | |
| "available", | |
| "limited", | |
| "unavailable" | |
| ], | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "confidence": { | |
| "anyOf": [ | |
| { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Confidence" | |
| }, | |
| "uses_interpolated_input": { | |
| "title": "Uses Interpolated Input", | |
| "type": "boolean" | |
| }, | |
| "reasons": { | |
| "items": { | |
| "enum": [ | |
| "contact_not_verified", | |
| "contact_not_applicable", | |
| "event_not_detected", | |
| "event_timing_uncertain", | |
| "required_event_unavailable", | |
| "required_event_limited", | |
| "lead_foot_unknown", | |
| "required_landmarks_unusable", | |
| "ground_plane_unknown", | |
| "scale_is_model_estimated", | |
| "scale_unknown", | |
| "excessive_interpolation", | |
| "occlusion_unresolved", | |
| "temporal_inconsistency", | |
| "capture_time_unknown", | |
| "follow_through_not_recorded", | |
| "model_accuracy_unvalidated" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Reasons", | |
| "type": "array" | |
| }, | |
| "benchmark": { | |
| "default": null, | |
| "title": "Benchmark", | |
| "type": "null" | |
| }, | |
| "value_interval": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/ValueInterval" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null | |
| }, | |
| "metric_id": { | |
| "enum": [ | |
| "torso_inclination_at_stride_start", | |
| "hip_shoulder_separation_at_stride_start", | |
| "pelvis_rotation_to_contact", | |
| "lead_knee_extension_to_contact", | |
| "torso_inclination_at_contact", | |
| "shoulder_rotation_after_contact" | |
| ], | |
| "title": "Metric Id", | |
| "type": "string" | |
| }, | |
| "group": { | |
| "enum": [ | |
| "balance_load", | |
| "power_move", | |
| "contact_follow_through" | |
| ], | |
| "title": "Group", | |
| "type": "string" | |
| }, | |
| "unit": { | |
| "const": "deg", | |
| "default": "deg", | |
| "title": "Unit", | |
| "type": "string" | |
| }, | |
| "reference": { | |
| "enum": [ | |
| "torso_angle_from_vertical", | |
| "signed_horizontal_shoulder_minus_hip_heading", | |
| "absolute_net_horizontal_rotation", | |
| "change_in_3d_lead_knee_angle" | |
| ], | |
| "title": "Reference", | |
| "type": "string" | |
| }, | |
| "event_id": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "stride_start", | |
| "contact" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Event Id" | |
| }, | |
| "start_event_id": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "front_foot_down", | |
| "contact" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "Start Event Id" | |
| }, | |
| "end_event_id": { | |
| "anyOf": [ | |
| { | |
| "enum": [ | |
| "contact", | |
| "follow_through" | |
| ], | |
| "type": "string" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null, | |
| "title": "End Event Id" | |
| } | |
| }, | |
| "required": [ | |
| "value", | |
| "status", | |
| "confidence", | |
| "uses_interpolated_input", | |
| "reasons", | |
| "metric_id", | |
| "group", | |
| "reference" | |
| ], | |
| "title": "ExtendedMeasurement", | |
| "type": "object" | |
| }, | |
| "RelativeStride": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "value": { | |
| "anyOf": [ | |
| { | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Value" | |
| }, | |
| "status": { | |
| "enum": [ | |
| "available", | |
| "limited", | |
| "unavailable" | |
| ], | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "confidence": { | |
| "anyOf": [ | |
| { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Confidence" | |
| }, | |
| "uses_interpolated_input": { | |
| "title": "Uses Interpolated Input", | |
| "type": "boolean" | |
| }, | |
| "reasons": { | |
| "items": { | |
| "enum": [ | |
| "contact_not_verified", | |
| "contact_not_applicable", | |
| "event_not_detected", | |
| "event_timing_uncertain", | |
| "required_event_unavailable", | |
| "required_event_limited", | |
| "lead_foot_unknown", | |
| "required_landmarks_unusable", | |
| "ground_plane_unknown", | |
| "scale_is_model_estimated", | |
| "scale_unknown", | |
| "excessive_interpolation", | |
| "occlusion_unresolved", | |
| "temporal_inconsistency", | |
| "capture_time_unknown", | |
| "follow_through_not_recorded", | |
| "model_accuracy_unvalidated" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Reasons", | |
| "type": "array" | |
| }, | |
| "benchmark": { | |
| "default": null, | |
| "title": "Benchmark", | |
| "type": "null" | |
| }, | |
| "value_interval": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/ValueInterval" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null | |
| }, | |
| "metric_id": { | |
| "const": "stride_relative_length", | |
| "default": "stride_relative_length", | |
| "title": "Metric Id", | |
| "type": "string" | |
| }, | |
| "group": { | |
| "const": "stride", | |
| "default": "stride", | |
| "title": "Group", | |
| "type": "string" | |
| }, | |
| "unit": { | |
| "const": "cm", | |
| "default": "cm", | |
| "title": "Unit", | |
| "type": "string" | |
| }, | |
| "reference": { | |
| "const": "lead_ankle_displacement_relative_to_rear_ankle", | |
| "default": "lead_ankle_displacement_relative_to_rear_ankle", | |
| "title": "Reference", | |
| "type": "string" | |
| }, | |
| "start_event_id": { | |
| "const": "stride_start", | |
| "default": "stride_start", | |
| "title": "Start Event Id", | |
| "type": "string" | |
| }, | |
| "end_event_id": { | |
| "const": "front_foot_down", | |
| "default": "front_foot_down", | |
| "title": "End Event Id", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "value", | |
| "status", | |
| "confidence", | |
| "uses_interpolated_input", | |
| "reasons" | |
| ], | |
| "title": "RelativeStride", | |
| "type": "object" | |
| }, | |
| "SeparationAtContact": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "value": { | |
| "anyOf": [ | |
| { | |
| "exclusiveMaximum": 180, | |
| "minimum": -180, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Value" | |
| }, | |
| "status": { | |
| "enum": [ | |
| "available", | |
| "limited", | |
| "unavailable" | |
| ], | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "confidence": { | |
| "anyOf": [ | |
| { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Confidence" | |
| }, | |
| "uses_interpolated_input": { | |
| "title": "Uses Interpolated Input", | |
| "type": "boolean" | |
| }, | |
| "reasons": { | |
| "items": { | |
| "enum": [ | |
| "contact_not_verified", | |
| "contact_not_applicable", | |
| "event_not_detected", | |
| "event_timing_uncertain", | |
| "required_event_unavailable", | |
| "required_event_limited", | |
| "lead_foot_unknown", | |
| "required_landmarks_unusable", | |
| "ground_plane_unknown", | |
| "scale_is_model_estimated", | |
| "scale_unknown", | |
| "excessive_interpolation", | |
| "occlusion_unresolved", | |
| "temporal_inconsistency", | |
| "capture_time_unknown", | |
| "follow_through_not_recorded", | |
| "model_accuracy_unvalidated" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Reasons", | |
| "type": "array" | |
| }, | |
| "benchmark": { | |
| "default": null, | |
| "title": "Benchmark", | |
| "type": "null" | |
| }, | |
| "value_interval": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/ValueInterval" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null | |
| }, | |
| "metric_id": { | |
| "const": "hip_shoulder_separation_at_contact", | |
| "default": "hip_shoulder_separation_at_contact", | |
| "title": "Metric Id", | |
| "type": "string" | |
| }, | |
| "group": { | |
| "const": "contact_follow_through", | |
| "default": "contact_follow_through", | |
| "title": "Group", | |
| "type": "string" | |
| }, | |
| "unit": { | |
| "const": "deg", | |
| "default": "deg", | |
| "title": "Unit", | |
| "type": "string" | |
| }, | |
| "reference": { | |
| "const": "signed_horizontal_shoulder_minus_hip_heading", | |
| "default": "signed_horizontal_shoulder_minus_hip_heading", | |
| "title": "Reference", | |
| "type": "string" | |
| }, | |
| "event_id": { | |
| "const": "contact", | |
| "default": "contact", | |
| "title": "Event Id", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "value", | |
| "status", | |
| "confidence", | |
| "uses_interpolated_input", | |
| "reasons" | |
| ], | |
| "title": "SeparationAtContact", | |
| "type": "object" | |
| }, | |
| "SeparationAtFootDown": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "value": { | |
| "anyOf": [ | |
| { | |
| "exclusiveMaximum": 180, | |
| "minimum": -180, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Value" | |
| }, | |
| "status": { | |
| "enum": [ | |
| "available", | |
| "limited", | |
| "unavailable" | |
| ], | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "confidence": { | |
| "anyOf": [ | |
| { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "title": "Confidence" | |
| }, | |
| "uses_interpolated_input": { | |
| "title": "Uses Interpolated Input", | |
| "type": "boolean" | |
| }, | |
| "reasons": { | |
| "items": { | |
| "enum": [ | |
| "contact_not_verified", | |
| "contact_not_applicable", | |
| "event_not_detected", | |
| "event_timing_uncertain", | |
| "required_event_unavailable", | |
| "required_event_limited", | |
| "lead_foot_unknown", | |
| "required_landmarks_unusable", | |
| "ground_plane_unknown", | |
| "scale_is_model_estimated", | |
| "scale_unknown", | |
| "excessive_interpolation", | |
| "occlusion_unresolved", | |
| "temporal_inconsistency", | |
| "capture_time_unknown", | |
| "follow_through_not_recorded", | |
| "model_accuracy_unvalidated" | |
| ], | |
| "type": "string" | |
| }, | |
| "title": "Reasons", | |
| "type": "array" | |
| }, | |
| "benchmark": { | |
| "default": null, | |
| "title": "Benchmark", | |
| "type": "null" | |
| }, | |
| "value_interval": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/ValueInterval" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ], | |
| "default": null | |
| }, | |
| "metric_id": { | |
| "const": "hip_shoulder_separation_at_foot_down", | |
| "default": "hip_shoulder_separation_at_foot_down", | |
| "title": "Metric Id", | |
| "type": "string" | |
| }, | |
| "group": { | |
| "const": "stride", | |
| "default": "stride", | |
| "title": "Group", | |
| "type": "string" | |
| }, | |
| "unit": { | |
| "const": "deg", | |
| "default": "deg", | |
| "title": "Unit", | |
| "type": "string" | |
| }, | |
| "reference": { | |
| "const": "signed_horizontal_shoulder_minus_hip_heading", | |
| "default": "signed_horizontal_shoulder_minus_hip_heading", | |
| "title": "Reference", | |
| "type": "string" | |
| }, | |
| "event_id": { | |
| "const": "front_foot_down", | |
| "default": "front_foot_down", | |
| "title": "Event Id", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "value", | |
| "status", | |
| "confidence", | |
| "uses_interpolated_input", | |
| "reasons" | |
| ], | |
| "title": "SeparationAtFootDown", | |
| "type": "object" | |
| }, | |
| "ValueInterval": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "lower": { | |
| "title": "Lower", | |
| "type": "number" | |
| }, | |
| "upper": { | |
| "title": "Upper", | |
| "type": "number" | |
| }, | |
| "source": { | |
| "const": "adjacent_event_frames", | |
| "default": "adjacent_event_frames", | |
| "title": "Source", | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "lower", | |
| "upper" | |
| ], | |
| "title": "ValueInterval", | |
| "type": "object" | |
| } | |
| }, | |
| "additionalProperties": false, | |
| "properties": { | |
| "schema_version": { | |
| "default": "1.1", | |
| "enum": [ | |
| "1.0", | |
| "1.1" | |
| ], | |
| "title": "Schema Version", | |
| "type": "string" | |
| }, | |
| "measurement_definitions_version": { | |
| "default": "1.1", | |
| "enum": [ | |
| "1.0", | |
| "1.1" | |
| ], | |
| "title": "Measurement Definitions Version", | |
| "type": "string" | |
| }, | |
| "analysis_id": { | |
| "minLength": 1, | |
| "title": "Analysis Id", | |
| "type": "string" | |
| }, | |
| "analysis_revision": { | |
| "minimum": 1, | |
| "title": "Analysis Revision", | |
| "type": "integer" | |
| }, | |
| "swing_id": { | |
| "minLength": 1, | |
| "title": "Swing Id", | |
| "type": "string" | |
| }, | |
| "status": { | |
| "const": "completed", | |
| "default": "completed", | |
| "title": "Status", | |
| "type": "string" | |
| }, | |
| "athlete": { | |
| "$ref": "#/$defs/CoachAthlete" | |
| }, | |
| "context": { | |
| "$ref": "#/$defs/CoachContext" | |
| }, | |
| "events": { | |
| "$ref": "#/$defs/CoachEvents" | |
| }, | |
| "measurements": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "$ref": "#/$defs/SeparationAtFootDown" | |
| }, | |
| { | |
| "$ref": "#/$defs/RelativeStride" | |
| }, | |
| { | |
| "$ref": "#/$defs/SeparationAtContact" | |
| }, | |
| { | |
| "$ref": "#/$defs/ExtendedMeasurement" | |
| } | |
| ] | |
| }, | |
| "maxItems": 9, | |
| "minItems": 3, | |
| "title": "Measurements", | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "analysis_id", | |
| "analysis_revision", | |
| "swing_id", | |
| "athlete", | |
| "context", | |
| "events", | |
| "measurements" | |
| ], | |
| "title": "MotionCoachPayload", | |
| "type": "object" | |
| } | |