pip install -r requirements.txtstreamlit run app.pyThe app will open at http://localhost:8501
- Violation Detection: Upload traffic images → get annotated results with detected violations
- Analytics Dashboard: Real-time statistics, charts, hotspot mapping
- System Architecture: Visual explanation of the full pipeline
- About: Problem statement, solution overview, impact metrics
- Real Mode: If
ultralyticsandeasyocrare installed, uses actual YOLOv8 + EasyOCR - Simulation Mode: Falls back to realistic mock detections if models aren't available
- Push this folder to a GitHub repo
- Go to https://share.streamlit.io
- Connect your repo
- Set
app.pyas the main file - Deploy! You'll get a public URL like
https://yourapp.streamlit.app
Search for "Indian traffic" images or use:
- Bengaluru traffic junction photos
- Two-wheeler/motorcycle on Indian roads
- Traffic signal/intersection images
- Streamlit (Frontend)
- YOLOv8 / Ultralytics (Object Detection)
- EasyOCR (License Plate Reading)
- OpenCV (Image Processing)
- Plotly (Charts & Analytics)