HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
Alternatives To Hololenswithopencvforunityexample
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Mixedrealitytoolkit Unity5,776952 days ago4February 13, 2020688mitC#
Mixed Reality Toolkit (MRTK) provides a set of components and features to accelerate cross-platform MR app development in Unity.
Mixedreality Webrtc72711a year ago14September 30, 2020276mitC#
MixedReality-WebRTC is a collection of components to help mixed reality app developers integrate audio and video real-time communication into their application and improve their collaborative experience
Mapssdk Unity581
13 days ago22May 28, 202024mitC#
This repository contains samples, documentation, and supporting scripts for Maps SDK, a Microsoft Garage project.
Livescan3d Hololens436
3 years ago11mitC#
A Unity application for receiving and rendering point clouds on Hololens and other devices.
4 years ago2bsd-2-clausePython
Upconverting YouTube soccer videos in 3D for viewing in AR/VR devices.Soccer On Your Tabletop
Simple Webxr Unity337
2 years ago6mitC#
⭐ Bringing WebXR to Unity 3D ! B-)
Azure Spatial Anchors Samples274
a month ago35otherC#
Azure Spatial Anchors sample code
2 years ago15lgpl-3.0C
Marker tracking using the front-facing camera of HoloLens (both 1 and 2) and Unity, with a wrapper of ARToolKit built for UWP (Windows Universal Platform)
6 days ago1
Mixed Reality related resources
5 months ago3C#
HoloLens With OpenCVforUnity Example (Support for Hololens1 and Hololens2)
Alternatives To Hololenswithopencvforunityexample
Select To Compare

Alternative Project Comparisons

HoloLens With OpenCVForUnity Example

What's new

  • Support for Hololens1 and Hololens2. (XR System: Legacy Built-in XR / XR Plugin Management WindowsMR / XR Plugin Management OpenXR)

Demo Video (old version)



  1. Download the latest release unitypackage. HoloLensWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (HoloLensWithOpenCVForUnityExample)
    • Change the platform to UWP in the "Build Settings" window.
  3. Import the OpenCVForUnity.
    • Select MenuItem[Tools/OpenCV for Unity/Open Setup Tools].
    • Click the [Move StreamingAssets Folder] button.
    • Leave the following files and delete the rest. ("StreamingAssets/OpenCVForUnity/objdetect/haarcascade_frontalface_alt.xml", "lbpcascade_ frontalface.xml")
  4. Clone HoloLensCameraStream repository.
    • Copy the "HoloLensCameraStream/HoloLensVideoCaptureExample/Assets/CamStream/" folder to the "Assets/" folder.
  5. Import the Microsoft Mixed Reality Toolkit. (Recommend using MixedRealityFeatureTool)
    • Follow the MRTK2 configuration dialog to set up the project.
  6. Import the HoloLensWithOpenCVForUnityExample.unitypackage.
  7. Add the "Assets/HoloLensWithOpenCVForUnityExample/*.unity" files to the "Scenes In Build" list in the "Build Settings" window.
  8. Configure settings in the "Project Settings" window.
    • Add Define Symbols: the following to Scripting Define Symbols depending on the XR system used in your project; Legacy built-in XR: BUILTIN_XR; XR Plugin Management (Windows Mixed Reality): XR_PLUGIN_WINDOWSMR; XR Plugin Management (OpenXR):XR_PLUGIN_OPENXR.
    • Enable WebCam Capabilties in Publishing settings tab.
  9. (Optional) Setup a performance environment suitable for Holorens. (See https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/recommended-settings-for-unity)
  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 from ARM 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.
    • (Print the AR marker "CanonicalMarker-d10-i1-sp500-bb1.pdf" on an A4 size paper)
Project Assets Build Settings
ProjectAssets.jpg BuildSettings.jpg
Player Settings

ScreenShot (old version)






Popular Hololens Projects
Popular Unity Projects
Popular Hardware Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
C Sharp
Augmented Reality
Face Detection
Mixed Reality