sample_face_detection sample application detects faces and locates facial landmarks from images using the Python-based ROS 2 node sample_face_detection, which uses Qualcommยฎ AI Engine Direct SDK (QNN) for model inference.
The models are sourced from Qualcomm AI-hub. It captures the face_image.jpg as input and publishes the result to the /mediaface_det_image topic.
Note
- For model information, see MediaPipe-Face-Detection - Qualcomm AI Hub.
- For details about the sample application, see sample_fact_detection on GitHub
Figure: Sample effects of sample_face_detection
Pipeline flow for sample_face_detection
Figure: Pipeline flow for sample_face_detection
ROS nodes used in sample_face_detection
ROS topics used in sample_face_detection
Prerequisites
You have completed the settings in Set up the environment for running sample applications.Run out-of-the-box sample_face_detection
Try me
Try me
1
Run the sample on the development kit
SSH Session
NoteThis sample application supports JPG images only. You can test it using one of your own images with a different filename.
2
View the results on the host computer
- Start the
rqt.SSH Session - Select the following buttons in sequence: Plugins โ> Visualization โ> Image View
- Select
mediaface_det_imageto see the results.
Build and run sample_face_detection
The following steps build the sample_face_detection package using Dragonwing IQ-9075 Evaluation Kit as an example.
Try me
Try me
1
Build and package on the host computer
- Build the sample application project.
- Package and push the sample application to the device.
2
Install and run on the development kit
- Install the sample application.
SSH Session
- Run the sample application with the steps in Run out-of-the-box sample_face_detection.

