Part 3: Video and Pose · Week 8 · Tue, Feb 23
Chapter 8: Seeing Movement: Video and Pose Estimation
The app drew a skeleton over my video. How far is each dot from the real joint, and which of the numbers can I act on?
- Ask
- Collect (this week)
- Check (this week)
- Interpret
- Coach
- Reassess
Read
Read Chapter 8 pp. 211–235
- 8.1A Video Is a Table
- 8.2Filming for Measurement
- 8.3From Pixels to Keypoints
- 8.4Pose Estimation in Python
- 8.5In the Browser
- 8.6Scale: From Pixels to Meters
- 8.7Cleaning Keypoints
- 8.8How Good Is the Number? Four Levels of Error
- Read to here before Tuesday
- 8.9Three Levels of Trust
- 8.10Is This Video Good Enough?
- 8.11Measure Anything
- 8.12Build Step B-8: Your Own Overlay
- 8.13Telling the Athlete
- 8.14Summary
- 8.15Exercises
- Read to here before Thursday
Bring to class
- A phone and a tripod (or a stack of books), a tape measure, a meter stick or broom handle, a printed protractor, a bright elastic band to wear at the waist.
Data you collect: A joint beside a protractor.
Apps: Canvas, Range of motion
No one has to exercise hard, buy a device, or share health data: every collection has a case-file path.
Measurement methods

Set the lens at about hip height and square to the running line. Put the reference in the runner’s plane. Four metres is an example distance. Adjust it so the whole body and space ahead and behind fit. Record the capture frame rate. The equipment scene is a generated illustration.
Center a fixed camera behind the runner, with the lens about hip height. Check that both feet and the pelvis remain visible through the section being analyzed.
Lecture slides
Class 15A Video Is a Table
30 slides · about 37 min · PDF
Class 16Which Numbers Can I Act On?
26 slides · about 34 min · PDF
Classes
Midterm debrief; a video is a table; filming for measurement
The class after the midterm: no homework.
Class 16 · Thu, Feb 25Pixels to keypoints; scale; four levels of error
Due: H16 Computer vision 1: a joint beside a protractor
Homework
Computer vision 1: a joint beside a protractor
Core exercises on filming and scale. Film a known angle, run pose estimation in Python and in the browser, and compare with the protractor.
Computer vision 2: is this video good enough?
Run pose estimation on two clips (one side view, one back view). Check five frames by hand; report the four levels of error and a trust level.
Tutorials
From a raw file to something an athlete can act on. The case study is this week's worked example in class; the quick tutorials prepare you for it and for the homework. The data workflow · Your athlete record
Pose estimation, frame by frame
Run a pose model on every frame of a running clip, turn it into a table of 17 keypoints, check it three ways without a ground truth, and decide what the clip can and cannot measure.
From keypoints to a knee angle over a stride
Turn a keypoint table into a knee angle, gate it, beat the left–right swaps, line the cycles up and average them into one curve with an error band, and find out which part of the curve is a measurement.
Build step B-8: Your own overlay
Pose model in the browser, skeleton overlay on video.
Exercise board
24 exercises in 10 strands; 8 are CORE, the set homework draws on. Tick them off as you go; ticks stay in this browser.
Data for this week
book
Book data, Chapter 8: Seeing Movement: Video and Pose Estimation
The 11 example files that Chapter 8 of Data-Driven Athletics reads, under the same names the listings use.
tutorial
Tutorial CS-10: Pose estimation, frame by frame
Run a pose model on every frame of a running clip, turn it into a table of 17 keypoints, check it three ways without a ground truth, and decide what the clip can and cannot measure.
tutorial
Tutorial CS-11: From keypoints to a knee angle over a stride
Turn a keypoint table into a knee angle, gate it, beat the left–right swaps, line the cycles up and average them into one curve with an error band, and find out which part of the curve is a measurement.
tutorial
Tutorial Q-22: Detect a person in one image
Run an object detector on one street photo, keep its boxes as a table, and draw them without the photo to see who it found and who it missed.
tutorial
Tutorial Q-23: Read a video frame by frame and save every tenth frame
Read a running clip's header, loop over its frames, save every tenth picture on your own computer, and publish a table with one row per frame.
tutorial
Tutorial Q-24: Seventeen keypoints for one frame, as a table
Open a pose model's keypoint table, turn one frame's row into 17 rows of x, y and confidence, and draw it as a stick figure.
open
Penn Action
2,326 sports clips with 13 joints each.
open
Squat posture keypoints
Pose keypoints and joint angles for correct and faulty squats; about 42 MB.
Go further
- Companion reading: the IRSRI Data-Driven Coaching course, module 8.
- Cite this chapter: citation in BibTeX, RIS or text.