Hzzone / pytorch-openpose

pytorch implementation of openpose including Hand and Body Pose Estimation.
2.02k stars 391 forks source link

样例代码里面,有个candidate字段无法解析。 #68

Closed allenxln closed 2 years ago

allenxln commented 2 years ago

https://www.paddlepaddle.org.cn/hubdetail?name=openpose_body_estimation&en_category=KeyPointDetection

人体关键点检测的服务部署部分代码,

canvas = base64_to_cv2(r.json()["results"]['data']) cv2.imwrite('keypoint_body.png', canvas)

确实可以把data字段解析出来,但是candidate用 base64_to_cv2 解析出来,压根没有可读性。candidate本来表示的是21个关键点的位置,可是用canvas = base64_to_cv2(r.json()["results"]['candidate']) 算出来,数据很奇怪,压根不是预测出来的关键点的位置序列。

各位大佬,是如何解析出来这个 r.json()["results"]['candidate'] 字段并且可解释里面字段的含义呢?