How anukavb/intelligent-parking works
This repository turns parking-lot video into annotated occupancy footage and provides a browser-based occupancy website. The documented workflow extracts a reference frame, defines parking zones, detects cars and writes annotated video; the website has a separate data-extraction and routing branch. The sampled Python shows the detector’s processing calls and zone persistence. Website implementation details and several connections are documented or visible only from filenames, so those links are marked unverified where appropriate.
Main entry points: detector.py Video detector · parking_core.py Occupancy analysis · frame_extractor.py Reference frame extraction · index.html Occupancy website
Components 17
Zone setup
- Reference frame extraction
Project Files/frame_extractor.py - Reference image
- Zone selection GUI
Project Files/parking_core.py - Zone selector launcher
Project Files/zone_selector.py - Zone definitions
Project Files/bounding_boxes.json
Occupancy monitoring
- Video detector
Project Files/detector.py - Occupancy analysis
Project Files/parking_core.py - YOLO detection
- Annotated video
Project Files/output.mp4
Website
- Occupancy data extraction
docs/source/extract_occupancy.py - Website occupancy data
docs/source/data/occupancy.json - Website zone data
docs/source/data/bounding_boxes.json - Lot routing
docs/source/routing.js - Occupancy website
docs/index.html - Website builder
docs/source/build.py
Other components
- Operator
- Lot video
Connections 20
- Operator → Reference frame extraction: extracts frame
Project Files/frame_extractor.py - Lot video → Reference frame extraction: reads video
Project Files/frame_extractor.py - Reference frame extraction → Reference image: saves image
Project Files/frame_extractor.py - Operator → Zone selector launcher: launches
Project Files/zone_selector.py - Zone selector launcher → Zone selection GUI: starts
Project Files/zone_selector.py - Zone selection GUI → Zone definitions: saves zones
Project Files/parking_core.py - Reference image → Zone selection GUI: defines zones on
- Operator → Video detector: runs
Project Files/detector.py - Lot video → Video detector: reads frames
Project Files/detector.py - Video detector → Occupancy analysis: processes frames
Project Files/detector.py - Occupancy analysis → Zone definitions: loads zones
Project Files/parking_core.py - Occupancy analysis → YOLO detection: detects cars
- Video detector → Annotated video: writes frames
Project Files/detector.py - Operator → Occupancy data extraction: extracts website data
- Occupancy data extraction → Website occupancy data: writes occupancy
- Website zone data → Lot routing: informs routing
- Website occupancy data → Occupancy website: supplies occupancy
- Lot routing → Occupancy website: provides routing
- Operator → Website builder: builds website
- Website builder → Occupancy website: generates