Skip to content
📱 Run Classification Inferences in Android
Java Python
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
app
gradle/wrapper
.gitignore
LICENSE
README.md
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

Classification Android App

You can find an in depth walkthrough for training a TensorFlow lite model here.

Setup

git clone the repo and cd into it by running the following command:

git clone https://github.com/cloud-annotations/classification-android.git
cd classification-android

Install Android Studio

The recommended way to develop applications for Android is by using Android Studio, which can be downloaded here

Open the project with Android Studio

Launch Android Studio and choose Open an existing Android Studio project

In the file selector, choose classification-android.

You will get a Gradle Sync popup, the first time you open the project, asking about using gradle wrapper. Click OK.

Set up an Android device

You can't load the app from android studio onto your phone unless you activate developer mode and USB Debugging. This is a one time setup process.

Follow these instructions.

Add your model files to the project

Copy the model_android directory generated from the classification walkthrough and paste it into the classification-android/app/src/main/assets folder of this repo.

Run the app

In Android Studio run a Gradle sync so the build system can find your files.

Then hit play to start the build and install process.

You can’t perform that action at this time.