hololens-opencv-laserpointer icon indicating copy to clipboard operation
hololens-opencv-laserpointer copied to clipboard

OpenCVforUnity version

Open farshaddm opened this issue 4 years ago • 3 comments

Hi,

I'm using OpenCV for unity version 4.0 from the Enox software. My problem is that the Sphere stays static, and does not follow the laser pointer at all. However, the Hololens is in detection mode so I'm not really sure what is the issue. Do you know if it has to do with the version (which you mentioned that has to be 3.9), or something else?

In addition, when trying to play the scene in Unity using computer webcam, it gives an error saying that reference to a null object.

By the way, thank you for your great work and sharing the project.

farshaddm avatar Dec 04 '20 18:12 farshaddm

Thankyou for sharing the project. Great Work !! I am having the same issue. My OpenCV for Unity version is 2.4.2

kap6 avatar Jan 19 '21 06:01 kap6

Hi,

I'm using OpenCV for unity version 4.0 from the Enox software. My problem is that the Sphere stays static, and does not follow the laser pointer at all. However, the Hololens is in detection mode so I'm not really sure what is the issue. Do you know if it has to do with the version (which you mentioned that has to be 3.9), or something else?

In addition, when trying to play the scene in Unity using computer webcam, it gives an error saying that reference to a null object.

By the way, thank you for your great work and sharing the project.

Try getting webCamTextureToMatHelper in the Awake function

        private void Awake()
        {
            webCamTextureToMatHelper = gameObject.GetComponent<HololensCameraStreamToMatHelper>();
        }

shoukailiang avatar Dec 31 '21 07:12 shoukailiang

@shoukailiang Did you it run successfully? When I ran it, the red ball did not follow the laser pointer. Could give me some hint? Thanks.

OpenCV for Unity 2.4.6 Unity 2019.4.31

Aki1380 avatar Jan 06 '22 16:01 Aki1380