|
Download code/docs/phone_session_protocol.md from d9993r/CRICKET: direct link, hf CLI and curl.
- Browser
- Download file 2.79 kB
-
https://huggingface.co/datasets/d9993r/CRICKET/resolve/main/code/docs/phone_session_protocol.md
- Command line
-
hf download hf://datasets/d9993r/CRICKET/code/docs/phone_session_protocol.md
-
curl -L -o phone_session_protocol.md https://huggingface.co/datasets/d9993r/CRICKET/resolve/main/code/docs/phone_session_protocol.md
2.79 kB
| # Phone nets session protocol (practice data before the Salem cameras) | |
| ## Multi-view version (recommended): four phones = one 3D session | |
| Mirror the Salem lane with four phones on tripods, all landscape, 60 fps, focus/exposure locked, no zoom: | |
| - **C1** bowler side-on, level with the bowling crease, 8-12 m out | |
| - **C2** behind the bowler's arm, high (2-3 m), seeing both creases | |
| - **C3** batter side-on, level with the batter's popping crease | |
| - **C4** in front of the batter, behind the bowler's end sight-screen or high behind the batter | |
| Start all four, then **one sharp clap visible and audible to all**. Note the file names, then add a | |
| `multiview.sessions` entry in `config.yaml` (C2 as reference). In each camera's first delivery, | |
| calibrate with as many of the 12 pitch points as it sees, **including at least one stump top**. | |
| Make sure each end's middle stump is fully visible in at least two cameras. | |
| Produces your first rights-cleared, intent-labelled data, and tests multi-view sync. | |
| ## Before | |
| - Consent forms signed (see consent_and_rights_templates.md); player IDs assigned (P0001...). | |
| - Two phones on tripods, fully charged, airplane mode, plenty of storage. | |
| - **Phone A** behind the bowler's arm, high enough to see both creases: 60 fps, 1080p. | |
| - **Phone B** side-on at the bowling crease: slow motion 240 fps (or 120 fps). | |
| - Lock exposure and focus; no zoom during the session (calibration depends on it). | |
| - Print an intent sheet from `datasets/intent/intent_template.csv`. | |
| ## During | |
| 1. Start both phones, then make one sharp clap in view of both (for audio sync). | |
| 2. Before each ball the operator writes the ball number, bowler, batter and the instruction | |
| (target line, length, delivery) on the sheet. Never change the plan without writing it down. | |
| 3. Keep blocks of 6 balls per instruction; note any ball that went wrong (no-ball, stopped run-up). | |
| 4. Clap again at the end. | |
| ## After | |
| 1. Copy videos to `datasets/4_Phone-Sessions/` (folder name must match `config.yaml`). | |
| Name files by date and view, never by player name: `2026-10-20_behind.mp4`, `2026-10-20_side.mp4`. | |
| 2. Set the slow-motion factor for phone B under `overrides:` in `config.yaml` | |
| (240 fps played at 30 fps -> `time_scale: 8.0, time_scale_verified: true`). | |
| 3. `python code/run_all.py` | |
| 4. `python code/sync_videos.py datasets/4_Phone-Sessions/2026-10-20_behind.mp4 datasets/4_Phone-Sessions/2026-10-20_side.mp4` | |
| 5. `python code/import_intent.py --source SRC_YT_00xx --csv datasets/intent/2026-10-20.csv --dry-run`, check the | |
| ball-to-delivery mapping, then run it without `--dry-run`. | |
| 6. In the review site: calibrate the pitch once on phone A, confirm events, add coach notes. | |
| 7. Update the source registry rights for these files: `training_allowed: true` only once consent is on file. | |