首页 > Windows开发 > 详细

src/caffe/layers/window_data_layer.cpp:293:42: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this

时间:2020-08-23 16:52:28      阅读:410      评论:0      收藏:0      [点我收藏+]

某次编译caffe时使用的是opencv4,编译过程中出现如下错误:

src/caffe/layers/window_data_layer.cpp:293:42: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this scope
         cv_img = cv::imread(image.first, CV_LOAD_IMAGE_COLOR);

原因是在opencv4里面没有CV_LOAD_IMAGE_COLOR ,应该使用 cv::IMREAD_COLOR 来代替CV_LOAD_IMAGE_COLOR。

注意单词的拼写,后面的不是cv::IMAGED_COLOR,

 

参考文章:

https://blog.csdn.net/dongshizhishui/article/details/104789655

https://blog.csdn.net/sheqianweilong/article/details/102765302

src/caffe/layers/window_data_layer.cpp:293:42: error: ‘CV_LOAD_IMAGE_COLOR’ was not declared in this

原文:https://www.cnblogs.com/cumtchw/p/13549243.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!