我在docker 容器中使用openpose。以下命令创建图像,其中检测到的关键点打印在原始图像上。
openpose -display=0 -image_dir=/data -write_images=/data -face=true -hand=true
Run Code Online (Sandbox Code Playgroud)
我怎样才能做到这一点?
您可以使用--disable_blending标志,如下所述: https: //github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/01_demo.md#main-flags
--disable_blending:如果启用,它将在黑色背景上渲染结果(关键点骨架或热图),而不显示原始图像。相关:part_to_show、alpha_pose、 和alpha_pose。