apopt.com

Data / tutorials / cs11-knee-angle

Tutorial CS-11: From keypoints to a knee angle over a stride

Tutorial

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.

Files for the tutorial From keypoints to a knee angle over a stride (https://apopt.com/course/tutorials/cs11-knee-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
clean/knee_curve_x.csv562 B35 rowsCleaned copy written by the tutorial
clean/swing_knee_n.csv3.3 KB117 rowsCleaned copy written by the tutorial
clean/swing_knee_s.csv3.3 KB117 rowsCleaned copy written by the tutorial
clean/swing_knee_x.csv3.2 KB117 rowsCleaned copy written by the tutorial
expected/printed-output.txt1.1 KBEverything the tutorial prints, cell by cell
raw/form3_30fps_yolo26n-pose.csv43.4 KB117 rowsthe same clip with the nano model, YOLO26n (117 rows)
raw/form3_30fps_yolo26s-pose.csv42.6 KB115 rowsthe same clip with the small model, YOLO26s (115 rows; two frames without a person)
raw/form3_30fps_yolo26x-pose.csv106.8 KB117 rowskeypoints of every frame of a hand-drawn runner seen from the side, YOLO26x (117 rows, 52 columns)

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/form3_30fps_yolo26n-pose.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
0330.48575.359341.776557.301330.005561.487386.668563.818362.201569.518449.807669.744373.404659.162493.168830.066374.083812.267427.71883.818314.248871.519455.197935.484406.37920.443356.891129.481377.7331101.121370.7931418.614437.0571274.0040.910.9440.160.9650.020.9910.9850.9590.8880.9270.8890.9960.9910.9910.930.960.903
1330.549575.286341.83557.293330.09561.423386.638563.779362.193569.371449.721669.436373.33658.911493.203829.469374.179811.695428.194883.843314.547871.291455.28935.335406.451920.486356.8531129.288377.6671101.861371.0361417.911436.111276.3280.9080.9420.1580.9650.020.9910.9850.9590.8880.9270.8890.9960.9910.9910.930.960.904
2348.038573.636362.915558.734349.478557.728413.278572.039388.853566.497461.001679.61414.74668.391422.198858.761369.853804.751285.038812.125285.29788.368489.774958.766455.473947.228419.0821184.557405.7281153.173526.7371437.092503.6971369.5720.920.9520.1420.9760.0150.9970.9710.9960.7540.9870.7670.9960.9860.9850.9090.9380.871
3348.074573.591363.001558.719349.486557.733413.381572.073388.443566.62461.39679.493413.919668.746422.502858.717369.096805.236285.18812.279284.871788.774489.936958.867454.8947.574419.0361184.609405.4571153.786526.6981437.074503.5311370.2070.9190.9510.1420.9760.0150.9970.9710.9960.7560.9870.7690.9960.9860.9850.9090.9380.87
4369.467574.92384.197557.195367.115560.286431.017569.202394.614574.935465.691677.031433.961669.97407.597837.02370.773781.891292.866768.139286.105734.095494.584944.749467.983944.025406.9041112.622451.451130.932507.9881231.223606.0491256.6690.9150.9680.2260.9890.0210.9970.9720.9950.7880.9770.660.9970.990.9780.9290.8910.792
5369.524574.932384.321557.203367.112560.269431.147569.217394.585574.903465.545677.048434.242670.016407.591836.909370.719781.823293.021768.503285.903734.066494.545944.702468.756944.23406.0431111.877453.5631131.547506.5161230.372608.31258.8820.9170.9690.2290.9890.0220.9970.9720.9950.7860.9770.6580.9970.990.9780.930.8880.791
6381.91577.72393.087561.709382.888563.885450.219570.159431.48572.859470.174674.767512.225672.609380.259803.102548.517839.512311.506701.224530.346885.894487.049965.88475.628937.205531.5351167.725281.81044.129697.4971288.361384.5721149.0440.970.9950.2350.9960.0050.9960.9450.9930.5420.9770.4320.9950.9850.9840.9140.9450.947
7380.818578.186390.88561.366384.92564.618446.899569.743436.285573.944464.247680.234508.994676.583367.038807.483534.841838.51303.73754.728504.193837.674497.197973.332480.826948.154576.0231194.547318.781079.626761.3851334.349365.7621184.3950.9370.9810.150.990.0080.9960.9540.9910.7220.9430.4740.9940.9830.9870.9140.9690.954

First 8 of 117 rows.

Data dictionary

ColumnUnitMeaning
framecountframe number from 0 at 30 frames per second
<joint>_x, <joint>_ypixels from the top-left corner; y grows downwardkeypoint position, 17 joints (nose … r_ankle)
<joint>_c0 to 1the model's confidence in that keypoint

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/cs11-knee-angle/raw/form3_30fps_yolo26n-pose.csv")
const text = await (await fetch("https://apopt.com/data/tutorials/cs11-knee-angle/raw/form3_30fps_yolo26n-pose.csv")).text();

Or download load.py / load.js.

How to cite

Tutorial CS-11: From keypoints to a knee angle over a stride. IRSRI Sports Research Institute, 2026. Data-Driven Athletics data repository. https://apopt.com/data/tutorials/cs11-knee-angle/