Data / tutorials / q07-three-point-angle
Tutorial Q-7: The angle from three points
Tutorial
Write the angle-from-three-points function, check it on the book's worked example, and apply it to every frame of a pose table to draw a runner's knee flexion stride by stride.
Files for the tutorial The angle from three points (https://apopt.com/course/tutorials/q07-three-point-angle/). 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 |
|---|---|---|---|
| expected/printed-output.txt | 423 B | Everything the tutorial prints, cell by cell | |
| raw/form2_keypoints_yolo26s.csv | 114.5 KB | 362 rows | a pose model's keypoint table for a side-view running clip, one row per frame (362 rows), x and y in pixels and a confidence for 17 keypoints |
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 raw/form2_keypoints_yolo26s.csv
| frame | nose_x | nose_y | l_eye_x | l_eye_y | r_eye_x | r_eye_y | l_ear_x | l_ear_y | r_ear_x | r_ear_y | l_shoulder_x | l_shoulder_y | r_shoulder_x | r_shoulder_y | l_elbow_x | l_elbow_y | r_elbow_x | r_elbow_y | l_wrist_x | l_wrist_y | r_wrist_x | r_wrist_y | l_hip_x | l_hip_y | r_hip_x | r_hip_y | l_knee_x | l_knee_y | r_knee_x | r_knee_y | l_ankle_x | l_ankle_y | r_ankle_x | r_ankle_y | nose_c | l_eye_c | r_eye_c | l_ear_c | r_ear_c | l_shoulder_c | r_shoulder_c | l_elbow_c | r_elbow_c | l_wrist_c | r_wrist_c | l_hip_c | r_hip_c | l_knee_c | r_knee_c | l_ankle_c | r_ankle_c |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 357.22 | 299.61 | 379.77 | 270.19 | 358.82 | 269.25 | 457.5 | 281.7 | 418.54 | 275.83 | 489.61 | 434.57 | 473.51 | 423.62 | 344.87 | 554.78 | 400.57 | 538.39 | 298.38 | 589.67 | 347.51 | 502.22 | 535.71 | 799.93 | 432.29 | 782.97 | 587.63 | 1161.48 | 255.77 | 1107.01 | 757.89 | 1499.15 | 365.04 | 1439.22 | 0.96 | 0.98 | 0.33 | 0.93 | 0.01 | 0.99 | 0.85 | 0.99 | 0.41 | 0.93 | 0.38 | 1.0 | 0.99 | 1.0 | 1.0 | 0.99 | 0.99 |
| 1 | 357.3 | 299.65 | 379.85 | 270.25 | 358.92 | 269.28 | 457.5 | 281.87 | 418.6 | 275.92 | 489.45 | 434.85 | 473.54 | 424.0 | 344.25 | 555.03 | 401.15 | 539.46 | 298.52 | 588.28 | 348.3 | 503.09 | 536.04 | 800.18 | 432.18 | 783.23 | 587.97 | 1161.64 | 255.76 | 1107.12 | 757.77 | 1498.98 | 365.0 | 1439.32 | 0.96 | 0.98 | 0.33 | 0.93 | 0.01 | 0.99 | 0.85 | 0.99 | 0.41 | 0.93 | 0.38 | 1.0 | 0.99 | 1.0 | 1.0 | 0.99 | 0.99 |
| 2 | 359.56 | 279.31 | 377.93 | 251.09 | 366.31 | 248.53 | 441.0 | 257.81 | 433.11 | 248.73 | 488.61 | 387.57 | 462.66 | 391.16 | 359.42 | 520.32 | 395.69 | 548.1 | 309.37 | 577.8 | 317.41 | 555.88 | 523.71 | 776.42 | 427.25 | 767.54 | 590.06 | 1117.75 | 261.25 | 1100.76 | 782.79 | 1466.68 | 317.58 | 1467.1 | 0.87 | 0.92 | 0.16 | 0.89 | 0.02 | 0.99 | 0.83 | 0.98 | 0.18 | 0.91 | 0.22 | 1.0 | 0.99 | 1.0 | 1.0 | 0.99 | 0.99 |
| 3 | 357.57 | 285.93 | 377.37 | 254.6 | 362.28 | 254.75 | 451.62 | 253.09 | 426.89 | 250.31 | 499.35 | 383.68 | 468.54 | 368.76 | 394.62 | 493.28 | 382.52 | 423.71 | 314.12 | 551.42 | 323.04 | 480.35 | 501.05 | 780.59 | 427.98 | 770.65 | 559.35 | 1108.15 | 296.52 | 1112.92 | 754.28 | 1461.16 | 335.69 | 1484.59 | 0.9 | 0.93 | 0.13 | 0.91 | 0.01 | 0.99 | 0.94 | 0.96 | 0.74 | 0.93 | 0.89 | 0.99 | 0.98 | 0.99 | 0.99 | 0.99 | 0.97 |
| 4 | 351.99 | 265.92 | 380.42 | 234.5 | 353.49 | 233.22 | 463.23 | 243.75 | 400.17 | 237.47 | 504.56 | 382.75 | 449.8 | 372.16 | 396.87 | 493.18 | 366.03 | 436.01 | 322.08 | 533.05 | 320.35 | 474.08 | 505.0 | 774.05 | 416.47 | 765.53 | 575.68 | 1101.09 | 291.74 | 1125.84 | 786.51 | 1438.51 | 302.73 | 1491.77 | 0.95 | 0.97 | 0.3 | 0.93 | 0.01 | 0.99 | 0.93 | 0.96 | 0.57 | 0.93 | 0.68 | 1.0 | 0.98 | 0.99 | 0.97 | 0.98 | 0.92 |
| 5 | 351.93 | 266.28 | 380.87 | 234.93 | 353.35 | 233.39 | 464.13 | 244.02 | 400.4 | 237.01 | 502.48 | 382.34 | 453.27 | 371.2 | 397.63 | 492.19 | 367.06 | 434.51 | 321.58 | 534.35 | 320.17 | 473.75 | 500.28 | 774.76 | 422.9 | 764.73 | 555.77 | 1104.56 | 309.14 | 1123.16 | 751.13 | 1445.06 | 337.44 | 1485.81 | 0.95 | 0.96 | 0.3 | 0.92 | 0.01 | 0.99 | 0.93 | 0.96 | 0.58 | 0.93 | 0.69 | 1.0 | 0.98 | 0.99 | 0.97 | 0.98 | 0.92 |
| 6 | 353.1 | 258.52 | 382.57 | 225.85 | 358.34 | 223.17 | 462.31 | 241.32 | 429.67 | 228.6 | 462.59 | 393.02 | 501.5 | 373.52 | 357.12 | 496.78 | 368.99 | 436.97 | 318.18 | 512.0 | 321.69 | 449.04 | 436.49 | 788.14 | 492.58 | 768.71 | 331.1 | 1138.67 | 510.4 | 1111.14 | 315.15 | 1485.75 | 721.39 | 1403.9 | 0.95 | 0.96 | 0.37 | 0.88 | 0.02 | 0.98 | 0.92 | 0.98 | 0.57 | 0.92 | 0.45 | 0.99 | 0.97 | 1.0 | 0.99 | 0.97 | 0.98 |
| 7 | 355.57 | 255.03 | 381.05 | 221.53 | 357.68 | 222.0 | 459.14 | 230.03 | 423.63 | 225.85 | 478.34 | 371.23 | 479.25 | 367.87 | 415.26 | 461.59 | 368.81 | 434.05 | 312.87 | 515.22 | 310.02 | 460.51 | 434.04 | 782.67 | 487.14 | 767.16 | 313.18 | 1143.37 | 526.05 | 1109.46 | 260.66 | 1492.86 | 773.12 | 1374.83 | 0.88 | 0.9 | 0.33 | 0.77 | 0.04 | 0.96 | 0.93 | 0.98 | 0.67 | 0.94 | 0.47 | 0.99 | 0.98 | 1.0 | 0.99 | 0.97 | 0.98 |
First 8 of 362 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/q07-three-point-angle/raw/form2_keypoints_yolo26s.csv")const text = await (await fetch("https://apopt.com/data/tutorials/q07-three-point-angle/raw/form2_keypoints_yolo26s.csv")).text();Or download load.py / load.js.
How to cite
Tutorial Q-7: The angle from three points. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/q07-three-point-angle/