I built and installed OpenCV to run on CUDA. After I install OpenVINO it seems that OpenCV is not supporting CUDA anymore.
Is there a way I can install OpenVINO and then use the OpenCV build for CUDA?
My setup:
- Ubuntu 18.04
- OpenVINO 2021.1.100
- OpenCV 4.4.0
- Cuda 11.1
I am installing OpenVINO in the following way:
wget https://apt.repos.intel.com/openvino/2021/GPG-PUB-KEY-INTEL-OPENVINO-2021
sudo apt-key add GPG-PUB-KEY-INTEL-OPENVINO-2021
sudo apt-key list
echo "deb https://apt.repos.intel.com/openvino/2021 all main" | sudo tee /etc/apt/sources.list.d/intel-openvino-2021.list
sudo apt update
sudo apt install -y intel-openvino-runtime-ubuntu18-2021.1.110
sudo apt install -y intel-openvino-dev-ubuntu18-2021.1.110
python3 -m pip install --upgrade pip
pip install openvino
echo '# OpenVINO' >> ~/.bashrc
echo 'export LD_LIBRARY_PATH="/usr/lib:${LD_LIBRARY_PATH}"' >> ~/.bashrc
source ~/.bashrc
My bad, a pip installation of opencv broke the previous manual installation of the build with CUDA. That was not OpenVINO's fault.
链接已复制
Attached you can file two outputs from the console:
- after_build.txt contains the output after the build of OpenCV is done
- from_python.txt contains the output of the command
python3 -c "import cv2; print(cv2.getBuildInformation())"
Note: these outputs come from a machine with OpenVINO installed as described in the post above.
My bad, a pip installation of opencv broke the previous manual installation of the build with CUDA. That was not OpenVINO's fault.
Hi Matteo,
This thread will no longer be monitored since this issue has been resolved. If you need any additional information from Intel, please submit a new question.
Regards,
Munesh
