Coder Social home page Coder Social logo

streamlit-facial-emotion-recognition's Introduction

Screenshot 2024-05-05 at 3 02 56 PM

streamlit-facial-emotion-recognition

Facial Emotion Recognition Integrated with Streamlit

This project implements facial emotion recognition using two models: a custom CNN model and a ResNet50 model. It allows users to view real-time facial emotion predictions through a Streamlit user interface.

Overview

Facial emotion recognition is a computer vision task that involves detecting emotions from images of human faces. This project uses a dataset containing 35,000 grayscale images, each with a resolution of 48x48 pixels. The dataset is split into training and test sets for model training and evaluation.

Models

Model Description
Custom CNN A convolutional neural network (CNN) model implemented using Keras.
- Consists of multiple convolutional and pooling layers followed by fully connected layers.
- Trained on the provided dataset to recognize emotions from facial images.
ResNet50 A pre-trained deep convolutional neural network (CNN) architecture.
- Utilizes residual connections to mitigate vanishing gradient problem.
- Fine-tuned on the facial emotion dataset using transfer learning.

Streamlit UI

The Streamlit user interface allows users to interact with the facial emotion recognition models in real-time. Users can access their webcam to capture live video feed, and the models will predict the dominant emotion present in the detected faces. The predicted emotion labels are displayed directly on the faces in the video feed.

Dataset

The dataset used in this project consists of grayscale images of human faces, each labeled with one of several emotion categories. The images are preprocessed and resized to 48x48 pixels before being used for model training and evaluation.

Usage

To run the project locally:

  1. Clone this repository to your local machine.
  2. Install the required dependencies listed in requirements.txt.
  3. Run the Streamlit application using the command streamlit run app.py.
  4. Access the application in your web browser and interact with the models.

streamlit-facial-emotion-recognition's People

Contributors

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