OpenCVForUnity icon indicating copy to clipboard operation
OpenCVForUnity copied to clipboard

Camera image of Hololens2 is not be displayed

Open Sakitakazawa opened this issue 3 years ago • 6 comments

Hi. I want to use OpenCVForUnity with Hololens2. It works well in unity editor but when built to Hololens2, camera image of Hololens2 is not be displayed. (I want to try Comic filter Example.) I set up according to Readme of this, OpenCVForUnity. How can I use Hololens2's camera with OpenCVForUnity?? In there any special procedure when using Hololens2, not Hololens??

using version: Hololens2 Unity 2019.4.23f1 Visual Studio 2019 OpenCVForUnity 2.4.4

Sakitakazawa avatar Jun 30 '21 12:06 Sakitakazawa

Did you make it work? Is OpenCVForUnity at all compatible with HoloLens 2?

felixvh avatar Sep 09 '21 09:09 felixvh

Hi, Felix

Unfortunately, I don't have Hololens2 at hand and haven't tried it, but this thread already has a way to make my example work with Hololens2. https://github.com/EnoxSoftware/HoloLensWithOpenCVForUnityExample/issues/29

Best regards, Enox Software

EnoxSoftware avatar Sep 11 '21 08:09 EnoxSoftware

Hi, i've got the same issue i cannot display anything when i use OpenCVForUnity in my scripts, i've just used the function that converts a texture to a matrix and there is nothing that is displayed on my HoloLens2 but in the editor everything seems to be Ok.

is there any solution to use OpenCVForUnity on HoloLens 2 ?

fmtibaa avatar Apr 29 '22 16:04 fmtibaa

I don't knwo what exactly you are doing in your application but for me I could use OpenCVForUnity in my HoloLens 2 applications. But I only used the blob detection algorithm and the Kalman filter provided by the library.

felixvh avatar May 02 '22 07:05 felixvh

Thanks for your response, i want just to use some filters like sobel filters and outline detection on the video stream of the HoloLens 2 webcam. i just want to know how to retreive the projection matrix and the camera to world mattix of the camera, if you have any idea that could help tell me.

Thanks ! best regards

fmtibaa avatar May 03 '22 06:05 fmtibaa

I haven't really worked with the webcam so far. Just with the depth camera provided by the research mode. But I think this might be a good starting point for you: https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/locatable-camera-in-unity

felixvh avatar May 03 '22 07:05 felixvh