Ask Your Question
0

Unable to use CUDA for superresolution

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

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-2.4.6.1/modules/superres/src/btv_l1_gpu.cpp, 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
1

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

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

Comments

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 -0600 )edit

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

http://answers.opencv.org/question/20226/opencv2461-compiled-with-cuda-55-cant-compile-cpu/

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 -0600 )edit

Question Tools

Stats

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

Seen: 631 times

Last updated: Nov 17 '13