SI_InteligentnyWozekWidlowy/imageClasification/usedAssets/how_to_use.py
Jakub-Prus 84b3bd5a13 big image database update
saved model import
2022-05-27 11:21:06 +02:00

16 lines
487 B
Python

from Classificator import Classificator
#Training model
data = Classificator.train_model("../SI_InteligentnyWozekWidlowy/imageClasification/images")
#image_path = ścieżka do klasyfikowanego obrazka
#data[0] = model (wytrenowany model
#data[1] = class_names
image_classified = Classificator.image_clasification("./th-367101945.jpg",
data[0],
data[1])
print(image_classified)