Giter VIP home page Giter VIP logo

aravind-sl / real_time_face_emotion_detection Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 2.0 67.28 MB

This project is a real-time webcam-based face emotion detection application built using Streamlit. It employs the Haar Cascade classifier for face detection and a transfer-learned ImageNet model trained on the FER 2013 dataset for facial emotion classification.

Python 100.00%
deep-learning emotion-detection image-processing machine-learning real-time video-processing video-streaming

real_time_face_emotion_detection's Introduction

Real-Time Webcam Face Emotion Detection with Streamlit

Overview

This project leverages Streamlit to create a user-friendly interface for real-time webcam-based face emotion detection. The application utilizes the Haar Cascade classifier for face detection and a transfer-learned ImageNet model trained on the FER 2013 dataset for facial emotion classification.

Features

  • Streamlit Web Interface: The application provides a seamless and interactive user experience through the Streamlit framework.

  • Face Detection: Haar Cascade classifier is employed to detect faces in real-time from the webcam feed.

  • Emotion Classification: A transfer-learned ImageNet model, trained on the FER 2013 dataset, is used for accurate emotion classification.

  • Real-Time Updates: Emotion predictions are dynamically updated and displayed on the Streamlit app, providing instant feedback on detected facial expressions.

Installation

  1. Clone the repository:

    git clone https://github.com/Aravind-SL/Real_Time_Face_Emotion_Detection.git
    cd Real_Time_Face_Emotion_Detection```
    
  2. Install dependencies:

    pip install -r requirements.txt
  3. Run the Streamlit app:

    streamlit run app.py

Usage

  1. Open the Streamlit app in your web browser: Navigate to the provided URL after running the streamlit run app.py command.

  2. Webcam Feed: The webcam feed will be displayed on the Streamlit app, with faces highlighted by the Haar Cascade classifier.

  3. Real-Time Emotion Predictions: Emotion predictions will be overlaid on detected faces in real-time.

  4. Experiment: Try different facial expressions to observe the real-time emotion classification.

Contributing

Contributions are encouraged! Feel free to open an issue or submit a pull request for any improvements or additional features.

Drawbacks and Future Improvements

While the current model for real-time webcam face emotion detection has proven effective for Happy, Sad, Surprised, Angry and Neutral, it does have some limitations that should be acknowledged. Notably, the model struggles to accurately predict fear and disgust emotions.

License

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

Acknowledgments

The emotion detection model is based on a transfer-learned ImageNet architecture trained on the FER 2013 dataset.

real_time_face_emotion_detection's People

Contributors

aravind-sl avatar amirth24 avatar

Stargazers

Vishwajeet Singh Rana avatar

Watchers

 avatar

Forkers

amirth24 sshuster

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.