Ask Your Question

Revision history [back]

To disable the usage of OpenCL just include the header file opencv2\core\ocl.hpp and put cv::ocl::setUseOpenCL(false) somewhere at the beginning of your program.The implementation of setUseOpenCL function is in the source code file modules/core/src/ocl.cpp.