Git Product home page Git Product logo

social-distancing-detectors-for-covid-19's Introduction

Social-Distancing-Detectors-for-COVID-19 PyPI - Python Version

Main structures of code are brought from people-counter and tiny-yolo object detector

This sub-project is one of modules for Anti-COVID19 robot which can detect cough person and record social distancing violations. This module is for the latter which traces the close contact made by infectee in the public space with a raspberry pi 4B- based surveillance camera. For this purpose, we utilize the pedestrian detection and object tracing to execute computing-burden jobs in the limited hardware environment. Contact information of observed people is then collected using Intel Realsense Depth Camera D435. The close contacts which last for a certain time or longer will be detected and recorded as a screenshot. In the last, an examiner only need to search and check the saved screenshots, instead of inspecting a long record of the surveillance camera.

Start

Hardware requirements

  • Intel Realsense Depth Camera D435 (Any depth camera will be fine)
  • Raspberry pi 4B

Install Dependecies

  1. Install the intel realsense python sdk
  2. Install the OpenCV, NumPy, dlib, imutils

Execute

$ python3 main.py -s 30 -pd 150 -md 0.5 -se 10
  • -s: Number of frames skipped between detections
  • -pd: Minimum pixel euclidean distance between pedestrians for the contact detecting
  • -md: Minimum meter distance between pedestrians and the camera for the contact detecting
  • -se: Minimum time (seconds) for contact to be detected

Output

The output will be stored as ./capture/{date-time of the contact}

Demo for detection

We utilized the depth information from depth-cam to calculate 3d distance between people.

full frame

Tracking mode

full frame

output screenshot (capture/20210108-003020.png)

output

Anti-COVID19 Robot Architecture

Overall design

output

Cough Detector design

output

Social Distancing Recorder design

output

Robot

output

social-distancing-detectors-for-covid-19's People

Contributors

posgnu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.