Skip to content

ig-subham07/AI-Theft-Protection-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

🛡️ Real-Time AI Theft Detection in CCTV Surveillance

Author: Divyanshi Singh
Project Type: Academic Research & Development

Python YOLOv8 DeepSORT OpenCV

📖 Project Overview

Traditional CCTV systems are entirely passive, relying on post-incident review and the limited attention span of human operators monitoring multiple screens. This project transforms video surveillance from a passive recording tool into an active, real-time threat detection system.

This repository contains an end-to-end computer vision pipeline designed to automatically detect and track theft or shoplifting behaviors in live CCTV feeds. By combining state-of-the-art object detection with advanced tracking algorithms, the system can identify suspicious interactions between individuals and high-value items, maintaining track of suspects even through occlusions.

✨ Key Features

  • Real-Time Processing: Optimized for live CCTV feeds to maintain high Frames Per Second (FPS).
  • High-Accuracy Detection: Utilizes YOLOv8 for single-pass inference to identify persons, bags, hands, and merchandise.
  • Persistent Object Tracking: Integrates DeepSORT to assign and maintain unique IDs for individuals, preventing ID switching when suspects cross paths or walk behind shelves.
  • Behavioral Logic Detection: Custom heuristics to flag suspicious temporal sequences (e.g., a hand interacting with an item, followed by the item disappearing into a bounding box for a bag/pocket).

🧠 System Architecture

  1. Video Input: Live stream or recorded footage processed via OpenCV.
  2. Detection: YOLOv8 extracts precise bounding boxes for target classes.
  3. Tracking: DeepSORT applies Kalman filtering and deep appearance features for ID persistence.
  4. Action Recognition: The system analyzes spatial intersections over a set frame window.
  5. Alerting: An automated flag is triggered upon a positive theft classification.

⚙️ Installation & Setup

Prerequisites

  • Python 3.8+
  • Git

Installation Steps

  1. Clone the repository:
    git clone [https://github.com/yourusername/ai-theft-detection-cctv.git](https://github.com/yourusername/ai-theft-detection-cctv.git)
    cd ai-theft-detection-cctv

About

A real-time AI theft detection pipeline for CCTV surveillance. Built with Python, YOLOv8 for object/person detection, and DeepSORT for continuous occlusion tracking.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors