Get the Driver Monitoring System up and running in under 10 minutes!
# Check Python version (need 3.8+)
python --version
# Check pip
pip --version
# Check git
git --versiongit clone https://github.com/yourusername/Driver_Monitoring_System.git
cd Driver_Monitoring_System# Create virtual environment
python -m venv venv
# Activate it
# Windows:
venv\Scripts\activate
# macOS/Linux:
source venv/bin/activate
# Install packages
pip install -r requirements.txt# YOLOv8 will auto-download on first run
# For custom models, see SETUP.md# Copy template
cp alert_system_template.py alert_system.py
# Edit alert_system.py with your credentials
# (Optional - skip for testing without alerts)python app.pyVisit: http://localhost:5000 π
You can test the detection features without setting up Twilio/Cloudinary:
# Comment out alert configuration in app.py
# configure_alerts() # <-- Comment this line- Open http://localhost:5000
- Click "Start Camera"
- Grant camera permission
- Try these tests:
- β Close eyes for 3 seconds β Drowsiness alert
- β Hold phone to ear β Phone detection
- β Cover mouth with hand β Hand on mouth
pip install --upgrade pip
pip install -r requirements.txt- Check camera permissions
- Close other apps using camera
- Try different browser
# Models will download automatically
# Or check models/ directory exists
mkdir models- π Read SETUP.md for detailed setup
- π Check SECURITY.md before pushing to GitHub
- π― Customize detection thresholds in
app.py - π Deploy to cloud (see README.md)
- π Full Documentation
- π Report Issues
- π¬ Discussions
Happy Monitoring! ππ¨