Better difficult-shot scoring for the story finder

Aperta
#4 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
43/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
python

Direzione di ricerca

Start with story/ranking.py to understand how audio-based shot scores are calculated, how the top 15 populate story.json, and how --story selects highlights. Identify the existing story-generation tests before choosing the tracker or audio inputs and defining documented ranges for separate signal functions. Done means each implemented difficulty signal has unit tests, the top-5 benchmark reaches 0.6 precision, and story.json remains backward compatible.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Better difficult-shot scoring for the story finder

Labels: story, enhancement

Problem

"Difficult shot" candidates in story/ranking.py come from audio timing only (reflex volleys < 0.6 s between hits, a
long mid-rally gap read as a lob or overhead, a fast finish). They miss gets after apparent winners, running shots,
and dives, and they over-score fast exchanges at the net.

Current behavior

  • Scores are additive heuristics per hit with fixed weights, and the top 15 go into story.json → difficult_shots.
  • note in story.json states that distance covered and positional difficulty are not computed.
  • With --story, up to three difficult shots go into the highlights.

Ideas

  • Add video signals: player displacement between hits (from the activity or pose tracker), ball speed from the tracker, and whether the shot was hit on the run.
  • Use per-hit audio features (onset sharpness, loudness relative to the rally) to tell clean contact from frames and mishits.
  • Learn weights from a small set of human "was this a great shot?" ratings (pairwise preferences).
  • Synthetic unit cases for each pattern so scoring rules are explicit and testable.

Acceptance criteria

  • Each difficulty signal is a separate, unit-tested function with a documented range.
  • A benchmark (synthetic or a rated set with timestamps only) where the top-5 difficult shots reach precision ≥ 0.6.
  • story.json schema stays backward compatible (new fields only).
Lingua principale
Python
Stelle
1
Fork
3
Merge medio
1h 12m
PR unite (30g)
126

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di voantony/OpenCourtVision

Tutte le issue di voantony/OpenCourtVision

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.