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
| File | Size | Rows | What it is |
|---|---|---|---|
| clean/knee_curve_x.csv | 562 B | 35 rows | Cleaned copy written by the tutorial |
| clean/swing_knee_n.csv | 3.3 KB | 117 rows | Cleaned copy written by the tutorial |
| clean/swing_knee_s.csv | 3.3 KB | 117 rows | Cleaned copy written by the tutorial |
| clean/swing_knee_x.csv | 3.2 KB | 117 rows | Cleaned copy written by the tutorial |
| expected/printed-output.txt | 1.1 KB | Everything the tutorial prints, cell by cell | |
| raw/form3_30fps_yolo26n-pose.csv | 43.4 KB | 117 rows | the same clip with the nano model, YOLO26n (117 rows) |
| raw/form3_30fps_yolo26s-pose.csv | 42.6 KB | 115 rows | the same clip with the small model, YOLO26s (115 rows; two frames without a person) |
| raw/form3_30fps_yolo26x-pose.csv | 106.8 KB | 117 rows | keypoints 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
| 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 | 330.48 | 575.359 | 341.776 | 557.301 | 330.005 | 561.487 | 386.668 | 563.818 | 362.201 | 569.518 | 449.807 | 669.744 | 373.404 | 659.162 | 493.168 | 830.066 | 374.083 | 812.267 | 427.71 | 883.818 | 314.248 | 871.519 | 455.197 | 935.484 | 406.37 | 920.443 | 356.89 | 1129.481 | 377.733 | 1101.121 | 370.793 | 1418.614 | 437.057 | 1274.004 | 0.91 | 0.944 | 0.16 | 0.965 | 0.02 | 0.991 | 0.985 | 0.959 | 0.888 | 0.927 | 0.889 | 0.996 | 0.991 | 0.991 | 0.93 | 0.96 | 0.903 |
| 1 | 330.549 | 575.286 | 341.83 | 557.293 | 330.09 | 561.423 | 386.638 | 563.779 | 362.193 | 569.371 | 449.721 | 669.436 | 373.33 | 658.911 | 493.203 | 829.469 | 374.179 | 811.695 | 428.194 | 883.843 | 314.547 | 871.291 | 455.28 | 935.335 | 406.451 | 920.486 | 356.853 | 1129.288 | 377.667 | 1101.861 | 371.036 | 1417.911 | 436.11 | 1276.328 | 0.908 | 0.942 | 0.158 | 0.965 | 0.02 | 0.991 | 0.985 | 0.959 | 0.888 | 0.927 | 0.889 | 0.996 | 0.991 | 0.991 | 0.93 | 0.96 | 0.904 |
| 2 | 348.038 | 573.636 | 362.915 | 558.734 | 349.478 | 557.728 | 413.278 | 572.039 | 388.853 | 566.497 | 461.001 | 679.61 | 414.74 | 668.391 | 422.198 | 858.761 | 369.853 | 804.751 | 285.038 | 812.125 | 285.29 | 788.368 | 489.774 | 958.766 | 455.473 | 947.228 | 419.082 | 1184.557 | 405.728 | 1153.173 | 526.737 | 1437.092 | 503.697 | 1369.572 | 0.92 | 0.952 | 0.142 | 0.976 | 0.015 | 0.997 | 0.971 | 0.996 | 0.754 | 0.987 | 0.767 | 0.996 | 0.986 | 0.985 | 0.909 | 0.938 | 0.871 |
| 3 | 348.074 | 573.591 | 363.001 | 558.719 | 349.486 | 557.733 | 413.381 | 572.073 | 388.443 | 566.62 | 461.39 | 679.493 | 413.919 | 668.746 | 422.502 | 858.717 | 369.096 | 805.236 | 285.18 | 812.279 | 284.871 | 788.774 | 489.936 | 958.867 | 454.8 | 947.574 | 419.036 | 1184.609 | 405.457 | 1153.786 | 526.698 | 1437.074 | 503.531 | 1370.207 | 0.919 | 0.951 | 0.142 | 0.976 | 0.015 | 0.997 | 0.971 | 0.996 | 0.756 | 0.987 | 0.769 | 0.996 | 0.986 | 0.985 | 0.909 | 0.938 | 0.87 |
| 4 | 369.467 | 574.92 | 384.197 | 557.195 | 367.115 | 560.286 | 431.017 | 569.202 | 394.614 | 574.935 | 465.691 | 677.031 | 433.961 | 669.97 | 407.597 | 837.02 | 370.773 | 781.891 | 292.866 | 768.139 | 286.105 | 734.095 | 494.584 | 944.749 | 467.983 | 944.025 | 406.904 | 1112.622 | 451.45 | 1130.932 | 507.988 | 1231.223 | 606.049 | 1256.669 | 0.915 | 0.968 | 0.226 | 0.989 | 0.021 | 0.997 | 0.972 | 0.995 | 0.788 | 0.977 | 0.66 | 0.997 | 0.99 | 0.978 | 0.929 | 0.891 | 0.792 |
| 5 | 369.524 | 574.932 | 384.321 | 557.203 | 367.112 | 560.269 | 431.147 | 569.217 | 394.585 | 574.903 | 465.545 | 677.048 | 434.242 | 670.016 | 407.591 | 836.909 | 370.719 | 781.823 | 293.021 | 768.503 | 285.903 | 734.066 | 494.545 | 944.702 | 468.756 | 944.23 | 406.043 | 1111.877 | 453.563 | 1131.547 | 506.516 | 1230.372 | 608.3 | 1258.882 | 0.917 | 0.969 | 0.229 | 0.989 | 0.022 | 0.997 | 0.972 | 0.995 | 0.786 | 0.977 | 0.658 | 0.997 | 0.99 | 0.978 | 0.93 | 0.888 | 0.791 |
| 6 | 381.91 | 577.72 | 393.087 | 561.709 | 382.888 | 563.885 | 450.219 | 570.159 | 431.48 | 572.859 | 470.174 | 674.767 | 512.225 | 672.609 | 380.259 | 803.102 | 548.517 | 839.512 | 311.506 | 701.224 | 530.346 | 885.894 | 487.049 | 965.88 | 475.628 | 937.205 | 531.535 | 1167.725 | 281.8 | 1044.129 | 697.497 | 1288.361 | 384.572 | 1149.044 | 0.97 | 0.995 | 0.235 | 0.996 | 0.005 | 0.996 | 0.945 | 0.993 | 0.542 | 0.977 | 0.432 | 0.995 | 0.985 | 0.984 | 0.914 | 0.945 | 0.947 |
| 7 | 380.818 | 578.186 | 390.88 | 561.366 | 384.92 | 564.618 | 446.899 | 569.743 | 436.285 | 573.944 | 464.247 | 680.234 | 508.994 | 676.583 | 367.038 | 807.483 | 534.841 | 838.51 | 303.73 | 754.728 | 504.193 | 837.674 | 497.197 | 973.332 | 480.826 | 948.154 | 576.023 | 1194.547 | 318.78 | 1079.626 | 761.385 | 1334.349 | 365.762 | 1184.395 | 0.937 | 0.981 | 0.15 | 0.99 | 0.008 | 0.996 | 0.954 | 0.991 | 0.722 | 0.943 | 0.474 | 0.994 | 0.983 | 0.987 | 0.914 | 0.969 | 0.954 |
First 8 of 117 rows.
Data dictionary
| Column | Unit | Meaning |
|---|---|---|
frame | count | frame number from 0 at 30 frames per second |
<joint>_x, <joint>_y | pixels from the top-left corner; y grows downward | keypoint position, 17 joints (nose … r_ankle) |
<joint>_c | 0 to 1 | the 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/