Skip to content

keshavoct98/Face-expression-recognition

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Face Expression Recognition

   Facial expression recognition using CNN model trained on fer2013 dataset.

Requirements:

   opencv-python==4.2.0
   matplotlib==3.3.0
   numpy==1.19.1
   pandas==1.0.5
   keras==2.3.1

Demo:

 #For images 
 python demo.py --input [path_to_input_image]
 
 #Example
 python demo.py --input data/inputs/0.jpg 
 #For videos
 python demo.py --input [path_to_input_video] --video 
 
 #Example
 python demo.py --input data/inputs/vid0.mp4 

   Demo ipython notebook - demo.ipynb

Result:

How to train:

  1. Download dataset from this link - https://www.kaggle.com/deadskull7/fer2013
  2. Extract the content of zip inside 'data' folder.
  3. Run below command -
 python train.py --path [path_to_csv_file] --epochs [no_of_epochs]
 #Example - python train.py --path data/fer2013.csv --epochs 15 

References

  1. https://www.kaggle.com/deadskull7/fer2013
  2. https://www.kaggle.com/deadskull7/facreco-90-14-10-epochs
  3. https://opencv-python-tutroals.readthedocs.io/en/latest/py_tutorials/py_objdetect/py_face_detection/py_face_detection.html

About

Recognising human emotions using facial expressions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors