Skip to content

hima065/Emotion-detection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

AI Human Emotion Detection System

πŸ“Œ Project Overview

The AI Human Emotion Detection System is a deep learning application that detects human emotions in real time using a webcam. It uses OpenCV for face detection and a Convolutional Neural Network (CNN) trained on the FER-2013 dataset to classify facial expressions into seven emotions.

🎯 Features

  • Real-time webcam emotion detection
  • Face detection using OpenCV
  • Emotion classification using a CNN model
  • Detects seven emotions:
    • Angry
    • Disgust
    • Fear
    • Happy
    • Neutral
    • Sad
    • Surprise
  • Confidence score display
  • MySQL database integration for storing predictions
  • Easy-to-use interface

πŸ› οΈ Technologies Used

  • Python
  • TensorFlow / Keras
  • OpenCV
  • NumPy
  • MySQL
  • FastAPI (Backend)
  • (Frontend)
  • Git & GitHub

πŸ“‚ Project Structure

Emotion-detection/ β”‚ β”œβ”€β”€ backend/ β”œβ”€β”€ dataset/ β”œβ”€β”€ frontend/ β”œβ”€β”€ model/ β”‚ β”œβ”€β”€ detect_emotion.py β”‚ β”œβ”€β”€ train_model.py β”‚ β”œβ”€β”€ emotion_model.h5 β”‚ β”œβ”€β”€ db.py β”‚ β”œβ”€β”€ labels.txt β”‚ └── haarcascade_frontalface_default.xml β”‚ β”œβ”€β”€ requirements.txt β”œβ”€β”€ README.md

πŸ“Š Dataset

Dataset: FER-2013

The model is trained to classify facial expressions into seven emotion categories using grayscale facial images.

βš™οΈ Installation

Clone the repository:

git clone https://github.com/hima065/Emotion-Detection.git

Go to the project folder:

cd Emotion-detection

Install the required packages:

pip install -r requirements.txt

▢️ Run the Project

Run the application:

python model/detect_emotion.py

πŸ“ˆ Future Enhancements

  • User authentication
  • Emotion analytics dashboard
  • PDF and CSV report generation
  • Email notifications
  • Cloud deployment
  • Mobile application integration

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages