Skip to content

ctrl-gaurav/Social-Distancing-Alert

Repository files navigation


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