OpenCV cuda Module from Python

Hello everyone,

I’m working on a project built on Python 3.4 that uses OpenCV and OpenCV’s ArUco module for fiducial marker detection. We want to CUDA-accelerate our code, and I noticed that OpenCV 3 (which we are using) already has CUDA implementations of functions that the algorithm requires, such as threshold:

If I am building OpenCV with the flag “WITH_CUDA=ON”, does this mean I am already accessing the CUDA-accelerated version of threshold when I call threshold?


Or is it not possible to call the CUDA module functions from Python?


I would like to know this as well! Thanks in advance

Hey bsmith18, I asked the same question on Stack Overflow and ended up finding an answer and responding to it myself:

Hopefully that’s able to hep you out!