A scoring eval on public CC-licensed match footage

Aperta
#80 6 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@realtydev ci sta già lavorando.

Dal 29/11/2026.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
json, markdown, python

Direzione di ricerca

Start with tools/cc_footage/cc_footage.py and tools/cc_footage/README.md to identify tennis full_match sources, then use tools/labeler/ and PointLabels.verify() in opencourtvision/labels/points.py to produce public point labels. Publish a label file and attribution/licence manifest under labels/cc_footage/, following labels/README.md, and extend opencourtvision/cli/eval.py or benchmarks/eval_point_labels.py to report point-winner accuracy, final-score correctness, and abstentions. Add small fixture-based tests under tests/ so CI validates schema, manifest fields, and scores without downloading footage; the full local evaluation should use footage under $OCV_DATA and no private labels or files.

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

Descrizione

enhancement help wanted

Difficulty: Hard. This is not a good first issue. It needs a published label process, a licence check, and an eval that anyone can rerun without private data.

Why

The starter issues (#60–#74) and most scoring tests use invented fixtures. That is fine for rules and schema work, but it does not tell us whether scoring holds up on a real match. We need a public eval: footage whose licence we can redistribute, labels made in the open, and a command that reports point-winner and match-score accuracy.

Private match footage and private labels are out of scope. Do not use them, and do not commit them.

What already exists

  • tools/cc_footage/cc_footage.py ships a verified CC BY source list (SOURCES, 72 videos: 21 tennis, 19 padel, 32 pickleball). Before each download it re-checks yt-dlp metadata and skips anything that is not "Creative Commons Attribution". It also tags video_kind as full_match or partial_or_practice and label_mode as match or rallies. Partial or practice videos are rallies-only: no winners or score. See tools/cc_footage/README.md and tests/test_cc_footage_kind.py.
  • Machine pre-labels (prelabels.json, verified=false) are guesses. They are not ground truth.
  • tools/labeler/ is the point labeler. It writes ocv.point_labels.v1. opencourtvision/labels/points.py loads that schema, and PointLabels.verify() checks that the stored score agrees with the rules. Teams are slot ids A and B only.
  • ocv eval (opencourtvision/cli/eval.py, docs/eval_gates.md) scores events, edit gates, and a blind highlight test. It does not yet score a published point-winner timeline on public matches.
  • benchmarks/eval_point_labels.py already runs the score decoder against point labels. It was written around private labels kept out of git. Reuse the metrics; point it at the public set and do not take a private default path.
  • labels/README.md already says only synthetic or redistributable labels belong in the repo.

What's needed

  1. A published subset. Start with tennis videos from SOURCES that tag as full_match. Skip partial_or_practice for scoring (they stay rallies-only). Padel can be a later slice, using the same process. Re-run the licence check; drop a video that no longer reads CC BY, or that should not have been on the list.
  2. How labels are made. A person labels point winners in tools/labeler/ (A / B / not-a-point). Do not treat pre-labels as truth until a person confirms them. Players stay as slot ids. No names, faces, or embeddings in the label file. PointLabels.verify() must be clean before a file is published.
  3. How labels are published. Commit the ocv.point_labels.v1 JSON plus a manifest: video id, sport, singles/doubles, original channel and title for attribution, licence string, when the licence was last checked, and the label licence (CC BY-NC 4.0, per LICENSE-MODELS-DATA, with attribution to the source channel. The footage itself keeps its uploader's CC BY licence). Do not commit video files, frames, or a home-directory path. Local downloads live under $OCV_DATA or another path the contributor chooses. Document the steps in labels/README.md.
  4. The eval. A command (an ocv eval flag, or benchmarks/eval_point_labels.py aimed at this set) that, given local footage plus the committed labels, reports at least: point-winner accuracy, legality of the published score (verify() and the final set score), and what the engine abstained on. It must run from the public files alone. A machine without the videos can still check the committed labels (schema, verify(), manifest licence fields).

Related

  • #2 — spoken callouts can be an input to scoring, but this issue is the public footage eval, not mixed-language parsing.
  • The decoder-improvement issue should use this set to measure posterior accuracy and calibration once labels exist. A first eval that only checks human labels and a simple replay is still in scope here.

Files

  • tools/cc_footage/cc_footage.py and tools/cc_footage/README.md — source list, licence check, video_kind.
  • tools/labeler/ and opencourtvision/labels/points.py — labelling and verify().
  • labels/README.md plus a new public label directory (for example labels/cc_footage/) and a manifest.
  • opencourtvision/cli/eval.py and/or benchmarks/eval_point_labels.py, with tests that use a tiny committed fixture so CI does not need a video download.

Acceptance criteria

  • A written process in labels/README.md (or a short doc next to the labels) covering: pick from SOURCES, re-check CC BY, download only under a local data dir, label with tools/labeler/, run verify(), publish labels and manifest, never commit video.
  • At least one tennis full_match label file is committed, with a manifest row that names the video id, licence, attribution, and label licence. The file uses A / B slots only and passes PointLabels.verify().
  • The eval command reports point-winner accuracy and whether the predicted or replayed final score matches the labels. Abstentions are counted separately, not as wrong winners.
  • CI, or a test in tests/, validates the committed labels and manifest without fetching video. The full footage eval is documented as a local run against $OCV_DATA.
  • Pre-labels with verified=false are not used as ground truth.
  • No private match footage or private labels. No faces, biometric fields, or real names in committed files.

Constraints

Follow CONTRIBUTING.md (DCO sign-off with git commit -s). No AGPL or non-commercial dependencies. Do not add a default path like ~/VamosFootage or /Users/... in new files; use $OCV_DATA or a relative path.

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.