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.6k stars 1.59k forks source link

Different Emotion Results in Video Demos #104

Open kaisark opened 5 years ago

kaisark commented 5 years ago

Cool project, but I noticed a few things:

  1. As already noted, Gender seems to be face offset (crop) sensitive. haarcascade_frontalface_default.xml related???
  2. Emotion sometimes produces different results

When I ran the following video demo files, I received different emotion results (emotion_model_path = '../trained_models/emotion_models/fer2013_mini_XCEPTION.102-0.66.hdf5'):

Keras==2.2.4 tensorflow-gpu==1.12.0 pandas==0.23.4 numpy==1.14.5 h5py==2.8.0 statistics==1.0.3.5 opencv-python==3.4.5.20

lisa-eg-wrong-animated gif-downsized_large 1

animated gif-downsized_large

lisa-sad-animated gif-downsized_large 1

madukanadeeshani commented 3 years ago

hi, how did you test for videos currently it is supporting the webcam option. Can you please help me I want to test for some videos?