为了使用opencv3中的 stitching_detailed.cpp 的 try_cuda 功能,需要将OpenCV带cuda重新编译。
最新整理:https://blog.youkuaiyun.com/chentianting/article/details/86610601
参考博客列表:
1.Ubuntu安装opencv 为调用gpu模块
https://www.cnblogs.com/beihaidao/p/6773595.html?utm_source=itdadao&utm_medium=referral
主要讲了如何得到 CUDA_ARCH_BIN,通过命令nvidia-smi
,确定我的gpu是GeForce RTX 2080,对应的 CUDA_ARCH_BIN=7.5
2.使用Cmake编译opencv源码遇到如下错误
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)