How datphannexor/parkingspacedetection works
ParkingSpaceDetection combines parking-space vision, parking-session billing, operational APIs, and desktop/web/mobile clients. The principal workflow is camera or video input → slot-state detection → event-driven session and fee processing → persistent history and reporting → client views. The repository also contains a separate legacy regions/probability-map runtime. Some client implementations and integrations are represented only by the README; edges for those are documented relationships, not inspected call sites.
Main entry points: parkingspace/main.py Legacy Runtime Entry · ai_detection_service/main.py Detection API · parking_billing_service/main.py Session and Billing · services.py Detection Services
Components 28
Vision and Detection
- Detection API
backend_microservices/services/ai_detection_service/main.py - Legacy AI Adapter
backend_microservices/adapters/legacy_ai_adapter/adapter.py - YOLO / OpenCV Detection
ParkingVisionV8/run_droidcam_v8s_boardlock.py - Slot ID Mapping
backend_microservices/adapters/slot_id_mapper/mapper.py
Parking Operations
- Session and Billing
backend_microservices/services/parking_billing_service/main.py - Legacy Billing Adapter
backend_microservices/adapters/legacy_billing_adapter/adapter.py - Authentication and RBAC
backend_microservices/services/auth_service/main.py - Reports and WebSocket
backend_microservices/services/reporting_service/main.py - Desktop Sync
backend_microservices/services/desktop_sync_service/main.py
Shared Platform
- MySQL
- Redis
- RabbitMQ
- Event Contracts and Publisher
backend_microservices/shared/events/schemas.py - Database and Cache Access
backend_microservices/shared/database/connection.py
Operator Clients
- Desktop Application
ParkingSpaceDesktopApp/app_gui.py - Streamlit Dashboard
ParkingSpaceDesktopApp/streamlit_dashboard.py - Flutter Mobile App
flutter_mobile_app
Legacy Runtime
- Legacy Runtime Entry
src/parkingspace/main.py - Detection Services
src/parkingspace/services.py - Region Pipeline
src/parkingspace/pipeline.py - Region Definitions
src/parkingspace/regions.py - Runtime Configuration
src/parkingspace/config.py - Capability Detection
src/parkingspace/capabilities.py - Performance Monitoring
src/parkingspace/performance.py - Logging
src/parkingspace/logger.py - Runtime Exceptions
src/parkingspace/exceptions.py
Other components
- Operator
- Image / Video / Camera
Connections 34
- Operator → Detection API: uploads media
README.md - Image / Video / Camera → Detection API: provides frames
README.md - Detection API → Legacy AI Adapter: delegates detection
backend_microservices/services/ai_detection_service/main.py - Legacy AI Adapter → YOLO / OpenCV Detection: runs detection
backend_microservices/adapters/legacy_ai_adapter/adapter.py - Detection API → Slot ID Mapping: maps slot IDs
backend_microservices/services/ai_detection_service/main.py - Detection API → Event Contracts and Publisher: publishes results
backend_microservices/services/ai_detection_service/main.py - Event Contracts and Publisher → RabbitMQ: sends events
README.md - Session and Billing → MySQL: reads and writes
backend_microservices/services/parking_billing_service/main.py - Session and Billing → Redis: reads slot state
backend_microservices/services/parking_billing_service/main.py - Session and Billing → Event Contracts and Publisher: consumes events
backend_microservices/services/parking_billing_service/main.py - Session and Billing → Legacy Billing Adapter: uses billing adapter
backend_microservices/services/parking_billing_service/main.py - Authentication and RBAC → MySQL: reads and writes
backend_microservices/services/auth_service/main.py - Authentication and RBAC → Operator: issues JWT
README.md - Reports and WebSocket → MySQL: queries history
backend_microservices/services/reporting_service/main.py - Reports and WebSocket → Redis: serves slot state
README.md - Desktop Sync → MySQL: syncs records
README.md - Desktop Sync → Event Contracts and Publisher: uses events
backend_microservices/services/desktop_sync_service/main.py - Database and Cache Access → MySQL: connects to
README.md - Database and Cache Access → Redis: connects to
README.md - Operator → Desktop Application: operates
README.md - Operator → Streamlit Dashboard: views reports
README.md - Operator → Flutter Mobile App: monitors remotely
README.md - Desktop Application → Authentication and RBAC: uses backend
README.md - Streamlit Dashboard → Reports and WebSocket: views reporting
README.md - Flutter Mobile App → Reports and WebSocket: uses REST and WebSocket
README.md - Legacy Runtime Entry → Runtime Configuration: loads configuration
src/parkingspace/main.py - Legacy Runtime Entry → Capability Detection: detects capabilities
src/parkingspace/main.py - Legacy Runtime Entry → Detection Services: starts processing
src/parkingspace/main.py - Detection Services → Region Pipeline: processes frames
src/parkingspace/services.py - Detection Services → Region Definitions: loads regions
src/parkingspace/services.py - Detection Services → Performance Monitoring: monitors performance
src/parkingspace/services.py - Legacy Runtime Entry → Logging: sets up logging
src/parkingspace/main.py - Legacy Runtime Entry → Runtime Exceptions: handles failures
src/parkingspace/main.py - Region Pipeline → Region Definitions: classifies regions
src/parkingspace/pipeline.py