Git Product home page Git Product logo

ros-openpose's Introduction

openpose-ros

CMU's Openpose for ROS

posefacehands

Update Information

I re-implemented cmu's openpose in tensorflow with some modifications.

Especially, using Mobilenet's 'Depthwise Separable Convolution', I improved it to run in realtime even in an low-computation embedded deivce or only-cpu environment.

See : https://github.com/ildoonet/tf-openpose

Implementation

  • Broadcasting Ros Message
  • Humans Pose Estimation
  • Face Landmark
  • Hand Pose Estimation

Installation

Openpose

See Openpose.

After building openpose, set the environment variable OPENPOSE_HOME.

$ export OPENPOSE_HOME='{path/to/your/openpose/home}'

Packages

$ sudo apt-get install ros-indigo-image-common ros-indigo-vision-opencv ros-indigo-video-stream-opencv ros-indigo-image-view

Catkin Build

$ cd src
$ git clone https://github.com/ildoonet/ros-openpose
$ cd ..
$ catkin_make

Message

Parameter

  • resolution(string, default: 640x480) : input image resolution
  • net_resolution(string, default: 640x480) : network resolution
  • num_gpu(int, default: -1) : number of gpus to use. -1 indiciates 'all'.
  • num_gpu_start(int, default: 0) : first index of gpu to use.
  • model_pose(string, default: COCO) : pose estimation model name provided by openpose.
  • no_display(bool, default: false) : if true, it will launch opencv image view to show realtime estimation.
  • camera(string, default: /camera/image)
  • result_image_topic(string, default: '') : if provided, it will broadcast image with estimated pose.

Broadcast

BodyParts are stored as indexed Nose = 0 Neck = 1 RShoulder = 2 RElbow = 3 RWrist = 4 LShoulder = 5 LElbow = 6 LWrist = 7 RHip = 8 RKnee = 9 RAnkle = 10 LHip = 11 LKnee = 12 LAnkle = 13 REye = 14 LEye = 15 REar = 16 LEar = 17

Example

Launch File Example

<node name="openpose_ros_node" pkg="openpose_ros_node" type="openpose_ros_node" output="screen" required="true">
        <param name="camera" value="/videofile/image_raw" />
        <param name="result_image_topic" value="/openpose/image_raw" />
        <param name="resolution" value="480x320" />
        <param name="face" value="false" />
    </node>

Test with Camera/Video Files

$ roslaunch openpose_ros_node videostream.launch video:=0 video_visualize:=true
$ roslaunch openpose_ros_node videostream.launch video:=${filepath} video_visualize:=true

USB Camera Example

See /launch/videostream.

ros-openpose's People

Contributors

ildoonet avatar jacques-saraydaryan avatar m0rph03nix avatar

Watchers

James Cloos 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.