GithubHelp home page GithubHelp logo

dombergka / real-time-violence-alert-system Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chandran-jr/violence-alert-system

0.0 0.0 0.0 34.95 MB

A real-time violence detector using MobileNetV2 pretrained model and image enhancement algorithms and face detection algorithms implemented using Python, including an alert system built using telegram for alerting concerned authorities, and all data stored neatly in cloud firestore

Python 2.79% Jupyter Notebook 97.21%

real-time-violence-alert-system's Introduction

Real Time Violence Alert System

A real-time violence detector using MobileNetV2 pretrained model and image enhancement algorithms and face detection algorithms implemented using Python, including an alert system built using telegram for alerting concerned authorities, and all data stored neatly in cloud firestore

Architecture Diagram

Explanation

Stage 1 (Human Detection) ✔✔

A real-time human detector using Faster RCNN Inception V2 COCO model, implemented using Python. Main purpose was comparing 3 pretrained models for speed and accuracy.

Stage 2 (Violence Detection) ✔✔

A real-time violence detector using MobileNetV2 pretrained model, giving the output in the form of images with the result printed writen on each image using OpenCV, implemented using python. The training file for the mobilenetv2 model has also been included and the testing files and videos as well.

Stage 3 (Alert System) ✔✔

Creating a telegram bot and a group, adding the bot to the group and whenever violence is detected in any frame, send the 30th violence=true frame to the telegram group using the bot, including a message which contains details like Location, Time and Camera ID

Stage 4 (Image Enhancement) ✔✔

Enhanced the image using the PIL library in-built in python, by increasing it's sharpness and colour by a factor of 1.2, and saved to the local system. The enhanced image is sent via the telegram bot

Stage 5 (Face Detection) ✔✔

All the faces obtained in the saved image is plotted and saved on a single image using mtcnn and pyplot and is sent to the telegram group via the bot also.

Stage 6 (Firebase Integration) ✔✔

All the data, ie, the date, obtained image and the 'detected faces image' are stored in a neat document object format in the cloud firestore service provide by Google's Firebase. The images are stored as links which and these links are obtained by saving it first in the storage bucket of firebase itself. These data can only be obtained by authorized officials.

Project done ✔✔

The Team ❤

real-time-violence-alert-system's People

Contributors

chandran-jr avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.