gpt4 book ai didi

c++ - 为 Windows 10 64 位安装的 OpenCV3.2.0 中缺少许多 .lib 文件

转载 作者:可可西里 更新时间:2023-11-01 11:46:20 32 4
gpt4 key购买 nike

我使用的代码依赖于 opencv 库,但是我从网上下载的代码只有 opencv_core320.lib。我如何安装 opencv 以便访问我在 Visual Studio 2015 的链接器的输入部分中拥有的所有这些库?

cv2.lib
opencv_imgcodecs300.lib
opencv_superres300.lib
opencv_calib3d300.lib
opencv_imgproc300.lib
opencv_ts300.lib
opencv_core300.lib
opencv_ml300.lib
opencv_video300.lib
opencv_features2d300.lib
opencv_objdetect300.lib
opencv_videoio300.lib
opencv_flann300.lib
opencv_photo300.lib
opencv_videostab300.lib
opencv_hal300.lib
opencv_shape300.lib
opencv_highgui300.lib
opencv_stitching300.lib

我对OpenCV的版本没有偏见,3.0.0或者3.2.0都可以。这是我拥有的 opencv 的一些屏幕截图: enter image description here

另外,我有这个错误是有道理的,因为它在我告诉链接器的 lib 目录中找不到 cv2.lib。所以我假设我以错误的方式安装了 OpenCV。

Severity    Code    Description Project File    Line    Suppression State
Error LNK1181 cannot open input file 'cv2.lib' OpenARK-SDK C:\openark_mona\OpenARK\OpenARK-SDK\LINK 1

enter image description here

最佳答案

我不熟悉 openvc,但您可以尝试删除所有这些库并替换为新的单个库:opencv_world320.lib

来自 What is opencv_world :

The new super-module modestly called opencv_world has been introduced. It combines all the other modules selected by user and thus it's much more convenient for redistribution, comparing to ~20 shared libraries libopencv_core, libopencv_imgproc etc.

看起来 opencv_world 现在取代了 opencv 过去附带的所有库库。

关于c++ - 为 Windows 10 64 位安装的 OpenCV3.2.0 中缺少许多 .lib 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43794093/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com