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());="" }<="" p="">
Why is this crash happening? How to avoid this crash?