β‘ AI-powered traffic violation detection & digital challan generation system
Bringing Computer Vision + Automation + Smart Enforcement together for the future of safe and smart cities π
π§ This project is a Work-in-Progress (WIP) and is being actively developed.
The Smart e-Challan System is an AI-driven solution that detects traffic violations, extracts vehicle number plates using OCR, and generates e-Challans automatically.
It eliminates manual effort, improves transparency, and enables real-time, data-driven enforcement.
- ποΈ Vehicle & Rider Detection β YOLOv8 / YOLOv9
- π₯ Multi-Object Tracking β ByteTrack
- π ANPR (Automatic Number Plate Recognition) β EasyOCR / PaddleOCR + GFPGAN / Real-ESRGAN
- π¦ Violation Detection β Helmetless riders, red-light jumping, overspeeding, more
- π³ Penalty Escalation Logic β
- 2Γ for repeat violations
- 1.25Γ for new types
- π§ Email Notifications β Auto-send challan proof snapshots
- ποΈ Database Integration β PostgreSQL (via Supabase)
- π Secure APIs β FastAPI + JWT Authentication
- π Frontend Dashboard β Built in Next.js + Tailwind CSS
Frontend (Next.js + Tailwind)
β
FastAPI Backend (Microservices)
β
βββ Detection Service (YOLO + ByteTrack)
βββ ANPR Service (OCR + Image Enhancer)
βββ Violation Service (Rules + Escalation)
βββ Challan Service (Generation + Emailer)
β
PostgreSQL (Supabase Cloud DB)
π§ Current Status
β
Backend structure built (FastAPI + Supabase)
β
Frontend setup (Next.js + Tailwind)
βοΈ Detection + OCR modules under testing
π Upcoming:
Live camera streaming
Public dashboard
Docker + Kubernetes deployment
β‘ Tech Stack
Layer Technologies
Frontend Next.js, Tailwind CSS
Backend FastAPI, SQLAlchemy, JWT
Database Supabase (PostgreSQL)
AI / ML YOLOv8/YOLOv9, ByteTrack
OCR EasyOCR, PaddleOCR
Image Enhancement GFPGAN, Real-ESRGAN
DevOps (Planned) Docker, Kubernetes
π Quick Start
# Clone the repository
git clone https://github.com/your-username/smart-echallan.git
cd smart-echallan
# Backend
cd backend
pip install -r requirements.txt
uvicorn app.main:app --reload
# Frontend
cd frontend
npm install
npm run dev
π€ Contributing
Weβre still building this! Contributions are welcome β€οΈ
Fork the repository
Create a new branch
Submit a PR
π Disclaimer
β οΈ Prototype β Work in Progress.
This is an educational and research project. Not for real-world enforcement use yet.
π Vision
A future where traffic violations are detected instantly, challans are generated digitally, and enforcement becomes transparent, automated, and smart π¦π‘
Thatβs the Smart e-Challan vision!