I built and trained a convolutional neural network (CNN) in Keras from scratch to recognize facial expressions. The data consists of 48x48 pixel grayscale images of faces. The objective is to classify each face based on the emotion shown in the facial expression into one of seven categories (0=Angry
, 1=Disgust
, 2=Fear
, 3=Happy
, 4=Sad
, 5=Surprise
, 6=Neutral
). I used OpenCV to automatically detect faces in images and draw bounding boxes around them. I had trained, saved, and exported the CNN, I directly served the trained model to a web interface and perform real-time facial expression recognition on video and image data and then deployed it using heroku.
- 1.) Introduction and Overview
- 2.) Explore the Dataset
- 3.) Generate Training and Validation Batches
- 4.) Create a Convolutional Neural Network (CNN) Model
- 5.) Train and Evaluate Model
- 6.) Save and Serialize Model as JSON String
- 7.) Create a Flask App to Serve Predictions
- 8.) Create a Class to Output Model Predictions
- 9.) Design an HTML Template for the Flask App
- 10.) Use Model to Recognize Facial Expressions in Videos
- 11.) Deploy on heroku
For Complete info checkout my Medium Blog on Facial Expression Detection
To learn more about these Resources you can Refer to some of these articles written by Me:-
https://sites.google.com/view/geeky-traveller/computer-vision/facial-landmarks-detection
if you use this repo in your project don't forget to mention us as Contributer in it . And Don't forget to tag us Linkedin, instagram, facebook , twitter, Github
============================================================================
I am a Machine Learning enthusiast, an Actions on Google Developer, Internet of things, Alexa Skills, and Image processing developer. I have a keen interest in Image processing and Andriod development. I am Currently studying at Chandigarh University, Punjab.
My PortFolio You can find me at:- Linkedin or Github .
Email: vaibhav.hariramani01@gmail.com
Download THE VAIBHAV HARIRAMANI APP
The Vaibhav Hariramani App (Latest Version)
Download THE VAIBHAV HARIRAMANI APP consist of Tutorials,Projects,Blogs and Vlogs of our Site developed Using Android Studio with Web View try installing it in your android device.
Happy coding ❤️ .