Face Expression Recognition with ensemble for InceptionV3, ResNet50, MobileNetV2
- Table of Contents
- About The Project
- Getting Started
- Usage
- Product Screenshot
- Roadmap
- Contributing
- License
- Contact
Facial expression recognition aims to detect the persons feeling by using a video stream from the webcam. This detector can detect 7 human emotions which are Angry, Disgust, Fear, Happy, Neutral, Sad, Surprise
The model was trained using the ICML 2013 Facial Expression Recignition dataset
The training dataset contains:
-
436 disgust images
-
4097 fear images
-
3171 surprise images
-
4965 neutral images
-
7214 happy images
-
84830 sad images
-
3995 angry images
I used the following architecture to train the model on Google Colab and downloaded the weights.
You will need Python (>3.6), TensorFlow 2 to run this.
Installation of required packages is covered under installation
To get a local copy up and running follow these simple example steps.
- Make sure you have python3 setup on your system
- Clone the repo
git clone https://github.com/radioactive11/Facial-Expression-Recognition
- Install requirements
pip install -r requirements.txt
- Open terminal and enter
python3 main.py
- Check port on which Flask Server is running (in this case it is 5000)
-
Open any browser and enter URL (replace port with what you get on running
main.py
)127.0.0.1:<port>
In order to use this app, you must have a working webcam. If you want to run detections on a video, goto camera.py and change (line 11)
self.video = cv2.VideoCapture(0)
to
self.video = cv2.VideoCapture("path to video.mp4")
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Andreea Coaja - Linkedin Profile
Mihail Dorin Iliescu - Linkedin Profile
Jamil Zaitouny - Linkedin Profile
Project Link: https://github.com/Iliescu-Dorin/FaceExpressionEnsemble/