I'm working on a project that will use a user's webcam and always be looking for faces when detected and the face is within a certain area (to make sure that they are facing forward). And then take a picture of the face and save it to the web server.
I've found some facial detection projects that use usergermedia and use a canvas to overlay an image on top of the detected face seen here: https://github.com/neave/face-detection
The code is confusing to a newbie like me, I see that I should probably play with the face.html file and the detect objects function. But instead of having it draw the glasses how would I get it to save it as an image?