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.
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.
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
be so kind, and replace the screenshot with a text version. thank you.
@berak, I did it.
thank you !