error: ‘CV_RGB2BGR’ was not declared in this scope; did you mean ‘CV_RGB’?
error: ‘CV_BGR2GRAY’ was not declared in this scope
解决
#include <opencv2/imgproc/types_c.h>
error: ‘CV_RGB2BGR’ was not declared in this scope; did you mean ‘CV_RGB’?
error: ‘CV_BGR2GRAY’ was not declared in this scope
#include <opencv2/imgproc/types_c.h>