Just a sec...
Here is a small little project that uses facial regonition models to do facial regonition inside the browser.
Here is a small project which uses the face-api.js which is implemented on tensorflow.js core. It uses a live webcam feed into a video element which then is made into a canvas and the algorithm will work out, using the models, where your face is and what expreession you are showing.
For a demo, click here. This demo doesn't appear to work on mobile devices.