Skip to content

ghassenov/DMS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Driver Monitoring System (DMS) - Computer Vision

A real-time computer vision system that classifies driver states using multiple behavioral metrics to enhance road safety.


Overview

This system analyzes driver behavior in real-time and classifies the driver into one of the following states:

  • 🟢 Alert - Normal driving behavior
  • 🟡 Distracted - Driver is not focused on the road
  • 🟠 Fatigued - Signs of tiredness and reduced alertness
  • 🔴 Drowsy/Microsleep - Critical fatigue state with microsleep episodes
  • ⚫ Unsafe - Seatbelt violation or other safety issues

Features

Real-time State Classification

  • Multi-class driver state detection
  • Continuous monitoring and scoring
  • Immediate alert system

Behavioral Metrics

  • PERCLOS (Percentage of Eye Closure) - Blink duration analysis
  • Yawning Frequency - Mouth opening detection
  • Distraction Duration - Head pose and gaze estimation
  • Seatbelt Compliance - Safety equipment monitoring
  • Hand Position Tracking - Steering wheel interaction

Technical Capabilities

  • Real-time inference with YOLO models
  • Rule-based decision engine
  • Text-to-Speech (TTS) alerts
  • Configurable sensitivity thresholds

Tech Stack

  • Computer Vision: OpenCV, YOLO (v1.pt, v2.pt)
  • Machine Learning: PyTorch, NumPy
  • Audio Alerts: TTS integration
  • Rule Engine: Custom rule-based system

Quick Start

Prerequisites

  • Python 3.8+
  • Webcam or video input source
  • CUDA-capable GPU (recommended)

Installation

  1. Clone the repository
git clone https://github.com/ghassenov/DMS.git
cd DMS
  1. Create virtual environment
python -m venv venv
source venv/bin/activate  # Linux/Mac
# OR
venv\Scripts\activate     # Windows
  1. Install dependencies
pip install -r requirements.txt

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages