我想在 macOS 10.14.1 上的视频中使用 YOLOv3 进行对象检测,因此我安装了 opencv 4.0.1
brew install opencv
换了行
OPENCV=0
至
OPENCV=1
在暗网 makefile
然后我指定了 pkgconfig 链接
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
并重新编译
make
g++ -Iinclude/ -Isrc/ -DOPENCV `pkg-config --cflags opencv` -Wall -Wno-unused-result -Wno-unknown-pragmas -Wfatal-errors -fPIC -Ofast -DOPENCV -c ./src/image_opencv.cpp -o obj/image_opencv.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
./src/image_opencv.cpp:5:10: fatal error: 'opencv2/opencv.hpp' file not found
#include "opencv2/opencv.hpp"
我应该了解 YOLOv3 仅适用于 openCV 2.0 吗?