ubuntu安装opencv-3.4.1及opencv_contrib-3.4.1 一、安装 (1)将文件夹中的两个压缩文件解压 得到两个文件:opencv-3.4.1,opencv_contrib-3.4.1 (2)更新软件列表:sudo apt-get update (3)更新软件:sudo apt-get upgrade,这一步要一小会儿,我用了6min左右 (4)添加依赖项: ①sudo apt-get install build-essential ②sudo apt-get install cmake git libgtk2.0-dev