An AI-powered Sleep Detection System built using Python, Flask, OpenCV, MediaPipe, and Pygame.
- 👁️ Real-time Eye Detection
- 😴 Sleep Detection using EAR (Eye Aspect Ratio)
- 🔔 Alarm when sleep is detected
- 📊 Live Dashboard
- 😊 Face Detection
- 👀 Blink Counter
- ⏱️ Sleep Timer
- 🌐 Beautiful Flask Web Interface
- Python
- Flask
- OpenCV
- MediaPipe
- Pygame
- HTML
- CSS
- JavaScript
SleepDetector/
│
├── app.py
├── detector.py
├── shared.py
├── requirements.txt
├── alarm.mp3
│
├── static/
│ └── style.css
│
└── templates/
└── index.html
Clone the repository
git clone https://github.com/HANI622/Sleep-Detection-System.gitGo to project folder
cd Sleep-Detection-SystemInstall requirements
pip install -r requirements.txtRun
python app.pyOpen
http://127.0.0.1:5000
(Add project screenshots here)
Honey
AI & Data Science Student
Give this repository a ⭐ Star.