I have 2 versions of OpenCV on my Jetson Nano 4GB. I compiled version 4.5.4 following a tutorial from Jetsonhacks, but when I installed Mediapipe 0.8.9, it brought the installation of non-compiled OpenCV 4.8.1. Now, all programs are using OpenCV 4.8.1.
How do I configure my Jetson Nano to use only version 4.5.4?
But when you build the OpenCV from the source, it should use the default Python3.6.
Could you check the OpenCV version of Python 3.6 first?
What do you get if you run the following command?
Unfortunately, when I run this command, OpenCV 4.8.1 comes up without CUDA support.
jv@jv-desktop:~$ python3
Python 3.6.9 (default, Mar 10 2023, 16:46:00)
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> print(cv2.getBuildInformation())
General configuration for OpenCV 4.8.1 =====================================
Version control: unknown
Platform:
Timestamp: 2023-10-01T19:50:02Z
Host: Linux 4.9.337-tegra aarch64
CMake: 3.27.6
CMake generator: Unix Makefiles
CMake build tool: /usr/bin/make
Configuration: Release
I asked the creator of the tutorial (how to install media pipe on jetson nano) about this issue, and he responded as follows:
You mentioned that your ‘OpenCV 4.5.4’ is compiled with CUDA support. There is a common misconception that compiling OpenCV with CUDA automatically makes all operations faster by running them on the GPU. To actually utilize the GPU, you would need to modify your code and transfer data to and from the GPU, as explained in this tutorial. So, unless your code is adapted to do that, you are not gaining any benefit by installing a new non-CUDA version of OpenCV.
Does it make sense to you?
Please note that the provided link does not work
I tried to do this, but it only downgraded OpenCV to version 4.5.4 without CUDA support in Python 3.6. In my system OpenCV with CUDA is only available in Python 2.7.
:-/
Perhaps the issue was related to the path. I encountered difficulties installing version 4.8.0, but I managed to successfully build version 4.6.0.build version 4.6.0