Skip to content

Social Distance Detector which is build on Python using YOLO -COCO

Notifications You must be signed in to change notification settings

Rahulraj31/Social-Distance-Detector

Repository files navigation

Social Distance Detector

You can find the video with full expanation of algrithm & code here: (https://youtu.be/PTLZnE6W2tw)

Github usually doesn't support files larger than 25 Mb.You can find the yolo weights in google drive

  • Download it & move to yolo-coco folder

For CPU:

To run this code in your terminal:

  • Open your terminal
  • Change directory to where you have downloaded this code
  • Install python3 if you have not, if installed already then it's ok!
  • Run pip install virtualenv to install package
  • Run python3 -m venv venv to create a virtual environment named venv.
  • Run venv/bin/activate to activate your environment!
  • Write pip install -r requirements.txt to install the python dependencies related to this project like opencv,numpy,scipy etc.
  • Run the command python social_distance_detector.py --input pedestrians.mp4 --output output.avi to run your social distance detection project

After you run the last line of command,a window will pop up and after execution of the file a output.avi file will be showing up in your directory like this:

Output avi gif

Contacts:

About

Social Distance Detector which is build on Python using YOLO -COCO

Topics

Resources

Stars

Watchers

Forks

Languages