检测用户激活 [英] Detect User Activation

查看:81
本文介绍了检测用户激活的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有我可以附加的事件以检测用户是否已进入Kinect的视线。  我希望能够检测到用户走进视图并且有人在那里并启动一些代码。  另外一个事件来知道是否有在Kinect的前面没有
当前用户

解决方案

乘坐 看BodySample- WPF样本。 基本上你将拥有你将连接的BodyFrameReader,并且在它的FrameArrived事件中你可以循环遍历各个实体。 如果没有,则无需迭代。



                   





foreach var body
in 。bodies)



{


                     &NBSP ; 





if (body.IsTracked)



{











                       &NB SP; }




Is there an event I can attach to in order to detect a user has entered Kinect's line of sight.  I want to be able to detect a user walk into view and have kinect someone is there and kick off some code.  Also an event to know if there is no current user in front of Kinect?

解决方案

Take a look at the BodySample-WPF sample.  Basically you'll have BodyFrameReader that you'll connect and in its FrameArrived event you can loop through the bodies.  If there are none - there will be nothing to iterate over.

                   

foreach(varbody inthis.bodies)

{

                       

if(body.IsTracked)

{


                        }


这篇关于检测用户激活的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆