How dard1ka/ilegalparkingthesis works
This monorepo provides an illegal-parking detection service and a React dashboard. Users select a video or camera, configure parking zones, then monitor a live annotated stream and staged alerts. Backend processing detects and tracks vehicles, applies zone and parking-duration checks, and handles triangle exceptions, color identification, and Indonesian voice alerts. The shared state bridges the processor thread and API. The documented architecture supplies several pipeline details not visible in the sampled code; those edges cite the README.
Main entry points: main.py FastAPI endpoints · processor.py Video processor · App.jsx Dashboard shell · SetupWizard.jsx Source and ROI setup
Components 18
Setup and monitoring
- Source and ROI setup
parking-dashboard/src/components/SetupWizard.jsx - Live video and ROI editor
parking-dashboard/src/components/VideoMonitor.jsx - Dashboard shell
parking-dashboard/src/App.jsx - Alert WebSocket hook
parking-dashboard/src/hooks/useAlerts.js - Alert sidebar
parking-dashboard/src/components/AlertSidebar.jsx
API and state
- FastAPI endpoints
backend/main.py - Thread-safe shared state
backend/shared.py
Detection pipeline
- Video processor
backend/processor.py - Vehicle detection and tracking
backend/processor.py - Zone and parking stages
backend/processor.py - Triangle exception check
backend/processor.py - Vehicle color classification
backend/processor.py
Alert outputs
- Indonesian TTS and playback
backend/processor.py
Other components
- Operator
- Video or camera
- YOLO model weights
best.pt - Triangle model weights
triangle.pt - Edge-TTS service
Connections 25
- Operator → Source and ROI setup: chooses source
README.md - Source and ROI setup → FastAPI endpoints: configures source
parking-dashboard/src/components/SetupWizard.jsx - Source and ROI setup → FastAPI endpoints: submits zones
README.md - Operator → Live video and ROI editor: views stream
README.md - Dashboard shell → Source and ROI setup: renders setup
parking-dashboard/src/App.jsx - Dashboard shell → Live video and ROI editor: renders monitor
parking-dashboard/src/App.jsx - Dashboard shell → Alert WebSocket hook: opens alerts
parking-dashboard/src/App.jsx - Dashboard shell → Alert sidebar: renders alerts
parking-dashboard/src/App.jsx - Video or camera → Video processor: supplies frames
README.md - FastAPI endpoints → Thread-safe shared state: sets configuration
backend/main.py - FastAPI endpoints → Video processor: starts processor
backend/main.py - Video processor → Thread-safe shared state: reads and updates
README.md - Video processor → Vehicle detection and tracking: runs detection
README.md - YOLO model weights → Vehicle detection and tracking: loads vehicle model
backend/processor.py - Vehicle detection and tracking → Zone and parking stages: filters and tracks
README.md - Zone and parking stages → Triangle exception check: checks warning stage
README.md - Triangle model weights → Triangle exception check: loads triangle model
README.md - Zone and parking stages → Vehicle color classification: classifies violations
README.md - Vehicle color classification → Indonesian TTS and playback: provides vehicle details
README.md - Video processor → Indonesian TTS and playback: produces voice alerts
README.md - Indonesian TTS and playback → Edge-TTS service: generates speech
README.md - Thread-safe shared state → FastAPI endpoints: provides frames and alerts
backend/main.py - FastAPI endpoints → Live video and ROI editor: streams MJPEG
README.md - FastAPI endpoints → Alert WebSocket hook: pushes WebSocket data
README.md - Alert WebSocket hook → Alert sidebar: supplies alerts
parking-dashboard/src/App.jsx