Git Product home page Git Product logo

peterzs / realtime-facial-emotion-analyzer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from susantabiswas/realtime-facial-emotion-analyzer

0.0 1.0 0.0 24.46 MB

Human Emotion Analysis using facial expressions in real-time from webcam feed. Based on the dataset from Kaggle's Facial Emotion Recognition Challenge.

Home Page: https://susantabiswas.github.io/realtime-facial-emotion-analyzer/

License: MIT License

Jupyter Notebook 98.29% Python 1.71%

realtime-facial-emotion-analyzer's Introduction

HitCount

Realtime Emotion Analysis from facial Expressions

Realtime Human Emotion Analysis From facial expressions. It uses a deep Convolutional Neural Network. The model used achieved an accuracy of 63% on the test data. The realtime analyzer assigns a suitable emoji for the current emotion.

Model implementation was done in keras.

Some predicted outputs:

Emojis used:

                                         

Snapshot from Realtime emotion Analyzer

The model prediction for the given frame was Neutral which is evident from the picture.

Model Architecture

List of files

facial Emotions.ipynb : Jupyter notebook with well documented code explaining model preparation from start to training. Can be used for retraining the model.
main.py : main python
webcam_utils : Code for realtime emotion detection from face
prediction_utils : Code for doing prediction on image saved on disk
data_prep : Code for preparing dataset for training
preprocess.py : Code for saving images from csv file

How to run

There are two options:

  1. Realtime emotion detection, for this run:
    python main.py emo_realtime
  2. Emotion detection using image path, for this run:
    python main.py emo_path --path <image path>
    e.g: python main.py emo_path --path saved_images/2.jpg

    If you don't want to specify path then just save the image as "1.jpg" inside saved_images folder
    and run: python main.py emo_path

Team Members:

Susanta and Sagnik

Credits

realtime-facial-emotion-analyzer's People

Contributors

gerardo-junior avatar sagnikc avatar susantabiswas 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.