stevenjj / openpose_ros

A ros wrapper for the CMU openpose library
60 stars 25 forks source link

Skeletons works not well. #5

Closed pyni closed 6 years ago

pyni commented 6 years ago

Hi, i use your code, but when i use skeleton node , this effect is shown as follows: default The rgb works well , but the skeletons are in a mess

pyni commented 6 years ago

i use xtion camera and openni driver the settings are like this: default Both rgb and depth are 640 X 480 So could you please give me some advices?

stevenjj commented 6 years ago

Hi. Your 2D detection seems to not have the correct resolution. Did you change the resolution values in openpose_ros_pkg/src/openpose_ros_node_firephinx.cpp

#define OUTPUT_RES_X 1280 // Display Resolution Output Width
#define OUTPUT_RES_Y 720  // Display Resolution Output Height

and skeleton_extract_3d/src/skeleton_extract_3d_node.cpp

#define width  960
#define height 540

? If not, try changing them to

#define OUTPUT_RES_X 640 // Display Resolution Output Width
#define OUTPUT_RES_Y 480  // Display Resolution Output Height

and

#define width  640
#define height 480

respectively. These values must match your camera's resolution.

pyni commented 6 years ago

default

Yeah, i find it. it is in openpsoe_ros_node_3d.cpp output_size.x = getParam(local_nh, "output_width", 640); output_size.y = getParam(local_nh, "output_height", 480); Thanks for your code!