Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Error: Gpu API call

I encountered such a problem.

OpenCV Error: Gpu API call (NCV Assertion Failed: NcvStat=28, file=D:\James\repos\opencv\modules\cudaobjdetect\src\cascadeclassifier.cpp, line=361) in `anonymous-namespace'::NCVDebugOutputHandler, file D:\James\repos\opencv\modules\cudaobjdetect\src\cascadeclassifier.cpp, line 156

I have a program that uses "CUDA" acceleration to identify faces and smiles, using cascades. Here is my function.

https://pastebin.com/T3E24CUq

I use special cascades, for "CUDA", the application itself is written in QT. This error can occur after 20 seconds of use, or maybe 5 seconds. I can not understand at all. Here is a screen from the console.

image description

OpenCV Error: Gpu API call

I encountered such a problem.

OpenCV Error: Gpu API call (NCV Assertion Failed: NcvStat=28, file=D:\James\repos\opencv\modules\cudaobjdetect\src\cascadeclassifier.cpp, line=361) in `anonymous-namespace'::NCVDebugOutputHandler, file D:\James\repos\opencv\modules\cudaobjdetect\src\cascadeclassifier.cpp, line 156

I have a program that uses "CUDA" acceleration to identify faces and smiles, using cascades. Here is my function.

https://pastebin.com/T3E24CUq

I use special cascades, for "CUDA", the application itself is written in QT. This error can occur after 20 seconds of use, or maybe 5 seconds. I can not understand at all. Here is a screen from the console.

image description

UPD text from console:

Запускается C:\Qt\qt_projects\smile_detector\build-smile_detector-Desktop_Qt_5_10_1_MSVC2017_64bit-Debug\debug\smile_detector.exe... Device 0: "GeForce GTX 750 Ti" 2048Mb, sm_50, Driver/Runtime ver.9.10/9.10 OpenCV Error: Gpu API call (NCV Assertion Failed: retcode=8, file=D:/James/repos/opencv/modules/cudalegacy/src/cuda/NCVHaarObjectDetection.cu, line=1586) in `anonymous-namespace'::NCVDebugOutputHandler, file D:\James\repos\opencv\modules\cudaobjdetect\src\cascadeclassifier.cpp, line 156 C:/Qt/qt_projects/smile_detector/build-smile_detector-Desktop_Qt_5_10_1_MSVC2017_64bit-Debug/debug/smile_detector.exe завершился с кодом 3