apopt.com

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

FileSizeRowsWhat it is
expected/printed-output.txt423 BEverything the tutorial prints, cell by cell
raw/form2_keypoints_yolo26s.csv114.5 KB362 rowsa 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

framenose_xnose_yl_eye_xl_eye_yr_eye_xr_eye_yl_ear_xl_ear_yr_ear_xr_ear_yl_shoulder_xl_shoulder_yr_shoulder_xr_shoulder_yl_elbow_xl_elbow_yr_elbow_xr_elbow_yl_wrist_xl_wrist_yr_wrist_xr_wrist_yl_hip_xl_hip_yr_hip_xr_hip_yl_knee_xl_knee_yr_knee_xr_knee_yl_ankle_xl_ankle_yr_ankle_xr_ankle_ynose_cl_eye_cr_eye_cl_ear_cr_ear_cl_shoulder_cr_shoulder_cl_elbow_cr_elbow_cl_wrist_cr_wrist_cl_hip_cr_hip_cl_knee_cr_knee_cl_ankle_cr_ankle_c
0357.22299.61379.77270.19358.82269.25457.5281.7418.54275.83489.61434.57473.51423.62344.87554.78400.57538.39298.38589.67347.51502.22535.71799.93432.29782.97587.631161.48255.771107.01757.891499.15365.041439.220.960.980.330.930.010.990.850.990.410.930.381.00.991.01.00.990.99
1357.3299.65379.85270.25358.92269.28457.5281.87418.6275.92489.45434.85473.54424.0344.25555.03401.15539.46298.52588.28348.3503.09536.04800.18432.18783.23587.971161.64255.761107.12757.771498.98365.01439.320.960.980.330.930.010.990.850.990.410.930.381.00.991.01.00.990.99
2359.56279.31377.93251.09366.31248.53441.0257.81433.11248.73488.61387.57462.66391.16359.42520.32395.69548.1309.37577.8317.41555.88523.71776.42427.25767.54590.061117.75261.251100.76782.791466.68317.581467.10.870.920.160.890.020.990.830.980.180.910.221.00.991.01.00.990.99
3357.57285.93377.37254.6362.28254.75451.62253.09426.89250.31499.35383.68468.54368.76394.62493.28382.52423.71314.12551.42323.04480.35501.05780.59427.98770.65559.351108.15296.521112.92754.281461.16335.691484.590.90.930.130.910.010.990.940.960.740.930.890.990.980.990.990.990.97
4351.99265.92380.42234.5353.49233.22463.23243.75400.17237.47504.56382.75449.8372.16396.87493.18366.03436.01322.08533.05320.35474.08505.0774.05416.47765.53575.681101.09291.741125.84786.511438.51302.731491.770.950.970.30.930.010.990.930.960.570.930.681.00.980.990.970.980.92
5351.93266.28380.87234.93353.35233.39464.13244.02400.4237.01502.48382.34453.27371.2397.63492.19367.06434.51321.58534.35320.17473.75500.28774.76422.9764.73555.771104.56309.141123.16751.131445.06337.441485.810.950.960.30.920.010.990.930.960.580.930.691.00.980.990.970.980.92
6353.1258.52382.57225.85358.34223.17462.31241.32429.67228.6462.59393.02501.5373.52357.12496.78368.99436.97318.18512.0321.69449.04436.49788.14492.58768.71331.11138.67510.41111.14315.151485.75721.391403.90.950.960.370.880.020.980.920.980.570.920.450.990.971.00.990.970.98
7355.57255.03381.05221.53357.68222.0459.14230.03423.63225.85478.34371.23479.25367.87415.26461.59368.81434.05312.87515.22310.02460.51434.04782.67487.14767.16313.181143.37526.051109.46260.661492.86773.121374.830.880.90.330.770.040.960.930.980.670.940.470.990.981.00.990.970.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/