Ask Your Question

Unable to use CUDA for superresolution

asked 2013-11-16 19:00:37 -0500

scotland60b gravatar image

When selecting useGPU=true, superresolution throws the following error:

OpenCV Error: The function/feature is not implemented (The called functionality is disabled for current build or platform) in createSuperResolution_BTVL1_GPU, file /home/scot/opencv-, line 58 terminate called after throwing an instance of 'cv::Exception'

I am able to use superresolution without CUDA, although the video speed appears to double with no explanation.

Any ideas?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-17 02:20:15 -0500

Vladislav Vinogradov gravatar image

It means that OpenCV was built without CUDA support. You need to rebuilt OpenCV with CUDA support enabled (set CMake flag WITH_CUDA=ON).

edit flag offensive delete link more


Thank you. I built OpenCV before I installed CUDA, so I am sure that's the culprit. I will rebuild and see what happens.

scotland60b gravatar imagescotland60b ( 2013-11-17 20:48:12 -0500 )edit

Reinstalled OpenCV with the CUDA flag you suggested. I got the same errors as in this post:

but added /usr/local/cuda/lib64 to /etc/ld/so/conf as they did and I was able to run using CUDA. Very nice, thank you for your assistance.

Video speed still doubles or quadruples, is this a function of the scale factor? Or is this a problem for which I should start a new thread?

scotland60b gravatar imagescotland60b ( 2013-11-18 20:57:10 -0500 )edit

Question Tools


Asked: 2013-11-16 19:00:37 -0500

Seen: 554 times

Last updated: Nov 17 '13