{ "$defs": { "CameraInput": { "additionalProperties": false, "description": "Intrinsics refer to the upright decoded image, after rotation.", "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" } }, "required": [ "fx", "fy", "cx", "cy", "source" ], "title": "CameraInput", "type": "object" }, "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" }, "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" }, "SwingWindow": { "additionalProperties": false, "properties": { "start_frame": { "minimum": 0, "title": "Start Frame", "type": "integer" }, "end_frame": { "minimum": 0, "title": "End Frame", "type": "integer" }, "baseline_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Baseline Frame" }, "forward_start_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Forward Start Frame" }, "forward_end_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Forward End Frame" }, "stride_start_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Stride Start Frame" }, "landing_frame": { "anyOf": [ { "minimum": 0, "type": "integer" }, { "type": "null" } ], "default": null, "title": "Landing Frame" }, "forward_rotation_sign": { "anyOf": [ { "enum": [ -1, 1 ], "type": "integer" }, { "type": "null" } ], "default": null, "title": "Forward Rotation Sign" }, "source": { "default": "caller_reviewed_video", "maxLength": 180, "minLength": 1, "title": "Source", "type": "string" } }, "required": [ "start_frame", "end_frame" ], "title": "SwingWindow", "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" } }, "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/CameraInput" }, { "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": { "default": false, "title": "Single Swing", "type": "boolean" }, "windows": { "items": { "$ref": "#/$defs/SwingWindow" }, "maxItems": 20, "title": "Windows", "type": "array" }, "correction": { "$ref": "#/$defs/CorrectionSettings" }, "measurement": { "$ref": "#/$defs/MeasurementSettings" }, "coaching": { "default": true, "title": "Coaching", "type": "boolean" } }, "title": "SamBattingInput", "type": "object" }