baseball-engine / docs /motion-frame.schema.json
github-actions[bot]
Automated Deploy: 5adf0d75b051454f4f57f2bdbd9cf6565e76db5f
d835db0
Raw History Blame Contribute Delete
3.27 kB
{
"$defs": {
"Joint": {
"additionalProperties": false,
"properties": {
"position": {
"anyOf": [
{
"maxItems": 3,
"minItems": 3,
"prefixItems": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
],
"type": "array"
},
{
"type": "null"
}
],
"title": "Position"
},
"status": {
"enum": [
"estimated",
"interpolated",
"rejected",
"missing"
],
"title": "Status",
"type": "string"
},
"confidence": {
"anyOf": [
{
"maximum": 1,
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Confidence"
},
"reasons": {
"items": {
"type": "string"
},
"title": "Reasons",
"type": "array"
}
},
"required": [
"position",
"status"
],
"title": "Joint",
"type": "object"
}
},
"additionalProperties": false,
"properties": {
"analysis_revision": {
"minimum": 1,
"title": "Analysis Revision",
"type": "integer"
},
"source_frame_index": {
"minimum": 0,
"title": "Source Frame Index",
"type": "integer"
},
"source_pts": {
"title": "Source Pts",
"type": "integer"
},
"source_time_base": {
"title": "Source Time Base",
"type": "string"
},
"video_time_s": {
"minimum": 0,
"title": "Video Time S",
"type": "number"
},
"capture_time_s": {
"anyOf": [
{
"minimum": 0,
"type": "number"
},
{
"type": "null"
}
],
"default": null,
"title": "Capture Time S"
},
"segment_id": {
"title": "Segment Id",
"type": "string"
},
"joints": {
"additionalProperties": {
"$ref": "#/$defs/Joint"
},
"title": "Joints",
"type": "object"
},
"root_translation": {
"anyOf": [
{
"maxItems": 3,
"minItems": 3,
"prefixItems": [
{
"type": "number"
},
{
"type": "number"
},
{
"type": "number"
}
],
"type": "array"
},
{
"type": "null"
}
],
"title": "Root Translation"
},
"frame_quality": {
"additionalProperties": true,
"title": "Frame Quality",
"type": "object"
}
},
"required": [
"analysis_revision",
"source_frame_index",
"source_pts",
"source_time_base",
"video_time_s",
"segment_id",
"joints",
"root_translation",
"frame_quality"
],
"title": "MotionFrame",
"type": "object"
}