有关C ++开放式编程的问题 [英] Questions about C++ Open-Pose Programming

查看:171
本文介绍了有关C ++开放式编程的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Heo Ji Wook,在韩国一所大学主修信息通讯. 请让我们知道您使用的是英语翻译,即使措词不便也能理解.

I am Heo Ji Wook, majoring in information communication at a university in Korea. Please let us know that you are using an English translator and understand even if the flow of words is awkward.

我正在创建一个C ++程序,该程序可以检查是否可以使用Openpose以正确的姿势使用计算机?" 我们使用openforce测试了smleton跟踪,在这里我想知道肩膀的关键点是否在一条直线上. 我已经通过Google看到数据已存储在JSON上,但是我不确定.

I am creating a C++ program that can check 'Do I use my computer in my right posture using Openpose?' We used openforce to test for smleton tracking, and here I'd like to know if the key point of the shoulder was in line. I've seen through Google that data is being stored on JSON, but I'm not sure.

如果您能给我一个提示,我将不胜感激. 感谢您阅读我的问题. 祝你有美好的一天.

I would really appreciate it if you could give me a hint. Thank you for reading my question. Have a nice day.

打开测试图像

*开发环境

  • Win 10 64 Pro

  • Win 10 64 Pro

Visual Studio 2017社区

Visual Studio 2017 Community

CMake 3.13.3

CMake 3.13.3

Openpose 1.4.0

Openpose 1.4.0

CUDA 8.0.61赢得10

CUDA 8.0.61 win 10

Cudnn 8.0赢得10 64 v5.1

Cudnn 8.0 win 10 64 v5.1

推荐答案

您可以按照@nchaumont建议将关键点导出到json文件中进行操作.或者,您可以通过

You can follow what @nchaumont suggested with the key points are exported to an json file. Or you could directly get them inside openpose by

  1. 从github github上的Dlib
  2. 下载源代码
  3. 在文件/include/openpose/pose/wPoseExtractor.hpp中由功能void work(TDatums& tDatums)实施
  4. 按以下代码获取关键点
  1. Download the source code from github Dlib on github
  2. Implement by the function void work(TDatums& tDatums) in the file /include/openpose/pose/wPoseExtractor.hpp
  3. Get the keypoints as below code

auto& ProceedData =(* tDatums)[0]; //获取第一人称视角的关键点

auto &ProceedData = (*tDatums)[0]; //get the key points of the first person

数组关键点= ProceedData.poseKeypoints;

Array keypoints = ProceedData.poseKeypoints;

  1. 然后您可以继续处理关键点

这篇关于有关C ++开放式编程的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆