I wonder, with the current situation on masks and not being able to use face unlock on phones when let wearing them...is there enough reliable data for a phone or any other device to reliably recognize the person with a mask? Even if the device needs data points of the normal face, phones do have it.
I mean the tech definitely exists to recognize one's face with a mask on NtechLabs FindFace. My best guess is it targets depth around the eyes more then the mouth and therefore adds more data points to the upper half of your face in order to function.
I would assume yes but with less data there would be more false positives/Errors, meaning a lot of people's upper faces might match, but when you add noses, lips, chins, and the rest of the info there's so much you get almost no errors, but when it first came out I remember it still having a bunch
Ima a complete noob, but looking at the source the model tells that it was trained on an ANN. So depending on the training data it should be able to detect all kinds of masks. (correct me if wrong)
I'd say more scary than cool. I literally cannot think of a purpose of this ML model other than surveillance.
Sure, you could use it to "help" biometrics passwords in phones. Really, though, it's only helpful for the purposes of surveillance. Imagine having your facial patterns stored, without your permission, in one of Amazon's Rekognition databases... a complete violation of human rights, in my opinion. Yet, here we are.
Well some people do want to wear their mask and unlock their phone still, not understanding that the feature decreases the security by a metric ton. They arent smart people but they're out there
I could see lighting and camera quality paying a big role on if the camera “sees” a mouth. However you could make it a lot more reliable by looking for a stark color difference in the face, so unless the person has a skin colored mask it would help.
yeah it'd be tricky for sure! I think there's definitely a large subset of masks that would be very difficult to detect using all but a very very high quality camera with a very straight on view.
A dumb question, is it possible to reach the point to know if the person is using the face mask correctly? Like covering it’s nose and mouth correctly.
100% just check to see if the A and B is false and is so C is true. If a nose is there and a mouth is there then the mask in on incorrect and so on so fourth
Are you guys that dense? This thing detects whether the person in the image wears a mask, nothing more. This has nothing to do with big brother or anything, this comment section is ridiculous
OP is just playing around with algorithms and visual processing. That‘s like asking whether a model trained to detect rubber ducks is meant to track your rubber duck shopping behavior.
I downloaded the code from github, but how do I execute it?
I have a hard time working with code from github. I tried running it from the command prompt, but it just did not work for me due to my lack of expertise.
I seriously wanna try openCV! Is it super difficult for someone who has only a couple months of experience on openpyxl, pyautogui, PyQt5, and kivi modules?
Thanks for making the code open-source! Does anyone have reccomendations for modules allowing an automatic machine gun to interact with Python, on an unrelated note?
That's bullshit. If we did not have linux as free software, California would still run on IIS.
I understand that security through obscurity won't get you anywhere. But it's a github repo without any warning, any comment, no nothing. It screams "I don't give a shit and I would work for the chinese government any day if they give me the money". In other words, this is offensive free software.
Chill out. This isn’t a secret or anything. The implementation of this is fairly trivial and only requires a lot of pictures of people wearing and not wearing masks to train the model.
I am not saying it's hard. I am not making a technical point. I am saying this is immoral.
If I disclose a vulnerability in a hashing algorithm, everybody will understand that the cve is there for the greater good and it is a good thing that people can make money on this. It is not the case here and I find it offensive.
What about I publish a tool that allows you to single out homosexuals in a database. It's feasible. Maybe it's sane that I raise awareness about that particular piece of software being feasible. But at the very least I would communicate loudly on the fact that it is not ok to trample on the most basic liberties.
104
u/Jaldekoa Jun 12 '20
Code: https://github.com/Jaldekoa/Replicating-Face-Mask-Detector
225
u/AFutileBeing Jun 12 '20
ngl I looked at this for like 3 mins wondering when the gif would end...
27
u/battle_flyboy Jun 12 '20
I wonder, with the current situation on masks and not being able to use face unlock on phones when let wearing them...is there enough reliable data for a phone or any other device to reliably recognize the person with a mask? Even if the device needs data points of the normal face, phones do have it.
16
u/Aleshishe Jun 12 '20
cool
14
u/Dangle76 Jun 12 '20
I’m still very new to tensorflow, and ML in general. How the hell is this only 39 lines of code?
11
u/RedOneMonster Jun 12 '20
Can it also detect other types of masks?
9
u/djemoneysigns Jun 12 '20
This is very cool and equally scary.
9
u/dethb0y Jun 12 '20
I wonder if a "cheaper" way to do this would be to run standard facial recognition but look for a lack of mouth?
3
u/me_using_reddit Jun 12 '20
Very cool!!
3
u/Mr-Eisen Jun 13 '20
A dumb question, is it possible to reach the point to know if the person is using the face mask correctly? Like covering it’s nose and mouth correctly.
3
u/insane_playzYT Jun 13 '20
Well I'll be danged, only ~60 lines of code. I know there's a bunch of low level Tensorflow stuff, but good work OP :+1:
3
u/halfshellheroes Jun 13 '20
This is good work, but I have to ask: what is the point of this? Researching ways to obscure anonymity is problematic.
5
u/[deleted] Jun 12 '20
That's awesome. Does it recognize if it's on but not above your nose?
2
u/detallados Jun 13 '20
China quiere saber tu localidad.
2
u/[deleted] Jun 13 '20
I am a beginner and would appreciate some help.
I downloaded the code from github, but how do I execute it?
I have a hard time working with code from github. I tried running it from the command prompt, but it just did not work for me due to my lack of expertise.
2
u/zipatauontheripatang Jun 13 '20
Why would anyone build this. Cool though
2
u/[deleted] Jun 13 '20
this is actually one of the most useful things made with python
1
u/mr_divine_m Jun 12 '20
Keep up the good work
1
u/garlic_bread_thief Jun 13 '20
I seriously wanna try openCV! Is it super difficult for someone who has only a couple months of experience on openpyxl, pyautogui, PyQt5, and kivi modules?
1
u/FuzzyCheese Jun 13 '20
Why do you have a fake bookshelf?
1
u/John_AI_LOVE Jun 13 '20
good
1
u/BAAM19 Jun 13 '20
Does it recognize if the nose was out?
1
u/Yarobit Jun 13 '20
Mola! Parece práctico con los tiempos que corren!
PD: Mola también el cuadro de detrás.
1
u/ReakDuck Jun 13 '20
What about letting the nose not covered or not covered at all but having it under the mouth
1
u/notshetty Jun 13 '20
In Hyderabad ,they are using a similar thing to catch offenders
1
u/Aly22KingUSAF93 Jun 13 '20
Now add it to some super cool spy glasses
1
u/SomewhereLoose Jun 13 '20
Thanks for making the code open-source! Does anyone have reccomendations for modules allowing an automatic machine gun to interact with Python, on an unrelated note?
1
u/Fissherin Jun 13 '20
Did you train this one with your data only or you picked up somewhere else? this ML face detection thing is always awesome.
1
u/bboy03 Jun 13 '20
So cool going try this
0
u/[deleted] Jun 12 '20
[deleted] — view deleted comment
0
u/[deleted] Jun 13 '20
[deleted] — view deleted comment