GithubHelp home page GithubHelp logo

face-expression-recognition's Introduction

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

face-expression-recognition's People

Contributors

keshavoct98 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.