Error with CUDA Cascade Classifier?

asked 2016-03-03 18:53:41 -0600

gseif gravatar image


I have in my code the line. fn_frontFace is a string with the location of the XML Haar classifier.

Ptr<cuda::cascadeclassifier> cascade_gpu = cuda::CascadeClassifier::create(fn_frontFace);

I'm trying to enable face detection with CUDA. But its giving me an error: OpenCV Error: GPU API call NCV Assertion failed in anonymous-namespace::NCVDebugOutputHandler file ....\cascadeclassifier.cpp line 156.

I've tested out other CUDA enabled functions like:

cuda::createBoxFilter() cuda::cvtColor()

and they work just fine. Any ideas on how to solve the error?


edit retag flag offensive close merge delete