apopt.comCBE 493R Data-Driven Athletics

Course / Weeks / Week 8

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?

  1. Ask
  2. Collect (this week)
  3. Check (this week)
  4. Interpret
  5. Coach
  6. Reassess
An athlete stands inside a video frame. Each of the 17 pose landmarks is surrounded by a confidence ring.

Read

Read Chapter 8 pp. 211–235

  1. 8.1A Video Is a Table
  2. 8.2Filming for Measurement
  3. 8.3From Pixels to Keypoints
  4. 8.4Pose Estimation in Python
  5. 8.5In the Browser
  6. 8.6Scale: From Pixels to Meters
  7. 8.7Cleaning Keypoints
  8. 8.8How Good Is the Number? Four Levels of Error
  9. Read to here before Tuesday
  10. 8.9Three Levels of Trust
  11. 8.10Is This Video Good Enough?
  12. 8.11Measure Anything
  13. 8.12Build Step B-8: Your Own Overlay
  14. 8.13Telling the Athlete
  15. 8.14Summary
  16. 8.15Exercises
  17. 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

A stationary phone faces across the track. The plan view shows a camera about four metres back, its sightline square to travel, and a one-metre reference in the running plane. The frame includes the full runner.

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.

The phone is centered behind the running line. A frame diagram shows the runner from behind, with both feet and the pelvis in view.

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 15
A Video Is a Table
30 slides · about 37 min · PDF
Class 16
Which Numbers Can I Act On?
26 slides · about 34 min · PDF

Classes

Class 15 · Tue, Feb 23

Midterm debrief; a video is a table; filming for measurement

The class after the midterm: no homework.

Class 16 · Thu, Feb 25

Pixels to keypoints; scale; four levels of error

Due: H16 Computer vision 1: a joint beside a protractor

Homework

H16 · due Class 16, Thu, Feb 25

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.

H17 · due Class 17, Tue, Mar 2

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

Case study CS-10 · 60 min

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.

Case study CS-11 · 60 min

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.

Open the build step

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

Go further