Skip to content

ashutoshkr45/Real-Time-Surveillance-Detection

 
 

Repository files navigation

Real Time Video Surveillance and Triggering System

There is a critical need for an automated surveillance solution that can continuously and accurately monitor the environments for signs of emergencies, providing real-time alerts to facilitate rapid intervention. Traditional systems relying on human operators are often slow and prone to errors, which can result in severe consequences, including loss of life and extensive property damage. Our project aims to develop a real-time emergency surveillance system that leverages computer vision to detect and respond to critical situations such as fires, violence, and medical emergencies.

Violence Detection Telegram Bot

Project Demonstration

Watch the Demo

Dataset

Kaggle: Real Life Violence Situations Dataset

Technical Aspects

Human Fall Detection

Human Fall Detection

  • Check the distance between foot C.G. and body C.G.
  • If the distance exceeds 90 pixels (tall * 0.75), it indicates a fall.
  • The system counts how many times a fall has occurred and detects when the person gets back up.

Violence Detection

Violence Detection

  • The dataset contains 1000 videos each of violent and non-violent categories.
  • A model was trained using MobileNetV2 architecture.
  • Real-time video footage is processed, and the output is obtained as image frames.
  • The model provides real-time classification capabilities on devices with computing constraints, such as smartphones.

Fire Detection

Fire Detection

  • The cv2.CascadeClassifier is used to load a pre-trained fire detection model.
  • The model processes video frames, extracting features like edges and textures, comparing them against the pre-trained model.
  • Real-time detection triggers an alarm if fire patterns are detected.

Telegram Bot and Alert System

At the end, we integrated a real-time alert system using a Telegram bot and an alarm. The Telegram bot, built with the telebot library, sends instant alerts with captured images to a specified chat when the models detect instances of fire outbreak, violence and fall (e.g. a person falling due to medical emergency).


Steps to Run the Project

  1. Clone the repository:

    git clone https://github.com/Hirak010/Real-time-surveillance-detection.git
  2. Create an environment & activate:

    conda create -n env python=3.11 -y
    conda activate ./env
  3. Install the requirements:

    pip install -r requirements.txt
  4. Run the webcam app:

    python alert.py

Authors

Authors: Ashutosh Kumar, Hirakjyoti Medhi, Roshan Jha and Biswajit Bera
Email: kumarashutosh9694@gmail.com

This project was developed as part of a group effort while participating in a Computer Vision Hackathon organized by SarasAI Institute. We won the Hackathon, securing the First Position! 🎉

Winners_Team-of-Titans

About

Won 1st place in the prestigious CLASH OF T-AI-TANS Hackathon by Saras AI Institute. This is our project, a Real-time Video Surveillance and Alert System, showcased our ability to apply AI technology to solve real-world problems, emphasizing innovation and teamwork.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Jupyter Notebook 100.0%