How pkgollapalli/edge-ai-based-forward-collision-warning-system-mini-adas- works
This repository is a Raspberry Pi forward-collision warning demonstrator, with simulation and hardware modes. Its principal workflow captures a frame, runs an ensemble of three object detectors, reads distance and closing speed, fuses those inputs into SAFE/WARN/BRAKE, then signals the driver. The README also documents ThingsBoard telemetry and separate model-training/compression work; only the runtime pipeline is mapped here because the sampled sources do not establish those experimental workflows. Calls within the runtime are evidenced by src/main.py; hardware and telemetry links are documented in the README.
Main entry points: main.py Pipeline Orchestrator · perception.py Detection Ensemble · fusion.py Risk Fusion · alert.py LEDs and Buzzer
Components 13
ADAS Runtime
- Pipeline Orchestrator
src/main.py - Distance and Speed
src/distance.py - Risk Fusion
src/fusion.py
Object Perception
- Detection Ensemble
src/perception.py - COCO Detector
src/perception.py - DriveIndia Detector
src/perception.py - Pothole Detector
src/perception.py
Driver and Telemetry
- LEDs and Buzzer
src/alert.py - MQTT Telemetry
src
Other components
- Camera
- Ultrasonic Sensor
- Raspberry Pi GPIO
- ThingsBoard
Connections 12
- Camera → Pipeline Orchestrator: provides frames
README.md - Pipeline Orchestrator → Detection Ensemble: runs inference
src/main.py - Detection Ensemble → COCO Detector: invokes model
README.md - Detection Ensemble → DriveIndia Detector: invokes model
README.md - Detection Ensemble → Pothole Detector: invokes model
README.md - Ultrasonic Sensor → Distance and Speed: returns range
README.md - Pipeline Orchestrator → Distance and Speed: reads distance
src/main.py - Pipeline Orchestrator → Risk Fusion: fuses results
src/main.py - Pipeline Orchestrator → LEDs and Buzzer: sets alert level
src/main.py - LEDs and Buzzer → Raspberry Pi GPIO: drives outputs
README.md - Risk Fusion → MQTT Telemetry: reports decision
README.md - MQTT Telemetry → ThingsBoard: publishes MQTT
README.md