Opencv Error: no GPU support (library is compiled without CUDA support)

后端 未结 3 928
礼貌的吻别
礼貌的吻别 2020-12-19 06:58

I am trying to work some image-process tasks with opencv on GPU with CUDA. I am using ubuntu. I setup my two products Opencv and Cuda without a problem, I am sure about that

3条回答
  •  被撕碎了的回忆
    2020-12-19 07:40

    As stated in the documentation, you have to build OpenCV using CMake and set the flag WITH_CUDA=ON. Then you will get the full-featured OpenCV GPU module. Otherwise the module is still built, but you recieve an exception with CV_GpuNotSupported.

    For further information, read here: http://docs.opencv.org/modules/gpu/doc/introduction.html

提交回复
热议问题