Example #1
0
def checkCorrectDigitCommandLine(finalDigit, originalDigitImage):
	cont = True
	while (cont):
		digitRecognized = raw_input('--> Was I right (Y)es or (N)o? (0 to exit): ')
		if digitRecognized == '0':
			cont = False
		elif digitRecognized == 'Y' or digitRecognized =='y':
			ocr_utils.saveImageToCorrectDigitFolder(originalDigitImage,finalDigit)
			cont = False
		elif digitRecognized == 'N' or digitRecognized =='n':
			ocr_utils.guessedWrong(originalDigitImage)
			cont = False
		else:
			print "Command must be Y(es), N(o), or 0 to exit!"
	return
	def digitNotRecognized(self):
		ocr_utils.guessedWrong(self.originalImage)
		self.resetGUI()
		return