How ganesh4060/enhanced-parking-system works
Enhanced Parking System combines a Flask parking dashboard and account flow with camera-based vehicle/spot detection, plate-text recognition, and live parking-state updates. The main runtime path captures video, detects occupancy, associates OCR text, updates in-memory spot state, and serves status and video to browser views. Registration also persists users in SQLite. The README is empty; the map follows the sampled runtime code and tree, and omits uncertain wiring such as the separate your_project prototype.
Main entry points: routes.py Web routes · run.py Detection runner · models.py User model · dashboard.js Dashboard UI
Components 15
Web interface
- Flask app factory
Enhanced-Parking-System/dp_21/app/__init__.py - Web routes
Enhanced-Parking-System/dp_21/app/routes.py - Dashboard UI
Enhanced-Parking-System/dp_21/app/static/js/dashboard.js - Parking display
Enhanced-Parking-System/dp_21/app/static/js/parking.js - Page templates
Enhanced-Parking-System/dp_21/app/templates
Vision processing
- Detection runner
Enhanced-Parking-System/dp_21/run.py - Video stream
Enhanced-Parking-System/dp_21/detection/video_stream.py - Parking detector
Enhanced-Parking-System/dp_21/detection/model.py - Plate OCR
Enhanced-Parking-System/dp_21/detection/plate_detector.py - YOLO weights
Enhanced-Parking-System/dp_21/smart_parking/weights/best.pt
Parking state
- Parking state
Enhanced-Parking-System/dp_21/app/parking_state.py
Accounts
- SQLite database
Enhanced-Parking-System/dp_21/instance/parking.db - User model
Enhanced-Parking-System/dp_21/app/models.py
Other components
- Browser user
- Video source
Connections 16
- Browser user → Web routes: requests pages
- Web routes → Page templates: renders
- Web routes → Parking state: reads and updates
- Web routes → User model: queries users
- User model → SQLite database: persists users
- Flask app factory → User model: initializes schema
- Dashboard UI → Web routes: polls status
- Parking display → Web routes: polls status
- Detection runner → Video stream: starts stream
- Video source → Video stream: supplies frames
- Detection runner → Parking detector: detects vehicles
- Parking detector → YOLO weights: loads model
- Detection runner → Plate OCR: reads detected text
- Detection runner → Parking state: updates detections
- Web routes → Detection runner: serves latest frame
- Browser user → Dashboard UI: views status