Can the library detect sun/glasses and other kinds of headwear? #129
-
Hi, I was wondering if the library had means to detect glasses, sunglasses, and other types of headwear. If any of the above is true:
Also, do you know how much glasses are affecting iris detection? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
it's not currently included, but i just created a separate git repository at https://github.com/vladmandic/anti-spoofing model is currently trained on real/fake face, but can be retrained for other uses like and for glasses/no-glasses, a good dataset is available at https://www.kaggle.com/jeffheaton/glasses-or-no-glasses,
once model is trained, it can be used inside extending basically, each model is a separate ES6 module that:
models can be
model is extremely lightweight (less than 1MB trained)
performance is less than 10ms, so applicable in real-time use-cases plus
thin frame glasses with clear lenses should not impact iris detection much |
Beta Was this translation helpful? Give feedback.
-
@vladmandic Can I add headgear or glasses to the detected face? |
Beta Was this translation helpful? Give feedback.
-
(you can see all points at https://raw.githubusercontent.com/vladmandic/human/main/assets/facemesh.png) How to display the number of 468 dots on this picture? |
Beta Was this translation helpful? Give feedback.
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…