python - 使用YOLO实时检测,无法用OpenCV编译

标签 python opencv real-time detection

$ ./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'
>>> 

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

最佳答案

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

关于python - 使用YOLO实时检测,无法用OpenCV编译,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44082336/

相关文章:

python - 过滤掉 'display:none' 作为标记属性或在其 CSS 中的 HTML 元素

python - Yellowbrick t-SNE 拟合引发 ValueError

c++ - 一张一张打开图片

c# - 如何训练从右到左语言的tesseract

c++ - 在 Qt Creator 中将串行数据从 QSerialPort 提取到 double 的正确语法是什么?

Android:实时图像处理

python - 使用 adodbapi 在 python 中创建与 Vertica 数据库的连接

python - 正则表达式向后匹配任何内容,直到字符串第一次出现

opencv - 使用opencv检测棋盘上方的手

android - 可以实时监控扬声器输出吗?