C# 将 XBox 360 Kinect 与 Kinect for Windows SDK 结合使用
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9936272/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Using XBox 360 Kinect with Kinect for Windows SDK
提问by LandonSchropp
I'm working on a class project which is using a Kinect. According to the [Microsoft Kinect for Windows Information Page][1]:
我正在研究一个使用 Kinect 的课堂项目。根据 [Microsoft Kinect for Windows 信息页面][1]:
If you're receiving either of these error messages, you're probably using a Kinect for Xbox 360 and not the new Kinect for Windows. Make sure that your Kinect sensor is the Kinect for Windows sensor. (It's easy: Just make sure it says doesn't say "Xbox 360" on the front.)
If you're a software developer, you can use the Kinect for Xbox 360 together with your computer to test the software you're working on. However, to get the full Kinect for Windows experience, we recommend you download the Kinect for Windows SDK and use it with the Kinect for Windows.
Note Make sure that your Kinect sensor is the Kinect for Windows sensor. If it says "Xbox 360" on the front, it's the Kinect for Xbox 360, not the Kinect for Windows.
如果您收到这些错误消息中的任何一条,则您可能使用的是 Xbox 360 的 Kinect,而不是新的 Windows 的 Kinect。确保您的 Kinect 传感器是 Kinect for Windows 传感器。(这很简单:只要确保它前面没有说“Xbox 360”。)
如果您是软件开发人员,您可以将 Kinect for Xbox 360 与您的计算机一起使用来测试您正在开发的软件。但是,要获得完整的 Kinect for Windows 体验,我们建议您下载 Kinect for Windows SDK 并将其与 Kinect for Windows 一起使用。
注意 确保您的 Kinect 传感器是 Kinect for Windows 传感器。如果前面显示“Xbox 360”,则是 Xbox 360 的 Kinect,而不是 Windows 的 Kinect。
Despite the ambiguity of this message, it seems like I should be able to use an XBox 360 Kinect for development. The SDK only limits deployment, which is perfectly fine for my project.
尽管此消息含糊不清,但似乎我应该能够使用 XBox 360 Kinect 进行开发。SDK 只限制部署,这对我的项目来说非常好。
However, when I run the following code:
但是,当我运行以下代码时:
Console.WriteLine("Sensor count: " + KinectSensor.KinectSensors.Count);
Console.WriteLine("Sensor status: " + KinectSensor.KinectSensors[0].Status);
I get the output:
我得到输出:
Sensor count: 1
Sensor status: NotReady
What gives? My Kinect is connected to my computer. The green light on the front is blinking. Any help here would be appreciated.
是什么赋予了?我的 Kinect 已连接到我的计算机。前面的绿灯闪烁。任何帮助在这里将不胜感激。
采纳答案by Adam Mihalcin
You can use the Kinect SDK that was designed to work with the Kinect for XBox: the Kinect SDK Beta 2. Download it for free from microsoft.com.
您可以使用旨在与 Kinect for XBox 配合使用的 Kinect SDK:Kinect SDK Beta 2。从microsoft.com免费下载。
From the download link:
从下载链接:
The Kinect for Windows SDK beta provides hobbyists and researchers with the tools to develop non-commercial applications that run on the Kinect for Xbox 360.
Kinect for Windows SDK beta 为爱好者和研究人员提供了开发在Kinect for Xbox 360上运行的非商业应用程序的工具。
(emphasis mine)
(强调我的)
回答by lzcd
I'd suggest using the Kinect Explorer demo app supplied with the latest version of SDK first.
我建议首先使用最新版本的 SDK 提供的 Kinect Explorer 演示应用程序。
This will confirm whether it's just something to do with your particular solution or the interface to the Kinect in general.
这将确认这是否只是与您的特定解决方案或 Kinect 的一般接口有关。
You also might want to try iterating through the KinectSensor.KinectSensors collection to see whether it gives a different result to the Count property.
您可能还想尝试遍历 KinectSensor.KinectSensors 集合,以查看它是否为 Count 属性提供了不同的结果。
回答by Atul Verma
Kinect sensor needs high power supply and normal USB port doesn't provide sufficient power. Make sure that along with USB plugged in, Kinect sensor's power adapter is plugged in too.
Kinect 传感器需要大功率供电,普通的 USB 端口无法提供足够的电量。确保在插入 USB 的同时,Kinect 传感器的电源适配器也已插入。

