步骤
下载
git clone --single-branch --branch 4.10.0 git@github.com:opencv/openc
v.git opencv-4.10.0
git clone --single-branch --branch 4.x git@github.com:opencv/opencv_contrib.git opencv_contrib-4.x
依赖
sudo apt install libavcodec-dev libavformat-dev libswscale-dev
sudo apt install libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev
sudo apt install libgtk-4-dev
sudo apt install libpng-dev libjpeg-dev libopenexr-dev libtiff-dev libwebp-dev
sudo apt-get install -y libopenblas-dev
sudo apt install nvidia-cudnn nvidia-cuda-toolkit
编译
参考