Code Monkey home page Code Monkey logo

human-detection-in-depth-image's Introduction

The purpose of this project is to find a distance between a human and a wall in a corridor using depth camera observations. Here is an example of a depth image (right) received from a depth camera mounted on a robot. The darker the pixel the closer it is; black corresponds to 0 meters and white corresponds to 5 meters. Just for reference, the corresponding RGB image is shown on the left.

  1. Which side is safer to avoid a human (“ ​ left” ​ or “ ​ right” ​ )?
  2. What is the clearance for avoidance maneuver? Clearance is defined as the smallest distance between a human and the obstacle closest to him (a wall or a shelf).

RGB image depth image

I did this task in three steps:

  1. First have a preprocessing on the depth image due to the chaotic background.
  2. Then, I got the edge image and used opencv functions to detect the human contour and box it.
  3. At last, calculate the clearance distance by using the box coordinate.

This task is relatively easy compared with real life cases since the detection area and detection distance are constrained. For more complicated cases, such as human can walk within a larger area, longer distance, and behind obstacles, detection will be very hard if we still use simple method above. In such case, we may need more data to train a CNN model in order to do the detection and train a linear regression model to estimate the clearance distance.

human-detection-in-depth-image's People

Contributors

l5shi 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.