download FER2013 dataset
https://www.kaggle.com/msambare/fer2013
In the same folder, create a new folder named data and save the test and train folders in it.
numpy
opencv-python
keras
tensorflow
pillow
- Run
pip install -r requirements.txt
to install all dependencies.
Run Train.py
After Training , you will find the trained model structure and weights are stored in your project directory. emotion_model.json and emotion_model.h5
copy these two files, create model folder in your project directory and paste it.
Run detect_emotion.py
You can either take your live camera feed or paste the path of the video by commenting the code other out in Test.py
Run evaluate.py
Run app.py and visit the link that appears in the Terminal