Ask Your Question

Revision history [back]

How to use CascadeClassifier::create in OpenCV 4.0?

Hi all,

We were using cv::cuda::CascadeClassifier::create(...) in previous versions of OpenCV, which worked fine, but we recently upgraded to 4.0. Now, it throws an exception and prints the message "The called functionality is disabled for current build or platform" to the output window.

I found a recent PR in opencv_contrib which seems to have disabled this class entirely, implying that there is a newer API to replace it (https://github.com/opencv/opencv_contrib/pull/1889 - "CUDA: disable code using obsolete objdetect API").

How are we to do CUDA-accelerated Haar cascades in OpenCV 4.0?

Thanks, Joel