Open ZeweiChen11 opened 5 years ago
we didn't formally claim we support opencv4. but as a workaround, you can change CV_BGR2RGB to COLOR_BGR2RGB and have a try.
Followed your suggestion but the same issue:
/root/caffe/src/caffe/layers/image_data_layer.cpp(122): error: identifier "COLOR_BGR2RGB" is undefined
cv::cvtColor(cv_img, cv_img, COLOR_BGR2RGB);
^
/root/caffe/src/caffe/layers/image_data_layer.cpp(182): error: identifier "COLOR_BGR2RGB" is undefined
cv::cvtColor(cv_img, cv_img, COLOR_BGR2RGB);
^
compilation aborted for /root/caffe/src/caffe/layers/image_data_layer.cpp (code 2)
how about cv::COLOR_BGR2RGB?
I followed https://github.com/intel/caffe/wiki/Build-Caffe-with-Intel--Compiler to build intel-caffe. Command line:
CC=icc CXX=icpc CPATH="" make all -j$(nproc)
Error: