liunx系统下OpenCV编译error: ‘CV_BGR2GRAY’/CV_WINDOW_AUTOSIZEwas not declared in this scope报错解决办法
error: ‘CV_CHAIN_APPROX_SIMPLE’ was not declared解决方法同理。error: ‘CV_WINDOW_AUTOSIZE’ was not declared 解决方法。#include 如下图所示。error: ‘CV_RETR_TREE’ was not declared 和。将代码中CV_BGR2GRAY改为cv::COLOR_BGR2GRAY。这是由于版本更新,宏定义发生了改变。
原创
2023-09-01 16:02:07 ·
358 阅读 ·
1 评论