Skip to main content
sample_hrnet_pose_estimation 示例应用使用 ROS 2 节点提供高精度的人体姿态估计。它使用 Qualcomm® AI Engine Direct SDK (QNN) 进行模型推理。 它处理输入图像并发布以下 ROS 2 topic:
  • /pose_estimation_results:带有可视化姿态关键点的输出图像。
  • /pose_estimation_points:以结构化消息格式表示的原始关键点坐标。
注意

图:sample_hrnet_pose_estimation 的示例效果

sample_hrnet_pose_estimation 的流水线流程

图:sample_hrnet_pose_estimation 的流水线流程

sample_hrnet_pose_estimation 中使用的 ROS 节点

sample_hrnet_pose_estimation 中使用的 ROS topic

注意/pose_estimation_points 包含原始图像上 17 个关键点的坐标。开发者可以订阅此 topic 进行二次开发。关键点包括:鼻子、左眼和右眼。具体对应关系如下:

前提条件

你已完成 设置运行示例应用的环境 中的设置。

开箱即用运行 sample_hrnet_pose_estimation

1

在开发套件上运行示例

SSH Session
2

在主机计算机上查看结果

  1. 启动 rqt。
    SSH Session
  2. 依次选择以下按钮: Plugins —> Visualization —> Image View
  3. 选择 pose_estimation_results 以查看结果。
  4. 打开一个新终端并运行以下命令以查看 /pose_estimation_points topic。
    SSH Session

构建并运行 sample_hrnet_pose_estimation

以下步骤以 Dragonwing IQ-9075 Evaluation Kit 为例构建 sample_hrnet_pose_estimation 包。
1

在主机计算机上构建并打包

  1. 构建示例应用项目。
  2. 打包并将示例应用推送到设备。
2

在开发套件上安装并运行

  1. 安装示例应用。
    SSH Session
  2. 按照 开箱即用运行 sample_hrnet_pose_estimation 中的步骤运行示例应用。