esimov / pigo

Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go.
MIT License
4.37k stars 309 forks source link

Invalid Face Detected #51

Closed olekukonko closed 2 years ago

olekukonko commented 2 years ago

Issue

The image attached passes facial detection.

API related bug

The images should not be detected as a face detection

Expected behaviour

No Face Detected face

Other Information

Observation

This image also passes default android face detection but I belive pigo should be better

esimov commented 2 years ago

I have adjusted the default parameters because by playing a little bit with the existing flags I realized that the new settings offers better performance and also better results, but be aware that like any other face detection library is not 100% accurate, so it might produce false detection results, that's why you need to adjust the supported flags like -scale, -shift and -iou. These are the most important parameters which are responsible for the final detection score, so in many or almost all of the cases is enough to adjust these values.

So please make a new pull with the updated files. Soon I will make a new release also in case you are installed the project via Homebrew or if you downloaded the binary files.

olekukonko commented 2 years ago

Thanks for the quick response, Will pull the update and have a detailed test.

I see

shift = 0.1 -> 0.15 
scale = 1.1 -> 1.15 
iou = 0.2 ->  0.15

I will also play with some of these settings and revert