apopt.com

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

FileSizeRowsWhat it is
clean/ball_hoops1.csv3.0 KB123 rowsCleaned copy written by the tutorial
clean/ball_tennis1.csv3.2 KB137 rowsCleaned copy written by the tutorial
clean/toss_clean.csv1.4 KB33 rowsCleaned copy written by the tutorial
expected/printed-output.txt1.3 KBEverything 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

framerepeatxywhconf
0False
1True
2False1048.52299.1861.79214.450.23
3False1023.02312.16112.25248.940.35
4False
5False977.25344.75203.98244.860.5
6False955.4361.71236.37235.640.9
7False913.1382.96237.57232.150.65

First 8 of 123 rows.

Data dictionary

ColumnUnitMeaning
framecountframe number in the file from 0
repeattrue/falsethe picture is the same as the one before (mean change under 0.3 gray levels on a 108 × 192 copy)
x, ypixelscenter of the ball's box; y grows downward
w, hpixelswidth and height of the ball's box
conf0 to 1the 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/