yolo測試出現 #error : core.hpp header must be compiled as C++

其實是hpp文件不能當作頭文件,然後仔細看自己opencv2裏面沒有h文件但是1裏面有   所以修改你的文件如下 #include "darknet.h" #import <opencv/highgui.h> #include <sys/stat.h> #include<stdio.h> #include<time.h> #include<sys/types.h>   即可
相關文章
相關標籤/搜索