baseball-engine / docs /pitching-input.schema.json
github-actions[bot]
Automated Deploy: 4ea54718c236dd203cbe9e0b3c7b690ae2e06417
6963661
Raw History Blame Contribute Delete
29.4 kB
{ "$defs": { "CorrectionSettings": { "additionalProperties": false, "properties": { "min_cutoff_hz": { "default": 6, "exclusiveMinimum": 0, "maximum": 30, "title": "Min Cutoff Hz", "type": "number" }, "speed_coefficient": { "default": 4, "maximum": 30, "minimum": 0, "title": "Speed Coefficient", "type": "number" }, "max_gap_s": { "default": 0.1, "exclusiveMinimum": 0, "maximum": 0.5, "title": "Max Gap S", "type": "number" }, "bone_relative_tolerance": { "default": 0.35, "exclusiveMinimum": 0.05, "maximum": 1, "title": "Bone Relative Tolerance", "type": "number" }, "spike_mad_multiplier": { "default": 6, "maximum": 20, "minimum": 3, "title": "Spike Mad Multiplier", "type": "number" }, "boundary_samples": { "default": 2, "maximum": 5, "minimum": 1, "title": "Boundary Samples", "type": "integer" }, "spike_minimum_m": { "default": 0.005, "exclusiveMinimum": 0, "maximum": 0.2, "title": "Spike Minimum M", "type": "number" } }, "title": "CorrectionSettings", "type": "object" }, "GVHMRSettings": { "additionalProperties": false, "properties": { "batch_size": { "default": 4, "maximum": 16, "minimum": 1, "title": "Batch Size", "type": "integer" }, "max_sequence_frames": { "default": 300, "maximum": 900, "minimum": 90, "title": "Max Sequence Frames", "type": "integer" }, "context_frames": { "default": 60, "maximum": 60, "minimum": 10, "title": "Context Frames", "type": "integer" }, "minimum_keypoint_score": { "default": 0.3, "maximum": 1, "minimum": 0, "title": "Minimum Keypoint Score", "type": "number" }, "maximum_reprojection_box_fraction": { "default": 0.15, "exclusiveMinimum": 0, "maximum": 1, "title": "Maximum Reprojection Box Fraction", "type": "number" } }, "title": "GVHMRSettings", "type": "object" }, "MeasurementSettings": { "additionalProperties": false, "properties": { "minimum_axis_length_m": { "default": 0.015, "exclusiveMinimum": 0, "maximum": 0.2, "title": "Minimum Axis Length M", "type": "number" }, "minimum_horizontal_fraction": { "default": 0.15, "exclusiveMaximum": 1, "exclusiveMinimum": 0, "title": "Minimum Horizontal Fraction", "type": "number" }, "minimum_foot_vector_m": { "default": 0.01, "exclusiveMinimum": 0, "maximum": 0.2, "title": "Minimum Foot Vector M", "type": "number" }, "minimum_upright_torso_m": { "default": 0.05, "exclusiveMinimum": 0, "maximum": 0.3, "title": "Minimum Upright Torso M", "type": "number" }, "maximum_heading_step_deg": { "default": 150, "exclusiveMaximum": 180, "exclusiveMinimum": 0, "title": "Maximum Heading Step Deg", "type": "number" }, "peak_competition_ratio": { "default": 0.9, "exclusiveMinimum": 0, "maximum": 1, "title": "Peak Competition Ratio", "type": "number" }, "peak_separation_s": { "default": 0.08, "exclusiveMinimum": 0, "maximum": 1, "title": "Peak Separation S", "type": "number" }, "direction_min_rotation_deg": { "default": 5, "exclusiveMinimum": 0, "maximum": 90, "title": "Direction Min Rotation Deg", "type": "number" }, "motion_prominence_m_s": { "default": 0.15, "exclusiveMinimum": 0, "maximum": 10, "title": "Motion Prominence M S", "type": "number" }, "motion_separation_s": { "default": 0.7, "exclusiveMinimum": 0, "maximum": 5, "title": "Motion Separation S", "type": "number" }, "window_before_peak_s": { "default": 0.2, "exclusiveMinimum": 0, "maximum": 2, "title": "Window Before Peak S", "type": "number" }, "window_after_peak_s": { "default": 0.25, "exclusiveMinimum": 0, "maximum": 2, "title": "Window After Peak S", "type": "number" } }, "title": "MeasurementSettings", "type": "object" }, "MotionCamera": { "additionalProperties": false, "properties": { "fx": { "exclusiveMinimum": 0, "title": "Fx", "type": "number" }, "fy": { "exclusiveMinimum": 0, "title": "Fy", "type": "number" }, "cx": { "minimum": 0, "title": "Cx", "type": "number" }, "cy": { "minimum": 0, "title": "Cy", "type": "number" }, "source": { "maxLength": 512, "minLength": 1, "title": "Source", "type": "string" }, "distortion": { "anyOf": [ { "maxItems": 5, "minItems": 5, "prefixItems": [ { "type": "number" }, { "type": "number" }, { "type": "number" }, { "type": "number" }, { "type": "number" } ], "type": "array" }, { "type": "null" } ], "default": null, "title": "Distortion" }, "calibration_status": { "default": "unknown", "enum": [ "unknown", "estimated", "calibrated" ], "title": "Calibration Status", "type": "string" } }, "required": [ "fx", "fy", "cx", "cy", "source" ], "title": "MotionCamera", "type": "object" }, "MotionTrackingSettings": { "additionalProperties": false, "properties": { "recover_short_losses": { "default": true, "title": "Recover Short Losses", "type": "boolean" }, "maximum_recovery_gap_s": { "default": 0.2, "exclusiveMinimum": 0, "maximum": 0.5, "title": "Maximum Recovery Gap S", "type": "number" }, "minimum_appearance_similarity": { "default": 0.85, "maximum": 0.99, "minimum": 0.7, "title": "Minimum Appearance Similarity", "type": "number" }, "minimum_candidate_margin": { "default": 0.1, "maximum": 0.5, "minimum": 0.05, "title": "Minimum Candidate Margin", "type": "number" } }, "title": "MotionTrackingSettings", "type": "object" }, "PitchAthlete": { "additionalProperties": false, "properties": { "athlete_id": { "maxLength": 180, "minLength": 1, "pattern": "\\S", "title": "Athlete Id", "type": "string" }, "throwing_hand": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Throwing 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": "PitchAthlete", "type": "object" }, "PitchContext": { "additionalProperties": false, "properties": { "sport": { "const": "baseball", "default": "baseball", "title": "Sport", "type": "string" }, "practice_type": { "default": "unknown", "enum": [ "bullpen", "flat_ground", "live_bp", "game", "dry_delivery", "unknown" ], "title": "Practice Type", "type": "string" }, "drill_type": { "default": "unknown", "enum": [ "standard", "step_back", "rocker", "other", "unknown" ], "title": "Drill Type", "type": "string" }, "pitch_type": { "default": "unknown", "enum": [ "fastball", "breaking_ball", "changeup", "other", "unknown" ], "title": "Pitch Type", "type": "string" }, "ball_type": { "default": "unknown", "enum": [ "baseball", "training_ball", "none", "unknown" ], "title": "Ball Type", "type": "string" } }, "title": "PitchContext", "type": "object" }, "PitchWindow": { "additionalProperties": false, "properties": { "start_frame": { "minimum": 0, "title": "Start Frame", "type": "integer" }, "end_frame": { "minimum": 0, "title": "End Frame", "type": "integer" }, "leg_lift_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Leg Lift Frame" }, "foot_strike_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Foot Strike Frame" }, "source": { "default": "caller_reviewed_video", "maxLength": 180, "minLength": 1, "title": "Source", "type": "string" } }, "required": [ "start_frame", "end_frame" ], "title": "PitchWindow", "type": "object" }, "PitcherFloorPoints": { "additionalProperties": false, "properties": { "source_frame_index": { "minimum": 0, "title": "Source Frame Index", "type": "integer" }, "near_batter": { "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "number" }, { "type": "number" } ], "title": "Near Batter", "type": "array" }, "toward_pitcher": { "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "number" }, { "type": "number" } ], "title": "Toward Pitcher", "type": "array" }, "selection_uncertainty_px": { "default": 2.0, "exclusiveMinimum": 0, "maximum": 25, "title": "Selection Uncertainty Px", "type": "number" }, "up_sensitivity_deg": { "default": 1.0, "exclusiveMinimum": 0, "maximum": 30, "title": "Up Sensitivity Deg", "type": "number" } }, "required": [ "source_frame_index", "near_batter", "toward_pitcher" ], "title": "PitcherFloorPoints", "type": "object" }, "RefinementSettings": { "additionalProperties": false, "properties": { "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "native_batch_frames": { "default": 8, "maximum": 16, "minimum": 1, "title": "Native Batch Frames", "type": "integer" }, "window_frames": { "default": 48, "maximum": 120, "minimum": 12, "title": "Window Frames", "type": "integer" }, "context_frames": { "default": 8, "maximum": 24, "minimum": 2, "title": "Context Frames", "type": "integer" }, "iterations": { "default": 25, "maximum": 100, "minimum": 5, "title": "Iterations", "type": "integer" }, "learning_rate": { "default": 0.005, "exclusiveMinimum": 0, "maximum": 0.05, "title": "Learning Rate", "type": "number" }, "minimum_observation_score": { "default": 0.45, "maximum": 0.95, "minimum": 0.1, "title": "Minimum Observation Score", "type": "number" }, "minimum_observed_joints": { "default": 6, "maximum": 20, "minimum": 4, "title": "Minimum Observed Joints", "type": "integer" }, "observation_scale_box_fraction": { "default": 0.025, "exclusiveMinimum": 0, "maximum": 0.15, "title": "Observation Scale Box Fraction", "type": "number" }, "maximum_observation_error_box_fraction": { "default": 0.08, "exclusiveMinimum": 0, "maximum": 0.3, "title": "Maximum Observation Error Box Fraction", "type": "number" }, "maximum_body_change_fraction": { "default": 0.12, "exclusiveMinimum": 0, "maximum": 0.3, "title": "Maximum Body Change Fraction", "type": "number" }, "maximum_bone_change_fraction": { "default": 0.06, "exclusiveMinimum": 0, "maximum": 0.2, "title": "Maximum Bone Change Fraction", "type": "number" }, "temporal_weight": { "default": 0.02, "maximum": 1, "minimum": 0, "title": "Temporal Weight", "type": "number" }, "initializer_weight": { "default": 0.1, "exclusiveMinimum": 0, "maximum": 10, "title": "Initializer Weight", "type": "number" }, "initializer_scale_body_fraction": { "default": 0.03, "maximum": 0.1, "minimum": 0.005, "title": "Initializer Scale Body Fraction", "type": "number" }, "maximum_peak_time_shift_s": { "default": 0.025, "exclusiveMinimum": 0, "maximum": 0.1, "title": "Maximum Peak Time Shift S", "type": "number" }, "maximum_peak_speed_change_fraction": { "default": 0.2, "exclusiveMinimum": 0, "maximum": 0.5, "title": "Maximum Peak Speed Change Fraction", "type": "number" }, "maximum_static_background_motion_fraction": { "default": 0.003, "exclusiveMinimum": 0, "maximum": 0.05, "title": "Maximum Static Background Motion Fraction", "type": "number" }, "sensitivity_factors": { "default": [ 0.5, 2.0 ], "maxItems": 2, "minItems": 2, "prefixItems": [ { "type": "number" }, { "type": "number" } ], "title": "Sensitivity Factors", "type": "array" } }, "title": "RefinementSettings", "type": "object" }, "TimingInput": { "additionalProperties": false, "properties": { "kind": { "default": "unknown", "enum": [ "unknown", "unretimed", "constant_slowdown", "explicit" ], "title": "Kind", "type": "string" }, "source": { "anyOf": [ { "maxLength": 512, "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Source" }, "factor": { "anyOf": [ { "exclusiveMinimum": 0, "type": "number" }, { "type": "null" } ], "default": null, "title": "Factor" }, "all_captured_frames_retained": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "All Captured Frames Retained" }, "physical_times_s": { "anyOf": [ { "items": { "type": "number" }, "maxItems": 20000, "minItems": 1, "type": "array" }, { "type": "null" } ], "default": null, "title": "Physical Times S" } }, "title": "TimingInput", "type": "object" }, "UpEstimationSettings": { "additionalProperties": false, "properties": { "enabled": { "default": true, "title": "Enabled", "type": "boolean" }, "sample_count": { "default": 7, "maximum": 15, "minimum": 3, "title": "Sample Count", "type": "integer" }, "minimum_frames": { "default": 3, "maximum": 15, "minimum": 3, "title": "Minimum Frames", "type": "integer" }, "maximum_gravity_uncertainty_deg": { "default": 5.0, "exclusiveMinimum": 0, "maximum": 15, "title": "Maximum Gravity Uncertainty Deg", "type": "number" }, "maximum_frame_deviation_deg": { "default": 3.0, "exclusiveMinimum": 0, "maximum": 10, "title": "Maximum Frame Deviation Deg", "type": "number" }, "minimum_consensus_fraction": { "default": 0.8, "maximum": 1, "minimum": 0.6, "title": "Minimum Consensus Fraction", "type": "number" }, "minimum_temporal_coverage": { "default": 0.75, "maximum": 1, "minimum": 0.5, "title": "Minimum Temporal Coverage", "type": "number" }, "minimum_background_fraction": { "default": 0.2, "maximum": 0.8, "minimum": 0.1, "title": "Minimum Background Fraction", "type": "number" }, "minimum_effective_pixels": { "default": 32, "maximum": 1000, "minimum": 16, "title": "Minimum Effective Pixels", "type": "integer" }, "minimum_spatial_cells": { "default": 3, "maximum": 9, "minimum": 2, "title": "Minimum Spatial Cells", "type": "integer" }, "maximum_up_residual_deg": { "default": 10.0, "exclusiveMinimum": 0, "maximum": 20, "title": "Maximum Up Residual Deg", "type": "number" }, "maximum_latitude_residual_deg": { "default": 5.0, "exclusiveMinimum": 0, "maximum": 15, "title": "Maximum Latitude Residual Deg", "type": "number" }, "minimum_texture_fraction": { "default": 0.005, "exclusiveMinimum": 0, "maximum": 0.1, "title": "Minimum Texture Fraction", "type": "number" } }, "title": "UpEstimationSettings", "type": "object" } }, "additionalProperties": false, "properties": { "timing": { "$ref": "#/$defs/TimingInput" }, "rotation_degrees": { "anyOf": [ { "enum": [ 0, 90, 180, 270 ], "type": "integer" }, { "type": "null" } ], "default": null, "title": "Rotation Degrees" }, "camera_stability": { "default": "unknown", "enum": [ "unknown", "fixed_verified", "moving" ], "title": "Camera Stability", "type": "string" }, "handedness": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Handedness" }, "lead_foot": { "anyOf": [ { "enum": [ "left", "right" ], "type": "string" }, { "type": "null" } ], "default": null, "title": "Lead Foot" }, "camera": { "anyOf": [ { "$ref": "#/$defs/MotionCamera" }, { "type": "null" } ], "default": null }, "up_vector": { "anyOf": [ { "maxItems": 3, "minItems": 3, "prefixItems": [ { "type": "number" }, { "type": "number" }, { "type": "number" } ], "type": "array" }, { "type": "null" } ], "default": null, "title": "Up Vector" }, "up_source": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "default": null, "title": "Up Source" }, "pitcher_vector": { "anyOf": [ { "maxItems": 3, "minItems": 3, "prefixItems": [ { "type": "number" }, { "type": "number" }, { "type": "number" } ], "type": "array" }, { "type": "null" } ], "default": null, "title": "Pitcher Vector" }, "pitcher_source": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "default": null, "title": "Pitcher Source" }, "scale_factor": { "default": 1, "exclusiveMinimum": 0, "maximum": 10, "title": "Scale Factor", "type": "number" }, "scale_source": { "anyOf": [ { "maxLength": 300, "type": "string" }, { "type": "null" } ], "default": null, "title": "Scale Source" }, "athlete_box": { "anyOf": [ { "maxItems": 4, "minItems": 4, "prefixItems": [ { "type": "number" }, { "type": "number" }, { "type": "number" }, { "type": "number" } ], "type": "array" }, { "type": "null" } ], "default": null, "title": "Athlete Box" }, "single_swing": { "const": false, "default": false, "title": "Single Swing", "type": "boolean" }, "windows": { "items": { "$ref": "#/$defs/PitchWindow" }, "maxItems": 1, "title": "Windows", "type": "array" }, "correction": { "$ref": "#/$defs/CorrectionSettings" }, "measurement": { "$ref": "#/$defs/MeasurementSettings" }, "coaching": { "const": false, "default": false, "title": "Coaching", "type": "boolean" }, "discipline": { "const": "pitching", "default": "pitching", "title": "Discipline", "type": "string" }, "model": { "default": "sam3d", "enum": [ "sam3d", "gvhmr" ], "title": "Model", "type": "string" }, "gvhmr": { "$ref": "#/$defs/GVHMRSettings" }, "annotated_videos": { "const": false, "default": false, "title": "Annotated Videos", "type": "boolean" }, "source_mirrored": { "anyOf": [ { "type": "boolean" }, { "type": "null" } ], "default": null, "title": "Source Mirrored" }, "handedness_source": { "anyOf": [ { "maxLength": 300, "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Handedness Source" }, "lead_foot_source": { "anyOf": [ { "maxLength": 300, "minLength": 1, "type": "string" }, { "type": "null" } ], "default": null, "title": "Lead Foot Source" }, "scale_status": { "default": "model_estimated", "enum": [ "model_estimated", "calibrated", "unknown" ], "title": "Scale Status", "type": "string" }, "minimum_usable_joints": { "default": 3, "maximum": 20, "minimum": 3, "title": "Minimum Usable Joints", "type": "integer" }, "refinement": { "$ref": "#/$defs/RefinementSettings" }, "tracking": { "$ref": "#/$defs/MotionTrackingSettings" }, "up_estimation": { "$ref": "#/$defs/UpEstimationSettings" }, "pitcher_floor_points": { "anyOf": [ { "$ref": "#/$defs/PitcherFloorPoints" }, { "type": "null" } ], "default": null }, "athlete": { "anyOf": [ { "$ref": "#/$defs/PitchAthlete" }, { "type": "null" } ], "default": null }, "context": { "$ref": "#/$defs/PitchContext" }, "contact_frame": { "default": null, "title": "Contact Frame", "type": "null" }, "swing_id": { "default": null, "title": "Swing Id", "type": "null" }, "single_pitch": { "const": true, "default": true, "title": "Single Pitch", "type": "boolean" }, "release_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Release Frame" }, "pitch_id": { "anyOf": [ { "maxLength": 180, "minLength": 1, "pattern": "\\S", "type": "string" }, { "type": "null" } ], "default": null, "title": "Pitch Id" } }, "title": "PitchingInput", "type": "object" }
{
"$defs": {
"CorrectionSettings": {
"additionalProperties": false,
"properties": {
"min_cutoff_hz": {
"default": 6,
"exclusiveMinimum": 0,
"maximum": 30,
"title": "Min Cutoff Hz",
"type": "number"
},
"speed_coefficient": {
"default": 4,
"maximum": 30,
"minimum": 0,
"title": "Speed Coefficient",
"type": "number"
},
"max_gap_s": {
"default": 0.1,
"exclusiveMinimum": 0,
"maximum": 0.5,
"title": "Max Gap S",
"type": "number"
},
"bone_relative_tolerance": {
"default": 0.35,
"exclusiveMinimum": 0.05,
"maximum": 1,
"title": "Bone Relative Tolerance",
"type": "number"
},
"spike_mad_multiplier": {
"default": 6,
"maximum": 20,
"minimum": 3,
"title": "Spike Mad Multiplier",
"type": "number"
},
"boundary_samples": {
"default": 2,
"maximum": 5,
"minimum": 1,
"title": "Boundary Samples",
"type": "integer"
},
"spike_minimum_m": {
"default": 0.005,
"exclusiveMinimum": 0,
"maximum": 0.2,
"title": "Spike Minimum M",
"type": "number"
}
},
"title": "CorrectionSettings",
"type": "object"
},
"GVHMRSettings": {
"additionalProperties": false,
"properties": {
"batch_size": {
"default": 4,
"maximum": 16,
"minimum": 1,
"title": "Batch Size",
"type": "integer"
},
"max_sequence_frames": {
"default": 300,
"maximum": 900,
"minimum": 90,
"title": "Max Sequence Frames",
"type": "integer"
},
"context_frames": {
"default": 60,
"maximum": 60,
"minimum": 10,
"title": "Context Frames",
"type": "integer"
},
"minimum_keypoint_score": {
"default": 0.3,
"maximum": 1,
"minimum": 0,
"title": "Minimum Keypoint Score",
"type": "number"
},
"maximum_reprojection_box_fraction": {
"default": 0.15,
"exclusiveMinimum": 0,
"maximum": 1,
"title": "Maximum Reprojection Box Fraction",
"type": "number"
}
},
"title": "GVHMRSettings",
"type": "object"
},