Ask Your Question

Revision history [back]

Opencv 3.4 detectMultiScale with ocl not performed on GPU

Hi I am using the following version of detectMultiScale with and 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?

Opencv 3.4 detectMultiScale with ocl not performed on GPU

Hi I am using the following version of detectMultiScale with and 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?