The Image Labeling service allows recognizing different objects in an image. These include people, places, animals, and plants. There are two kinds of ImageLabeler: one is on the device, and we used it in this recipe. Or, if you want to connect to the Firebase cloud services, you can use CloudImageLabeler instead.
When using an on-device image labeler you can recognize over 400 labels, but with the cloud services, there are over 10,000 available labels.
Use cases for image labeling are almost limitless; you could use it to automatically categorize your user’s pictures, or use it for content moderation, or more specific tasks.
The pattern is similar to the previous recipes in this chapter: you need to get an image, send it to the API, and retrieve and show the results.
In this case, the object you used was ImageLabeler:
ImageLabeler labeler = vision.imageLabeler();
The method to call to get the labels of the...