luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
77 stars 15 forks source link

[QUESTION] Is this able to detect real human face? #15

Closed w3company-leo closed 3 months ago

w3company-leo commented 4 months ago

Is this able to detect only real human face ?? I need to detect only real human face not image

YuriOlepir commented 4 months ago

in my project I'm asking user smile and wink to validate real face, you can track facial movements by adding classificationMode into the faceDetectionOptions

luicfrr commented 4 months ago

You can add classificationMode: 'all' in faceDetectionOptions and then check for leftEyeOpenProbability, rightEyeOpenProbability and/or smilingProbability values.

You can ask your user to smile or blink then you'll know if it's a real human or a image.

luicfrr commented 3 months ago

closing due to inactivity

w3company-leo commented 3 months ago

@nonam4 thanks i will try this