Description
Emotion Detection using AI
Tech: Python 3.x + OpenCV + DeepFace
Level: B.Tech / MCA Intermediate
Category: Python & AI — Tech Mishra
Features
- Detects 7 emotions: happy, sad, angry, surprise, fear, disgust, neutral
- Real-time webcam detection with colored bounding boxes
- Static image analysis
- Session emotion summary at the end
- Screenshot capture during live session
- Works with DeepFace (accurate) or OpenCV fallback (basic)
Requirements
opencv-python
deepface (optional — more accurate)
tensorflow (required for deepface)
Installation & Run
# Basic (OpenCV fallback):
pip install opencv-python
# Advanced (DeepFace — recommended):
pip install deepface tensorflow opencv-python
python app.py
Usage
- Mode 1: Real-time webcam (press ‘s’ screenshot, ‘q’ quit)
- Mode 2: Analyze a static image file
- Output saved to
emotion_screenshots/andemotion_output.jpg
Purchased from Tech Mishra — a-pexdeveloper.in





Reviews
There are no reviews yet.