Ask Your Question
0

How to use CascadeClassifier::create in OpenCV 4.0?

asked 2018-12-10 12:42:43 -0500

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_cont... - "CUDA: disable code using obsolete objdetect API").

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

Thanks, Joel

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2018-12-10 22:55:26 -0500

berak gravatar image

the cuda::CascadeClassifier is gone in opencv4, along with the tools to create cascades.

you can either fall back to the last 3.4 branch (which still has it) or try to use the dnn based object detection

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-12-10 12:42:43 -0500

Seen: 331 times

Last updated: Dec 10 '18