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

Question: how to enable GPU support for OpenCV? #31

Open
SierraNL opened this issue Sep 3, 2020 · 2 comments
Open

Question: how to enable GPU support for OpenCV? #31

SierraNL opened this issue Sep 3, 2020 · 2 comments

Comments

@SierraNL
Copy link

SierraNL commented Sep 3, 2020

In the readme it states the following:
Using OpenCV, supporting GPU acceleration

But how does that work?
Should a device be mapped in the docker-compose file, like it works for Plex?

@RaimondB
Copy link
Owner

RaimondB commented Sep 5, 2020

Well, I couldn't test it before since I did not have a discrete GPU in my laptop. But now I have and it turns out that OpenCVSharp does not support it, while openCV itself does. Maybe switching to a different library such as EmguCV could solve this. But since I don't have a GPU in my Intel Nuc server, switching over the library is not my biggest priority at the moment ;-)
Maybe we could do an experiment to see how big the impact of a switch would be. If both libraries closely follow OpenCV API it might not be that big a change..

@RaimondB
Copy link
Owner

I did some tests with EmguCV, but interestingly, while it was using GPU, it was actually a lot slower as a whole. So something interesting is happening here with GPU/CPU transitions I think.. For now I stick with OpenCVSharp, and when I have some spare time I'll look into it again ;-)

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

2 participants