Skip to content

Can the library detect sun/glasses and other kinds of headwear? #129

Answered by vladmandic
Nekronik asked this question in Q&A
Discussion options

You must be logged in to vote

I was wondering if the library had means to detect glasses, sunglasses, and other types of headwear.

it's not currently included, but i just created a separate git repository at https://github.com/vladmandic/anti-spoofing
which can be re-trained with any image set true/false and model itself simply takes input image of a face and returns true/false

model is currently trained on real/fake face, but can be retrained for other uses like
glasses/no-glasses, mask/no-mask, female/male, etc - pretty much any binary decision regarding a face

and for glasses/no-glasses, a good dataset is available at https://www.kaggle.com/jeffheaton/glasses-or-no-glasses,
so process of retraining the model shou…

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
1 reply
@Nekronik
Comment options

Answer selected by Nekronik
Comment options

You must be logged in to vote
3 replies
@vladmandic
Comment options

@01coding
Comment options

@vladmandic
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
3 participants