Classify objects in an image
Classify[] uses a zero-shot model which means you can specify any class you like.
The model behind Classify[] will be downloaded automatically the first time you use it on your computer. This can take a few minutes depending on your internet connection.
Syntax
Classify["cat", "dog"]
Arguments
- An arbitrary number of
class
arguments that specify the labels to use in classification.
Examples
The following example loads an image, classifies if the image is a cat or a dog, and displays the results.
Load["./cat.jpeg"]
Classify["cat", "dog"]
Show[]