KinectStatus在Kinect V2上

编程入门 行业动态 更新时间:2024-10-08 23:00:38
本文介绍了KinectStatus在Kinect V2上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

KinectSensor kinect = null;

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

非常感谢你。

解决方案

目前我正在使用属性IsAvailable,但要使用它我必须打开传感器以检查它是否已连接。是否有其他方法可以在不启动传感器的情况下检查设备是否连接到计算机?感谢

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.

解决方案

Currently I'm using the property IsAvailable, but to use this I have to open the sensor to check if it is connected. Is there another way to check if the device is conected to the computer without starting the sensor? Thanks

更多推荐

KinectStatus在Kinect V2上

本文发布于:2023-11-28 03:05:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640717.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:KinectStatus   Kinect

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!