Skip to content

A web-based Facial Emotion Detection app built with Django, DeepFace, OpenCV, and JavaScript. Detects human emotions like happy, sad, angry, surprise, and more — from uploaded images or live webcam capture. Lightweight, responsive, and perfect for demos, learning, or integration.

Notifications You must be signed in to change notification settings

nishantxcode/emotion-detection-app

Repository files navigation

😊 Emotion Detection AI Web App (Django + DeepFace)

Welcome to the Emotion Detection AI Web App!
This project allows users to upload an image or use their webcam to detect facial emotions using DeepFace and OpenCV, all wrapped in a clean Django interface.

🌐 Live Demo

👉 Try it live here: https://emotion-detection-app-6x5o.onrender.com

📸 Features

🔍 Detect emotions from:

  • Uploaded images
  • Live webcam capture

🤖 Powered by DeepFace for pre-trained emotion recognition
🧠 Displays detected emotion with confidence
🌐 Fully deployed using Render (free)
🎨 Clean and Minimal UI

🛠 Tech Stack

  • Backend: Django
  • Frontend: HTML5 + CSS3 + JS
  • AI/ML: DeepFace (uses TensorFlow backend)
  • Deployment: Render
  • Camera Integration: JavaScript Media API

🚀 How It Works

  1. Upload an image or open webcam.
  2. The image is analyzed using a pre-trained model via DeepFace.
  3. Detected emotion is shown on screen in real-time.

Detectable Emotions:

  • 😠 Angry
  • 😞 Sad
  • 😐 Neutral
  • 😃 Happy
  • 😲 Surprise
  • 😨 Fear
  • 🤢 Disgust

🙏 Credits

  • DeepFace by Serengil
  • TensorFlow & Keras
  • Django Web Framework

❤️ Made With Love

Crafted with care and caffeine by Nishant

📬 Feedback

Got suggestions or feature requests?
Open an issue or connect via LinkedIn!

Don’t forget to star the repo if you like it!

About

A web-based Facial Emotion Detection app built with Django, DeepFace, OpenCV, and JavaScript. Detects human emotions like happy, sad, angry, surprise, and more — from uploaded images or live webcam capture. Lightweight, responsive, and perfect for demos, learning, or integration.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published