Skip to main content
模型来源于 MediaPipe Hand Landmark Detector,这是一个用于预测图像中手部边界框和姿态骨架的机器学习管线。该示例应用允许您输入一张名为 input_image.jpg 的图像,然后以 ROS topic handlandmark_result 发布结果。它使用 Qualcomm AI Engine Direct SDK (QNN) 进行模型推理。
有关模型信息,请参见 MediaPipe-Hand-Detection。有关更多信息,请参见 sample_hand_detection GitHub 仓库。
下图展示了手部检测结果的示例。
Hand detection result showing an open palm with a skeletal overlay and bounding boxes drawn around the hand and the palm.

sample_hand_detection 的管线流程

下图展示了 sample_hand_detection 的管线流程。
Hand detection pipeline from the image publisher through the hand detector node to the published hand landmark result topic.

sample_hand_detection 管线。

sample_hand_detection 管线中使用的 ROS 节点

下表列出了 sample_hand_detection 管线中使用的 ROS 节点。

sample_hand_detection 管线中使用的 ROS topic

下表列出了 sample_hand_detection 管线中使用的 ROS topic。

前提条件

您已根据 安装 QIR SDK 在设备上完成设备设置、安装 ROS2 Jazzy 和 Qualcomm Intelligent Robotics (QIR) SDK。

运行开箱即用的 sample_hand_detection

1

为运行示例应用创建必要的目录

Create the output directories
2

在开发套件上运行以下命令

Launch the sample application
3

在主机上运行以下命令

a. 启动 rqt。
b. 依次选择以下按钮:
c. 选择 handlandmark_result 查看结果。