Skip to content

cyril-p-jose/Driver-Monitoring-System

Repository files navigation

🚗 Driver Monitoring System

A simple AI-powered Driver Monitoring System that uses MediaPipe Face Mesh and Computer Vision to monitor driver attention and detect signs of drowsiness in real time through a webcam.


🌐 Live Demo

👉 https://driver-monitoring-system-ugo8.onrender.com

🚀 Features

✅ Face Detection

Detects the driver's face in real time using MediaPipe Face Mesh.

✅ Facial Landmark Tracking

Tracks facial landmarks to analyze driver behavior.

✅ Head Position Monitoring

Detects whether the driver is:

  • Looking Left
  • Looking Right
  • Looking Forward

✅ Drowsiness Detection

Uses Eye Aspect Ratio (EAR) calculations to identify prolonged eye closure.

✅ Real-Time Dashboard

Displays driver status and monitoring information instantly.

✅ Alert System

Provides visual alerts when signs of drowsiness are detected.


⚙️ How It Works

  1. Accesses the webcam feed.
  2. Detects facial landmarks using MediaPipe Face Mesh.
  3. Tracks head orientation.
  4. Calculates Eye Aspect Ratio (EAR).
  5. Monitors eye closure duration.
  6. Triggers drowsiness alerts when thresholds are exceeded.

🛠️ Tech Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript

Backend

  • Python
  • Flask

Computer Vision

  • MediaPipe Face Mesh

Deployment

  • Render

🎯 Current Version

This project is currently a simple foundational version focusing on:

  • Face Detection
  • Head Pose Estimation
  • Basic Drowsiness Detection

The purpose is to build a solid base before integrating more advanced AI-powered safety features.


🔮 Future Enhancements

📱 Mobile Phone Detection

Detect driver distraction caused by mobile phone usage.

🚬 Smoking Detection

Identify smoking behavior while driving.

🦺 Seatbelt Detection

Verify whether the driver is wearing a seatbelt.

👥 Multiple Person Detection

Detect additional occupants inside the vehicle.

🥱 Advanced Yawning Detection

Improve fatigue detection accuracy.

📊 Driver Safety Score

Generate a safety score based on driver behavior.

📜 Alert History

Store and display past alerts.

📈 Analytics Dashboard

Visualize driver behavior trends.

🤖 YOLOv8 Integration

Add object detection capabilities for advanced monitoring.


📚 Learning Outcomes

Through this project, I learned:

  • Real-time webcam processing
  • Facial landmark detection
  • Eye Aspect Ratio (EAR) analysis
  • Computer Vision fundamentals
  • Flask web application development
  • Frontend and backend integration
  • Deployment on Render

🤝 Contributions

Suggestions, feedback, and contributions are welcome.

Feel free to fork the repository and create pull requests.


⭐ Support

If you found this project interesting, consider giving it a ⭐ on GitHub.


Made with ❤️ by Cyril P Jose

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors