Building the Android application

Let's create the Android application step-by-step with the model that we have built. We will start by creating a new project in Android Studio:

  1. Create a new application in Android Studio:

  1. Drag the created TensorFlow Lite model to the assets folder, along with the labels.txt file. We will read the model and label from the assets folder:

The preceding screenshot shows the file structure in the project. If necessary, we can store the model file inside the secondary memory storage as well.

One of the advantages ...

Get Mobile Artificial Intelligence Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.