Progetto

fico
 avatar
unknown
actionscript
3 years ago
604 B
4
Indexable
from mlforkids import MLforKidsImageProject

# treat this key like a password and keep it secret!
key = "3379eff0-3a99-11ed-9cca-15f0df683069f6f1734f-3ef4-4def-8dd8-9503737b9632"

# this will train your model and might take a little while
myproject = MLforKidsImageProject(key)
myproject.train_model()

# CHANGE THIS to the image file you want to recognize
demo = myproject.prediction("my-test-image.jpg")

label = demo["class_name"]
confidence = demo["confidence"]

# CHANGE THIS to do something different with the result
print ("result: '%s' with %d%% confidence" % (label, confidence))
Editor is loading...