C++ OpenCV cvtColor CV_BGR2GRAY未声明的标识符的解决办法
作者:互联网
1.OpenCV cvtColor CV_BGR2GRAY未声明的标识符的解决办法
加上这个引用即可
#include <opencv2\imgproc\types_c.h>
2.opencv里面CV_FOURCC找不到标识符
CV_FOURCC(‘M’,‘J’,‘P’,‘G’)–cv::VideoWriter::fourcc(‘M’,‘J’,‘P’,‘G’)
cv::VideoWriter writer("/home/nvidia/save_video/object_vedio2.avi",cv::VideoWriter::fourcc('M','J','P','G'),25,cv::Size(640,480));
标签:BGR2GRAY,未声明,C++,cv,OpenCV,标识符,CV,VideoWriter 来源: https://blog.csdn.net/qq_42178122/article/details/120649722