Kinect现在,但无法初始化? [英] Kinect Present, But Can't Initialize?
本文介绍了Kinect现在,但无法初始化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨:
我的机器能够看到附加了Kinect,但无法实际初始化和使用Kinect。 呼叫运行时.Initialize返回失败(包含在异常中的E_FAILURE)。 但是,对Runtime.Kinects.Count的调用会成功。
任何想法?
My machine is able to see that a Kinect is attached, but isn't able to actually initialize and use the Kinect. Calls to Runtime.Initialize return failure (E_FAILURE wrapped in an exception). However, calls to Runtime.Kinects.Count succeed. Any ideas?
这是一个快速的复制品,取自WorkingWithDepthData样本:
Here's a quick repro, taken from the WorkingWithDepthData sample:
if (Runtime.Kinects.Count == 0)
{
this.Title = "No Kinect connected";
}
else
{
//use first Kinect
nui = Runtime.Kinects[0];
//UseDepthAndPlayerIndex and UseSkeletalTracking
//Next line throws an exception
nui.Initialize(RuntimeOptions.UseDepthAndPlayerIndex | RuntimeOptions.UseSkeletalTracking);
// ...
}
推荐答案
只是一个想法,但也许Kinect没有插入电源插座。这使得它显示出来,但不起作用。
Just an idea, but maybe the Kinect isn't plugged into a power point. That makes it kind of show up, but not work.
这篇关于Kinect现在,但无法初始化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文