opencv 编译安装的目录结构:
image.png
-
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
- 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.
链接器-输入填写:opencv_world450.lib
opencv_img_hash450.lib
网友评论