Git Product home page Git Product logo

social-distancing-detector's Introduction

Setup

A script has been setup to simplify the setup and program usage.

Extra Instruction for NVIDIA GPU Usage (Advanced)

Follow this guide to install and setup all CUDA dependencies
(be warned setting cuda on wsl isn't that straight forward)

For CPU (simple) and GPU Usage

Download the model weights here and put the file in the main folder.
Next, Run the bootstrap script the install all other python depdencies

Run source run bootstrap

How to Run the program

Start by running source run help to show a list of commands on how to run the different usage options

Running on the pre-recorded video

Run the program for fast testing on the pre-recorded shopping mall video
This will save a video of the detection results to disk

Run source run video

Live Detection Mode

Run the live detection and create heatmaps First, setup your camera in the correct position

Run source run live [IP] and provide the IP address of your camera (We used Droid Cam app on android for testing)

This will take a frame from the camera and open the homography picker. Select 4 points in the order provided corredesponding to the floor/corner points. Once complete, the next video will open showing a live social distancing detection and the 2D overhead view. Every minute a copy of the heatmap will be saved to disk.

social-distancing-detector's People

Contributors

markabdullah avatar demetrejou avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

social-distancing-detector's Issues

Create Video

Compile each separate result + some basic editing (put the question on screen)

bullet points for video

Just some general ideas of what we want to say to address each question we need to answer for the video

No social distancing calculation

Can probably get away with something simple like checking if boxes are overlapping for now
Will need to improve it to use real world distance in the future

Better input videos

Right now it's just some random mall i found on youtube
It's not an ideal example
Would like to find something that's more open in the middle with less people so each non social distancing example is more obvious
Would also like to be able to find the homography of the video to find real world distance easier, also for the heatmap

Heatmap

Probably blocked by needing better videos

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.