justadudewhohacks / face-api.js

JavaScript API for face detection and face recognition in the browser and nodejs with tensorflow.js
MIT License
16.53k stars 3.68k forks source link

How to control the accuracy of detectFaceLandmarks? #493

Open kingjh opened 4 years ago

kingjh commented 4 years ago

I tried to set TinyFaceDetectorOptions to control the accuracy of the result from detectFaceLandmarks, however it seems not work, even I set the scoreThreshold=0.9, which is expected that it's hard to find the result, however the detectFaceLandmarks still returns a non-null result.

Is there a way to control the accuracy of detectFaceLandmarks?

justadudewhohacks commented 4 years ago

No there is no such option. The scoreThreshold parameter determines the minimum confidence of the face detection algorithm. It has nothing to do with the landmark regression model.