Skip to content

Missing UMat type: OpenCV #1292

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

Open
cdglitch opened this issue Mar 18, 2025 · 0 comments
Open

Missing UMat type: OpenCV #1292

cdglitch opened this issue Mar 18, 2025 · 0 comments

Comments

@cdglitch
Copy link

Hi,

Been experimenting with gocv on some embedded boards (which have working OpenCL but no CUDA). As of OpenCV V4.x, OpenCL acceleration is transparent for the caller to normal OpenCV functions.

After tweaking the build of OpenCV on my target to enable OpenCL everywhere it is supported, I did some very limited testing by probing to see if OpenCL is enabled when loading the bindings through gocv which suggests it is (I also get logspam from the OpenCL.so) which is encouraging.

Where I'm blocked is that the C/C++ bindings gocv uses does not provide a UMat type. Unfortunately, a lot of OpenCL code paths in OpenCV check for this to use OpenCL. Would it be possible to get some pointers on what the most sensible way to integrate UMats into gocv might be? I need maybe 5-6 functions in OpenCV . Sadly my attempts at getting swig to do the heavy lifting have all been far from workable so if I have to choose between do it in C++ and porting everything myself I think I'll put up with some C++.

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

1 participant