iOS | macOS |
---|---|
During these strange times, it's important that we all remember that we shouldn't touuch our faces.
Here's SwiftUI App that alerts you when you have touched your face. This happens to be an App version of my submission for the WWDC20 Swift Student Challenge
Well it uses a small (not great) CoreML Classification Model I created using Microsoft's Custom Vision. That classifies wether or not someone in the picture is touching their face. I say that it's not great, because I was lazy and only trained it with 200 images.
Sine my model isn't amazing, I make sure that there's actually a face in the image with Visions VNDetectFaceRectanglesRequest.
And the rest is just pretty SwiftUI code 😍
Well like I said, this is a submission to the WWDC20 Swift Student Challenge so it's not obviously meant for production. This is just a proof of concept + an opportunity to try out some new things...
Contributions are welcome and encouraged!
This is heavily inspired by this article by Em Walker.
Similar tools of course exist out there for the web. Most notably this and this.
This is currenlty a research project. More details about how it works, will be published later.
This App is available under the MIT license. See the LICENSE file for more info.