# TF Lite Android App
## Building in Android Studio with TensorFlow Lite AAR from JCenter.
The build.gradle is configured to use TensorFlow Lite's nightly build.
If you see a build error related to compatibility with Tensorflow Lite's Java API (example: method X is
undefined for type Interpreter), there has likely been a backwards compatible
change to the API. You will need to pull new app code that's compatible with the
nightly build and may need to first wait a few days for our external and internal
code to merge.
## Building from Source with Bazel
1. Follow the [Bazel steps for the TF Demo App](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#bazel):
1. [Install Bazel and Android Prerequisites](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install-bazel-and-android-prerequisites).
It's easiest with Android Studio.
- You'll need at least SDK version 23.
- Make sure to install the latest version of Bazel. Some distributions
ship with Bazel 0.5.4, which is too old.
- Bazel requires Android Build Tools `26.0.1` or higher.
- **Bazel is incompatible with NDK revisions 15 and above,** with revision
16 being a compile-breaking change. [Download an older version manually
instead of using the SDK Manager.](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install-bazel-and-android-prerequisites)
- You also need to install the Android Support Repository, available
through Android Studio under `Android SDK Manager -> SDK Tools ->
Android Support Repository`.
2. [Edit your `WORKSPACE`](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#edit-workspace)
to add SDK and NDK targets.
NOTE: As long as you have the SDK and NDK installed, the `./configure`
script will create these rules for you. Answer "Yes" when the script asks
to automatically configure the `./WORKSPACE`.
- Make sure the `api_level` in `WORKSPACE` is set to an SDK version that
you have installed.
- By default, Android Studio will install the SDK to `~/Android/Sdk` and
the NDK to `~/Android/Sdk/ndk-bundle` (but the NDK should be a manual
download until Bazel supports NDK 16. See bullet points under (1)).
2. Build the app with Bazel. The demo needs C++11:
```shell
bazel build -c opt --cxxopt='--std=c++11' \
//tensorflow/contrib/lite/java/demo/app/src/main:TfLiteCameraDemo
```
3. Install the demo on a
[debug-enabled device](https://github.com/tensorflow/tensorflow/tree/master/tensorflow/examples/android#install):
```shell
adb install bazel-bin/tensorflow/contrib/lite/java/demo/app/src/main/TfLiteCameraDemo.apk
```
没有合适的资源?快使用搜索试试~ 我知道了~
TensorFlow Lite在Android实现图像分类的例子+tensorflow-lite-0.1.7.aar
共1488个文件
flat:523个
jar:342个
xml:148个
3星 · 超过75%的资源 需积分: 50 70 下载量 192 浏览量
2019-02-01
17:06:44
上传
评论 4
收藏 35.56MB RAR 举报
温馨提示
Android的tensorflow演示,在android studio 3.2下编译通过。增加 tensorflow-lite-0.1.7.aar库以及模型文件mobilenet_quant_v1_224.tflite
资源推荐
资源详情
资源评论
收起资源包目录
TensorFlow Lite在Android实现图像分类的例子+tensorflow-lite-0.1.7.aar (1488个子文件)
4agWv6Y7skMebvL85VQ6d17lKMc= 102KB
4agWv6Y7skMebvL85VQ6d17lKMc= 102KB
4EJH7Zsz9Ar5o_N3plQuz_LlEGU= 679KB
4EJH7Zsz9Ar5o_N3plQuz_LlEGU= 679KB
tensorflow-lite-0.1.7.aar 1.77MB
AlvzyCOk4C+lj93EcBu4RbHxROM= 22KB
AlvzyCOk4C+lj93EcBu4RbHxROM= 22KB
resources-debug.ap_ 357KB
app-debug.apk 7.83MB
app-debug.apk 7.64MB
gradlew.bat 2KB
taskHistory.bin 1.27MB
classAnalysis.bin 1.01MB
classAnalysis.bin 1015KB
taskHistory.bin 799KB
jarAnalysis.bin 428KB
jarAnalysis.bin 410KB
fileHashes.bin 255KB
fileHashes.bin 208KB
taskHistory.bin 97KB
taskHistory.bin 60KB
taskJars.bin 23KB
outputFiles.bin 21KB
taskJars.bin 21KB
resourceHashesCache.bin 19KB
resourceHashesCache.bin 19KB
last-build.bin 1B
last-build.bin 1B
BUILD 1KB
BUILD 196B
BUILD 196B
CH8F9eO1u1sMhqVAmKqgSVC7qYk= 11KB
CH8F9eO1u1sMhqVAmKqgSVC7qYk= 11KB
cirFQlNtb5UNTl+Os9wOP2N3AbQ= 163KB
cirFQlNtb5UNTl+Os9wOP2N3AbQ= 163KB
R$styleable.class 38KB
R$styleable.class 30KB
R$style.class 23KB
R$style.class 23KB
Camera2BasicFragment.class 23KB
R$styleable.class 22KB
R$style.class 22KB
R$attr.class 15KB
R$attr.class 13KB
R$attr.class 10KB
R$styleable.class 9KB
ImageClassifier.class 9KB
R$dimen.class 8KB
R$dimen.class 8KB
R$id.class 6KB
R$drawable.class 6KB
R$dimen.class 6KB
R$id.class 6KB
R$drawable.class 6KB
R$drawable.class 5KB
R$color.class 5KB
R$color.class 5KB
R$color.class 5KB
R$id.class 4KB
Camera2BasicFragment$8.class 4KB
R$layout.class 4KB
R$layout.class 3KB
R$string.class 3KB
R$layout.class 3KB
R$attr.class 3KB
R$string.class 3KB
R$string.class 2KB
ImageClassifierFloatInception.class 2KB
Camera2BasicFragment$ErrorDialog.class 2KB
ImageClassifierQuantizedMobileNet.class 2KB
Camera2BasicFragment$2.class 2KB
AutoFitTextureView.class 2KB
Camera2BasicFragment$3.class 2KB
Camera2BasicFragment$1.class 1KB
ImageClassifier$1.class 1KB
Camera2BasicFragment$7.class 1KB
Camera2BasicFragment$5.class 1KB
Camera2BasicFragment$CompareSizesByArea.class 1KB
Camera2BasicFragment$ErrorDialog$1.class 1KB
Camera2BasicFragment$6.class 1KB
Camera2BasicFragment$4.class 1KB
CameraActivity.class 1KB
R.class 1KB
R$anim.class 1KB
R$anim.class 1KB
R.class 1015B
R.class 989B
R$styleable.class 887B
R$integer.class 887B
R$integer.class 845B
R$anim.class 813B
BuildConfig.class 765B
R$bool.class 704B
R$bool.class 680B
R$bool.class 662B
R$id.class 647B
R$integer.class 611B
R$dimen.class 599B
R.class 559B
R$attr.class 542B
共 1488 条
- 1
- 2
- 3
- 4
- 5
- 6
- 15
资源评论
- hmmango2020-04-08不错,可以用
- 樊诚2020-12-03垃圾, 就是从网上下载 一个盒子下来, 放上去
netmedia
- 粉丝: 2
- 资源: 8
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- TRIZ矛盾矩阵表.pdf
- ssm基于SSM框架的购物商城系统+jsp.zip
- ssm基于SSM框架的个人博客网站的设计与实现+vue.zip
- ssm基于SSM框架的金鱼销售平台的开发和实现+jsp.zip
- ssm基于SSM框架的德云社票务系统的设计与实现+vue.zip
- ssm基于SSM框架的安全教育平台+vue.zip
- ssm基于ssm框架的大学生就业信息平台+jsp.zip
- ssm基于SSM的养老院老人健康监护平台设计与实现+vue.zip
- ssm基于ssm的疫情物质管理系统+jsp.zip
- ssm基于SSM的药房药品采购集中管理系统的设计与实现+vue.zip
- ssm基于SSM的乡镇篮球队管理系统+jsp.zip
- ssm基于ssm的新能源汽车在线租赁管理系统+vue.zip
- ssm基于SSM的校园二手物品交易平台+vue.zip
- ssm基于ssm的人才招聘网站+jsp.zip
- ssm基于SSM的高校疫情管理系统设计与实现+vue.zip
- ssm基于ssm的线上课程管理系统+jsp.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功