error: ‘CV_BGR2GRAY‘ was not declared in this scope

Qt +Opencv encountered an error when using: error: 'CV_BGR2GRAY' was not declared in this scope
The solution found on the Internet for cvtColor is:

#include <opencv2\imgproc\types_c.h>

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324148466&siteId=291194637
Recommended