Real-time face detection and emotion/gender classification using fer2013/IMDB datasets with a keras CNN model and openCV.
For more information please consult the publication
python3 image_emotion_gender_demo.py
if you wanna listen to music and show letters, make files named [happy,sad,natural,fear,surprise,disgust] in emotion_result
python3 image_emotion_gender_demo.py ../images/test_image.jpg
Download the fer2013.tar.gz file from here
Move the downloaded file to the datasets directory inside this repository.
Untar the file:
tar -xzf fer2013.tar
Run the train_emotion_classification.py file
python3 train_emotion_classifier.py
Download the imdb_crop.tar file from here (It's the 7GB button with the tittle Download faces only).
Move the downloaded file to the datasets directory inside this repository.
Untar the file:
tar -xfv imdb_crop.tar
Run the train_gender_classification.py file
python3 train_gender_classifier.py