niconielsen32 / ComputerVision

987 stars 596 forks source link

Gpu support not working #6

Closed tudor-Spaima closed 1 year ago

tudor-Spaima commented 3 years ago

After succesfully building OpenCV with CUDA support for python (windows 10) and anaconda I get this error when I run a test script:

OpenCV(4.5.3) C:\Users\runneradmin\AppData\Local\Temp\pip-req-build-u4kjpz2z\opencv\modules\core\include\opencv2/core/private.cuda.hpp:106: error: (-216:No CUDA support) The library is compiled without CUDA support in function 'throw_no_cuda' File "D:\OpenCV\main.py", line 5, in <module> (Current frame) cuda.printCudaDeviceInfo(0)

Very important: the cuda.printCudaDeviceInfo(0) command worked well when I tested it in cmd