Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cuda_*** objects crash in 4.5 (Python)

I built OpenCV 4.5 with CUDA support (CUDA 11.0, cuDNN 8.0) and contrib modules. Everything went fine in the compiling and installation, and some cuda functions works well, as cv2.cuda.bilinarFilter for example.

It seems however that objects beginning with cuda_ tends to crash without any error message, with the first method call involving these objects. This type of code crashes all the time:

import cv2 linesDetector = cv2.cuda_HoughLinesDetector() linesDetector.setThreshold(80)

It is not a CUDA-related problem in my opinion since other cuda built-in functions work properly. Am I using these objects wrong? I also tested cuda_CannyEdgeDetector with the same result.