How vishal060803/theft-surveillance works
This prototype monitors webcam and RTSP feeds, turns detected or inferred security events into alerts and recorded evidence, then exposes operational summaries through a Flask dashboard and JSON API. The main path is camera processing → event qualification → alert/evidence persistence → operator review and reporting. Several responsibilities share backend/realtime_surveillance.py; the excerpts show its storage, zone, clip, and notification capabilities but omit parts of the processing loop, so some workflow links rely on the README rather than inspected call sites.
Main entry points: app.py Flask routes and API · realtime_surveillance.py Event and risk assessment · dashboard.html Operator dashboard · config.py Runtime configuration
Components 18
Surveillance processing
- Camera processing
backend/realtime_surveillance.py - Detection and tracking
backend/realtime_surveillance.py
Incident handling
- Event and risk assessment
backend/realtime_surveillance.py - Zone activity
backend/realtime_surveillance.py - Alert handling
backend/realtime_surveillance.py - Evidence capture
backend/realtime_surveillance.py - SQLite event records
backend/realtime_surveillance.py - Evidence files
backend/realtime_surveillance.py
Web service
- Runtime configuration
config.py - Flask routes and API
app.py - Summaries and reports
backend/realtime_surveillance.py - Health and retention
backend/realtime_surveillance.py - Validation metrics
backend/realtime_surveillance.py
Dashboard and integrations
- Operator dashboard
backend/dashboard.html
Other components
- Camera feeds
- Pushbullet
- Google Maps
- Security operator
Connections 23
- Camera feeds → Camera processing: supplies frames
README.md - Runtime configuration → Flask routes and API: configures
app.py - Runtime configuration → Camera processing: configures
README.md - Flask routes and API → Camera processing: starts thread
app.py - Camera processing → Detection and tracking: processes frames
README.md - Detection and tracking → Event and risk assessment: qualifies events
README.md - Event and risk assessment → Zone activity: summarizes zones
README.md - Event and risk assessment → Alert handling: raises alerts
README.md - Event and risk assessment → Evidence capture: captures incidents
README.md - Alert handling → SQLite event records: records alerts
README.md - Evidence capture → SQLite event records: records metadata
README.md - Evidence capture → Evidence files: writes clips
README.md - Alert handling → Pushbullet: notifies
README.md - Flask routes and API → Operator dashboard: serves
app.py - Operator dashboard → Flask routes and API: requests data
README.md - Flask routes and API → SQLite event records: reads records
app.py - Flask routes and API → Evidence files: lists evidence
app.py - Flask routes and API → Summaries and reports: requests summaries
app.py - Flask routes and API → Health and retention: requests health
app.py - Flask routes and API → Validation metrics: runs validation
app.py - Summaries and reports → SQLite event records: queries events
README.md - Operator dashboard → Google Maps: shows map
README.md - Security operator → Operator dashboard: reviews incidents
README.md