Skip to content

Instantly share code, notes, and snippets.

@alankbi
Last active April 8, 2020 06:56
Show Gist options
  • Save alankbi/60dee86738144aa4883d6828402c9ce8 to your computer and use it in GitHub Desktop.
Save alankbi/60dee86738144aa4883d6828402c9ce8 to your computer and use it in GitHub Desktop.
Read in and predict on an image with Detecto
# Specify the path to your image
image = utils.read_image('images/image0.jpg')
predictions = model.predict(image)
# predictions format: (labels, boxes, scores)
labels, boxes, scores = predictions
print(labels)
print(boxes)
print(scores)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment