A real-time face emotion detection web application using TensorFlow and OpenCV.
- π₯ Real-time emotion detection via webcam
- π Image upload and emotion analysis
- π Detects 7 emotions: angry, disgust, fear, happy, sad, surprise, neutral
- π― Multiple face detection
- Clone the repository:
git clone https://github.com/Shoaib552/face-emotion-detector.git
cd face-emotion-detector
Set up backend:
bash
cd backend
python -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt
python download_model.py
python app.py
Set up frontend:
bash
cd ../frontend
python -m http.server 8000
Open http://localhost:8000 in your browser.
Technologies Used
Backend: Flask, TensorFlow, OpenCV
Frontend: HTML5, CSS3, JavaScript
Computer Vision: Haar Cascades, CNN
face-emotion-detector/
βββ backend/
β βββ app.py
β βββ utils.py
β βββ requirements.txt
β βββ download_model.py
β βββ emotion_model.h5
β βββ haarcascade_frontalface_default.xml
βββ frontend/
β βββ index.html
β βββ style.css
β βββ script.js
βββ README.md