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
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