我如何才能知道被跟踪的人是否幸福? [英] How can i know the man who was tracked happy or not?
问题描述
我已经使用了Microsoft.Kinect.Face,我找到了最干净的身体,只是想做某事如果有人微笑,就像这段代码如果(XXXX ==
FaceFrameFeatures.Happy){做某事......} 如何编写代码?谢谢
I using the Microsoft.Kinect.Face already,and i found the cloest body, just want to do something if someone smile,like this code if(XXXX== FaceFrameFeatures.Happy){do something...} how to write the code? Thanks
推荐答案
当您在FaceFrame_Arrived事件处理程序中获取FaceFrame时,您可以访问FaceFrameResult,它为您提供FaceProperties字典,您可以在其中找到"Happy"FaceProperty。
When you get the FaceFrame in the FaceFrame_Arrived event handler, you can access FaceFrameResult which gives you the FaceProperties Dictionary where you can find the "Happy" FaceProperty.
FaceBasics(非HD)SDK示例可以指导您完成此过程。
FaceBasics (not HD) SDK sample can guide you in this process.
这篇关于我如何才能知道被跟踪的人是否幸福?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!