Would it be possible to compile Caffe linked with OpenCV so the command
compute_image_mean -backend=lmdb train_lmdb mean.binaryproto
works. So far, I get:
F0507 17:16:31.466557 33233 compute_image_mean.cpp:162] This tool requires OpenCV; compile with USE_OPENCV. *** Check failure stack trace: *** @ 0x7f4dfc99f9ed google::LogMessage::Fail() @ 0x7f4dfc9a18af google::LogMessage::SendToLog() @ 0x7f4dfc99f583 google::LogMessage::Flush() @ 0x7f4dfc9a21ce google::LogMessageFatal::~LogMessageFatal() @ 0x7f4e046f4e1a main @ 0x7f4df95d9b35 __libc_start_main @ 0x7f4e046f4c79 (unknown) Aborted (core dumped)
Starting with Intel Python 2018 Beta, Caffe is linked with OpenCV. You can obtain the beta version by following the instructions in this forum post: https://software.intel.com/en-us/forums/intel-distribution-for-python/topic/731303.
This functionality will also be available in 2017 Update 3, which should be released soon.