https://github.com/EnoxSoftware/HoloLensWithOpenCVForUnityExample

Whats new

Demo Video (old version)

Environment

Setup

  1. Download the latest release unitypackageHoloLensWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (HoloLensWithOpenCVForUnityExample)
  3. Import the OpenCVForUnity.
  4. Clone HoloLensCameraStream repository.
  5. Import the Microsoft Mixed Reality Toolkit. (Recommend using MixedRealityFeatureTool)
  6. Import the HoloLensWithOpenCVForUnityExample.unitypackage.
  7. Add the “Assets/HoloLensWithOpenCVForUnityExample/*.unity” files to the “Scenes In Buildlist in the “Build Settingswindow.
  8. Configure settings in the “Project Settingswindow.
  9. (Optional) Setup a performance environment suitable for Holorens. (See Recommended settings for Unity – Mixed Reality | Microsoft Learn)
  10. Build the project: You can now build the Unity project, which generates a Visual Studio Solution (which you will then have to also build). With the Build Settings window still open, click Build. In the explorer window that appears, make a new folder called App, which should live as a sibling next to the ‘Assets` folder. Then click Select Folder to generate the VS solution in that folder. Then wait for Unity to build the solution.
  11. Open the VS Solution: When the solution is built, a Windows explorer folder will open. Open the newly-built VS solution, which lives in App/HoloLensWithOpenCVForUnityExample.sln. This is the solution that ultimately gets deployed to your HoloLens.
  12. Configure the deploy settings: In the Visual Studio toolbar, change the solution platform froARM to x86 if you are building for Hololens1 or to ARM64 if you are building for Hololens2; Change the deploy target (the green play button) to Device (if your HoloLens is plugged into your computer), or Remote Machine (if your HoloLens is connected via WiFi).
  13. Run the app: Go to Debug > Start Debugging. Once the app is deployed to the HoloLens, you should see some confirmation output in the Output window.
Project Assets Build Settings

ProjectAssets.jpg

BuildSettings.jpg

Player Settings

PlayerSettings.jpg

ScreenShot (old version)

screenshot01.jpg

screenshot02.jpg

screenshot03.jpg

screenshot04.jpg

screenshot05.jpg

原文地址:https://blog.csdn.net/moonlightpeng/article/details/134814124

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任

如若转载,请注明出处:http://www.7code.cn/show_47760.html

如若内容造成侵权/违法违规/事实不符,请联系代码007邮箱suwngjj01@126.com进行投诉反馈,一经查实,立即删除

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注