Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid Face Detected #51

Closed
olekukonko opened this issue Oct 20, 2021 · 2 comments
Closed

Invalid Face Detected #51

olekukonko opened this issue Oct 20, 2021 · 2 comments

Comments

@olekukonko
Copy link

olekukonko commented Oct 20, 2021

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

@esimov
Copy link
Owner

esimov commented Oct 21, 2021

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
Copy link
Author

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

@esimov esimov closed this as completed Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants