Intel® Distribution of OpenVINO™ Toolkit
Community support and discussions about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all things computer vision-related on Intel® platforms.

OpenVINO with OpenCV on CUDA

mfoglio
New Contributor I
705 Views

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
0 Kudos
1 Solution
mfoglio
New Contributor I
686 Views

My bad, a pip installation of opencv broke the previous manual installation of the build with CUDA. That was not OpenVINO's fault.

View solution in original post

3 Replies
mfoglio
New Contributor I
699 Views

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.

mfoglio
New Contributor I
687 Views

My bad, a pip installation of opencv broke the previous manual installation of the build with CUDA. That was not OpenVINO's fault.

View solution in original post

Munesh_Intel
Moderator
672 Views

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


Reply