Code used in the video: https://editor.p5js.org/kylemcdonald/sketches/H1OoUd9h7
Explanation on stack overflow of the difference between var and let
Tensorflow.js Posenet Documentation: https://github.com/tensorflow/tfjs-models/tree/master/posenet
Keypoints
All keypoints are indexed by part id. The parts and their ids are:
Id | Part |
---|---|
0 | nose |
1 | leftEye |
2 | rightEye |
3 | leftEar |
4 | rightEar |
5 | leftShoulder |
6 | rightShoulder |
7 | leftElbow |
8 | rightElbow |
9 | leftWrist |
10 | rightWrist |
11 | leftHip |
12 | rightHip |
13 | leftKnee |
14 | rightKnee |
15 | leftAnkle |
16 | rightAnkle |