Coder Social home page Coder Social logo

real_time_emotion_recognition_based_on_face's Introduction

Real Time Human Emotion Detector Demo

It's a emotion recognition demo based on an image-only model. You can simply detect your own emotion through your computer camera. It supports detecting emotion for multiple people, but it may have delay for more than 3 people. For only 1 face, the demo can reach about 20fps in cpu-only mode.

The algorithm first uses OpenCV to extract faces from each frame, then uses an attention Resnet network to detect emotion from faces.

How to run:

  1. Using detector.py to run.
  2. If you don't have a cuda GPU with your machine, please modify the detect_emotion_image function in detector.py
  3. To make the real-time detector work well, please make sure in good illumination

To train your own model:

The model is trained based the Ravdess Dataset and I use OpenCV-tensorflow module to extract all the face area from dataset as training samples. If you want to train your own dataset, please use traintest.py for training.

real_time_emotion_recognition_based_on_face's People

Contributors

wangyx240 avatar

Stargazers

Di Shao avatar  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.