Holo Lens With Open CV For Unity Example by EnoxSoftware - 19

Games & ProjectsVR & AR

HoloLens With OpenCVforUnity Example

Unknown VersionUnknown LicenseUpdated 311 days agoCreated on February 7th, 2017
Go to source

HoloLens With OpenCVForUnity Example

What’s new

  • IL2CPP Backend support.

Demo Video (old version)

Demo Hololens App



  1. Download the latest release unitypackage. HoloLensWithOpenCVForUnityExample.unitypackage
  2. Create a new project. (HoloLensWithOpenCVForUnityExample)
  3. Import the HoloToolkit-Unity-2017.4.3.0.unitypackage.
    • Setup the HoloToolKit. (Mixed Reality ToolKit > Configure > Apply Mixed Reality Project Setting)
  4. Import the OpenCVForUnity.
    • Setup the OpenCVForUnity. (Tools > OpenCV for Unity > Set Plugin Import Settings)
    • Move the “OpenCVForUnity/StreamingAssets/haarcascade_frontalface_alt.xml” and “OpenCVForUnity/StreamingAssets/lbpcascade_frontalface.xml” to the “Assets/StreamingAssets/” folder.
  5. Clone HoloLensCameraStream repository.
    • Copy the “HoloLensCameraStream/HoloLensVideoCaptureExample/Assets/CamStream/” folder to the “Assets/” folder.
    • Set the scripting backend of the plugin inspector to “Any Script Backend”. (IL2CPP support)
  6. Import the HoloLensWithOpenCVForUnityExample.unitypackage.
  7. Add the “Assets/HoloLensWithOpenCVForUnityExample/*.unity” files to the “Scenes In Build” list in the “Build Settings” window.
  8. Set “IL2CPP” to “Other Settings > Configuration > Scripting Backend” selector in the “Player Settings” window.
  9. Add “WebCam” to “Publishing Settings > Capabilities” checklist in the “Player Settings” window.
  10. Build and Deploy to HoloLens. (See https://developer.microsoft.com/en-us/windows/holographic/holograms_100)
    • (Print the AR marker “ArUcoMarker_DICT_6X6_250_ID1.pdf” on an A4 size paper)
Assets Buld Settings
buildsetting01.jpg buildsetting02.jpg

ScreenShot (old version)






Show all projects by EnoxSoftware