mac xcode工程报错:Use of undeclared identifier 'CV_LOAD_IMAGE_COLOR'

mac xcode工程报错:

解决方法:

在网上看到一个办法:更新opencv版本。但后来发现,我安装的opencv版本为:4.0.1,是很高版本。

在另外一个帖子找到解决方法:

https://blog.csdn.net/edwards_june/article/details/71235475

使用 IMREAD_COLOR 代替'CV_LOAD_IMAGE_COLOR'

猜你喜欢

转载自blog.csdn.net/weixin_41770169/article/details/86593444