1

我需要运行 openpose 并从中获取输出关键点数据。我相信这里有关于如何做到这一点的描述:

https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/demo_overview.md

但是,按照此处描述的构建 openpose 的说明进行操作后:

https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md

CMake 构建中或我计算机上的其他任何地方都不存在名为“openpose.bin”的必要文件。

我认为问题可能与此处描述的 JSON 文件的使用有关:

https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/output.md

但我不确定。似乎不是那种保存输出的方法,我在第一个链接中引用的方法相互依赖。

克隆 GitHub 会创建几个文件:openpose/include/openpose/headers.hpp 和 openpose/include/openpose/flags.hpp

flags.hpp 中的注释说它们不会自动包含在 headers 中,我认为这可能与我的问题有关,因为 flags.hpp 中引用了一些与保存输出相关的文件,我知道的不够多关于编程以确切了解如何包含 flags.hpp

#ifndef OPENPOSE_FLAGS_HPP
#define OPENPOSE_FLAGS_HPP

// Note: This class is not included within the basic OpenPose `headers.hpp` and must be explicitly included. In
// addition, Google Flags library must also be linked to the resulting binary or library. OpenPose library does
// not force to use Google Flags, but the OpenPose examples do so.

…

DEFINE_string(write_json,               "",             "Directory to write OpenPose output in JSON format. It includes body, hand, and face pose"
                                                        " keypoints (2-D and 3-D), as well as pose candidates (if `--part_candidates` enabled).");

我可以进行演示运行,以渲染叠加了视觉关键点的图像,但我需要的是这些关键点的参数以执行进一步处理。

4

0 回答 0