Friday, February 6, 2015

Errors when compiling Caffe with OpenCV 3.0 Beta

1. When compiling with opencv 3.0 Beta, we got the error with "CV_LOAD_IMAGE_COLOR". The reason is it has been replaced with "cv::IMREAD_COLOR". After editing file 'window_data_layer.cpp', the error was gone. This is a deprecated symbol used in Caffe.

2. "undefined reference to cv::imread(cv::String const&, int)"

We added -lopencv_imgcodecs to the make file and it solved the issue.

Extra: good articles about installing OpenCV in Ubuntu

No comments:

Post a Comment