How amanev2005/smartparkingsystem works
Smart Parking System combines camera-based Indian license-plate recognition with parking-slot allocation, vehicle entry/exit tracking, charge calculation, and a Flask web interface. A camera-capture process recognizes plates and sends detections to the backend; the backend manages parking transactions and slot state in SQLite, while users can also submit plates through the web UI. The UI includes transaction details and locally generated PIN-based payment slips. The README describes charging, but the supplied excerpts do not show the full payment implementation or establish how the QR helper is used.
Main entry points: index.html Web interface · camera_capture.py Camera capture · main.js Forms & dashboard · slot.py Parking API
Components 13
Plate Capture
- Camera capture
camera_capture.py - Plate recognition
anpr_yolo_easyocr.py
Parking Backend
- Parking API
slot.py - Slot & transaction handling
slot.py
Parking State
- Database models
models.py - Parking database
parking.db
User Interface
- Web interface
templates/index.html - Forms & dashboard
static/js/main.js - Entry page
templates/entry.html - Exit page
templates/exit.html - Payment slip & PIN
static/js/main.js - QR payment helper
static/qr/qr_payment.py
Other components
- Driver / operator
Connections 12
- Driver / operator → Camera capture: provides vehicle view
- Camera capture → Plate recognition: recognizes frames
camera_capture.py - Camera capture → Parking API: posts detections
camera_capture.py - Parking API → Slot & transaction handling: handles parking requests
slot.py - Slot & transaction handling → Database models: queries and updates
slot.py - Database models → Parking database: persists state
models.py - Driver / operator → Web interface: uses
- Web interface → Forms & dashboard: loads
- Forms & dashboard → Parking API: submits entry and exit
static/js/main.js - Web interface → Entry page: presents entry
- Web interface → Exit page: presents exit
- Forms & dashboard → Payment slip & PIN: generates slip and PIN
static/js/main.js