我正在尝试检测合拳(握)手势来控制我在 Kinect 中的鼠标光标。我按照本教程进行设置: http ://dotneteers.net/blogs/vbandi/archive/2013/05/03/kinect-interactions-with-wpf-part-iii-demystifying-the-interaction-stream.aspx
但是,在 DummyInteractionClient.cs 文件中,我在以下行收到此错误:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Kinect.Toolkit.Interaction;
using Microsoft.Kinect.Toolkit;
using Microsoft.Kinect.Toolkit.Controls;
namespace Microsoft.Kinect.Toolkit.Controls
{
public class DummyInteractionClient : IInteractionClient
{
public InteractionInfo GetInteractionInfoAtLocation(
int skeletonTrackingId,
InteractionHandType handType,
double x,
double y)
{
var result = new InteractionInfo();
result.IsGripTarget = true;
result.IsPressTarget = true;
result.PressAttractionPointX = 0.5;
result.PressAttractionPointY = 0.5;
result.PressTargetControlId = 1;
return result;
}
}
}
错误在于 InteractionHandType handType。它说,错误 1 找不到类型或命名空间名称“InteractionHandType”(您是否缺少 using 指令或程序集引用?) E:\work\FYP\working\Kinect Mouse Controller switcher\kinectmouse CODE-96133\C双手锐放大\DummyInteractionClient.cs 18 13 Microsoft.Kinect.Samples.CursorControl 错误是什么意思?我是否缺少或使用了错误的命名空间名称?请帮助我不是 C# Kinect SDK 1.8 的专家。