Skip to content

Instantly share code, notes, and snippets.

@karthick965938
Created May 11, 2020 11:15
Show Gist options
  • Save karthick965938/2dc024c17bb8e11d05b7e5f9dab359bc to your computer and use it in GitHub Desktop.
Save karthick965938/2dc024c17bb8e11d05b7e5f9dab359bc to your computer and use it in GitHub Desktop.
Detecto sample
from detecto import core, utils, visualize
image = utils.read_image('apple.jpg')
#Initialized a pre-trained model
model = core.Model()
labels, boxes, scores = model.predict_top(image)
visualize.show_labeled_image(image, boxes, labels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment