OpenCV Error: Gpu API call

asked 2018-05-11 04:03:57 -0600

krax1337 gravatar image

updated 2018-05-11 06:12:57 -0600

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

edit retag flag offensive close merge delete

Comments

be so kind, and replace the screenshot with a text version. thank you.

berak gravatar imageberak ( 2018-05-11 04:22:18 -0600 )edit
1

@berak, I did it.

krax1337 gravatar imagekrax1337 ( 2018-05-11 06:13:41 -0600 )edit

thank you !

berak gravatar imageberak ( 2018-05-11 06:20:15 -0600 )edit