예제 #1
0
def readCommand(img, leftSquare,rightSquare):
	imgNew=GetImage.getImage(img, leftSquare,rightSquare)
	cv2.imwrite('./temp1.jpg',imgNew)
	infoVal=tesseract.readImage('./temp1.jpg')
	print infoVal
	say(infoVal)
	global exitVar
	exitVar=True
예제 #2
0
def infoCommand(img, leftSquare,rightSquare):
	imgNew=GetImage.getImage(img, leftSquare,rightSquare)
	cv2.imwrite('./temp2.jpg',imgNew)
	infoVal=camFind.describeImage('./temp2.jpg')
	print infoVal
	say(infoVal)
	global exitVar
	exitVar=True