安装opencv 先安装这些包,不然后面会有各种各样的错误发生
$ sudo apt-get install cmake libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev $ sudo apt-get install libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff5-dev libdc1394-22-dev # 处理图像所需的包 $ sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev liblapacke-dev $ sudo apt-get install libxvidcore-dev libx264-dev # 处理视频所需的包 $ sudo apt-get install libatlas-base-dev gfortran # 优化opencv功能 $ sudo apt-get install ffmpeg
g ++ -o test_1 test_1.cpp`pkg-config opencv --cflags --libs`
https://blog.csdn.net/qq_40280096/article/details/88403435
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)