GithubHelp home page GithubHelp logo

op27 / live-emotion-color-detector Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 12 KB

A real-time application using Python and OpenCV for detecting and color-coding human emotions live via webcam. Utilizes the RMN model on FER-2013 dataset, made useful for user interaction.

License: MIT License

Python 100.00%
color-coding computer-vision emotion-detection facial-expression-recognition fer2013 residual-masking-network

live-emotion-color-detector's Introduction

Live-Emotion-Color-Detector

The Live-Emotion-Color-Detector is an application designed to detect human emotions in real-time using a webcam feed. Utilizing the robust RMN model trained on the FER-2013 dataset, this application classifies facial expressions into distinct emotions and highlights them with unique color codes. This application serves as a uselful tool for augmenting interactive experiences and engaging users with intuitive emotion recognition.

Sample: Detected Emotions

detected emotions

Image: Face images courtesy of the AICE

Features

  • Real-time Emotion Detection: Quickly identifies and classifies emotions from facial expressions as they occur.
  • Color-Coded Feedback: Assigns unique colors to different emotions for intuitive and immediate understanding.
  • Flexible Application: Ideal for diverse contexts including interactive installations, educational tools, and enhancing customer service experiences with intuitive emotion recognition.

Color Coding for Emotions

The Live-Emotion-Color-Detector uses a distinct color code to visually represent each detected emotion in real-time. This approach allows for immediate and intuitive recognition of the emotional state being displayed. Below is the color coding rule used by the application:

  • Angry: Red RGB(0, 0, 255)
  • Disgust: Dark Green RGB(0, 128, 0)
  • Fear: Magenta RGB(255, 0, 255)
  • Happy: Pink RGB(147, 20, 255)
  • Sad: Blue RGB(255, 0, 0)
  • Surprise: Cyan RGB(0, 255, 255)
  • Neutral: White RGB(255, 255, 255)

Each color has been carefully selected to represent the essence of its corresponding emotion, enhancing the user's ability to quickly understand and react to the detected emotional states.

Launch Instructions

Prerequisites

Ensure you have the following installed:

  • Python 3.8 or later
  • OpenCV
  • TensorFlow

Installation

  1. Clone the repository to your local machine:
    git clone https://github.com/Op27/Live-Emotion-Color-Detector.git
    
  2. Install the required dependencies:
     pip install -r requirements.txt
    
  3. Running the Application To start the application, navigate to the project directory and run:
    python app.py
    

Functional Overview

The Live-Emotion-Color-Detector leverages the power of the Residual Masking Network (RMN), a state-of-the-art facial expression recognition model that has shown remarkable accuracy in emotion detection tasks. The RMN model, which is the centerpiece of this application, performed the best on the FER2013 dataset with an impressive accuracy of 76.82% as of 21 February 2024, making it the leading choice for emotion detection.

About RMN

Facial Expression Recognition using RMN involves analyzing facial expressions from video feed in real-time to classify them into distinct emotions. This model stands out due to its unique approach to handling the spatial hierarchies between facial parts to recognize emotions accurately. For more technical insights, visit the RMN GitHub page.

License

This project is licensed under the MIT License - see the LICENSE file for details.

live-emotion-color-detector's People

Contributors

op27 avatar

Stargazers

 avatar

Watchers

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