CascadeClassifier_GPU.load gives: NCV Assertion Failed

asked 2017-04-23 08:37:09 -0600

Hi I am trying to load a Cascade Classifier and although in the CPU version it works nicely, it gives me the following error:

OpenCV Error: Gpu API call (NCV Assertion Failed: NcvStat=25, file=/hdd/buildbot/slave_jetson_tk1_1/32-O4T-L4T/opencv/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=2215 ) in NCVDebugOutputHandler, file /hdd/buildbot/slave_jetson_tk1_1/32-O4T-L4T/opencv/modules/gpu/src/cascadeclassifier.cpp, line 173 terminate called after throwing an instance of 'cv::Exception' what(): /hdd/buildbot/slave_jetson_tk1_1/32-O4T-L4T/opencv/modules/gpu/src/cascadeclassifier.cpp:173: error: (-217) NCV Assertion Failed: NcvStat=25, file=/hdd/buildbot/slave_jetson_tk1_1/32-O4T-L4T/opencv/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=2215 in function NCVDebugOutputHandler

I dont really understand what is happening. I am a bit noob in this and have tried the haarcascade file as well as the haarcascade_cuda ones but there is no difference; it still gives me this error.

Thanks in advance for the help.

edit retag flag offensive close merge delete

Comments

Can you run in debug mode. My best guess is that either your image or your cascade model is loaded improperly.

StevenPuttemans gravatar imageStevenPuttemans ( 2017-04-24 08:53:23 -0600 )edit

did you solve it?

ariba-05 gravatar imageariba-05 ( 2018-02-17 05:28:44 -0600 )edit