Emotion Detection from Video using YOLOv8 and ResNet18
This project detects human emotions from uploaded videos using a combination of YOLOv8 for face detection and a ResNet18-based CNN classifier trained on the FER2013 dataset.
๐ Features
Detect faces in videos using YOLOv8.
Predict emotions like happy, sad, fear, surprise, etc., using a ResNet18 model.
Upload and visualize the results via a clean Streamlit web UI.
Export processed videos with annotated face boxes and predicted emotions.
๐ง Emotions Detected
Angry
Disgust
Fear
Happy
Sad
Surprise
Neutral
๐๏ธ Project Structure
๐ง Installation
Option 1: Run Locally
Open your browser at http://localhost:8501
Option 2: Run with Docker
Visit http://localhost:8501
๐ฅ Required Downloads
YOLOv8n face detector: Download yolov8n-face.pt โ save to
models/๐งพ Requirements
๐โโ๏ธ Streamlit
0 likes ยท 9 views ยท Sep 21, 2025
Developed emotion detection from video using YOLOv8 and ResNet18.
Timeline
Jul 7, 2025 - Jul 12, 2025