error: 'CV_RGB2GRAY' was not declared in this scope solutions

Add in the header file

#include <opencv2/imgproc/types_c.h>

Guess you like

Origin www.cnblogs.com/lonelypinky/p/11586388.html
Recommended