Akashc6/aathraos-mobility
0
AathraOS Traffic Prediction Backend
This repository contains the backend API for the AathraOS smart city dashboard. It provides:
- Real-time Traffic Tracking: Headless CCTV YOLOv8 computer vision object counting (
personsandvehicles). - AI Peak Forecasting: A Random Forest machine learning model that analyzes historical metrics to predict weekly peak congestion hours.
Deployment Details
This project is configured to be deployed natively on Hugging Face Spaces as a Docker space.
The provided Dockerfile installs all necessary dependencies (including OpenCV headless libraries) and boots the FastAPI server via uvicorn using the start.sh configuration script. By default, it runs the fake_api.py data stream so it fits within free-tier hardware limits.
To run the actual YOLO CV tracking model on your own hardware:
- Clone the repository.
- Edit
start.shto runpython3 -m uvicorn api:app --host 0.0.0.0 --port $PORTinstead offake_api.py. - Provide a video or CCTV
.mp4stream directly to the/stream/startendpoint.
