Coder Social home page Coder Social logo

naveenbiitk / 3d_human_pose_estimation_ros_cpu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prakadeeswaran05/3d_human_pose_estimation_ros_cpu

0.0 1.0 0.0 7.11 MB

Estimating 3d Landmarks and displaying them in rviz (Cpu)

License: MIT License

Python 100.00%

3d_human_pose_estimation_ros_cpu's Introduction

3d_Human_Pose_Estimation_ROS_Cpu

This repo contains code that takes in estimated 2d anatomical landmarks in image coordinate(u,v) and convert them to world coordinate(x,y,z).Also,these projected landmarks are displayed in rviz with the help of sphere markers(joints) that are joined together with line markers(links). Here I have used two approaches to estimate the 3d landmarks.

1.To get world coordinate(x,y,z) from camera intrinsic parameters: (see 3dposedepth.py)
Z = depth_image[v,u]
X = (u - cx) * Z / fx
Y = (v - cy) * Z / fy

where,
cx=X-axis optical center in pixels
cy=Y-axis optical center in pixels.
fx=X-axis focal length in meters
fy=X-axis focal length in meters

2.Using the existing pc2.read_points function which takes in pointcloud and 2d anatomical landmark(in img coordinate) and returns the same point in world coordinate. (see 3dposepcl.py)


Output




Output First Approach






Output Second Approach


I personally found that first approach was faster than the second one. For the second approach, after moving human model in gazebo it took some time for 3d pose to appear in Rviz.

PS: I tested these codes in Ubuntu 18 VM without GPU

3d_human_pose_estimation_ros_cpu's People

Contributors

naveenbiitk avatar prakadeeswaran05 avatar

Watchers

 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.