Hashmil-Muahmmed08/facial-emotion-detection
title: Facial Emotion Detection emoji: π colorFrom: indigo colorTo: pink sdk: docker app_port: 7860 pinned: false ---
Facial Emotion Detection AI
A deep learningβbased facial emotion recognition system that detects human emotions from images and live webcam input. The project uses a CNN (ResNet-based) model for emotion classification and is deployed as an interactive web application using Gradio.
Live Demo
π Hugging Face App: https://huggingface.co/spaces/okaysatyam/EmotionDetectionAI
Overview
This project focuses on detecting facial emotions by combining classical computer vision techniques with deep learning. Faces are detected using OpenCVβs Haar Cascade, preprocessed, and passed to a ResNet-based convolutional neural network trained on the FER-2013 dataset.
The application supports both image upload and real-time webcam inference and is publicly deployed for demonstration purposes.
Features
- Facial emotion detection from static images
- Real-time emotion detection using webcam
- CNN (ResNet-based) deep learning model
- OpenCV Haar Cascade for face detection
- Interactive Gradio-based web interface
- Publicly deployed on Hugging Face Spaces
Emotion Classes
The model classifies faces into the following seven categories:
- Angry
- Disgust
- Fear
- Happy
- Neutral
- Sad
- Surprise
Tech Stack
- Python
- TensorFlow / Keras
- OpenCV
- NumPy
- Gradio
- Hugging Face Spaces
Project Architecture
- Input image or webcam frame is captured
- Face detection using Haar Cascade classifier
- Face region is resized and normalized
- CNN model predicts emotion class
- Bounding box and emotion label are displayed
