Ask Your Question

Revision history [back]

Error with CUDA Cascade Classifier?

Hi,

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?

Thanks