ubuntu@EAC-5000:/usr/local/lib/python3.8/site-packages/cv2$ /usr/bin/python3 /home/ubuntu/workspace/tests/cuda_test.py
Traceback (most recent call last):
File "/home/ubuntu/workspace/tests/cuda_test.py", line 1, in <module>
import cv2
File "/usr/local/lib/python3.8/site-packages/cv2/__init__.py", line 181, in <module>
bootstrap()
File "/usr/local/lib/python3.8/site-packages/cv2/__init__.py", line 153, in bootstrap
native_module = importlib.import_module("cv2")
File "/usr/lib/python3.8/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: libopencv_intensity_transform.so.409: cannot open shared object file: No such file or directory
I want to use cv2 with nvidia driver
How can I fix it?
Thanks your reply,
I tried install_opencv4.6.0_Jetpack5.sh
But run sudo apt-get install -y libv4l-dev v4l-utils qv4l2 v4l2ucp
Output :
libjpeg-dev is already the newest version (8c-2ubuntu8).
libpng-dev is already the newest version (1.6.37-2).
libdc1394-22-dev is already the newest version (2.2.5-2.1).
libtbb-dev is already the newest version (2020.1-2).
libtbb2 is already the newest version (2020.1-2).
libtiff-dev is already the newest version (4.1.0+git191117-2ubuntu0.20.04.14).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package v4l2ucp
Does v4l2ucp still install?
or change other package name?
Thanks!
It should be installed nvidia-jetpack first before installing opencv.
If I were you, I would reflash the AGX Orin
After that, I will install nvidia-jetpack and opencv.
You don’t need to worry about CUDA version if you install nvidia-jetpack.
sudo apt update
sudo apt install nvidia-jetpack
If the install script is not working after all above you should build the opencv source code.