error: ‘CV_RGB2GRAY’ was not declared in this scope 的解决方法

在头文件里添加

#include <opencv2/imgproc/types_c.h>

猜你喜欢

转载自www.cnblogs.com/lonelypinky/p/11586388.html