Giter Site home page Giter Site logo

smash-96 / firearm-person-detector Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 0.0 21.48 MB

Python application to detect people carrying Fire Arms in videos using ImageAI.

Home Page: https://github.com/smash-96

Python 100.00%
fire-arm imageai guns person-detection object-detection computer-vision

firearm-person-detector's Introduction

Fire Arm and Person Detection Using ImageAI

Description

This program detects Fire Arms or people carrying Fire Arms in videos provided as input. The program is made in such a way that live timestamp values can be extracted from videos and then search for guns or people or both depending upon the situation. The program is made using the ImageAI library which allows the use of built-in and custom object detectors with very few lines. The videos folder contains some test videos for testing.

Set Up

The following tools are needed to run the program successfully:

  • python3
  • ImageAI
  • openCV

You will need two additional packages to run the program. The first one isyolo.h5 package which supports the code written for person detection. This package is available for download from here.

The second one is my own custom trained package for Fire arm's or guns detection that can be downloaded from here. Keep it in the same directory as the detector.py file.

Run the program

After downloading all the dependencies, place the yolo.h5 file in the same folder as your program and run the following command in your terminal or command prompt:

python3 detector.py

firearm-person-detector's People

Contributors

smash-96 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.