如何在纵向视图中使用Kinect移动光标? [英] How to Move Cursor with Kinect in Portrait view?

查看:75
本文介绍了如何在纵向视图中使用Kinect移动光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我正在尝试开发一个可以用我的手移动Cursor的应用程序。我用我的手写了完整的代码及其移动光标,但范围非常有限,当我移动我的手时,光标不会相应移动。我已经抓住了手点
并使用以下代码设置鼠标位置。

I am trying to develop an application that will move Cursor with my hand. I have written the complete code and its moving cursor with my Hand but scope is very limited, When i move my hand, the cursor does not move accordingly. I have grab the hand points and set the mouse position by using the following code.

DepthImagePoint handPt;

Joint hand = skl.Joints [JointType.HandRight]; 

Joint hand = skl.Joints[JointType.HandRight]; 

handPt = sensor.CoordinateMapper.MapSkeletonPointToDepthPoint(hand.Position,DepthImageFormat.Resolution640x480Fps30);

handPt = sensor.CoordinateMapper.MapSkeletonPointToDepthPoint(hand.Position, DepthImageFormat.Resolution640x480Fps30);

Mouse.setPosition(HandPt.X,handPt.Y)

Mouse.setPosition(HandPt.X, handPt.Y)

请告诉我如何在纵向视图中正确移动鼠标

Kindly tell me how move mouse correctly in Portrait view

推荐答案

在方向中不支持Kinect没有水平安装。 Kinect的训练数据要求地板在重力作用下位于传感器下方。
Kinect is not supported in orientations that are not mounted horizontally. The training data for Kinect requires that the floor is below the sensor following gravity.


这篇关于如何在纵向视图中使用Kinect移动光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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