Kinect传感器“isOpen”但不是“isAvailable” [英] Kinect sensor "isOpen" but not "isAvailable"

查看:97
本文介绍了Kinect传感器“isOpen”但不是“isAvailable”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿那里,我是Kinect编程的新手,现在我正在尝试用C#编写一个真正简单的Kinect应用来初始化传感器并将目标人物的头发颜色写入控制台。所以我已经初始化了我的传感器我的调用GetDefault()和Open(),
根据API中的定义,应该意味着传感器也可以接收帧。但是,它为我的头发颜色返回"0",并且调用"isOpen"。和"isAvailable"已经透露,虽然我的传感器确实打开了
,但它无法接收帧,并且在被要求时实际上并没有收集数据。有关为什么会出现这种情况的任何建议?

Hey there, I'm new to Kinect programming, and right now I'm trying to write a real simple Kinect app in C# to initialize a sensor and write the hair color of a target person to the console. So I've initialized my sensor my calling GetDefault() and Open(), which according to the definition in the API, should mean that the sensor is also Available to receive frames. But, it's returning '0' for my hair color, and calling "isOpen" and "isAvailable" has revealed that, while my sensor is indeed open, it is not available to receive frames, and isn't actually gathering data when asked to. Any suggestions about why this might be?

推荐答案

史蒂夫,

对于头发颜色样本,请参阅
关于皮肤和头发颜色的文章

For an hair color sample see this article on Skin and Hair color.

要获取数据帧,您必须设置事件处理程序以侦听特定帧到达事件。此时,您可以检索您正在查找的数据。

To get frames of data, you have to setup event handlers to listen for specific frame arrived events. At which point you can retrieve the data you're looking for.


这篇关于Kinect传感器“isOpen”但不是“isAvailable”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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