How paras2611/smartparkingsystem works
Smart Parking is an end-to-end local-network surveillance and ticketing application. An ESP32-CAM captures and uploads images; the FastAPI upload handler stores the frame, invokes vehicle inference, rejects non-vehicle images or creates a priced ticket with a QR code, then persists successful tickets and broadcasts live events. The React dashboard offers live monitoring, ticket/history views, API upload testing, and settings. The main upload pipeline and several UI/API relationships are evidenced in excerpts and the README; Settings and some dashboard capabilities are represented from the SOURCE INDEX and README, so uncertain internal links are omitted.
Main entry points: App.jsx Dashboard Router · main.py Upload API · Dashboard.jsx Live Dashboard · main.cpp ESP32-CAM Firmware
Components 18
Camera Edge
- Motion or Button
- ESP32-CAM Firmware
ESP_CAM_32/src/main.cpp
Backend Processing
- Upload API
parking_backend/main.py - Vehicle Detection
parking_backend/yolo_service.py - Ticket Processing
parking_backend/main.py - QR Generation
parking_backend/qr_service.py - WebSocket Events
parking_backend/main.py - Ticket and Stats API
parking_backend/main.py
Ticket State
- Ticket Model
parking_backend/models.py - SQLite Database
parking_backend/database.py - Images and QR Assets
parking_backend/main.py
Dashboard UI
- Dashboard Router
parking_dashboard/src/App.jsx - Live Dashboard
parking_dashboard/src/pages/Dashboard.jsx - Detection History
parking_dashboard/src/pages/DetectionHistory.jsx - Ticket Display
parking_dashboard/src/pages/Tickets.jsx - API Testing
parking_dashboard/src/pages/ApiTesting.jsx - Settings
parking_dashboard/src/pages/Settings.jsx
Other components
- Dashboard User
Connections 22
- Motion or Button → ESP32-CAM Firmware: triggers capture
README.md - ESP32-CAM Firmware → Upload API: posts image
README.md - Upload API → Vehicle Detection: invokes detection
parking_backend/main.py - Upload API → Images and QR Assets: writes image
parking_backend/main.py - Upload API → Ticket Processing: processes result
parking_backend/main.py - Ticket Processing → QR Generation: generates QR
parking_backend/main.py - Ticket Processing → Ticket Model: creates ticket
parking_backend/main.py - Ticket Processing → SQLite Database: persists ticket
parking_backend/main.py - Ticket Processing → WebSocket Events: broadcasts events
parking_backend/main.py - QR Generation → Images and QR Assets: writes QR image
parking_backend/qr_service.py - Ticket Model → SQLite Database: uses base
parking_backend/models.py - Dashboard User → Dashboard Router: opens dashboard
- Dashboard Router → Live Dashboard: routes to
parking_dashboard/src/App.jsx - Dashboard Router → Detection History: routes to
parking_dashboard/src/App.jsx - Dashboard Router → Ticket Display: routes to
parking_dashboard/src/App.jsx - Dashboard Router → API Testing: routes to
parking_dashboard/src/App.jsx - Dashboard Router → Settings: routes to
parking_dashboard/src/App.jsx - Live Dashboard → Upload API: posts snapshots
parking_dashboard/src/pages/Dashboard.jsx - Live Dashboard → WebSocket Events: receives events
parking_dashboard/src/pages/Dashboard.jsx - API Testing → Upload API: posts image
parking_dashboard/src/pages/ApiTesting.jsx - Detection History → Ticket and Stats API: fetches tickets
parking_dashboard/src/pages/DetectionHistory.jsx - Ticket Display → Ticket and Stats API: fetches tickets
parking_dashboard/src/pages/Tickets.jsx