oarriaga / face_classification

Real-time face detection and emotion/gender classification using fer2013/imdb datasets with a keras CNN model and openCV.
MIT License
5.58k stars 1.59k forks source link

Does not return any inference or gender sometimes. #137

Open arunasank opened 4 years ago

arunasank commented 4 years ago

Hi!

Thank you for this project. I tested this project, and on some images, it does not return any result.

https://github.com/oarriaga/face_classification/blob/2f152a227c528567924fa1c7587a2e6b8eb43309/src/image_emotion_gender_demo.py#L62

Returns an empty string. My assumption was that the classifier would show a percentage probability for any image.

arunasank commented 4 years ago

cc/ @oarriaga

arunasank commented 4 years ago

Input image

5003

predicted_test_image

predicted_test_image