Skip to main content

About the project

VisionGuard AI: Explainable Video Surveillance that Cuts False Alarms

Problem: CCTV operators cannot watch hours of footage, and simple rule-based systems raise an alert on every frame where someone is inside a restricted area. This floods operators with false alarms and real threats get missed.

Solution: VisionGuard AI analyses video and raises only meaningful incidents, each with a clear reason. It runs fully on a normal laptop CPU, with no GPU, no cloud and no paid API.

What I built:

Detection: YOLOv8n (ONNX) finds people and bags.
Tracking: my own tracker gives every person a stable ID and ignores very short noise tracks.
Rules: restricted-zone loitering, unattended bags and rapid movement, with limits users can edit.
Explainable scoring: every incident gets a 0 to 100 severity score, a breakdown of why, and a privacy-blurred evidence frame.
Alerts: automatic email alerts, sent once per incident per analysis.
Dashboard: live monitoring, zone drawing, incident queue, timeline, heatmap, analytics and report export.

Results on a test clip (19 s):

Tracked 19 people and 4 objects, and ignored 6 short noise tracks.
A naive frame-by-frame zone rule raised 168 alerts. VisionGuard raised 1 incident, a 99.4% reduction in alerts.
3 brief zone visits were correctly not flagged.
Speed on a CPU-only laptop: about 218 ms per frame, 4.1 fps (offline analysis).

Honest limits: the reduction is measured against a deliberately simple baseline and shows less noise, not detection accuracy. It is an automatic flag and a human makes the final decision. Bag detection is weaker on small or blurred objects because of the small model chosen for low-end hardware.

Tech: Python, OpenCV, ONNX Runtime, scikit-learn, vanilla JavaScript.

Built with

pythonopencvONNX Runtimescikit-learnvanilla JavaScriptclaude

AI tools

Coded withClaude CodeClaude Sonnet 5.5

Prize Categories Entered

  • DigitalOcean

    Best Open-Source AI Project

    Submitted