You can find an in depth walkthrough for training a TensorFlow lite model here.
git clone
the repo and cd
into it by running the following command:
git clone https://github.com/cloud-annotations/object-detection-android.git
cd object-detection-android
The recommended way to develop applications for Android is by using Android Studio, which can be downloaded here
Launch Android Studio and choose Open an existing Android Studio project
In the file selector, choose object-detection-android
.
You will get a Gradle Sync popup, the first time you open the project, asking about using gradle wrapper. Click OK.
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.
Copy the model_android
directory generated from the classification walkthrough and paste it into the object-detection-android/app/src/main/assets
folder of this repo.
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.