Kinect提取骨骼数据---新版本
来源:互联网 发布:sql select where and 编辑:程序博客网 时间:2024/06/04 17:58
此次更新改善了之前的无法单独确定一个人,此次更新可每个人完全分开,进入退出每个人都是独立状态。
此次更新是建立在之前的基础上,看不懂请转我的另一片文章,一些前面的定义是什么的都在另一篇文章中。
if (UserID1 == -1 && UserID2 != ID && UserID3 != ID && UserID4 != ID && UserID5 != ID && UserID6 != ID && body.HandLeftState == HandState.Closed && body.HandRightState == HandState.Closed && joints[(JointType)1].Position.Y < joints[(JointType)7].Position.Y && joints[(JointType)1].Position.Y < joints[(JointType)11].Position.Y) { UserID1 = ID; Warning.Text = "用户1进入体感控制"; } else if (UserID1 != ID && UserID2 == -1 && UserID3 != ID && UserID4 != ID && UserID5 != ID && UserID6 != ID && body.HandLeftState == HandState.Closed && body.HandRightState == HandState.Closed && joints[(JointType)1].Position.Y < joints[(JointType)7].Position.Y && joints[(JointType)1].Position.Y < joints[(JointType)11].Position.Y) { UserID2 = ID; Warning.Text = "用户2进入体感控制"; } else if (UserID1 != ID && UserID2 != ID && UserID3 == -1 && UserID4 != ID && UserID5 != ID && UserID6 != ID && body.HandLeftState == HandState.Closed && body.HandRightState == HandState.Closed && joints[(JointType)1].Position.Y < joints[(JointType)7].Position.Y && joints[(JointType)1].Position.Y < joints[(JointType)11].Position.Y) { UserID3 = ID; Warning.Text = "用户3进入体感控制"; } else if (UserID1 != ID && UserID2 != ID && UserID3 != ID && UserID4 == -1 && UserID5 != ID && UserID6 != ID && body.HandLeftState == HandState.Closed && body.HandRightState == HandState.Closed && joints[(JointType)1].Position.Y < joints[(JointType)7].Position.Y && joints[(JointType)1].Position.Y < joints[(JointType)11].Position.Y) { UserID4 = ID; Warning.Text = "用户4进入体感控制"; } else if (UserID1 != ID && UserID2 != ID && UserID3 != ID && UserID4 != ID && UserID5 == -1 && UserID6 != ID && body.HandLeftState == HandState.Closed && body.HandRightState == HandState.Closed && joints[(JointType)1].Position.Y < joints[(JointType)7].Position.Y && joints[(JointType)1].Position.Y < joints[(JointType)11].Position.Y) { UserID5 = ID; Warning.Text = "用户5进入体感控制"; } else if (UserID1 != ID && UserID2 != ID && UserID3 != ID && UserID4 != ID && UserID5 != ID && UserID6 == -1 && body.HandLeftState == HandState.Closed && body.HandRightState == HandState.Closed && joints[(JointType)1].Position.Y < joints[(JointType)7].Position.Y && joints[(JointType)1].Position.Y < joints[(JointType)11].Position.Y) { UserID6 = ID; Warning.Text = "用户6进入体感控制"; }
阅读全文
0 0
- Kinect提取骨骼数据---新版本
- KINECT同时提取六人骨骼数据
- Kinect开发学习笔记之(七)骨骼数据的提取
- Kinect开发学习笔记之(七)骨骼数据的提取(转)
- Kinect开发学习笔记之(七)骨骼数据的提取
- Kinect开发学习笔记之(八)骨骼数据的提取
- Kinect开发学习笔记之(七)骨骼数据的提取
- Kinect骨骼关节数据的获取
- Kinect 骨骼追踪数据的处理方法
- kinect读取人体骨骼点数据
- kinect读取骨骼点数据(二)
- Kinect API 自带骨骼数据平滑处理
- Kinect V2开发(6)骨骼数据平滑处理
- Kinect数据提取与坐标变换
- Kinect 骨骼追踪数据处理
- Kinect开发 骨骼示意图
- kinect骨骼追踪
- KINECT骨骼关节点对照表
- 一步一步理解线段树
- mysql多实例初始化及服务启动
- 如何更新JAR文件
- TensorFlow 基本操作
- 程序员的成长阶梯和级别定义
- Kinect提取骨骼数据---新版本
- DataGridView各操作
- 支持高并发的IIS Web服务器常用设置
- 【LeetCode】9. Palindrome Number
- 精通CSS(5.6.3-end)Pixy&Fairy&pureCSSToolHint&scale
- 如何正确遍历删除List中的元素,你会吗?
- Android 开发进阶之『清除应用中的内存泄漏』
- SpringSecurity小Demo
- lintcode(87)删除二叉查找树的节点