由于ncnn对opencv版本有限制,一开始直接用brew安装了最新版本的opencv 4.0.1。各种报错。
后来,下载2.14.3版本的源码,通过cmake本地编译,直接跑工程成功。
跑的工程:https://blog.csdn.net/weixin_41770169/article/details/86543010
https://github.com/Revo-Future/ncnn_mobileNet
本地编译参考:https://blog.csdn.net/weixin_41923961/article/details/82770642
https://blog.csdn.net/v_xchen_v/article/details/70161673
brew安装参考:http://www.mamicode.com/info-detail-1193075.html