How arjundeokhile/smart-parking-space-management works
This is a video-based smart-parking detector: the application reads frames, tracks vehicles with YOLO, tests vehicle centers against saved parking polygons, and reports slot occupancy. The same runtime loop updates a Flask dashboard and performance graphs; the dashboard also serves its HTML view and exposes statistics. Logging is configured centrally. The main loop and dashboard relationships are supported by excerpts; additional documented capabilities are included where their implementation was not sampled.
Main entry points: main.py Slot statistics · dashboard.py Dashboard server · polygons.json Parking layout · Input.mp4 Video input
Components 16
Detection and occupancy
- Video input
Input.mp4 - YOLO model
best.pt - Frame capture
main.py - Vehicle tracking
main.py - Vehicle centers
main.py - Polygon testing
main.py - Slot statistics
main.py - Detection display
main.py
Dashboard and monitoring
- Dashboard server
dashboard.py - Live statistics
dashboard.py - Dashboard page
templates/index.html - Performance graphs
performance.py - Central logging
loggerConfig.py
Parking configuration
- Parking layout
polygons.json - Layout editor
main.py
Other components
- Parking operator
Connections 17
- Video input → Frame capture: provides frames
main.py - Frame capture → Vehicle tracking: supplies frames
main.py - YOLO model → Vehicle tracking: tracks vehicles
main.py - Vehicle tracking → Vehicle centers: provides boxes
main.py - Vehicle centers → Polygon testing: tests centers
main.py - Parking layout → Polygon testing: defines regions
main.py - Polygon testing → Slot statistics: counts occupied
main.py - Slot statistics → Detection display: draws status
main.py - Slot statistics → Live statistics: updates statistics
main.py - Slot statistics → Performance graphs: updates graphs
main.py - Layout editor → Parking layout: saves layout
main.py - Parking layout → Layout editor: loads layout
main.py - Dashboard server → Live statistics: serves statistics
dashboard.py - Dashboard server → Dashboard page: renders page
dashboard.py - Dashboard server → Central logging: logs access
dashboard.py - Parking operator → Dashboard server: views dashboard
readme.md - Parking operator → Layout editor: defines slots
readme.md