VEHIX is a computer vision platform designed for traffic monitoring, road surveillance, and vehicle classification. It pairs a high-performance FastAPI backend executing Ultralytics YOLOv8 inference with a modern React dashboard to process images, identify vehicle categories, and compute traffic metrics.
flowchart TD
Video[" Traffic Camera Feed / <br/> Surveillance Frames "] --> Ingest[" FastAPI Ingestion <br/> Endpoint "]
Ingest --> Pre[" Image Preprocessing <br/> (OpenCV Resize & Norm) "]
Pre --> YOLO[" Ultralytics YOLOv8 <br/> Neural Inference "]
YOLO --> BBox[" Bounding Box & <br/> Confidence Localization "]
BBox --> Class[" Multi-Class Vehicle <br/> (Cars, Trucks, Buses) "]
Class --> Density[" Traffic Density & <br/> Flow Counter Engine "]
Density --> API[" FastAPI JSON Telemetry <br/> + Annotated Frames "]
API --> UI[" React 18 & Recharts <br/> Analytics Dashboard "]
- Neural object detection and bounding box localization using YOLOv8 nano models.
- Multi-class categorization isolating cars, buses, trucks, motorcycles, and bicycles.
- Automated per-class vehicle counting and visual distribution metrics.
- Image generation with rendered bounding boxes, labels, and percentage confidence markers.
- Web analytics dashboard featuring donut breakdown charts and detection coordinate tables.
- Python 3.10+
- FastAPI & Uvicorn
- Ultralytics YOLOv8
- OpenCV & NumPy
- React 18 & TypeScript
- Vite & Tailwind CSS
- Recharts
- Python 3.10, 3.11, or 3.12
- Node.js 18 or higher
# 1. Start Backend
python -m venv backend/.venv
source backend/.venv/bin/activate # On Windows: backend\.venv\Scripts\activate
pip install -r backend/requirements.txt
uvicorn backend.main:app --host 127.0.0.1 --port 8000 --reload
# 2. Start Frontend
cd frontend
npm install
npm run devDeveloper: ISBANDU RAHUMAN R
GitHub: https://github.com/ISBANDURAHUMAN-R
