cascadeclassifier GPU crashing
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?
2.4.6 is the reason why it crashes, move to the latest 2.4 branch and your sorrows will be fixed!