Opencv 3.4 detectMultiScale with ocl not performed on GPU

asked 2017-12-25 16:08:35 -0500

justadudewhohacks gravatar image

updated 2017-12-25 16:08:54 -0500

Hi I am using the following version of detectMultiScale with ocl Mat to run it on the GPU:

cv::UMat oclMat = img.getUMat(cv::ACCESS_READ);
double scaleFactor = 1.05;
std::vector<cv::Rect> objectRects;
classifier.detectMultiScale(oclMat, objectRects, scaleFactor);

This worked fine for me with opencv 3.2, 3.3, 3.3.1, but changing to opencv3.4 it suddenly is run on the CPU only. Did the API change?

edit retag flag offensive close merge delete