Course / Tutorials / Week 12 / Q-36
Quick tutorial Q-36 · Week 12 · about 15 min · Foundation
Read a results file in the browser
Open the jump app's JSON receipts field by field, check each against a filming log, join the jump height from the text results, and leave out the clip analyzed at the wrong frame rate.
- Ask
- Collect (this week)
- Check (this week)
- Interpret
- Coach
- Reassess
Download notebook ·Python file ·Read as Markdown ·Data folder ·Chapter 12 (sections 4.8, 12.2, 12.7)
Every cell runs in this page; the first run downloads Python (about 30 s). Nothing you load leaves your browser. Helpful first: Q-35 Three tests: normal, missing, invalid.
The decision
Before a jump height from an app goes into the athlete record, check the receipt that came with it: was the clip analyzed at the frame rate it was filmed at? If not, its times are wrong even when its height looks right.
The raw data
raw/results/: SYNTHETIC: seven jump clips' results, each a `.json` receipt and a `.md` text result, written by the jump app's own results code for an invented athlete 1.75 m tall. Book example data, Chapter 4 (book/ch04-python/data/results/). The format is exact; the jumps never happened.
Try it
The course's movement apps write their results next to the video, in your browser, with nothing uploaded: a report (PDF), a highlight video, the measurements as text (.md) and a receipt (.json), written last, that records how the analysis was run (Section 4.8). A page you build can read the same files, also without uploading them: the user drops the file on the page and the browser reads it locally.
The files here are the book's synthetic jump results: seven clips of an invented athlete 1.75 m tall, written by the jump app's own results code. One week-3 clip was filmed at 120 frames per second but analyzed at the 30 its file header claims.
Open one receipt
Type a prediction to enable Run.
Show the expected result without running
fields: ['version', 'savedAt', 'id', 'state', 'stage', 'progress', 'input', 'options', 'warnings', 'outputs', 'sourceFps', 'actualCaptureFps', 'analyzedRange']
input: jump_wk3_t3.mp4 | saved: 2027-01-22T16:09:58.000Z
options: {'captureFps': 'auto', 'heightMeters': 1.75, 'model': 'movenet_thunder', 'outputFormat': 'vertical', 'metricCycleSeconds': 5}
file says 30 fps; analysis used 30 fps; analyzed 0 to 15.9 s of video
warning: This video is 30 fps, so quick moments can fall between frames. If it was filmed in slow m...
warning: The jump measured a 2.07 s flight, more than any person can jump, so the flight time and e...Three frame-rate fields, and they mean different things (checked against the apps' shared job code, shared/automation-jobs.ts): options.captureFps is what the user asked for ("auto" means "trust the file"), sourceFps is the rate written in the video file, and actualCaptureFps is the rate every time and speed was computed with. In a web page the same fields are one line away:
const r = JSON.parse(await file.text()); // file: the File the user dropped on the page
if (r.actualCaptureFps !== loggedFps) showWarning(`${r.input}: analyzed at ${r.actualCaptureFps} fps`);
All seven receipts, checked against the session log
A receipt can only say what the app was told. Whether that was right is in your own log: the week-1 clips were filmed at 30 frames per second, the week-3 clips at 120.
Type a prediction to enable Run.
Show the expected result without running
clip asked file_fps used_fps warnings ok jump_wk1_t1.mp4 auto 30 30 1 True jump_wk1_t2.mp4 auto 30 30 1 True jump_wk1_t3.mp4 auto 30 30 1 True jump_wk3_t1.mp4 120 30 120 0 True jump_wk3_t2.mp4 120 30 120 0 True jump_wk3_t3.mp4 auto 30 30 2 False jump_wk3_t4.mp4 120 30 120 0 True
Join the measurement, and draw it
The jump height is in the .md file's Metrics table, one row per metric with the unit in the text (31.2 cm / 12.3 in).
Show the expected result without running
clip ok height_cm jump_wk1_t1.mp4 True 31.2 jump_wk1_t2.mp4 True 29.8 jump_wk1_t3.mp4 True 32.1 jump_wk3_t1.mp4 True 33.5 jump_wk3_t2.mp4 True 34.1 jump_wk3_t3.mp4 False 32.9 jump_wk3_t4.mp4 True 33.8 week 1 mean 31.0 cm, week 3 mean 33.8 cm (wrong-rate clip left out)

The wrong-rate clip's height looks plausible, because the jump app scales height from the body, not from the clock; only its times are wrong, which is why the app withheld them and wrote two warnings. The receipt and your log together catch it; the height alone never would.
For the athlete: "Six of your seven clips were analyzed at the rate you filmed them; we left the seventh out, and your week-3 jumps average about 3 cm higher than week 1."
Check yourself
A receipt has
"captureFps": "auto","sourceFps": 30and"actualCaptureFps": 30, but your log says the clip was filmed at 120. What is wrong?Why is the receipt written last?
Built 2026-11-30 with Python packages numpy 2.5.5, pandas 3.1.1, matplotlib 3.11.2. In the browser the same code runs on Pyodide, so the last digit can differ.