Skip to content

Main objective of this project is to monitor and check if person are maintaining social distancing

Notifications You must be signed in to change notification settings

ReTrO19/Social-Distancing-Using-Python

Repository files navigation

Analysis Social Distancing Using Python

Project Image

Where There Is Python There Is A Way 😜


Table of Contents


Description

The purpose of this project is, with the help of video analytics, check whether the people are maintaining social distancing or not as it is a vital part of avoiding spread of any contagious virus.

Some Information about YOLO

YOLO is an abbreviation for the term ‘You Only Look Once’. This is an algorithm that detects and recognizes various objects in a picture (in real-time). Object detection in YOLO is done as a regression problem and provides the class probabilities of the detected images.

Why the YOLO algorithm is important

YOLO algorithm is important because of the following reasons:

  • Speed: This algorithm improves the speed of detection because it can predict objects in real-time.
  • High accuracy: YOLO is a predictive technique that provides accurate results with minimal background errors.
  • Learning capabilities: The algorithm has excellent learning capabilities that enable it to learn the representations of objects and apply them in object detection.

Deep SORT Tracking

The most popular and one of the most widely used, elegant object tracking framework is Deep SORT, an extension to SORT (Simple Real time Tracker).

DeepSort Images

Euclidean Distance

The Euclidean distance between two points in Euclidean space is the length of a line segment between the two points. It can be calculated from the Cartesian coordinates of the points using the Pythagorean theorem, therefore occasionally being called the Pythagorean distance.

Euclidean Distance

Technologies

  • Python
  • OpenCV
  • DeepSORT
  • YoloV3

Project Flow

  1. Video frame is passed to the YoloV3 model which returns with the bounding boxs.
  2. Centroid is calculated for the bounding box.
  3. Euclidean Distance is calculated with all the bounding boxs and determine distance between them.

Back To The Top


How To Use

Installation

    > git clone https://github.com/ReTrO19/Social-Distancing-Using-Python.git
    > cd Social-Distancing-Using-Python
    > py -m venv sd_venv
    > sd_venv\Scripts\activate
    > pip install -r requirements.txt

Running Code

    > LaunchApp.bat

 Social Distancing  Danger Folder  Moderate Distance

Back To The Top


References

You only look once (YOLO) is a state-of-the-art, real-time object detection system. YOLO: Real-Time Object Detection

Simple Online and Realtime Tracking with a Deep Association Metric (Deep SORT)is an extention to SORT algorithm to integrate appearance information based on a deep appearance descriptor.Deep SORT

Back To The Top


License

MIT License

Copyright (c) [2021] [Abhishek Khamkar]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Back To The Top


Author Info

Back To The Top

About

Main objective of this project is to monitor and check if person are maintaining social distancing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published