Assignment: P5 Face Tracking

If your “face” assignment was super simple, with one or two shapes moving, redo it.

Alternatively, you can make a screen saver using random and noise that produces interesting looking visuals.

For advanced students and whoever completed the “face” assignment successfully. Make a virtual mask with the face tracking system below and prepare a short performance with it.


This example uses p5 and a face recognition library called clmtrackr

These are the points in the array returned by ctracker.getCurrentPosition():


If you want to track the tip of the nose, these are the coordinates:

var noseX = positions[37][0]; 
var noseY = positions[37][1];

Posted in