本文介绍了如何使用KinectSDK1.8获取kinect序列号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在我从4 Kinect和Kinect SDK 1.8获得深度数据和颜色数据。



我使用Windows 8,Visual Studio 2013,Kinect SDK 1.8和Kinect v1×4





$

Now I'm getting depth datas and color datas from 4 Kinect with Kinect SDK 1.8.

I use Windows 8, Visual Studio 2013, Kinect SDK 1.8 and Kinect v1 × 4



/***** getINuiSensor Instance *****/	

INuiSensor* sensor;	
HRESULT result = S_OK;		//	device_id : 0~3	

result = NuiCreateSensorByIndex((int)std::stoi(device_id),&sensor);









但是这样,Kinect和"device_id"> b $ b的一对,例如设备连接的顺序就会改变。



因此,为了指定要更明确地启动的设备,

我想知道如何在Windows上获取kinect的序列号。



我知道有办法获得INuiSensor实例 
通过OpenNI从设备管理器获取的序列号




使用Kinect SDK,如何使用序列号获取INuiSensor实例?

如果Kinect SDK没办法,请告诉我一些好主意。





But this way, the couple of the Kinect and "device_id" 
such as the order of the device connection is changed.

Therefore, in order to specify the device to start more explicitly,
I would like to know how to get the serial number of kinect on Windows.

I know the way that There is a way to get INuiSensor Instance 
by a serial number getting from the device manager with OpenNI.

With Kinect SDK, how to get the INuiSensor Instance using the serial number ?
If Kinect SDK have no way it, please tell me some good ideas about that.

推荐答案

至于您使用的api,它只会为设备连接的端口提供唯一标识符至。将另一个Kinect设备插入相同的USB2端口将获得相同的价值。请参阅讨论此问题的其他主题。

As for the api you are using, that will only provide a unique identifier for the port the device is connected to. Plugging in another Kinect device to the same USB2 port will get you the same value. See other threads that discuss this.

Kinect SDK级别没有任何内容可以让您识别确切的设备。您可能需要查看Win32 / OS级别的api来查看通过原始驱动程序公开的内容。查询设备的工具可以让你看到这些api可以提供的
是USBView。

There is nothing at a Kinect SDK level that will allow you to identify the exact device. You may need to look at Win32/OS level api's to see what is exposed through the raw driver. A tool to query the device that will let you see what these api's can provide is USBView.


这篇关于如何使用KinectSDK1.8获取kinect序列号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-01 18:36