yolov3 ./src/image_opencv.cpp:5:10: fatal error: opencv2/opencv.hpp: No such file or directory

【yolov3 ./src/image_opencv.cpp:5:10: fatal error: opencv2/opencv.hpp: No such file or directory】为了实现yolo检测视频,更改Makefile里的opencv=1后,执行make出现以下报错

./src/image_opencv.cpp:5:10: fatal error: opencv2/opencv.hpp: No such file or directory
yolov3 ./src/image_opencv.cpp:5:10: fatal error: opencv2/opencv.hpp: No such file or directory
文章图片

解决办法:
sudo apt install libopencv-dev

安装好这个库,make一下就ok了。

    推荐阅读