A production-ready Advanced Driver Assistance System (ADAS) powered by computer vision and deep learning. Trained on ~160 GB of driving datasets, this system integrates 8 safety-critical components, from lane departure warnings to driver drowsiness monitoring, delivering real-time performance with fully local processing.
- 8 Production-Ready ADAS Components (Lane Detection, FCW, Pedestrian Detection, etc.)
- A Unified "The ADAS System" Mode, for running 7 road-based systems simultaneously
- Apple Silicon-optimized performance with MPS (Metal Performance Shaders)
- Fully Local Processing, no cloud dependencies after setup
- Interactive Streamlit UI with real-time running
- ~160 GB Training Data across multiple benchmark datasets
- Model: UNet + ResNet18 Segmentation
- Dataset: CULane (~93 GB)
- Features:
- Real-time lane boundary detection
- Vehicle offset calculation from lane center
- Configurable departure threshold warning
- Model: YOLOv8n (COCO 2017)
- Dataset: COCO 2017 (~25 GB)
- Features:
- Vehicle detection (cars, trucks, buses)
- SORT multi-object tracking
- Time-To-Collision (TTC) calculation with configurable threshold
- Model: YOLOv8n (COCO 2017)
- Dataset: COCO 2017 (~25 GB)
- Features:
- Real-time pedestrian detection
- Distance-based warning system
- Height-based proximity estimation
- Model: YOLOv8n (COCO 2017)
- Dataset: COCO 2017 (~25 GB)
- Features:
- Detects bicycles and motorcycles
- Separate alerts for different vehicle types
- Model: YOLOv8n (COCO 2017)
- Dataset: COCO 2017 (~25 GB)
- Features:
- Detects 6 animal classes (cat, dog, horse, sheep, cow, bear)
- Distance-based warning system
- Model: YOLOv8n (MTSD)
- Dataset: MTSD (~8.1 GB)
- Features:
- Detects common traffic sign types
- Real-time sign classification
- Configurable confidence thresholds
- Model: YOLOv8n (LISA)
- Dataset: LISA (~10 GB)
- Features:
- Detects traffic lights in various conditions
- Classifies state (Red, Yellow, Green, Off)
- Model: MediaPipe Face Mesh + EAR Algorithm
- Calibration: UTA-RLDD (~23 GB)
- Features:
- 468-point facial landmark detection
- Eye Aspect Ratio (EAR) monitoring
- Fatigue and drowsiness alerts
- Real-time blink rate analysis
Run 7 road-based systems simultaneously:
- Lane Detection + LDW
- Forward Collision Warning
- Pedestrian Detection
- Two-Wheeler Detection
- Animal Awareness
- Traffic Sign Recognition
- Traffic Light Detection
Features:
- Consolidated multi-system visualization
- Unified warning aggregation
- Independent component enable/disable via UI
- Optimized for real-time multi-tasking
- Make sure you have Python 3.8+ set up, clone this repository on your local machine, and set up the required datasets.
- Create a virtual environment, install the required dependencies and run the app:
pip install -r requirements.txt
streamlit run app.pyContributions are welcome!
Distributed under the MIT License.









