Ubuntu22.04 Opencv4.5.1 CPU和GPU编译攻略,Opencv CPU和GPU编译保姆教程 亲自测试。
1、安装opencv依赖安装时最好更换一下源。sudoapt-get-yupdatesudoapt-get-yinstallcmakegitlibgtk2.0-devpkg-configlibavcodec-devlibavformat-devlibswscale-devsudoapt-get-yinstalllibgtk-3-devgfortranopenexrlibatlas-base-dev