DriveSafe AI is a browser-based artificial intelligence system developed by Group Fan Tech Sticks as part of the Capaciti Tech Career Accelerator AI Bootcamp (Week 3). The system addresses driver fatigue – a leading contributor to road accidents in South Africa – through real-time computer vision and image classification. Using a webcam feed.
# 🚗 DriveSafe AI
> **Real-time driver fatigue detection powered by computer vision — keeping South African roads safer.**
---
## 📌 Overview
**DriveSafe AI** is a browser-based artificial intelligence system developed by **Group Fan Tech Sticks** as part of the **Capaciti Tech Career Accelerator AI Bootcamp (Week 3)**.
The system addresses **driver fatigue** — one of the leading contributors to road accidents in South Africa — through real-time computer vision and image classification using a live webcam feed. No hardware installations required; it runs entirely in the browser.
---
## 🚨 The Problem
Driver fatigue is a silent killer on South African roads. Drowsy drivers experience:
- Slower reaction times
- Reduced situational awareness
- Microsleep episodes behind the wheel
DriveSafe AI aims to detect early warning signs of fatigue and alert drivers before it's too late.
---
## ✨ Features
- 🎥 **Live Webcam Feed** — Captures real-time video directly from the driver's browser
- 🧠 **AI Image Classification** — Detects signs of drowsiness using computer vision models
- ⚡ **Real-Time Alerts** — Instantly warns the driver when fatigue is detected
- 🌐 **Browser-Based** — No installation needed; runs entirely in the browser
- 🔒 **Privacy First** — All processing happens locally; no video data is stored or transmitted
---
## 🛠️ Tech Stack
| Layer | Technology |
|---|---|
| Frontend | HTML5, CSS3, JavaScript |
| AI / ML | TensorFlow.js / Computer Vision |
| Camera Access | WebRTC (getUserMedia API) |
| Classification | Image Classification Model |
| Platform | Browser-based (Chrome recommended) |
---
## 🚀 Getting Started
### Prerequisites
- A modern web browser (Google Chrome recommended)
- A working webcam
- Internet connection (for initial model load)
### Installation
```bash
# Clone the repository
git clone
github.com
# Navigate into the project folder
cd drivesafe-ai
# Open in browser
open index.html
```
> …