Data / tutorials / cs14-throw-arc
Tutorial CS-14: The arc of a shot or a throw
Tutorial
Track a ball frame by frame in two phone clips, find which one holds an arc, clean its clock, and measure a tennis toss's height, speed and angle with gravity and the ball's size as the only references.
Files for the tutorial The arc of a shot or a throw (https://apopt.com/course/tutorials/cs14-throw-arc/). raw/ holds the inputs as the device or app wrote them; clean/ holds the cleaned copies the tutorial writes; expected/ holds what a correct run prints and saves, so you can check your own run.
Files
| File | Size | Rows | What it is |
|---|---|---|---|
| clean/ball_hoops1.csv | 3.0 KB | 123 rows | Cleaned copy written by the tutorial |
| clean/ball_tennis1.csv | 3.2 KB | 137 rows | Cleaned copy written by the tutorial |
| clean/toss_clean.csv | 1.4 KB | 33 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 1.3 KB | Everything the tutorial prints, cell by cell |
Every file has its own fixed address: copy a link and load it directly. preview.md shows the first rows of each table as text; datapackage.json lists columns, sizes and checksums.
Preview of clean/ball_hoops1.csv
| frame | repeat | x | y | w | h | conf |
|---|---|---|---|---|---|---|
| 0 | False | |||||
| 1 | True | |||||
| 2 | False | 1048.52 | 299.18 | 61.79 | 214.45 | 0.23 |
| 3 | False | 1023.02 | 312.16 | 112.25 | 248.94 | 0.35 |
| 4 | False | |||||
| 5 | False | 977.25 | 344.75 | 203.98 | 244.86 | 0.5 |
| 6 | False | 955.4 | 361.71 | 236.37 | 235.64 | 0.9 |
| 7 | False | 913.1 | 382.96 | 237.57 | 232.15 | 0.65 |
First 8 of 123 rows.
Data dictionary
| Column | Unit | Meaning |
|---|---|---|
frame | count | frame number in the file from 0 |
repeat | true/false | the picture is the same as the one before (mean change under 0.3 gray levels on a 108 × 192 copy) |
x, y | pixels | center of the ball's box; y grows downward |
w, h | pixels | width and height of the ball's box |
conf | 0 to 1 | the detector's confidence for the ball |
Where it came from
- Source: Data-Driven Athletics tutorials (IRSRI, 2027)
- Removed: nothing; inputs are synthetic, published course data, or the instructor's own
- Permission: Published with the course under CC BY 4.0
- Prepared with:
dda/tutorials/build.py
Load it
import pandas as pd
df = pd.read_csv("https://apopt.com/data/tutorials/cs14-throw-arc/clean/ball_hoops1.csv")const text = await (await fetch("https://apopt.com/data/tutorials/cs14-throw-arc/clean/ball_hoops1.csv")).text();Or download load.py / load.js.
How to cite
Tutorial CS-14: The arc of a shot or a throw. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs14-throw-arc/