# czerw0/luge-start-tracker architecture

> Architecture diagram of the GitHub repository czerw0/luge-start-tracker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/czerw0/luge-start-tracker
- Repository: https://github.com/czerw0/luge-start-tracker

## Overview

luge-start-tracker is a desktop application for recording and analysing luge starts with synchronized video and Movella DOT IMU data. The user starts a measurement in the GUI; video tracking and optional IMU capture produce saved analysis files, which the Analysis tab loads for synchronization, push detection, plots, and synchronized playback. The graph includes all CORE MODULES. Some recording and dashboard wiring is documented in the README rather than visible in the sampled excerpts; those relationships cite the README.

Main entry points: [`app/dashboard.py`](https://github.com/czerw0/luge-start-tracker/blob/main/app/dashboard.py) (Analysis dashboard), [`app/main.py`](https://github.com/czerw0/luge-start-tracker/blob/main/app/main.py) (Application GUI), [`app/data_analysis.py`](https://github.com/czerw0/luge-start-tracker/blob/main/app/data_analysis.py) (IMU streaming and processing), [`app/video_analysis.py`](https://github.com/czerw0/luge-start-tracker/blob/main/app/video_analysis.py) (Video marker tracking)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_gui["Application GUI<br/>[main.py]"]
  node_dashboard["Analysis dashboard<br/>[dashboard.py]"]
end

subgraph group_capture["Measurement capture"]
  node_tracker["Video marker tracking<br/>[video_analysis.py]"]
  node_imu_panel["Live IMU panel<br/>[imu_panel.py]"]
end

subgraph group_analysis["Analysis processing"]
  node_imu_processing["IMU streaming and processing<br/>[data_analysis.py]"]
  node_push_detection["Sync and push detection<br/>[push_detection.py]"]
end

subgraph group_review["Analysis review"]
  node_video_player["Synchronized video player<br/>[video_player.py]"]
  node_analysis_files["Saved analysis files"]
end

node_user(("Luge analyst"))
node_camera(("Camera"))
node_movella(("Movella DOT sensor"))

node_user -->|"operates"| node_gui
node_gui -->|"creates tracker"| node_tracker
node_gui -->|"creates panel"| node_imu_panel
node_camera -.->|"provides frames"| node_tracker
node_movella -->|"streams samples"| node_imu_processing
node_imu_panel -->|"uses streaming"| node_imu_processing
node_gui -->|"saves recording"| node_analysis_files
node_tracker -->|"writes tracking"| node_analysis_files
node_imu_processing -->|"saves IMU data"| node_analysis_files
node_user -->|"loads analysis"| node_dashboard
node_dashboard -->|"loads and analyses IMU"| node_imu_processing
node_dashboard -->|"detects pushes"| node_push_detection
node_dashboard -->|"embeds player"| node_video_player
node_analysis_files -->|"provides saved data"| node_dashboard
node_analysis_files -->|"provides video and tracking"| node_video_player

click node_gui "https://github.com/czerw0/luge-start-tracker/blob/main/app/main.py"
click node_dashboard "https://github.com/czerw0/luge-start-tracker/blob/main/app/dashboard.py"
click node_tracker "https://github.com/czerw0/luge-start-tracker/blob/main/app/video_analysis.py"
click node_imu_panel "https://github.com/czerw0/luge-start-tracker/blob/main/app/imu_panel.py"
click node_imu_processing "https://github.com/czerw0/luge-start-tracker/blob/main/app/data_analysis.py"
click node_push_detection "https://github.com/czerw0/luge-start-tracker/blob/main/app/push_detection.py"
click node_video_player "https://github.com/czerw0/luge-start-tracker/blob/main/app/video_player.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_gui,node_dashboard toneBlue
class node_tracker,node_imu_panel toneAmber
class node_imu_processing,node_push_detection toneMint
class node_video_player,node_analysis_files toneRose
class node_user,node_camera,node_movella toneIndigo
```

## Components

### Desktop interface

- [Application GUI](https://github.com/czerw0/luge-start-tracker/blob/main/app/main.py): `app/main.py`
- [Analysis dashboard](https://github.com/czerw0/luge-start-tracker/blob/main/app/dashboard.py): `app/dashboard.py`

### Measurement capture

- [Video marker tracking](https://github.com/czerw0/luge-start-tracker/blob/main/app/video_analysis.py): `app/video_analysis.py`
- [Live IMU panel](https://github.com/czerw0/luge-start-tracker/blob/main/app/imu_panel.py): `app/imu_panel.py`

### Analysis processing

- [IMU streaming and processing](https://github.com/czerw0/luge-start-tracker/blob/main/app/data_analysis.py): `app/data_analysis.py`
- [Sync and push detection](https://github.com/czerw0/luge-start-tracker/blob/main/app/push_detection.py): `app/push_detection.py`

### Analysis review

- [Synchronized video player](https://github.com/czerw0/luge-start-tracker/blob/main/app/video_player.py): `app/video_player.py`
- **Saved analysis files**

### Other components

- **Luge analyst**
- **Camera**
- **Movella DOT sensor**

## Connections

- Luge analyst → Application GUI: operates (evidence: `README.md`)
- Application GUI → Video marker tracking: creates tracker (evidence: `app/main.py`)
- Application GUI → Live IMU panel: creates panel (evidence: `app/main.py`)
- Camera → Video marker tracking: provides frames
- Movella DOT sensor → IMU streaming and processing: streams samples (evidence: `app/data_analysis.py`)
- Live IMU panel → IMU streaming and processing: uses streaming (evidence: `app/imu_panel.py`)
- Application GUI → Saved analysis files: saves recording (evidence: `README.md`)
- Video marker tracking → Saved analysis files: writes tracking (evidence: `README.md`)
- IMU streaming and processing → Saved analysis files: saves IMU data (evidence: `README.md`)
- Luge analyst → Analysis dashboard: loads analysis (evidence: `README.md`)
- Analysis dashboard → IMU streaming and processing: loads and analyses IMU (evidence: `app/dashboard.py`)
- Analysis dashboard → Sync and push detection: detects pushes (evidence: `README.md`)
- Analysis dashboard → Synchronized video player: embeds player (evidence: `app/dashboard.py`)
- Saved analysis files → Analysis dashboard: provides saved data (evidence: `app/dashboard.py`)
- Saved analysis files → Synchronized video player: provides video and tracking (evidence: `README.md`)
