How 8harath/car-parking-detection works
This is a parking-lot occupancy application: users load an image or video, mark spaces, run classical image processing or YOLO vehicle detection, then view occupancy and export reports/history. The main CLI flow is explicit; README also describes a separate interactive GUI and its selection, zoom, undo, and statistics capabilities. Source excerpts show the detector-to-model and reporting calls, but not every internal processing or persistence detail, so those relationships are omitted where not evidenced.
Main entry points: enhanced_parking_detector.py Space selection · run.py CLI workflow · car_detector.py Vehicle detection · gui.py Desktop GUI
Components 17
Application entry
- CLI workflow
run.py - Desktop GUI
gui.py - Detection settings
config.py
Space setup and viewing
- Space selection
enhanced_parking_detector.py - Interactive canvas
gui.py - Image/video input
enhanced_parking_detector.py
Occupancy analysis
- Frame processing
enhanced_parking_detector.py - Space occupancy
enhanced_parking_detector.py - Vehicle detection
car_detector.py - Special-space detection
car_detector.py
Reports and state
- Saved space layout
config.py - Output directories
setup_directories.py - Visual and text reports
car_detector.py - Occupancy CSV history
enhanced_parking_detector.py - Statistics dashboard
gui.py
Other components
- Parking operator
- YOLOv8 model
Connections 19
- Parking operator → CLI workflow: starts
README.md - Parking operator → Desktop GUI: opens
README.md - CLI workflow → Detection settings: reads defaults
run.py - CLI workflow → Image/video input: initializes
run.py - Desktop GUI → Space selection: creates detector
gui.py - Desktop GUI → Interactive canvas: hosts
gui.py - Interactive canvas → Space selection: edits spaces
gui.py - CLI workflow → Space selection: runs selection
run.py - Image/video input → Frame processing: provides frames
enhanced_parking_detector.py - Frame processing → Space occupancy: prepares input
enhanced_parking_detector.py - Space occupancy → Occupancy CSV history: logs status
enhanced_parking_detector.py - Space selection → Saved space layout: saves layout
README.md - Space selection → Vehicle detection: requests detection
enhanced_parking_detector.py - YOLOv8 model → Vehicle detection: loads model
car_detector.py - Vehicle detection → Special-space detection: classifies spaces
car_detector.py - Vehicle detection → Visual and text reports: generates reports
enhanced_parking_detector.py - Space occupancy → Statistics dashboard: displays statistics
gui.py - Space selection → Output directories: prepares folders
enhanced_parking_detector.py - CLI workflow → Visual and text reports: announces outputs
run.py