Ubuntu18.04配置opencv3.4.1+opencv_contrib3.4.1

配置opencv3.4.1+opencv_contrib3.4.1时,基本操作作可以参考博客:

ubuntu 18.04 安装 opencv3.4.1 以及 opencv_contrib 3.4.1] 亲测可用_luoganttcc的博客-CSDN博客_ubuntu18.04安装opencv3.3.11、首先下载opencv和opencv_contrib的库contrib库:https://github.com/opencv/opencv_contrib/releasesopencv版本:https://opencv.org/releases.html我下载的是3.4.12、把这两个包解压并且把opencv_contrib-3.4.1这整个文件夹拷贝到opencv-3.4.1文件夹里面去unzip opencv-3.4.1.zip unzip opencv_contrib-3.4.1.ziphttps://blog.csdn.net/luoganttcc/article/details/121534903?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522164802485216782248530469%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fall.%2522%257D&request_id=164802485216782248530469&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~first_rank_ecpm_v1~rank_v31_ecpm-2-121534903.142%5Ev3%5Epc_search_result_control_group,143%5Ev4%5Econtrol&utm_term=ubuntu18.04%E5%AE%89%E8%A3%85opencv_contrib_3.4.1&spm=1018.2226.3001.4187

本人出现如下问题:

Ubuntu18.04配置opencv3.4.1+opencv_contrib3.4.1_第1张图片

Ubuntu18.04配置opencv3.4.1+opencv_contrib3.4.1_第2张图片

解决方法:

查看CUDA版本,如CUDA11.5

sudo apt-get update
sudo apt-get install nvidia-cuda-toolkit

sudo apt-get autoremove nvidia-cuda-toolkit  #卸载

然后重新编译opencv3.4.1即可。

你可能感兴趣的:(ubuntu)