gpt4 book ai didi

c# - 是什么导致 Kinect 错误 "Warning, a Skeleton Frame was not disposed",我该如何解决?

转载 作者:行者123 更新时间:2023-11-30 22:31:26 25 4
gpt4 key购买 nike

是什么原因导致 Kinect 错误“警告,未处理骨架”,我该如何解决?我正在尝试将 Microsoft Kinect 1.0 SDK 与 C# 结合使用。

最佳答案

您需要如下所示处理 SkeletonFrame

private void KinectAllFramesReady(object sender, AllFramesReadyEventArgs e)
{
if (!((KinectSensor)sender).SkeletonStream.IsEnabled)
{
return;
}

using (SkeletonFrame skeletonFrame = e.OpenSkeletonFrame())
{
// Rest implementation
}

关于c# - 是什么导致 Kinect 错误 "Warning, a Skeleton Frame was not disposed",我该如何解决?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9249133/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com