Spaces:
Running on T4
Running on T4
Download AI-coach-agent/docs/pose_track.schema.json from modventures/baseball-engine: direct link, hf CLI and curl.
- Browser
- Download file 12.4 kB
-
https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/AI-coach-agent/docs/pose_track.schema.json
- Command line
-
hf download hf://spaces/modventures/baseball-engine/AI-coach-agent/docs/pose_track.schema.json
-
curl -L -o pose_track.schema.json https://huggingface.co/spaces/modventures/baseball-engine/resolve/main/AI-coach-agent/docs/pose_track.schema.json
12.4 kB
| { | |
| "$schema": "http://json-schema.org/draft-07/schema#", | |
| "additionalProperties": false, | |
| "properties": { | |
| "discipline": { | |
| "enum": [ | |
| "hitting", | |
| "pitching" | |
| ] | |
| }, | |
| "extra_keypoint_order": { | |
| "const": [ | |
| "left_big_toe", | |
| "left_small_toe", | |
| "left_heel", | |
| "right_big_toe", | |
| "right_small_toe", | |
| "right_heel" | |
| ] | |
| }, | |
| "frames": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "blur": { | |
| "items": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "box": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 4, | |
| "minItems": 4, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "brightness": { | |
| "items": { | |
| "maximum": 255, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "conf": { | |
| "items": { | |
| "items": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "maxItems": 17, | |
| "minItems": 17, | |
| "type": "array" | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "conf_extra": { | |
| "items": { | |
| "items": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "maxItems": 6, | |
| "minItems": 6, | |
| "type": "array" | |
| }, | |
| "type": "array" | |
| }, | |
| "kp": { | |
| "items": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 2, | |
| "minItems": 2, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "maxItems": 17, | |
| "minItems": 17, | |
| "type": "array" | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "kp_extra": { | |
| "items": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 2, | |
| "minItems": 2, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "maxItems": 6, | |
| "minItems": 6, | |
| "type": "array" | |
| }, | |
| "type": "array" | |
| }, | |
| "people_count": { | |
| "items": { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "t_s": { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "minItems": 1, | |
| "type": "array" | |
| }, | |
| "track_id": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "type": "integer" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "type": "array" | |
| } | |
| }, | |
| "required": [ | |
| "t_s", | |
| "kp", | |
| "conf", | |
| "box", | |
| "people_count", | |
| "blur", | |
| "brightness" | |
| ], | |
| "type": "object" | |
| }, | |
| "keypoint_order": { | |
| "const": [ | |
| "nose", | |
| "left_eye", | |
| "right_eye", | |
| "left_ear", | |
| "right_ear", | |
| "left_shoulder", | |
| "right_shoulder", | |
| "left_elbow", | |
| "right_elbow", | |
| "left_wrist", | |
| "right_wrist", | |
| "left_hip", | |
| "right_hip", | |
| "left_knee", | |
| "right_knee", | |
| "left_ankle", | |
| "right_ankle" | |
| ] | |
| }, | |
| "kp3d": { | |
| "additionalProperties": false, | |
| "description": "OPTIONAL, not used in v1. Per-frame 3D points for the same 17 joints.", | |
| "properties": { | |
| "conf": { | |
| "items": { | |
| "items": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "maxItems": 17, | |
| "minItems": 17, | |
| "type": "array" | |
| }, | |
| "type": "array" | |
| }, | |
| "frame_of_reference": { | |
| "enum": [ | |
| "camera", | |
| "pelvis_relative" | |
| ] | |
| }, | |
| "points": { | |
| "items": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 3, | |
| "minItems": 3, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "maxItems": 17, | |
| "minItems": 17, | |
| "type": "array" | |
| }, | |
| "type": "array" | |
| }, | |
| "unit": { | |
| "const": "m" | |
| } | |
| }, | |
| "required": [ | |
| "frame_of_reference", | |
| "unit", | |
| "points", | |
| "conf" | |
| ], | |
| "type": "object" | |
| }, | |
| "model": { | |
| "additionalProperties": true, | |
| "properties": { | |
| "blur_definition": { | |
| "type": "string" | |
| }, | |
| "name": { | |
| "type": "string" | |
| }, | |
| "people_rule": { | |
| "type": "string" | |
| }, | |
| "processing": { | |
| "description": "Applied after the model, e.g. one_euro or interpolation. Empty = raw.", | |
| "items": { | |
| "type": "string" | |
| }, | |
| "type": "array" | |
| }, | |
| "version": { | |
| "type": "string" | |
| } | |
| }, | |
| "required": [ | |
| "name", | |
| "processing" | |
| ], | |
| "type": "object" | |
| }, | |
| "objects": { | |
| "additionalProperties": false, | |
| "description": "OPTIONAL, not used in v1. Bat and ball per frame (pixels, upright image).", | |
| "properties": { | |
| "ball": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "additionalProperties": false, | |
| "properties": { | |
| "center": { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 2, | |
| "minItems": 2, | |
| "type": "array" | |
| }, | |
| "conf": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "radius_px": { | |
| "minimum": 0, | |
| "type": "number" | |
| } | |
| }, | |
| "required": [ | |
| "center", | |
| "conf" | |
| ], | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "type": "array" | |
| }, | |
| "bat": { | |
| "items": { | |
| "anyOf": [ | |
| { | |
| "additionalProperties": false, | |
| "properties": { | |
| "barrel": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 2, | |
| "minItems": 2, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "conf": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "knob": { | |
| "anyOf": [ | |
| { | |
| "items": { | |
| "type": "number" | |
| }, | |
| "maxItems": 2, | |
| "minItems": 2, | |
| "type": "array" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "knob", | |
| "barrel", | |
| "conf" | |
| ], | |
| "type": "object" | |
| }, | |
| { | |
| "type": "null" | |
| } | |
| ] | |
| }, | |
| "type": "array" | |
| } | |
| }, | |
| "type": "object" | |
| }, | |
| "reps": { | |
| "items": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "end_frame": { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| "events": { | |
| "additionalProperties": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "confidence": { | |
| "maximum": 1, | |
| "minimum": 0, | |
| "type": "number" | |
| }, | |
| "estimated": { | |
| "type": "boolean" | |
| }, | |
| "frame": { | |
| "minimum": 0, | |
| "type": "integer" | |
| }, | |
| "method": { | |
| "type": "string" | |
| }, | |
| "t_s": { | |
| "type": "number" | |
| } | |
| }, | |
| "required": [ | |
| "frame", | |
| "confidence" | |
| ], | |
| "type": "object" | |
| }, | |
| "propertyNames": { | |
| "enum": [ | |
| "contact", | |
| "finish", | |
| "first_move", | |
| "foot_contact", | |
| "foot_plant", | |
| "hand_break", | |
| "leg_lift", | |
| "load_start", | |
| "release", | |
| "stance_set", | |
| "stride", | |
| "swing_start" | |
| ] | |
| }, | |
| "type": "object" | |
| }, | |
| "missing_events": { | |
| "additionalProperties": { | |
| "type": "string" | |
| }, | |
| "type": "object" | |
| }, | |
| "rep": { | |
| "minimum": 1, | |
| "type": "integer" | |
| }, | |
| "start_frame": { | |
| "minimum": 0, | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "rep", | |
| "start_frame", | |
| "end_frame", | |
| "events" | |
| ], | |
| "type": "object" | |
| }, | |
| "type": "array" | |
| }, | |
| "schema_version": { | |
| "const": "1.0" | |
| }, | |
| "video": { | |
| "additionalProperties": false, | |
| "properties": { | |
| "capture_fps": { | |
| "exclusiveMinimum": 0, | |
| "type": "number" | |
| }, | |
| "frame_count": { | |
| "minimum": 1, | |
| "type": "integer" | |
| }, | |
| "height": { | |
| "minimum": 1, | |
| "type": "integer" | |
| }, | |
| "playback_fps": { | |
| "exclusiveMinimum": 0, | |
| "type": "number" | |
| }, | |
| "rotation_degrees_applied": { | |
| "enum": [ | |
| 0, | |
| 90, | |
| 180, | |
| 270 | |
| ] | |
| }, | |
| "sha256": { | |
| "type": "string" | |
| }, | |
| "time_source": { | |
| "enum": [ | |
| "pts", | |
| "assumed_constant", | |
| "slowmo_rescaled" | |
| ] | |
| }, | |
| "width": { | |
| "minimum": 1, | |
| "type": "integer" | |
| } | |
| }, | |
| "required": [ | |
| "width", | |
| "height", | |
| "frame_count", | |
| "capture_fps", | |
| "playback_fps", | |
| "rotation_degrees_applied", | |
| "time_source" | |
| ], | |
| "type": "object" | |
| }, | |
| "view": { | |
| "enum": [ | |
| "face_on", | |
| "open_side" | |
| ] | |
| } | |
| }, | |
| "required": [ | |
| "schema_version", | |
| "discipline", | |
| "view", | |
| "video", | |
| "model", | |
| "keypoint_order", | |
| "frames" | |
| ], | |
| "title": "Pose track (what the pose pipeline sends downstream)", | |
| "type": "object" | |
| } | |