A real-time drowsiness detection prototype that uses your device camera (laptop/mobile/tablet) to capture an image, process it using deep learning models, and predict whether the driver is alert or drowsy.
- Uses your webcam to take a snapshot.
- Detects eye status (open/closed) using a CNN-based model.
- Detects yawning using a separate image classifier.
- Combines both predictions with weighted logic to infer drowsiness.
- Models are preloaded to avoid lag during prediction.
- Frontend: Streamlit + HTML + JS Webcam Interface
- Backend: Python
- Models:
eye_classifier_model.kerasyawn_detection_model.keras
- The
combinedModel.pycode has various different implementation that can be used for testing, real applications that best fits the use case of the user.