这里在更新opencv4的过程中出现较多问题,很多都是未定义的问题。这里是要是opencv3在更新到opencv4的过程有很多定义发生了改变:
例如在 ‘CV_IMWRITE_JPEG_QUALITY’ was not declared in this scope中就是比较典型的,这里只需要将CV_IMWRITE_JPEG_QUALITY更改为IMWRITE_JPEG_QUALITY即可,opencv3定义为CV_IMWRITE_JPEG_QUALITY,而在opencv4中定义为IMWRITE_JPEG_QUALITY
#opencv4中的错误
error: ‘CV_IMWRITE_JPEG_QUALITY’ was not declared in this scope
#这里将CV_IMWRITE_JPEG_QUALITY改为IMWRITE_JPEG_QUALITY
#opencv4中的错误
error: ‘CV_INTER_LINEAR’ was not declared in this scope
#这里将CV_INTER_LINEAR改为INTER_LINEAR