- 博客(2)
- 收藏
- 关注
原创 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 329 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人