我正在用yolo检测物体 以下教程https://pjreddie.com/darknet/yolo/
我想用网络摄像头做实时检测
所以我配置Makefile OPENCV=1
并试图再次
我有以下错误
gcc -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv` -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -c ./src/gemm.c -o obj/gemm.o
Package opencv was not found in the pkg-config search path.
Perhaps you should add the directory containing `opencv.pc'
to the PKG_CONFIG_PATH environment variable
No package 'opencv' found
In file included from ./src/utils.h:5:0,
from ./src/gemm.c:2:
include/darknet.h:25:43: fatal error: opencv2/highgui/highgui_c.h: No such file or directory
compilation terminated.
Makefile:85: recipe for target 'obj/gemm.o' failed
make: *** [obj/gemm.o] Error 1
我在水蟒身上安装了简历
^{pr2}$
我和你有同样的错误。 当我尝试按照本教程手动安装opencv3.4时,重新制作它就可以工作了。但是请记住OpenCV的版本不能超过3.4.0,我尝试过4.0.0,但是失败了。 https://docs.opencv.org/3.4.1/d2/de6/tutorial_py_setup_in_ubuntu.html
我的操作系统是Ubuntu16.04,希望对您有所帮助。在
相关问题 更多 >
编程相关推荐