error ‘CV_BGR2RGB’ was not declared in this scope
参考链接:
error: ‘CV_BGR2RGB’ was not declared in this scope
C++ OpenCV cvtColor CV_BGR2GRAY未声明的标识符的解决办法(四)
错误如下:
我的解决方法:
直接在main.cpp文件里面加一句
#include <opencv2/imgproc/types_c.h>
原因是第一个链接说缺lopencv_...
原创
2019-04-26 23:29:30 ·
9421 阅读 ·
4 评论