Skip to content

feat: add SPEED_AND_DISTANCE combo and ALL orchestrator (PR 5)#64

Draft
AlexBodner wants to merge 2 commits into
feat/soccer-pr4-distancefrom
feat/soccer-pr5-combo
Draft

feat: add SPEED_AND_DISTANCE combo and ALL orchestrator (PR 5)#64
AlexBodner wants to merge 2 commits into
feat/soccer-pr4-distancefrom
feat/soccer-pr5-combo

Conversation

@AlexBodner

@AlexBodner AlexBodner commented Jul 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds SPEED_AND_DISTANCE mode via a thin wrapper around PR4's _render_speed_distance_traces (follow-all or spotlight via --track-id).
  • Adds ALL mode / run_all.py: one VideoTrackingSession drives five outputs (direction, speed, distance, speed-distance-all, speed-distance-single).
  • PR5 is wiring only — shared renderer, spotlight helpers, and only_tid filtering land in PR4.

Stack: PR 1 → PR 2 → PR 3 → PR 4 (base) → this PR

Demo

SPEED_AND_DISTANCE — follow-all: direction + m/s + distance chips (no end-card; re-rendered preview):

SPEED_AND_DISTANCE — spotlight (--track-id):

All demo clips · ALL mode writes the same five renders in one tracking pass.

Reuse design

  • speed_and_distance.py — ~13-line wrapper calling _render_speed_distance_traces (no end-card).
  • run_all.py — shared session orchestrator; spotlight auto-pick = max distance_m when --track-id omitted.

Scope

  • Mode.SPEED_AND_DISTANCE, Mode.ALL, --track-id in main.py
  • README sections for both modes

Not included: GK goal-distance locks, goal shading (PR6), ball/possession/pass (PR7+).

Test plan

  • Merge PR 4 first (rebase if PR 4 changes during review)
  • python main.py ... --mode SPEED_AND_DISTANCE --max-frames 90 --tracker bytetrack
  • python main.py ... --mode SPEED_AND_DISTANCE --track-id 7 ...
  • python main.py ... --mode ALL --target_video_path data/renders/2e57b9_0.mp4 ... → five suffixed outputs
  • Confirm DISTANCE still appends end-card; standalone DIRECTION/SPEED/DISTANCE unchanged

@AlexBodner AlexBodner force-pushed the feat/soccer-pr5-combo branch from b30b142 to b39d4bf Compare July 6, 2026 17:17
AlexBodner and others added 2 commits July 6, 2026 14:41
Extract shared trace renderer from distance.py, add dim/spotlight helpers,
run_all batching over a single VideoTrackingSession, and wire new modes in main.

Co-authored-by: Cursor <cursoragent@cursor.com>
DISTANCE shows direction dots and distance chips only; SPEED_AND_DISTANCE keeps m/s badges plus distance.

Co-authored-by: Cursor <cursoragent@cursor.com>
@AlexBodner AlexBodner force-pushed the feat/soccer-pr5-combo branch from b39d4bf to 1d85390 Compare July 6, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant