所以目前我有一个bool
PersonDetected
总是设置为false
除非检测到骨架。但目前当 aSkeletonTrackingState
被标记为Tracked
, 但PersonDetected
仍设置为 false。提前致谢
我的代码
Skeleton skeletons = new Skeleton();
if ((skeletons.TrackingState == SkeletonTrackingState.Tracked ||
skeletons.TrackingState == SkeletonTrackingState.PositionOnly) &
skeletons.TrackingState != SkeletonTrackingState.NotTracked)
{
PersonDetected = true;
}