Last active
April 8, 2020 06:56
-
-
Save alankbi/60dee86738144aa4883d6828402c9ce8 to your computer and use it in GitHub Desktop.
Read in and predict on an image with Detecto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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