The steps required to deploy the TensorFlow lite converted model will be described in this section. Alternatively, you can follow the instructions at https://github.com/tensorflow/examples/tree/master/lite/examples/image_classification/android to build a sample app. A detailed flow chart regarding object detection on Android phones is as follows:
![](https://static.packt-cdn.com/products/9781838827069/graphics/assets/20e25d76-69c4-408e-959e-e79140a129bb.png)
We need two files:
- The TensorFlow Lite converted file in.tflite form
- An updated labelmap .txt file showing the class
The .tflite file comes directly from Google Colab if we export it, as explained in the TensorFlow Object Detection API – toco section. The lablemap.txt file comes from the label_map.pbtxt file by listing only the names of the class.
The sample files can be found at the following GitHub page: https://github.com/PacktPublishing/Mastering-Computer-Vision-with...