“CV_XXX“was not declared in this scope的解决办法

在出错的程序里面添加相应的头文件即可

1.‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope

#include "opencv2/imgcodecs/legacy/constants_c.h"

2.‘CV_FILLED’ was not declared in this scope

#include 

3.‘CV_AA’ was not declared in this scope

#include "opencv2/imgproc/imgproc_c.h"

4.‘CV_RGB2GRAY’ was not declared in this scope

#include

5.‘CV_MINMAX’ was not declared in this scope

#include

6…‘CV_RGB2GRAY ’ was not declared in this scope

#include 

7.‘CV_GRAY2RGB’ was not declared in this scope

#include

8.CV_ADAPTIVE_THRESH_MEAN_C’ was not declared in this scope

#include 

9.‘CV_LOAD_IMAGE_GRAYSCALE’ was not declared in this scope

#include"opencv2/imgcodecs/legacy/constants_c.h"

你可能感兴趣的:(笔记,其他)