OpenCV 4.5.0 (with cuda)编译后,Visual Studio 项目属性配置

opencv 编译安装的目录结构:


image.png
  1. Go to Configuration Properties/VC++ Directories to add the include and library directories for OpenCV.


    image.png

包含目录填写:C:\opencv\opencv-4.5.0\opencv-4.5.0\build\install\include
库目录填写:C:\opencv\opencv-4.5.0\opencv-4.5.0\build\install\x64\vc16\lib

  1. Edit the VC++ project linker with the opencv_world450.lib OpenCV dynamic library. You will find the DLL (Dynamic Link Library) here: C:\opencv\opencv-4.5.0\opencv-4.5.0\build\install\x64\vc16\lib copy the name of the file opencv_world450.lib and paste it in the dependency box.
image.png

链接器-输入填写:opencv_world450.lib
opencv_img_hash450.lib

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容