-
Notifications
You must be signed in to change notification settings - Fork 0
Home
The Vehicle Number Plate Detection System is an advanced, automated solution designed to accurately detect and recognize license plates from video feeds using state-of-the-art computer vision and Optical Character Recognition (OCR) techniques. Built to address the limitations of traditional Automatic Number Plate Recognition (ANPR) systems—specifically high costs, hardware dependency, and accuracy issues in challenging environments—this project leverages a modular, software-centric architecture.
The system integrates YOLOv8 for precise vehicle and plate localization, followed by a tiered OCR pipeline (RapidOCR and EasyOCR) and robust image preprocessing (contrast enhancement, sharpening, and thresholding). Originally developed on Raspberry Pi 3B+ hardware, the system successfully detects and reads plates from vehicles moving at speeds up to 30 km/h, offering a cost-effective, scalable alternative to proprietary hardware solutions.
View College Project Report: https://github.com/SamuelDevadass/License-Plate-Detector/blob/main/VEHICLE%20NUMBER%20PLATE%20DETEECTION%20REPORT.pdf
Existing ANPR systems often struggle with:
- High Costs: Reliance on specialized, expensive hardware and software licenses.
- Hardware Dependency: Inflexibility in deployment across diverse environments.
- Accuracy Limitations: Poor performance in low-light conditions, low-resolution feeds, or when plates are partially obscured.
- Scalability: Difficulty in integrating with modern, cloud-based traffic management or security infrastructure.
This project offers a comprehensive, open-source alternative that prioritizes flexibility, accuracy, and cost-efficiency.
- Real-Time Detection: Captures video streams and processes frames in real-time to identify vehicles.
-
Tiered Processing Pipeline:
- Localization: Uses YOLOv8 to detect vehicles and isolate license plate regions.
- Preprocessing: Applies advanced image enhancement (contrast, sharpness, noise reduction) using PIL and OpenCV.
- Fallback Logic: Automatically switches between high-speed (RapidOCR) and deep-learning (EasyOCR) engines if initial detection fails.
- Modular Architecture: Designed as a Python OOP-based "Modular Monolith," allowing for easy testing, maintenance, and future expansion.
- Hardware Agnostic: While optimized for Raspberry Pi, the software logic is portable to any environment supporting Python and OpenCV.
- Accuracy: Successfully validated against test cases with >82% success rate on diverse vehicle inputs.
- Performance: Optimized for low-latency processing suitable for traffic monitoring and access control.
- Cost-Effectiveness: Utilizes off-the-shelf hardware and open-source libraries (YOLO, OpenCV, RapidOCR).
The project is currently in the Modular Monolith phase. The following roadmap outlines the evolution from a standalone script to an enterprise-grade, service-oriented system.
- Custom YOLO Training: Transition from generic object detection models to a fine-tuned YOLO model specifically trained on license plate datasets. This aims to eliminate background noise and "hallucinations" caused by environmental factors.
- Persistent Data Layer: Move beyond ephemeral script-based logging by implementing ODBC connectivity. This will enable the system to write detection results directly to a persistent database for historical analysis and auditing.
- Containerization: Wrap the inference engine in Docker containers to ensure consistent deployment across different environments (Cloud, Edge, On-Premise).
- Service-Oriented Architecture (SOA): Evolve the current monolithic code into a Microservices or Service-Oriented architecture. This will allow independent scaling of detection, OCR, and database services for enterprise-level load handling.
- Telemetry & Metadata: Design a robust database schema to store not just the plate number, but also timestamps, confidence scores, image metadata, and location data.
- High-Precision Utility: Achieve "near-zero" false-positive rates in varied lighting and angle conditions, qualifying the system for professional law enforcement and security applications.
- Enterprise Scaling: Simulate the full infrastructure required for high-availability, large-scale license plate recognition systems capable of managing thousands of concurrent streams.
-
Cross-Domain Application: Leverage the core computer vision pipeline for adjacent fields:
- Agriculture: Crop disease detection using similar contour and classification techniques.
- Healthcare: Preliminary analysis of medical imaging (CT scans, X-rays) using the same preprocessing and OCR logic.
This system represents a significant step toward democratizing access to high-precision ANPR technology. By combining the speed of modern deep learning (YOLO) with the flexibility of modular Python architecture, it provides a robust foundation for current traffic management needs while remaining adaptable for future enterprise and cross-industry applications.
Note: This project is currently under development.