【问题标题】:Using YOLO real-time detection, couldn't compile with OpenCV使用YOLO实时检测,无法用OpenCV编译
【发布时间】:2017-05-20 05:37:31
【问题描述】:
$ ./darknet imtest data/eagle.jpg
L2 Norm: 371.992218
Not compiled with OpenCV, saving to Original.png instead
Not compiled with OpenCV, saving to Gray.png instead
Not compiled with OpenCV, saving to C1.png instead
Not compiled with OpenCV, saving to C2.png instead
Not compiled with OpenCV, saving to C3.png instead
Not compiled with OpenCV, saving to C4.png instead
$ ./darknet detector demo cfg/coco.data cfg/yolo.cfg yolo.weights football.mp4
Demo needs OpenCV for webcam images.

虽然,我在makefile中写了OpenCV=1,我也下载了opencv。

这是我的 python 和 opencv 版本

Python 3.6.0 |Anaconda custom (x86_64)| (default, Dec 23 2016, 13:19:00) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> cv2.__version__
'3.2.0'
>>> 

如果有人知道如何解决这个问题,非常感谢

【问题讨论】:

  • 可能编译没有找到 OpenCV 头文件/库。能把编译时得到的信息加进去吗?
  • 改成OpenCV=1后有没有运行make文件? “import cv2”测试只告诉您已经为 Python 安装了 OpenCV 包。你安装 OpenCV 了吗?
  • 你能在网络摄像头视频上运行它吗
  • @EladJoseph 我正在使用 cmake-gui 窗口,它显示 Found OpenCV: {path to user}/conda/envs/tf_gpu/Library (found version "3.4.2")。还是同样的错误! :( 我无法在 alexeyab-darknet 上运行网络摄像头或任何输入视频。

标签: python opencv real-time detection


【解决方案1】:

尝试重新制作项目 如果未安装 remake,则安装它并执行 $remake darknet 那么它应该可以工作。 对我来说很好用

【讨论】:

  • 对我们Windows用户来说相当于re-"cmake"吗?
猜你喜欢
  • 2021-06-14
  • 1970-01-01
  • 1970-01-01
  • 2023-04-02
  • 1970-01-01
  • 2016-03-08
  • 2021-06-30
  • 1970-01-01
  • 2013-03-06
相关资源
最近更新 更多