Skip to content

adsmundra/video_analytics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Video Analytics & Surveillance System

This project is a video analytics platform designed for surveillance applications, starting with basic object tracking and evolving into specific retail use cases like cashier monitoring.

πŸš€ Current Features

1. Object Tracking Pipeline (pycode/src/main.py)

A complete pipeline ported from Google Colab to local Windows execution.

  • Function: Processes CCTV footage to track objects (People, Cars) using YOLOv8.
  • Features:
    • Trims video to a specified duration (e.g., 30s) using OpenCV.
    • Detects and tracks objects.
    • Filters recurring objects based on persistence.
    • unique "Events" logged to CSV.
    • Generates an annotated output video.
  • Output: Results are saved to output/logs/session_YYYYMMDD_HHMMSS/.

πŸ› οΈ Setup & Usage

Prerequisites

  • Python 3.8+
  • Recommended: GPU with CUDA (though CPU is supported).

Installation

  1. Clone the repository.

  2. Install dependencies:

    pip install ultralytics opencv-python tqdm torch torchvision

    (Note: torch installation may vary based on your CUDA version).

Running the Tracker

  1. Navigate to the source directory:

    cd pycode/src
  2. Run the main script:

    python main.py
  3. Check output/logs/ for the results.

πŸ“… Roadmap: Cashier Surveillance Module

We are currently planning a specialized module for Retail POS Surveillance.

Objective: Detect anomalies where a POS "Cash Sale" event occurs without the cashier physically interacting with the cash drawer.

Architecture:

  • Vision Engine: Monitors a Region of Interest (ROI) for "Drawer Open" or "Hand in Drawer" events.
  • POS Listener: Receives transaction logs from the POS system.
  • Logic Core: Correlates Vision events with POS timestamps to flag suspicious behavior.

πŸ“‚ Project Structure

video-analytics/
β”œβ”€β”€ output/             # Generated logs, videos, and CSVs
β”œβ”€β”€ pycode/
β”‚   β”œβ”€β”€ src/
β”‚   β”‚   β”œβ”€β”€ main.py     # Main detailed tracking script
β”‚   β”œβ”€β”€ utils/
β”œβ”€β”€ resources/
β”‚   β”œβ”€β”€ videos/         # Input raw footage
└── README.md

πŸ“š References & Tutorials

Useful resources for understanding ByteTrack and Object Tracking implementations:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages