How rifqiabbiyu6822/cctv works
This is a desktop vehicle-counting application: users select a video or ASF/WMV source, detect and track cars across a counting line, and review directional counts. They can enter session metadata and save records to Google Sheets, then load records for summaries, charts, and PDF reporting. A separate script trains the YOLO car model. The sampled excerpts support these main responsibilities and several calls; some UI wiring and report-generation details are unsampled, so uncertain links are omitted.
Main entry points: app.py Desktop application · detector.py Car detection and counting · google_sheets_helper.py Sheets access · reports_widget.py Reports interface
Components 17
Capture and counting
- Desktop application
app.py - Video processing
app.py - ASF processor
yolo_asf_processor.py - Car detection and counting
detector.py
Records and reporting
- Session data entry
data_input_dialog.py - Sheets access
google_sheets_helper.py - Google Sheets
- Reports interface
reports_widget.py - Report data loader
reports_widget.py - PDF generation
pdf_service.py - PDF report
Detection model
- Detection settings
detection_config.py - YOLO training
train_model.py - Dataset configuration
data.yaml - YOLO model runtime
Other components
- Operator
- Video source
Connections 18
- Operator → Desktop application: operates
- Video source → Desktop application: provides video
- Desktop application → Video processing: starts processing
- Desktop application → ASF processor: starts ASF processing
- Video processing → Car detection and counting: processes frames
- ASF processor → Car detection and counting: processes frames
- Car detection and counting → Detection settings: reads settings
- Car detection and counting → YOLO model runtime: detects and tracks
- Desktop application → Session data entry: opens entry dialog
- Session data entry → Sheets access: saves record
- Desktop application → Sheets access: saves counts
- Reports interface → Report data loader: loads report data
- Report data loader → Sheets access: requests records
- Sheets access → Google Sheets: reads and writes
- Reports interface → PDF generation: requests PDF
- PDF generation → PDF report: creates
- Dataset configuration → YOLO training: configures training
- YOLO training → YOLO model runtime: trains model