Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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());="" }<="" p="">

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

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

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="">
error"<<std::endl;
CV_Error(CV_GpuApiCallError, msg.c_str()); }

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