atulapra / Emotion-detection

Real-time Facial Emotion Detection using deep learning
MIT License
1.17k stars 476 forks source link
computer-vision deep-learning emotion-detection emotion-recognition haar-cascade opencv opencv-python tflearn

Emotion detection using deep learning

Introduction

This project aims to classify the emotion on a person's face into one of seven categories, using deep convolutional neural networks. The model is trained on the FER-2013 dataset which was published on International Conference on Machine Learning (ICML). This dataset consists of 35887 grayscale, 48x48 sized face images with seven emotions - angry, disgusted, fearful, happy, neutral, sad and surprised.

Dependencies

Basic Usage

The repository is currently compatible with tensorflow-2.0 and makes use of the Keras API using the tensorflow.keras library.

git clone https://github.com/atulapra/Emotion-detection.git
cd Emotion-detection
cd src
python emotions.py --mode train
cd src
python emotions.py --mode display

Accuracy plot

Data Preparation (optional)

Algorithm

References