Skip to content

MananAli05/Emotion-Detection-CNN

Repository files navigation

Emotion Detection Using Webcam And Image Upload

I developed a Real-Time Facial Emotion Detection System using Deep Learning and Computer Vision. The goal of this project is to recognize human emotions such as happiness, sadness, anger, and neutrality by analyzing facial expressions from a live camera feed or an uploaded image. First, I trained the model on the FER-2013 dataset,which originally contains seven emotion classes. I removed three of these classes and trained the model using only four classes: Angry, Sad, Neutral, and Happy. The trained model was then saved in an .h5 file (named emotion.h5) for emotion detection. This model was trained on a dataset of facial images labeled with different emotions. Captured images are stored in the camera_detects folder.

Clone the Repository

git clone https://github.com/MananAli05/Emotion-Detection-CNN.git cd Emotion-Detection-CNN

How to Run

streamlit run app.py

  1. Install requirements: pip install -r requirements.txt Emotion_Image

About

I developed a Real-Time Facial Emotion Detection System using Deep Learning. It detects emotions like Angry, Sad, Neutral, and Happy from a live camera or image. I trained a model on the FER-2013 dataset (4 selected classes) and saved it as emotion.h5 for real-time emotion recognition using facial expressions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors