我想使用 Caffe 的工具 compute_image_mean
来计算平均图像,但命令行告诉我:
This tool requires OpenCV; compile with USE_OPENCV.
我在网上搜索了一下,有人说:
Well, this message suggests that you have compiled caffe without OpenCV, i.e; with USE_OPENCV set to 0 in your Makefile.config. Recompile with that settings commented out (as is the default) and try again. And of course you need to have OpenCV installed for this to work.
但我在编译 Caffe 时已经设置了 USE_OPENCV := 0
。
有人可以帮我解决这个问题吗?
最佳答案
我认为您误读了您发现的声明,它说您在没有 OpenCV 的情况下进行编译,这意味着 WITH_OPENCV := 0 ,要使用 OpenCV 编译 Caffe,您必须设置 WITH_OPENCV := 1 ,或者只是将其注释掉。
关于opencv - 使用 Caffe 时出错 : "This tool requires OpenCV; compile with USE_OPENCV.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41465282/