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

Convert images to RGB in examples #45

Merged
merged 2 commits into from
Aug 2, 2019
Merged

Convert images to RGB in examples #45

merged 2 commits into from
Aug 2, 2019

Conversation

statsmaths
Copy link
Contributor

As mentioned in #36, and tested on my own data, the input to MTCNN should
be an image in RGB format. The OpenCV library load images as BGR and needs
to be converted.

Note that using the BGR format works okay for high-quality faces, as in the test
example image, but fails to detect more difficult (small, grainy, profile, ect.) faces.

@ipazc
Copy link
Owner

ipazc commented Aug 2, 2019

Note that steps_threshold = [0.6, 0.7, 0.7] can be adjusted in the MTCNN constructor to increase detection rate depending upon the color format. Even though it is true that RGB color format reports better performance with the default thresholds.

@ipazc ipazc merged commit 528d603 into ipazc:master Aug 2, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants