Hot to install Open CV 4.1 + CUDA?

Dear Sir,
I followed the steps below and installed Opev
how to install Opencv 4.1 on the Nvidia Jetson Nano

But after I installed and executed the command, the following error message appeared:

$ python -c “import cv2; print(cv2.version)”
4.1.0

$ python new-detection.py
jetson.inference.init.py
jetson.inference – initializing Python 2.7 bindings…
jetson.inference – registering module types…
jetson.inference – done registering module types
jetson.inference – done Python 2.7 binding initialization
jetson.utils.init.py
jetson.utils – initializing Python 2.7 bindings…
jetson.utils – registering module functions…
jetson.utils – done registering module functions
jetson.utils – registering module types…
jetson.utils – done registering module types
jetson.utils – done Python 2.7 binding initialization
Traceback (most recent call last):
File “new-detection.py”, line 7, in
import cv2
File “/usr/local/lib/python2.7/dist-packages/cv2/init.py”, line 89, in
bootstrap()
File “/usr/local/lib/python2.7/dist-packages/cv2/init.py”, line 79, in bootstrap
import cv2
ImportError: /usr/local/lib/libopencv_cudaarithm.so.4.1: undefined symbol: _ZN2cv4cuda14StreamAccessor9getStreamERKNS0_6StreamE

===========================================

1.The program can work in Opencv 3.2 with python2.7
2.How can fix it? Or where can provide the correct upgrade and installation method?

Thanks!

hi Leon:
in Jetson, the OS and install OpenCV MUST come from the same JetPack version which make version compatible, otherwise no guarantee provided from NV.
So ,if you want install CV4.1, you can flash OS with Jectpack4.3 which include CV4.1

1 Like

Thanks for the reply, may I ask where to download Jectpack4.3?

Is JetPack SDK?
Jetpack

dowload here
https://developer.nvidia.com/jetpack-43-archive,
select SD card image ,and followed the steps here
https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write

1 Like

Thank!