本文介绍了KinectStatus在Kinect V2上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我需要知道是否有可能获得Kinect V2的状态,这与V1上的代码一致:

 

KinectSensor kinect = null;

foreach(KinectSensor.KinectSensors中的var potentialSensor)
{
if(potentialSensor.Status == KinectStatus.Connected)
{
kinect = potentialSensor;
休息;
}
}

非常感谢你。

解决方案

Hello, I need to know if its possible to obtain the status of the Kinect V2, something along the lines of this code on V1:

KinectSensor kinect = null;

foreach (var potentialSensor in KinectSensor.KinectSensors) { if (potentialSensor.Status == KinectStatus.Connected) { kinect = potentialSensor; break; } }

Thnak you very much.

解决方案


这篇关于KinectStatus在Kinect V2上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-21 18:38