First time here? Check out the FAQ!
answered 2016-02-22 11:10:59 -0600
This should do what you want.
#include <opencv2/core/ocl.hpp> int main() { cv::ocl::setUseOpenCL(false); // do something on CPU only... return 0; }