cascadeclassifier GPU crashing

asked 2015-06-27 13:25:00 -0600

Tariq gravatar image

updated 2015-06-29 08:00:11 -0600

I am doing face detection on GPU using OpenCV GPU implementation. My code is crashing after 20-50 seconds of execution. Following is the error log:

 OpenCV Error: Gpu API call (NCV Assertion Failed: cudaError_t=4, file=C:/opencv-2.4.6/modules/gpu/src/nvidia/NCVHaarObjectDetection.cu, line=1367) in unknown function, file C:\opencv-2.4.6\modules\gpu\src\cascadeclassifier.cpp, line 173

This function is defined at line 173 of the \opencv-2.4.6\modules\gpu \src\cascadeclassifier.cpp

static void NCVDebugOutputHandler(const std::string &msg) 
    {
        std::cout<<"CUDA debugging error"<<std::endl;
        CV_Error(CV_GpuApiCallError, msg.c_str()); }

Why is this crash happening? How to avoid this crash?

edit retag flag offensive close merge delete

Comments

3

2.4.6 is the reason why it crashes, move to the latest 2.4 branch and your sorrows will be fixed!

StevenPuttemans gravatar imageStevenPuttemans ( 2015-06-29 08:00:59 -0600 )edit