Now that we have written the code in iOS to recognize hot dogs, it is now time to write the code for Android. The first things to do is to add the files we exported from the Custom Vision to the Android project. For TensorFlow, the actual model and the labels (the tags) are separated into two files. Let's set this up by going through the following steps:
- Extract the ZIP file that we got from the Custom Vision service.
- Find the model.pb file and rename it as hotdog-or-not-model.pb.
- Find the labels.txt file and rename it as hotdog-or-not-labels.txt.
- Import the files to the Assets folder in the Android project. Make sure that the build action is Android Asset.
When we have imported the files into ...