Git Product home page Git Product logo

emotion-recognition's Introduction

Instructions for running the code

!pip install numpy
!pip install argparse
!pip install sklearn
!pip install scikit-image
!pip install pandas
!pip install hyperopt
!pip install dlib
  • Run the image_processing_and_features_extraction.py to perform the image processiong and feature extraction process to generate Fez2013_feature folder containing the traing set and test set
python image_processing_and_features_extraction.py
  • Train and test model using emotion_classifier.py
python emotion_classifier.py

What have we achieved?

Image Processing using face detection and reshaping the images to 48X48 size to uniform the alignment

Feature extraction using

  • Gabor Filter
  • Histogram of Oriented Gradient (HOG)
  • Facial Landmarks Extraction

Support-Vector Machine Model training on training set with RBF kernel function

Validation and testing with generation of accuracy score

Result and performance

Type Value
Total Samples 35887
Number of Training Samples 28709
Number of Validation Samples 3589
Number of Test Samples 3589
Time taken in image processing stage 2400.6 sec
Time taken in SVM model training 823.9 sec
Accuracy for 7 emotion detection 48.4%
Accuracy for 5 emotion detection 55.2%

emotion-recognition's People

Contributors

siddhantmittal7 avatar

Watchers

James Cloos 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.