Inspired by the COVID-19 outbreak. The CDC recommends that you avoid touching your eyes, nose or mouth to prevent contracting the disease.
Don't Touch Your Face runs in your browser and detects when you touch your face, and makes an annoying noise to stop you so that you won't contract COVID-19.
Visit donttouchyourface.net. Accept the camera permissions, then keep that tab open and go about your business. The tab will constantly check for things that look like hands, overlapping things that look like faces.
note: when the tab is in the background, the refresh rate is lower so it won't be as fast to catch you. This is to prevent hogging too much of your system resources
Don't Touch Your Face uses deep learning with the tensorflow.js library and two libraries that have been built on top of it.
Huge props to handtrack.js which is used to track hands, and face-api.js which is used to find your face.
Your camera data stays on your computer and your computer does all of the computation locally. We're not sending the video anywhere or collecting it.
nope. Sometimes there are false negatives and sometimes there are false positives.
I wrote this in an evening in under 200 lines of code. What a cool world we live in.