错误 1 未能找到类型或命名空间名称“Skeleton”(是否缺少 using 指令或程序集引用?)
用C#语言编写的,不知道这个问题该怎么解决,求大神指导,谢谢。usingSystem;usingSystem.Collections.Generic;usingSyste...
用C#语言编写的,不知道这个问题该怎么解决,求大神指导,谢谢。
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Kinect;namespace 鼠标状态映射{ class SkeletonManager { public static Skeleton[] skeletons; public static void fillSkeletons(SkeletonFrame skeletonFrame) { if (skeletonFrame == null) return; if (skeletons == null || skeletons.Length != skeletonFrame.SkeletonArrayLength) skeletons = new Skeleton[skeletonFrame.SkeletonArrayLength]; skeletonFrame.CopySkeletonDataTo(skeletons); skeletonFrame.Dispose(); } public static Skeleton getSkeleton() { foreach (Skeleton s in skeletons) { if (s.TrackingState == SkeletonTrackingState.Tracked)
return s; } return null; } }} 展开
using System;using System.Collections.Generic;using System.Linq;using System.Text;using Microsoft.Kinect;namespace 鼠标状态映射{ class SkeletonManager { public static Skeleton[] skeletons; public static void fillSkeletons(SkeletonFrame skeletonFrame) { if (skeletonFrame == null) return; if (skeletons == null || skeletons.Length != skeletonFrame.SkeletonArrayLength) skeletons = new Skeleton[skeletonFrame.SkeletonArrayLength]; skeletonFrame.CopySkeletonDataTo(skeletons); skeletonFrame.Dispose(); } public static Skeleton getSkeleton() { foreach (Skeleton s in skeletons) { if (s.TrackingState == SkeletonTrackingState.Tracked)
return s; } return null; } }} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询