下载:
opencv-4.5.5.zip
opencv_contrib-4.5.5.zip
解压,现在当前目录下出现两个子目录:
opencv-4.5.5
opencv_contrib-4.5.5
把生成的opencv_contrib-4.5.5移至opencv-4.5.5目录下,
顺便改名为opencv_contrib
mv opencv_contrib-4.5.5 opencv-4.5.5/opencv_contrib
进入opencv-4.5.5目录
cd opencv-4.5.5
mkdir build
cd build
执行命令:
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules ..
posted on 2024-03-11 14:56
小王 阅读(89)
评论(0) 编辑 收藏 引用 所属分类:
编译 、
音视频