Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: 'MatUtils' does not exist in the current context #56

Open
tammmyz opened this issue Jun 28, 2024 · 3 comments
Open

Error: 'MatUtils' does not exist in the current context #56

tammmyz opened this issue Jun 28, 2024 · 3 comments

Comments

@tammmyz
Copy link

tammmyz commented Jun 28, 2024

Hello! I am pretty new to Unity and developing for the HoloLens. I have followed the steps in the README up until step 9 where I need to build on Unity. I am running into the following error:
Screenshot 2024-06-28 at 12 21 13 PM

I tried looking for a reference to MatUtils within this repo as well as the OpenCVForUnity repo, and online with no success. I am currently using Unity version 2022.3.22f1 on Windows 10.

Wondering if anyone can point me towards a solution for this? Thanks!

@EnoxSoftware
Copy link
Owner

Thank you for your inquiry.
This is due to an older version of OpenCVForUnity. Please try the latest version (2.6.1).

@lagenuina
Copy link

Hi, I also have the same error. I am using the latest version 2.6.2, and Unity version 2021.3.42f1

@EnoxSoftware
Copy link
Owner

Thank you all for your reports.
It seems to be affected by the namespace change in the latest version.
Assets\HoloLensWithOpenCVForUnityExample\HLCameraStreamToMatHelperExample\ComicFilter.cs, replace line 3 from “using OpenCVForUnity.UtilsModule;” with ”using OpenCVForUnity.UnityUtils;” instead of ”using OpenCVForUnity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants