用户离开屏幕C#时不重置TrackingId Kinect [英] Do no reset TrackingId Kinect when user left screen C#

查看:95
本文介绍了用户离开屏幕C#时不重置TrackingId Kinect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的情况下,我使用body.TrackingId的Kinect Sensor跟踪身体 然后在每个身体上我绘制不同颜色的骨骼.

In my situation i track bodies with Kinect Sensor with body.TrackingId and after on each body i draw a skeleton in different color.

但是,当用户离开屏幕并返回时,新的ID分配给了该播放器,我无法使用旧的ID.

But when an user left the screen and come back a new id is assigned to this player and i can't take the old id.

这种情况非常棘手,因为:如果一个玩家继续领先另一个玩家,第二个玩家的ID将丢失.

This situation is very problematic because: if a player go ahead another player the id of the second player will be lost.

有人可以知道我应该识别谁,而不用给出新的TrackingId

Can someone know who i can to to recognize if it was a same player without giving a new TrackingId

谢谢.

推荐答案

我认为这是不可能的.每次传感器分配新的ID.我唯一能想到的就是您是否根据颜色进行跟踪.使用Aforge之类的框架.

I dont thinks this is possible. Every time the sensor assigns new ID's. The only think i can think of is if you track depending on the color. Using a framework like Aforge.

这篇关于用户离开屏幕C#时不重置TrackingId Kinect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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