123456868 发表于 2021-3-3 17:03

Github上的YoloDetectionHoloLens-Unity问题小记

1.Copy precompiled dlls and HoloLensForCV.winmd file from the Prebuilt->x86/ARM folder to the Assets->Plugins->x86/ARM folder of the YoloDetectionHoloLensUnity project. Due to the naming convention of dlls and winmd files, only one configuration (x86 OR ARM) can be run in Unity at a time
这里复制两个名为HoloLensForCV.winmd、HoloLensForCV.dll的预编译文件,进入YoloDetectionHoloLensUnity的Unity项目,粘贴于 Assets->Plugins->x86/ARM文件夹,x86和ARM平台二选一。(选的ARM,因为机器是arm平台的)也可以用自己编译出来的文件
2.下载git中第一个HololensForCV项目,接着打开工具-Nuget包管理器-程序包管理器控制台,在PM>输入命令Install-Package F:\hololens\Program\hololens+yolo\YoloDetectionHoloLens-Unity-master\OpenCV.HoloLens.3411.0.0.nupkg -ProjectName HoloLensForCV,安装包,最后release项目
生成解决方案出现win10SDK17134
可能出现错返回false,更换vs2017编译
3.错误:
(1)unity build出现下面的错误,原因是证书失效,删掉即可
(注:部分unity错误也可能是证书过期)
(2)vs2019里面的编译错误:
暂不明确,装了一次vs2015,删了又装了vs2017,考虑是环境问题。
(3)跑ComputerOnDesktop时可能出现缺nuget包,怀疑卸载vs2015时导致的,修复后解决
4.桌面端:
记得在unity里面的填主机ip地址,然后再build,vs部署,不然眼镜接受不到主机数据
win10专业版,进入开发者模式
5.部署到hololens可以选择无线部署,需要在调试中选择远程计算机,计算机名,输入ip
眼镜需要pin码配对
6.要配置.dll,(https://docs.unity3d.com/cn/current/Manual/IL2CPP-WindowsRuntimeSupport.html)
页: [1]
查看完整版本: Github上的YoloDetectionHoloLens-Unity问题小记