import tensorflow as tf
from tensorflow.keras.applications import MobileNetV2
from tensorflow.keras.applications.mobilenet_v2 import preprocess_input, decode_predictions
from tensorflow.keras.preprocessing import image
import numpy as np
model = MobileNetV2(weights='imagenet')
img_path = 'seu_arquivo.jpg' # substitua pelo caminho da sua imagem
img = image.load_img(img_path, target_size=(224, 224))
x = image.img_to_array(img)
x = np.expand_dims(x, axis=0)
x = preprocess_input(x)
preds = model.predict(x)
print('Classe prevista:', decode_predictions(preds, top=1)[0][0])