Skip to content

This project handles both the pictures and videos in which it tries to identy the people and distinguishes them on the measure of social distance and calculates the average social distance followers score

Notifications You must be signed in to change notification settings

Likhil/object-detection-and-social-distance-measurement

Repository files navigation

Social Distance Monitoring

Objective:

The objective of the project is to develop algorithm to monitor the social distancing for a given recorded video or live feed as input. Once the video is analyzed, system should display number of violations and percentage of violation of social distancing in a frame.

Methodology:

We have developed two algorithm to detect the social distancing for provided input.

  1. HOG - Histogram of Oriented Gradients
  2. DNN - Deep Convolution Neural Network

More details about both alogorithms is explained in report.

Tools and Packages:

Language:

  1. Python3.0 or above

Packages:

  1. OpenCV
  2. Numpy
  3. TensorFlow
  4. Imutils
  5. Object_detection

During installation if you ran into any problem and face any below errors, try below said methods.

  1. !pip install pycocotools

if this errors out with "ERROR: Command errored out with exit status 1:" or "error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/"

try downloading: https://visualstudio.microsoft.com/downloads/

  1. pip install tensorflow-object-detection-api ERROR: readme-renderer 26.0 has requirement bleach>=2.1.0, but you'll have bleach 1.5.0 which is incompatible.

try installing: pip install bleach -U --bleach==2.1.0

  1. Compile protobuf and install object_detection package.

%%bash

cd models/research/

protoc object_detection/protos/*.proto --python_out=.

%%bash

cd models/research

pip install .

How to execute algorithms

Run the .ipynb notebook provided. In case of any change in the input video, update the path of the input video in the final cell of the notebook and perform execution of complete .ipynb notebook by restarting the kernel.

Sample input and output

We have provided both input and output(processed) videos for reference.

About

This project handles both the pictures and videos in which it tries to identy the people and distinguishes them on the measure of social distance and calculates the average social distance followers score

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published