Skip to content

Praveen005/Social_Distancing_Violation_Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

Social Distancing Violation Detector 🔎


To check if or not people are following social distancing norms using OpenCV and YoloV3

How it works 🛠️

  • Utilizing the YOLO model trained on COCO dataset, we perform object detection specifically to identify individuals within the video stream.

  • The system calculates the distances between bounding boxes formed around the detected indivisuals

  • By comparing these computed distances with the preset threshold value(50px here), we determine whether or not there is a violation of the social distancing guidelines.

  • The current code is compatible to take two different inputs(be it live feed or pre-recorded video) and process them independently for the violations.

  • when you use live cams, you can take two different camera angles to get two different perspective to tackle following three cases:

    • One feed says, there is violation but other says, no violation(can happen when in projected image they are close, this is why another camera feed is used to verify if they are actually close)
    • Both says "No Violation"
    • Both says "Violation"
  • To be able to work on live feed, we can change the argument of 'VideoCapture' class accordingly.

Libraries Used 🧰

  • Python
  • Open CV
  • Yolo V3
  • dnn Module
  • SciPy
  • imutils
  • Argparse
  • Numpy

  • Installation of the Project 📦

    Check Inside

    About

    No description, website, or topics provided.

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published

    Languages