GithubHelp home page GithubHelp logo

distance_estimation's Introduction

Robot that Promotes Physical Distancing

Social distancing is the primary strategy used to prevent the spread of the virus that causes COVID-19. As the name suggests, it calls for people to increase the space between one another and to avoid gatherings and crowds. Humanoid robots can come handy in promoting physical distancing, both for the safety of the robot (we don't want the robot to carry the virus) and for giving an alarm to people in special cases eg. a chashier or a bank agent.

This project aims to address the problem of detecting a human in a single RGB image and finding its distance from the camera (robot). We employ OpenPose as a human detection algorithm and DenseDepth (arXiv2018) as a depth estimation algorithm. The OpenPose algorithm outputs HeatMaps from body points. (Which are joined later). We multiply HeatMaps and DepthMaps to obtain the distance matrix. Then we define a depth_normalizer parameter to convert the obtained distance matrix to the ground truth data.

Quick Demo

Run the provided jupyter notebook (distance_estimation.ipynb)

Results

Reference

Corresponding papers to cite:

@article{Alhashim2018,
  author    = {Ibraheem Alhashim and Peter Wonka},
  title     = {High Quality Monocular Depth Estimation via Transfer Learning},
  journal   = {arXiv e-prints},
  volume    = {abs/1812.11941},
  year      = {2018},
  url       = {https://arxiv.org/abs/1812.11941},
  eid       = {arXiv:1812.11941},
  eprint    = {1812.11941}
}

@inproceedings{cao2018openpose,
  author = {Zhe Cao and Gines Hidalgo and Tomas Simon and Shih-En Wei and Yaser Sheikh},
  booktitle = {arXiv preprint arXiv:1812.08008},
  title = {Open{P}ose: realtime multi-person 2{D} pose estimation using {P}art {A}ffinity {F}ields},
  year = {2018}
}

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.