2014-02-13 09:31:59 -0600 | answered a question | BoW categorization - CV_OpenCLInitError (OpenCL not available) [SOLVED] I Solved the problem. I just disabled OpenCl. Hope that helps someone: cmake -D WITH_OPENCL=OFF |
2014-02-08 10:10:15 -0600 | received badge | ● Editor (source) |
2014-02-08 10:08:57 -0600 | asked a question | BoW categorization - CV_OpenCLInitError (OpenCL not available) [SOLVED] Hello there, I started diving into visual bag of words categorization. There is very good sample code in samples folder. I compiled the code and put it to run. Everything gone fine before SVM training, where I got the following error: OpenCV Error: Gpu API call (-1001) in initializeOpenCLDevices, file opencv-2.4.8/modules/ocl/src/cl_context.cpp, line 455 OpenCV Error: Unknown error code -221 (OpenCL not available) in getContext, file opencv-2.4.8/modules/ocl/src/cl_context.cpp, line 670 terminate called after throwing an instance of 'cv::Exception' what(): opencv-2.4.8/modules/ocl/src/cl_context.cpp:670: error: (-221) OpenCL not available in function getContext I used following libs in a Mafefile: -lopencv_core -lopencv_ocl -lopencv_imgproc -lopencv_highgui -lopencv_ml -lopencv_video -lopencv_features2d -lopencv_calib3d -lopencv_objdetect -lopencv_contrib -lopencv_legacy -lopencv_flann -lopencv_nonfree Does anybody know what is wrong? Cheers! |