PoseNet estimates poses (joint positions of a human figure) from a webcam (or other image data). It runs in a web page, and can be used with p5.js, or other JavaScript programs.

References

ml5.js PoseNet API – if you are using PoseNet within p5.js

TensorFlow PoseNet – if you are using PoseNet from JavaScript, within the browser. The ml5.js PoseNet API uses library, and this page contains additional documentation beyond the ml5.js documentation – for example, the list of body parts.

Starter Templates

Use these to get started:

Selecting the Camera

If you have more than one camera, the system may select the wrong one. (This can happen if you have installed a virtual camera, such as Snap Camera or OBS Link.) In Chrome, follow these instructions to fix this:

  1. Select File > Preferences
  2. In the “Privacy and security” section of the Settings page, click “Site Settings”
  3. In the “Permissions” section of the page, click Camera
  4. At the top of the page, there is a popup menu that lists the available cameras. Select the correct camera. (For example, on a Macintosh this is FaceTime HD Camera (Built-in).

Oliver' Tools

Here are some things I've created for use with PoseNet: