Code Monkey home page Code Monkey logo

nidar's Introduction

Project Title

NIDAR - Automatic Threat Detection

Theme Choosen

Artificial Intelligence in Defense

Project Description

Public Safety is a major concern in today's society. Modern weaponry and firearms pose serious threat to the safety and security of the everyday people. An integrated system that process video data and detect presence of a firearm or other weaponry when used in a threatning or dangerous manner and inform the Police or the concerned authority. We have used Cascade Classifier for detection of guns in a real time footage. For detection of human beings, we are using R-CNN model in real time and then we are combining both the records to predict whether the situation is threatning or not. As most of the Indian cities are moving towards SMART cities and have hardware sensors like camera, raspberry pi already deployed so we will take the raw data from these cameras and will process that.

Prerequisites

All the prerequisite are present in the requirements.txt file which can be install by

pip3 install -r requirements.txt

Installing

A step by step series of examples that tell you how to get a development env running

To run the model of detecting weapons:

git clone https://github.com/im-gozmit/NIDAR.git
cd haarclassifier
python video_recognition.py

To run the model of Human Detection:

run the HumanDetection.ipynb

Running the tests

For running some test data for detecting guns, put the images/video in the

/haarclassifier/data/

and then run the command

python video_recognition.py

For running some test data for detecting Humans, put the images/video in the

/Mask_RCNN/videos/

and then run the commands followed in the Collab notebook

HumanDetection.ipynb 

Future Work:

  • Using Pose Estimation models to get all the threatning poses.
  • If someone do a threat then we can trace the person by training a separate model for facial recognition.

Screenshots:

Gun Detection Gun Detection Person Detection Person Detection

Built With

  • Python - The programming langauge used

Versioning

Version : 0.1

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • To all the organizing members of Women Techmakers BVP and Developer Student Clubs - BVP
  • To the mentors : Uday Upreti, Arpan Garg and Nakul Garg for the valuable feedback.
  • To Google for always being ready to get anything we searched.

nidar's People

Contributors

im-gozmit avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

nidar's Issues

Suggested Model Changes

We need to develop a model for all the threatening poses so we need to prepare a dataset.
An alternative of this model can be to use summary of image and then to train a model on the summary text as this will be lot faster and easier to predict as working on text is always easy.

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.