esimov / pigo

Fast face detection, pupil/eyes localization and facial landmark points detection library in pure Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid Face Detected

olekukonko opened this issue · comments

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

  • Go version - go version go1.17.1 darwin/amd64

Observation

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

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.

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