Giter Site home page Giter Site logo

trellixvulnteam / socialdistancepathfinder_ea73 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from thataquarel/socialdistancepathfinder

0.0 0.0 0.0 118.38 MB

Automatically finds the safest path for you to take given some footage.

Home Page: https://somerandomdude69.github.io/

License: Apache License 2.0

JavaScript 0.05% Python 98.21% Perl 0.01% C 0.51% Fortran 0.02% MATLAB 0.01% PowerShell 0.03% XSLT 0.55% CSS 0.01% TeX 0.06% ANTLR 0.01% Makefile 0.01% HTML 0.01% Batchfile 0.01% Jupyter Notebook 0.02% Cython 0.48% Roff 0.01%

socialdistancepathfinder_ea73's Introduction

Social Distance Pathfinder

Automatically finds the safest path for you to take given some footage.

Video Demo

Watch the video

The heatmap

The heatmap shows the overall traffic of a certain location. Green squares represents places that are less frequented while the red squares represents places that are heavily frequented. Two types of circles are also drawn, the thicker ones represent the people that don't follow social distancing guidelines, the thinner ones are those that follow these rules. There is also a trail drawn behind every person, representing the path they have taken and their general direction. The heatmap will compile an average of every frame and update accordingly.

Live Footage

The live footage represents the actual footage the algorithm runs on. Bounding boxes are drawn around the people, a red one would mean that this person is not following social distancing, the green ones are those that follow the rules. The white highlighted area is the best path you can take according to the algorithm, the yellow line is then calculated with that data to show the best straight path you can take. The blue square represents the person that is considered safest, that is further away from the red zones in the heatmaps. The white highlighted area starts pathfinding from the blue square.

Data Plot

The data plot is determined by the white area, generated using recursion starting from the blue square. Each data point in the plot represents one white square. The path (yellow line) is determined by using regression with all the data points, through a function in MatplotLib.

Algorithm

  • YOLOv3-608 pretrained models from https://pjreddie.com/darknet/yolo/
  • Computer vision with OpenCv
  • Linear regression using Numpy.polyfit
  • Distances calculated using Scipy.spatial.cdist

Dependencies

  • Python 3.9.1
  • Imutils==0.5.3
  • Numpy==1.19.5
  • Scipy==1.6.0
  • Opencv-python==4.4.0.46
  • Simpy==1.7.1

socialdistancepathfinder_ea73's People

Contributors

thataquarel avatar tyrantlawyerwzz avatar trellixvulnteam 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.