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

OpenCvSharp GPU problem #123

Closed
arslanekhan opened this issue Sep 16, 2015 · 1 comment · Fixed by #593
Closed

OpenCvSharp GPU problem #123

arslanekhan opened this issue Sep 16, 2015 · 1 comment · Fixed by #593
Labels

Comments

@arslanekhan
Copy link

I have installed OpencvSharp 2.4 using Nuget Package manager in Microsoft Visual Studio 2013.

When i run this command
int count = Cv2Gpu.GetCudaEnabledDeviceCount();

it always returns 0. on the other side i tried with another library named cudafy but that one gives me the count 1. but Opencvsharp always returns me count 0.

Please help me out.

@shimat shimat added the problem label Sep 17, 2015
@arslanekhan
Copy link
Author

I have resolved this problem.

Build the opencv_Gpu and opencv_core dlls again.

Make the source code of opencv using Cmake while selecting "with Cuda" option.

Open the opencv solution then and just build opencv_core first and then opencv_gpu.
After building get the new dlls and replace them in opencvsharp package.

Now build your solution again and now it will copy the new dlls to the project build folder. Now it will detect the Cuda device.

I am using Nvidia GPU.

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

Successfully merging a pull request may close this issue.

2 participants