Chad Wallace Hart

facetouchmonitor.com - stop touching your face using a browser and TensorFlow.js

Experimenting with running computer vision locally in the browser using TensorFlow.js has been on my bucket list to play with as part of my regular AI in RTC research. The recent warnings to avoid touching your face got me thinking there should be some kind of webcam monitor that warns you when you touch your face.

I did a quick websearch and found one site that does this, but it requires user training on ever refresh and wasn't all that accurate. So, I decided to give the TensorFlow.js with the BodyPix model library a try as a weekend project.

Check out the results of my experiment at facetouchmonitor.com.

It's not perfect, but I was amazed how well it worked without a whole lot of effort - all in the browser. All the code is available at github.com/webrtchacks/facetouchmonitor. I shared some highlights on how it works and an alternative approach at webrtcHacks: https://webrtchacks.com/stop-touching-your-face-with-browser-tensorflow-js/

Author image
About Chad W Hart
Cambridge, MA USA Website
Chad is a communications market analyst and product consultant at cwh.consulting, a product management, marketing, and strategy advisory. See more at his bio page - https://chadwallacehart.com/bio.