# fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026 architecture

> Architecture diagram of the GitHub repository fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026
- Repository: https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026
- Video tour (about a minute): https://gitdiagram.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/video

## Overview

This repository is a starter-kit pipeline for estimating per-player 3D skeletal trajectories and camera motion from soccer footage and supplied detections, with submission packaging and 3D inspection. The main workflow runs sequence-level tracking and pose projection/translation refinement, then smooths and saves predictions. Separate preprocessing generates skeletal keypoints, and visualization overlays results on video. Relationships for unsampled loading and packaging orchestration are limited to what the README documents; the data directories shown are the documented dataset layout.

Main entry points: [`main.py`](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py) (Sequence baseline runner), [`data`](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/tree/main/data) (Sequence inputs), [`visualize.py`](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/visualize.py) (3D overlay viewer), [`preprocess.py`](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/preprocess.py) (Pose preprocessing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_prep["Data preparation"]
  node_rawdata["Sequence inputs"]
  node_frameextract["Video frame extraction<br/>[video2image.py]"]
  node_poseprep["Pose preprocessing<br/>[preprocess.py]"]
  node_sam3d["SAM-3D body model"]
  node_keypoints["2D/3D keypoints"]
end

subgraph group_baseline["Tracking baseline"]
  node_runner["Sequence baseline runner<br/>[main.py]"]
  node_camera["Camera pose tracking<br/>[camera_tracker.py]"]
  node_fieldrefine["Field-marking refinement<br/>[camera_tracker.py]"]
  node_poseprojection["Pose projection and alignment<br/>[main.py]"]
  node_smoothing["Trajectory smoothing<br/>[postprocess.py]"]
end

subgraph group_outputs["Results and submission"]
  node_predictions["3D predictions<br/>[main.py]"]
  node_calibration["Camera calibration export<br/>[main.py]"]
  node_packager["Submission preparation"]
  node_submission["Challenge submission archive"]
end

subgraph group_inspection["Visualization"]
  node_viewer["3D overlay viewer<br/>[visualize.py]"]
  node_rendered["Interactive or rendered video<br/>[visualize.py]"]
end

node_participant(("Challenge participant"))

node_participant -->|"runs baseline"| node_runner
node_participant -->|"prepares poses"| node_poseprep
node_participant -->|"inspects results"| node_viewer
node_rawdata -->|"provides video"| node_frameextract
node_frameextract -->|"writes frames"| node_rawdata
node_rawdata -->|"provides boxes, images"| node_poseprep
node_poseprep -->|"runs estimator"| node_sam3d
node_poseprep -->|"saves keypoints"| node_keypoints
node_keypoints -->|"supplies skeletons"| node_runner
node_rawdata -->|"supplies sequence data"| node_runner
node_runner -->|"tracks camera"| node_camera
node_camera -->|"refines rotation"| node_fieldrefine
node_runner -->|"projects and aligns"| node_poseprojection
node_runner -->|"smooths trajectories"| node_smoothing
node_runner -->|"saves predictions"| node_predictions
node_runner -->|"exports cameras"| node_calibration
node_predictions -->|"selects split results"| node_packager
node_packager -->|"writes archive"| node_submission
node_predictions -->|"loads poses"| node_viewer
node_calibration -->|"loads cameras"| node_viewer
node_rawdata -->|"loads video and boxes"| node_viewer
node_viewer -->|"renders scene"| node_rendered

click node_rawdata "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/tree/main/data"
click node_frameextract "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/video2image.py"
click node_poseprep "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/preprocess.py"
click node_keypoints "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/tree/main/data"
click node_runner "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py"
click node_camera "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/lib/camera_tracker.py"
click node_fieldrefine "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/lib/camera_tracker.py"
click node_poseprojection "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py"
click node_smoothing "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/lib/postprocess.py"
click node_predictions "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py"
click node_calibration "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py"
click node_packager "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/prepare_submission.py"
click node_submission "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/prepare_submission.py"
click node_viewer "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/visualize.py"
click node_rendered "https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/visualize.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_rawdata,node_frameextract,node_poseprep,node_sam3d,node_keypoints toneBlue
class node_runner,node_camera,node_fieldrefine,node_poseprojection,node_smoothing toneAmber
class node_predictions,node_calibration,node_packager,node_submission toneMint
class node_viewer,node_rendered toneRose
class node_participant toneIndigo
```

## Components

### Data preparation

- [Sequence inputs](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/tree/main/data): `data`
- [Video frame extraction](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/video2image.py): `video2image.py`
- [Pose preprocessing](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/preprocess.py): `preprocess.py`
- **SAM-3D body model**
- [2D/3D keypoints](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/tree/main/data): `data`

### Tracking baseline

- [Sequence baseline runner](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py): `main.py`
- [Camera pose tracking](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/lib/camera_tracker.py): `lib/camera_tracker.py`
- [Field-marking refinement](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/lib/camera_tracker.py): `lib/camera_tracker.py`
- [Pose projection and alignment](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py): `main.py`
- [Trajectory smoothing](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/lib/postprocess.py): `lib/postprocess.py`

### Results and submission

- [3D predictions](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py): `main.py`
- [Camera calibration export](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/main.py): `main.py`
- [Submission preparation](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/prepare_submission.py): `prepare_submission.py`
- [Challenge submission archive](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/prepare_submission.py): `prepare_submission.py`

### Visualization

- [3D overlay viewer](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/visualize.py): `visualize.py`
- [Interactive or rendered video](https://github.com/fifa-skeletal-light-tracking-challenge/fifa-skeletal-tracking-starter-kit-2026/blob/main/visualize.py): `visualize.py`

### Other components

- **Challenge participant**

## Connections

- Challenge participant → Sequence baseline runner: runs baseline (evidence: `README.md`)
- Challenge participant → Pose preprocessing: prepares poses (evidence: `README.md`)
- Challenge participant → 3D overlay viewer: inspects results (evidence: `README.md`)
- Sequence inputs → Video frame extraction: provides video (evidence: `README.md`)
- Video frame extraction → Sequence inputs: writes frames (evidence: `README.md`)
- Sequence inputs → Pose preprocessing: provides boxes, images (evidence: `preprocess.py`)
- Pose preprocessing → SAM-3D body model: runs estimator (evidence: `preprocess.py`)
- Pose preprocessing → 2D/3D keypoints: saves keypoints (evidence: `preprocess.py`)
- 2D/3D keypoints → Sequence baseline runner: supplies skeletons (evidence: `README.md`)
- Sequence inputs → Sequence baseline runner: supplies sequence data (evidence: `README.md`)
- Sequence baseline runner → Camera pose tracking: tracks camera (evidence: `main.py`)
- Camera pose tracking → Field-marking refinement: refines rotation (evidence: `lib/camera_tracker.py`)
- Sequence baseline runner → Pose projection and alignment: projects and aligns (evidence: `main.py`)
- Sequence baseline runner → Trajectory smoothing: smooths trajectories (evidence: `main.py`)
- Sequence baseline runner → 3D predictions: saves predictions (evidence: `README.md`)
- Sequence baseline runner → Camera calibration export: exports cameras (evidence: `README.md`)
- 3D predictions → Submission preparation: selects split results (evidence: `prepare_submission.py`)
- Submission preparation → Challenge submission archive: writes archive (evidence: `prepare_submission.py`)
- 3D predictions → 3D overlay viewer: loads poses (evidence: `visualize.py`)
- Camera calibration export → 3D overlay viewer: loads cameras (evidence: `visualize.py`)
- Sequence inputs → 3D overlay viewer: loads video and boxes (evidence: `visualize.py`)
- 3D overlay viewer → Interactive or rendered video: renders scene (evidence: `visualize.py`)
