骨架查看器绑定 [英] Skeleton Viewer binding

查看:64
本文介绍了骨架查看器绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用SDK V1.0和Kinect for Windows硬件运行的示例应用程序。

I had a sample app running using SDK V1.0 and Kinect for Windows hardware.

该应用程序将使用SkeletonViewer控件显示骨架并显示左手的X,Y,Z距离。

The app would display the skeleton using the SkeletonViewer control and display the X,Y,Z distances for the left hand.

今天我升级到V1.5并且无法让SkeletonViewer控件工作。 V1.0有一个SensorChooser控件,我可以绑定到SkeletonViewer控件的Kinect属性,它会显示骨架。

Today I upgraded to V1.5 and I cannot get the SkeletonViewer control to work. V1.0 had a SensorChooser control which I could bind to the Kinect property of the SkeletonViewer control and it would display the skeleton.

SkeletonViewer和SensorChooser控件是示例的一部分.WpfViewers项目。

The SkeletonViewer and SensorChooser control were part of the samples.WpfViewers project.

使用V1.5时,SensorChooser控件丢失,因此我将KinectSensorManager绑定到KinectSensorManager属性,如Kinect explorer示例所示。

With V1.5 the SensorChooser control is missing, so I bound the KinectSensorManager to the KinectSensorManager property as shown in the Kinect explorer example.

<my:KinectSkeletonViewer KinectSensorManager="{Binding KinectSensorManager}" Visibility="Visible" Width="320" Height="240" ImageType="Color" ShowBones="True" ShowJoints="True" ShowCenter="True"/>

在我的代码中我启用了SkeletonStream。

In my code behind I have enable the SkeletonStream.

我可以获得X, Y,Z距离显示。它不是为我绘制骨架。

I can get the X,Y,Z distances to display. It is just not drawing the skeleton for me.

我检查了Skeleton Basics样本,但他们没有使用SkeletonViewer控件,手动绘制骨架。

I checked out the Skeleton Basics sample but they do not use the SkeletonViewer control out there, the skeleton is drawn manually.

我很感激,如果有人可以帮助我控制这个控件,或者向我展示一个演示如何使用这个控件(或者KinectColorViewer或KinectDepthViewer控件)的示例项目。

I would appreciate it if someone could help me to get this control working or show me a sample project demonstrating how to use this control (or the KinectColorViewer or KinectDepthViewer controls).

问候,

Yash

注意:我也无法使KinectColorViewer或KinectDepthViewer控件生效。

Note: I also cannot get the KinectColorViewer or KinectDepthViewer controls to work.

推荐答案

我读到的文档说,带有kinect的WPF应用程序的接口具有从连接到kinect的后端分离的选择器控件UI。我将看看kinect鼠标样本是否已更新其样本但尚未涉及v1.5。
The docs I read say that the interfaces for WPF apps with kinect has the chooser control UI seperated from the backend that attachs to the kinect. I will see if the kinect mouse sample has updated their sample yet to involve v1.5.


这篇关于骨架查看器绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆