openvino CMake编译错误 error: ‘CV_RGB’ was not declared in this scope

openvino 编译错误 error: ‘CV_RGB’ was not declared in this scope


参考:error: ‘CV_RGB’ was not declared in this scope

原因:缺少 #include <opencv2/imgproc/types_c.h>

解决:在对应.h文件添加
openvino CMake编译错误 error: ‘CV_RGB’ was not declared in this scope