Skip to content

shivam1808/Facial-Expression-Recognition

Repository files navigation

Facial-Expression-Recognition

This repository contain facial expression using cnn, you can also use webcam as realtime facial expression detection.

Dataset

for dataset I use FER 2013 from kaggle, you can download here https://www.kaggle.com/c/challenges-in-representation-learning-facial-expression-recognition-challenge

Dependency

  • Keras
  • Tensorflow
  • Opencv

Pretrained model

For keras model you can download here https://drive.google.com/open?id=1tvoXCMzDActfOW9ru3Yl4dN3Et1QWXVt and put in keras_model file

How to use

For real time facial emotion recognition you can execute command: python realtime_facial_expression.py

For detecting the facial expression in image you can execute the command python image_test.py tes.jpg

Image testing example

alt text

Output:

alt text


IF YOU ENCOUNTER ANY BUGS OR FOR ANY SUGGESTIONS REGARDING THE IMPROVEMENT OF THE FACIAL EXPRESSION RECOGNITION MODEL FEEL FREE TO CONTACT ME:
Shivam Gupta: shivamguptasg1808@gmail.com