Data / tutorials / q30-ball-path
Tutorial Q-30: Track a ball and fit its path
Tutorial
Detect a tossed tennis ball in every frame, fit a line to its horizontal path and a parabola to its height, and use gravity to check the clip's clock.
Files for the tutorial Track a ball and fit its path (https://apopt.com/course/tutorials/q30-ball-path/). 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/tennis1_ball.csv | 1.7 KB | 50 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 412 B | 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/tennis1_ball.csv
| frame | x | y | w | h | conf |
|---|---|---|---|---|---|
| 16 | 611.34 | 1300.95 | 31.67 | 34.82 | 0.13 |
| 20 | 581.31 | 1233.7 | 36.84 | 43.9 | 0.11 |
| 28 | 531.19 | 913.35 | 20.46 | 37.92 | 0.32 |
| 29 | 530.64 | 862.88 | 26.1 | 44.41 | 0.22 |
| 30 | 527.4 | 815.38 | 24.98 | 40.61 | 0.58 |
| 31 | 527.39 | 815.41 | 24.99 | 40.65 | 0.58 |
| 32 | 524.03 | 770.57 | 23.47 | 31.58 | 0.63 |
| 33 | 523.58 | 726.03 | 25.94 | 34.42 | 0.15 |
First 8 of 50 rows.
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/q30-ball-path/clean/tennis1_ball.csv")const text = await (await fetch("https://apopt.com/data/tutorials/q30-ball-path/clean/tennis1_ball.csv")).text();Or download load.py / load.js.
How to cite
Tutorial Q-30: Track a ball and fit its path. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q30-ball-path/