How jagadish-2003/smart-vehicle-number-plate-recognition-vehicle-management-system works
This is a Streamlit ANPR and vehicle-management application. A user submits an image, browser-camera frame, or video; the detection service recognizes and validates plates, suppresses duplicate saves, and records detections. Detection results can be enriched with vehicle, challan, blacklist, and authorization details. The app also provides vehicle administration, history, analytics, and settings. The README documents the page capabilities and startup responsibilities; several page-to-service and reporting links are shown as documented behavior because their source was not excerpted.
Main entry points: detection_service.py Detection pipeline · vehicle_service.py Vehicle lookup · app.py App bootstrap · database.py SQLite database
Components 28
Streamlit interface
- App bootstrap
app.py - Image detection
app_pages/image_detection.py - Live camera
app_pages/live_camera.py - Video detection
app_pages/video_detection.py - Vehicle manager
app_pages/vehicle_manager.py - Detection history
app_pages/history.py - Analytics dashboard
app_pages/analytics.py - Dashboard
app_pages/dashboard.py - Settings page
app_pages/settings.py - Vehicle report card
components/vehicle_card.py
Plate recognition
- Detection pipeline
services/detection_service.py - YOLO plate detector
ai/vehicle_plate_detector.py - Best-of-two OCR
ai/ocr_engine.py - Plate preprocessing
ai/preprocessing.py - Video processor
ai/video_processor.py - Model loader
ai/model_loader.py
Vehicle services
- Vehicle lookup
services/vehicle_service.py - History service
services/history_service.py - Analytics service
services/analytics_service.py - Settings service
services/settings_service.py
Data and configuration
- SQLite database
database/database.py - Analytics queries
database/analytics.py - Config manager
config/config_manager.py - Config settings
config/settings.py
Application support
- Plate validation
utils/validation.py - Duplicate cache
utils/cache.py - Application logger
utils/logger.py
Other components
- User
Connections 39
- User → App bootstrap: opens app
README.md - App bootstrap → Config manager: loads config
README.md - App bootstrap → Model loader: loads model
README.md - App bootstrap → SQLite database: initializes database
README.md - App bootstrap → Duplicate cache: initializes cache
README.md - User → Image detection: uploads image
README.md - User → Live camera: captures frame
README.md - User → Video detection: uploads video
README.md - Image detection → Detection pipeline: processes image
README.md - Live camera → Detection pipeline: processes frames
README.md - Video detection → Video processor: processes video
README.md - Video processor → Detection pipeline: processes frames
- Detection pipeline → YOLO plate detector: detects plates
services/detection_service.py - Detection pipeline → Best-of-two OCR: reads crops
services/detection_service.py - Best-of-two OCR → Plate preprocessing: preprocesses crop
ai/ocr_engine.py - Detection pipeline → Plate validation: validates text
services/detection_service.py - Detection pipeline → Duplicate cache: checks duplicates
services/detection_service.py - Detection pipeline → SQLite database: saves detections
services/detection_service.py - Image detection → Vehicle lookup: looks up vehicle
README.md - Live camera → Vehicle lookup: looks up vehicle
README.md - Video detection → Vehicle lookup: looks up vehicle
README.md - Vehicle lookup → SQLite database: reads vehicle records
services/vehicle_service.py - Image detection → Vehicle report card: shows report
README.md - Live camera → Vehicle report card: shows report
README.md - Video detection → Vehicle report card: shows report
README.md - Vehicle manager → Vehicle lookup: manages records
README.md - Vehicle report card → Vehicle lookup: quick-adds vehicle
components/vehicle_card.py - Detection history → History service: manages history
README.md - History service → SQLite database: queries detections
services/history_service.py - Analytics dashboard → Analytics service: requests analytics
README.md - Analytics service → Analytics queries: queries trends
- Dashboard → Analytics service: shows KPIs
- Settings page → Settings service: manages settings
README.md - Settings service → Config manager: updates config
services/settings_service.py - Settings service → Duplicate cache: clears cache
services/settings_service.py - Settings service → SQLite database: clears detections
services/settings_service.py - Config manager → Config settings: gets config path
config/config_manager.py - YOLO plate detector → Application logger: logs inference
ai/vehicle_plate_detector.py - Best-of-two OCR → Application logger: logs OCR choice
ai/ocr_engine.py