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


原博客搬移到:https://blog.csdn.net/u013171226/article/details/108056052

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

某次编译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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM