Tensorflow tfjs-models / body-pix experiment - follow my eyes
This demo should work in Chrome and Firefox browsers; fails in Safari
Test purpose
- Check that the media stream loads (if browser/device supports it)
- Check that we can load and use both Tensorflow (from a CDN) and its body-pix model
- Apply the model to a live camera feed
- Create a RawAsset object to handle the model's output. In particular
- Parse the output's metadata to identify the left and right eyes
- Calculate the position of each eye, averaged over several iterations
- Update the RawAsset's canvas with two transluscent circles covering over the eyes
Touch test: not required
Annotated code