Default OpenCV in Xavier NX with OpenCV DNN module


Hi, I have a question about the default installed OpenCV in new Xavier NX. I just use new Xavier NX with SD card where all libraries are usually installed.
It also contained pre-installed OpenCV-4.1.1. My question is about OpenCV that this OpenCV contains OpenCV-DNN module or not?

As I am running a code which use opencv-dnn module and it throw following error.

AttributeError: module cv2.dnn has no attribute DNN_BACKEND_CUDA

It is not enabled by default. You may try this script to re-install OpenCV:

1 Like