修改Gesture Builder Basics-WPF只能获得一个人 [英] Modify Gesture Builder Basics- WPF to only get one person

查看:156
本文介绍了修改Gesture Builder Basics-WPF只能获得一个人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我是新用的Kinect,我正在尝试修改Kinect示例"Gesture Builder Basic-WPF"。此示例可以选择检测6个人,并且对于每个人,它具有根据人是否坐着而改变的图片。
我如何更改代码以便检测一个人?我已经改变了外观以显示一张照片和骨架。

I'm new usign Kinect and I'm trying to modify the Kinect example "Gesture Builder Basic- WPF". This example has the option to detect 6 people, and for each people it has a picture that is changed depending if the person is seated or not. How can I change the code in order to detect one person? I have change the appearence to show one picture and skeleton.

我希望你能帮助我,

谢谢。

推荐答案

您的意思是DiscreteGestureBasics-WPF吗?如果是这样,请查看 Reader_BodyFrameArrived
方法(第222-244行)。代码循环通过可用的主体来管理手势检测器。你不能告诉Kinect只跟踪一个身体,相反,你必须写一些代码来"过滤"按照你自己的标准(例如最接近传感器的那个,第一个获得有效跟踪状态的那个)来获取你想要遵循的那个身体。

Do you mean DiscreteGestureBasics-WPF? If so, take a look at the Reader_BodyFrameArrived method (lines 222-244). The code loops through available bodies to manage gesture detectors. You cannot tell Kinect to track only one body, instead, you will have to write some code to "filter" the bodies and get the one you want to follow according to your own criteria (e.g. the one nearest to the sensor, the first to get a valid tracking state...).


这篇关于修改Gesture Builder Basics-WPF只能获得一个人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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