GithubHelp home page GithubHelp logo

ctrl-gaurav / social-distancing-alert Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.17 MB

A solution to detect persons violating the Social Distancing Protocols

Home Page: https://github.com/ctrl-gaurav/Social-Distancing-Alert

Python 100.00%
yolov3 yolo-object-detection object-tracking object-measurement coco computer-vision deep-learning

social-distancing-alert's Introduction


Logo

Social Distancing Alert

A solution to detect persons violating the Social Distancing Protocols
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

About The Project

YOLO Object Detection, Objection Tracking and Object Measuring to detect persons violating the Social Distancing Protocols

Built With

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

You will need:

  • A webcam
  • Visual Studio installed in your PC
  • Desktop development with C++ in Visual Studio
  • Python
  • Scipy
  • Yolo Weights
  • Yolo Config Files
  • Coco Class Names
  • OpenCV

Installation

  1. Make sure you have python3 setup on your system
  2. Clone the repo
git clone https://github.com/ctrl-gaurav/Social-Distancing-Alert.git
  1. Install requirements
pip install -r requirements.txt
  1. Download Yolo Weights
  2. Move Yolo Weights to yolo weights and coco classes folder
  3. If u don't have gpu enabled pc set USE_GPU = False in config.py
  4. Run main.py for realtime detections
python main.py
  1. If You want to process a particular video not realtime
  2. Then move that video in current directory and rename it as test.mp4
  3. Run main.py
python main.py --input test.mp4
  1. If you want to save your results in a video :
  2. Run main.py
python main.py --input test.mp4 --output output.mp4
  1. Your video will be saved in current directory after processing

Product Screenshots

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

To add your contributions to this project follow these steps :

  1. Fork the Project
  2. Create your improvements Branch (git checkout -b improvements/myimprovements)
  3. Commit your Changes (git commit -m 'Done some Improvements')
  4. Push to the Branch (git push origin improvements/myimprovements)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

social-distancing-alert's People

Contributors

ctrl-gaurav avatar

Watchers

 avatar

social-distancing-alert's Issues

Yolo Weights

if you trained yolo with your custom data, can you share weight?

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.