How milwinantany/detecting-abandoned-bags-using-yolo works
This repository contains two partially separate computer-vision applications: a Tkinter luggage detector and a Flask crack-detection web app. In the desktop workflow, an operator chooses image or camera input, YOLO detects objects, and the camera path triggers alerts after a frame-count threshold. In the web workflow, users register or log in, then start camera prediction; detected cracks produce an image, sound, email, and SMS. README claims broader unattended-bag tracking and CCTV integrations, but the sampled code does not show those behaviors; training is a separate entry point. Connections reflect only the sampled source and README.
Main entry points: Main.py Frame Threshold · app.py Detection Threshold
Components 19
Desktop Luggage Detector
- Tkinter UI
Main.py - Image Input
Main.py - Live Camera
Main.py - Luggage YOLO
Main.py - Frame Threshold
Main.py - Alert Image
Main.py
Web Crack Detection
- Flask Routes
app.py - Account Access
app.py - Registration Store
app.py - Web Camera
app.py - Crack YOLO
app.py - Detection Threshold
app.py - Alert Image
app.py
Model Training
- YOLO Training
NewTra.py
Alert Services
- Email Service
- SMS Service
- Audio Alert
Main.py - Audio Alert
app.py
Other components
- Operator
Connections 20
- Operator → Tkinter UI: uses
Main.py - Tkinter UI → Image Input: selects
Main.py - Tkinter UI → Live Camera: starts
Main.py - Image Input → Luggage YOLO: runs inference
Main.py - Live Camera → Luggage YOLO: runs inference
Main.py - Live Camera → Frame Threshold: counts luggage frames
Main.py - Frame Threshold → Alert Image: writes image
Main.py - Frame Threshold → Audio Alert: plays
Main.py - Frame Threshold → Email Service: sends email
Main.py - Frame Threshold → SMS Service: sends SMS
Main.py - Operator → Flask Routes: uses
app.py - Flask Routes → Account Access: routes requests
app.py - Account Access → Registration Store: reads and writes
app.py - Flask Routes → Web Camera: starts prediction
app.py - Web Camera → Crack YOLO: runs inference
app.py - Web Camera → Detection Threshold: counts crack detections
app.py - Detection Threshold → Alert Image: writes image
app.py - Detection Threshold → Audio Alert: plays
app.py - Detection Threshold → Email Service: sends email
app.py - Detection Threshold → SMS Service: sends SMS
app.py