我正在为 HoloLens 2 制作一个应用程序,它也使用 Azure Kinect DK 来实现一些身体跟踪功能(带有步行手势)。我一直在使用 Holographic Remoting 在 Unity 编辑器中顺利测试它,但是当我构建应用程序并将其部署到 HoloLens 2 上时,我在 HoloLens 上显示此错误:
DllNotFoundException: Unable to load DLL 'k4a'. Tried the load the following dynamic libraries: Unable to load dynamic library 'k4a' because of 'Failed to open the requested dynamic library (0x06000000) - The specified module could not be found. (WinError: 0000007e)
到目前为止我尝试过但失败的:
build\bin\ARM64\Release
文件夹中。Assets\Plugins
文件夹中。对于上下文,我使用此包来帮助将 Azure Kinect DK 集成到 Unity 中:https://assetstore.unity.com/packages/tools/integration/azure-kinect-examples-for-unity-149700。他们将传感器的 dll 放在这个文件夹中
Assets\AzureKinectExamples\SDK\Kinect4AzureSDK\Plugins
。对于身体跟踪 SDK dll,他们将 dll 从 Azure Kinect Body Tracking SDK
安装位置复制到项目的根目录。此配置适用于 Unity 编辑器和“Windows、Mac、Linux”平台,但不适用于我的情况。
目前,Azure Kinect DK 不支持 UWP。有关 Azure Kinect DK 目前支持的操作系统和架构的更多信息,请参阅 Azure Kinect Sensor SDK 系统要求 |微软学习。