EmoDetect

Real-Time Emotion Detection App

This project is a Real-Time Emotion Detection application built with Python, OpenCV, and Keras. It captures video from a webcam, detects faces, and classifies emotions in real-time, specifically tracking “happy” expressions for a duration of approximately 3 seconds. When a “happy” face is detected continuously for this threshold, a message is displayed on the video feed.

Features

Requirements

To run this project, you need the following libraries:

Install dependencies with:

pip install opencv-python keras tensorflow numpy

File Structure

Usage

Clone the Repository

git clone https://github.com/haffarsadok/EmoDetect.git
cd emotion-detection-app

Interact with the Application

Model Details

The emotion detection model is a convolutional neural network (CNN) trained on facial emotion datasets. It classifies emotions into the following categories:

Customization

To adjust the duration for which a “happy” expression must be detected, modify the happy_duration_threshold variable in emotion_detection.py.

Overview

Capture d’écran (922) Capture d’écran (921)

Contributing

We welcome contributions! Feel free to open issues or submit pull requests for improvements or additional features.

License

This project is licensed under the MIT License.