Exemplo n.º 1
0
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)
Exemplo n.º 2
0
	def askopenfilename():
		filename = tkFileDialog.askopenfilename(**uploadWindow.file_opt)
		img = io.imread(filename, as_grey = True)
		tag = ATI_ML.predictImg(img)
		confirmTagWin(tag, filename)