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