π Final Year Project (FYP) β Bachelor of Information Technology
University of Kotli, AJK (2021β2025)
An intelligent real-time traffic surveillance system that automatically detects helmet violations and vehicle number plates from live video feeds β built to automate traffic monitoring and support law enforcement agencies.
Manual traffic monitoring is:
- β Slow, error-prone, and resource-heavy
- β Unable to scale across multiple camera feeds
- β Inconsistent in catching violations in real-time
HelmetEye solves this by using computer vision and deep learning to automatically detect violations, extract number plate data, and log everything to a database β with zero human intervention.
- πͺ Real-time helmet detection using YOLOv12
- π’ Automatic number plate recognition via OCR
- πΉ Live video feed processing frame by frame
- ποΈ Violation logging with timestamp to database
- β‘ FastAPI backend for fast, scalable API handling
- π» Next.js dashboard for live monitoring and violation history
- π Docs folder with project documentation
| Layer | Technology |
|---|---|
| π§ Detection Model | YOLOv12 |
| π€ OCR Engine | EasyOCR / Tesseract |
| βοΈ Backend | Python, FastAPI |
| π¨ Frontend | Next.js, TypeScript, Tailwind CSS |
| ποΈ Database | PostgreSQL / MySQL |
| ποΈ Computer Vision | OpenCV |
| π Hosting | Firebase App Hosting |
HelmetEye/
β
βββ backend/ # Python FastAPI backend
β βββ models/ # YOLOv12 model files
β βββ routes/ # API endpoints
β βββ ocr/ # Number plate OCR logic
β βββ main.py # FastAPI entry point
β
βββ src/ # Next.js frontend
β βββ app/
β βββ page.tsx # Main dashboard page
β
βββ docs/ # Project documentation
βββ next.config.ts # Next.js configuration
βββ tailwind.config.ts # Tailwind CSS config
βββ apphosting.yaml # Firebase hosting config
πΉ Live Video Feed β π§ YOLOv12 Detection (helmet + number plate) β π€ OCR Engine (extracts plate text) β βοΈ FastAPI Backend (processes & validates) β ποΈ Database (logs violation + timestamp) β π» Next.js Dashboard (displays live results)
- Python 3.9+
- Node.js 18+
- PostgreSQL
# Clone the repo
git clone https://github.com/tashfeen786/HelmetEye.git
cd HelmetEye/backend
# Install Python dependencies
pip install -r requirements.txt
# Start FastAPI server
uvicorn main:app --reload --port 8000# Go to root directory
cd ..
# Install Node dependencies
npm install
# Start Next.js dev server
npm run devCreate a .env file in the backend folder:
DATABASE_URL=postgresql://user:password@localhost:5432/helmeteye
MODEL_PATH=./models/yolov12_helmet.ptπ Coming soon β live demo screenshots
| Metric | Value |
|---|---|
| Detection Model | YOLOv12 |
| Task | Helmet + Number Plate Detection |
| Input | Live video / image frames |
| OCR | Real-time text extraction |
- ποΈ Smart City Infrastructure β automated violation detection
- π Traffic Law Enforcement β instant number plate logging
- π Road Safety Analytics β violation trend reporting
- ποΈ Highway Monitoring β large-scale deployment ready
Tashfeen Aziz β AI/ML Engineer & Python Developer
This project is licensed under the MIT License.
β If you found this project helpful, please give it a star!