【发布时间】:2016-07-12 09:11:48
【问题描述】:
我正在尝试在 VS13 中使用 YOLO,但它没有编译。我正在使用this(这给了我this 错误),现在我正在尝试this(这不是编译)。如果我使用opencv 2.4.13,错误是
Error 1075 error LNK1104: cannot open file 'opencv_core249.lib'
(下载这个库没有帮助并导致另一个链接器错误)
如果我使用 opencv 3.1.0,则会出现此错误
Error 14 error : this declaration may not have extern "C" linkage C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include\limits 78 1 darknet
我发现 solution 对我不起作用,因为如果我删除了
#ifdef OPENCV
#include "opencv2/highgui/highgui_c.h"
#include "opencv2/imgproc/imgproc_c.h"
#endif
从 image.h 中,并将其添加到 image.c(通常它已经在 image.c 中,所以我只是从 image.h 中删除这行)错误出现在这行(image.h)中
#ifdef OPENCV
void save_image_jpg(image p, char *name);
image get_image_from_stream(CvCapture *cap);
image ipl_to_image(IplImage* src);
#endif
(CvCapture 和 IplImage 未定义)
那么,如何在 Windows 中使用 YOLO?我应该在 frischzenger 或 AlexeyAB 解决方案中解决什么问题?
【问题讨论】:
-
堆栈溢出不是外部工具的支持站点。你有什么理由不问那个图书馆的供应商?
-
@Olaf 这个问题似乎在列出的链接中得到了解决,但它对我不起作用。所以我问我是否做错了什么,也许有人已经面临同样的问题
-
重复从您的问题中可以看到的内容有些 - 没用。
-
我使用了github.com/AlexeyAB/darknet,效果很好。小心定义链接中描述的库目录