def trainSysWin(): ATI_ML.trainSys() trainWin = Toplevel() trainWin.title('Train System') trainWin.grid() trainWin.minsize(200, 100) Label(trainWin, text = "Successfully trained the system!").grid(pady = 10, padx = 20) Button(trainWin, text = 'Close', command = trainWin.destroy).grid(pady = 20)
def askopenfilename(): filename = tkFileDialog.askopenfilename(**uploadWindow.file_opt) img = io.imread(filename, as_grey = True) tag = ATI_ML.predictImg(img) confirmTagWin(tag, filename)