Emotion Detection with Convolutional Neural Networks
Emotion Detection with Convolutional Neural Networks
Why?
To explore machine learning techniques for image classification
What?
OpenCV handles face detection. A CNN trained on FER2013 handles emotion classification. Chain them together for live video analysis.
Code
Setup data
For training, we are using the fer2013 black and white emotion-labelled faces dataset. The raw data is available on Kaggle here.
We load our data and apply transformations using the ImageDataGenerator
class. Applying small transformations to our data prevents overfitting which helps when making predictions on new data.