caffe2可以一移植客户端上,今天将caffe2官网上的AICamera小项目实现了下。
https://caffe2.ai/docs/mobile-integration.html
https://caffe2.ai/docs/AI-Camera-demo-android.html
https://github.com/bwasti/AICamera
过程很简单,官网上的说明文档很详细,只要按照步骤先安装好Android Studio.
注意需要安装NDK库,这在官网上也有指导,,直接在Android Studio上添加加载即可。
第二步,从GitHub上下载代码,https://github.com/bwasti/AICamera
最后直接在Android Studio上打开部署到手机上即可。项目集成的很好。
遇到的一点小问题:按照官网上下载代码:
git clone https://github.com/bwasti/AICamera.git
git submodule init && git submodule update
cd app/libs/caffe2
git submodule init && git submodule update
但是从第二步开始,就不能顺利执行了,第三步的的lib文件也不存在。但不影响程序运行。
finally ,is OK!
有疑问,请随时留言……