本文介绍了如何重构KinectSensor GetDefault的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要为我正在制作的显示器运行两个运动。不幸的是,KinectSensor.Sensors在Kinect SDK 1.0之后被移除了,所以我们所有人都可以访问KinectSensor.GetDefault,它返回计算机的"默认"信息。 Kinect的。
怎么能重构"GetDefault"允许我传入一个设备ID作为参数?

I'm needing to run two kinects for a display piece I'm working on. Unfortunately the KinectSensor.Sensors was removed after Kinect SDK 1.0 so all we have access to is KinectSensor.GetDefault which returns the computer's "default" kinect. How can I refactor "GetDefault" to allow me to pass in a device id as a parameter?

推荐答案

所以基本上它不只是一台机器上的许多操作传感器,而是每台机器只有一个传感器。

So basically it's not just one operating sensor out of many on one machine, but really only one sensor per machine.

我不知道认为你有可能重写它。执行此操作的代码部分可能位于已关闭的源dll中。接近这种情况的方法是通过多台带有Kinects的机器和某种peer2peer或客户端服务器
设置。

I don't think it's possible for you to rewrite it. The part of the code that does that is probably inside the closed source dll. The way to do approach such a scenario is only through multiple machines with Kinects and some kind of peer2peer or client server setup.


这篇关于如何重构KinectSensor GetDefault的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 07:52