abist-co-ltd / hololens-opencv-laserpointer

Apache License 2.0
33 stars 8 forks source link

OpenCVforUnity version #7

Open farshaddm opened 3 years ago

farshaddm commented 3 years ago

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.

kap6 commented 3 years ago

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

shoukailiang commented 2 years ago

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>();
        }
Aki1380 commented 2 years ago

@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