Can HUSKYLENS 2 combine Pose Recognition and Emotion Recognition?
shu.pang 2026-06-30 21:56:11 238 Views1 Replies Hi,
Can HUSKYLENS 2 run Pose Recognition and Face Emotion Recognition together?
If yes, how should I enable and use both algorithms at the same time? Is there any example code for this combination?
Thank you.
Hi,
You can refer to the official multi-algorithm example here:
https://github.com/DFRobot/DFRobot_HuskylensV2/tree/master/examples/MultiAlgos
The related library is here:
https://github.com/DFRobot/DFRobot_HuskylensV2
In the multi-algorithm example, please check the use of setMultiAlgorithm() andsetMultiAlgorithmRatio().
setMultiAlgorithm() is used to enable multiple algorithms, and setMultiAlgorithmRatio() is used to allocate processing resources between them. For example, a 1:1 ratio means both algorithms share the processing time equally; a 2:1 ratio gives the first algorithm more processing time, while the second one updates more slowly.
Please note that running Pose Recognition and Emotion Recognition together will reduce the frame rate compared with running only one algorithm.
Yx 

