microsoft / HoloLensForCV

Sample code and documentation for using the Microsoft HoloLens for Computer Vision research
MIT License
475 stars 154 forks source link

HoloLensForCV.SensorFrameStreamer.Enable() - unauthorised access exception #148

Closed A00107408 closed 3 years ago

A00107408 commented 3 years ago

I am using HoloLensForCV via a Unity project: https://github.com/doughtmw/ArUcoDetectionHoloLens-Unity

I am making a Rubik's Cube solving AR application.

I would also like to track the user's eye movements via the HoloLens 2 eye tracking sensors to gauge their cognitive load.

So I am trying to use MRTK to track the user's eyes, and HoloLensForCV to track the Rubik's Cube. Is this possible?

I get the exception "At least one of either InternetClientServer or PrivateNetworkClientServer capabilities is required to listen for or receive traffic" when I try to access the raw video feed using HoloLensForCV in a project with MRTK.

Is it possible to use MRTK and HoloLensForCV in the same project for my needs? or does HoloLensForCV also include access to the eye tracking sensors so I don't have to use MRTK?

emeraldy commented 3 years ago

Hello,

Since you mentioned Hololens 2 eye tracking, maybe hololens2forcv is what you are looking for (https://github.com/microsoft/HoloLens2ForCV)? The latest MRTK supports both Hololens and Hololens 2. As for that exception, make sure you have those capabilities ticked, which can be done either in unity's player settings when you are about to build the unity project or in Package.appxmanifest within the corresponding visual studio project spat out by the aforementioned unity build process. I assume you are working with Hololens 2 so maybe posting your questions there will get better answers.

A00107408 commented 3 years ago

Ok thank you