Enable “use CUDA” for openCV


In ubuntu 18.04 (jetson nano) I have openCV 4.1.1 and CUDA 10.2.89 but when I see the result of below command in python cv2.cuda.getCudaEnabledDeviceCount() it gave me 0 that means opencv dont use CUDA. what should I do to enable “use CUDA” in jetson nano


TensorRT Version:
GPU Type:
Nvidia Driver Version:
CUDA Version: 10.2.89
CUDNN Version:
Operating System + Version: ubuntu 18.04
Python Version (if applicable): 3.6.9
TensorFlow Version (if applicable): 2.3.1
PyTorch Version (if applicable):
Baremetal or Container (if container which image + tag):

This looks like a Jetson issue. Please refer to the below samlples in case useful.

For any further assistance, we recommend you to raise it to the respective platform from the below link