ageitgey / face_recognition

The world's simplest facial recognition api for Python and the command line
MIT License
52.87k stars 13.43k forks source link

How to identify mask with real human ? #394

Open MLDSBigGuy opened 6 years ago

MLDSBigGuy commented 6 years ago

Currently my model trains the human mask and matches with real human faces. How to avoid this ?

Even if i do video capturing, all his face expressions and angles can be mimiced with human mask if i mistakenly train him as a real person.

Iris unique eye detection also doesnot work. Because a fraud person can keep just his eye holes open in the mask (I dont want to go into this, as i have less knowledge and am not sure if this could also be mimiced with wearing lens)

Speech could also be mimiced by person wearing the mask or a recorded audio.

How to detect human masks from original human faces ?

Currently i feel like only live person finger print could never be mimiced. Let me know if this could also be mimiced. But this is so old and doesnot work good incase of sunlight or body becomes too cold. Have to do again and again till i get recognized.

Sorry for being uncivilized. But only this comes to my mind. Can saliva (easy to generate) / urine (depends on user mood) /(blood (depends on user trust) be used to identify a person in less time ? Hoping no one steals excretions of any human. But this is not computer science anymore. I have no biology background.

Is there anything that captures fraud fastly with only computer science knowledge and be decent and easy to implement at the cost of no inconvience to user ?

I understand what i am asking is beyond this library functionality. But i just want to know your ideas/suggestions. Maybe someone using this libraray had these questions in their mind too.

Thank you,

ageitgey commented 6 years ago

This library isn't meant to prevent fraud. It's not designed to detect masks or anything like that (like you already said in your comment).

So of course anyone else is free to jump in if they have ideas or experience to share, but I don't have a full-proof solution for you myself.

MLDSBigGuy commented 6 years ago

Thanks for a polite answer 👍and not closing this as off topic. I am not sure if there is a option like blocking in github. Otherwsie, i would have been blocked long back for opening these kind of issues.

ageitgey commented 6 years ago

Haha, I'm glad people are excited and looking for new use cases for this code or thinking of possible improvements, so feel free to use your imagination and discuss how to do new things. But I also don't want to promise features that aren't part of this library, so I just wanted to make sure that part was clear. :)