I am using the alpha tesseract4 from ppa:alex-p/tesseract-ocr on ubuntu 16.04.
tool.detect_orientation(img) gives error as below:
KeyError Traceback (most recent call last)
/anaconda3/lib/python3.6/site-packages/pyocr/tesseract.py in detect_orientation(image, lang)
213 output = {x: y for (x, y) in output}
--> 214 angle = int(output.get('Rotate', output['Orientation in degrees']))
215 # Tesseract reports the angle in the opposite direction the one we
I am using the alpha tesseract4 from ppa:alex-p/tesseract-ocr on ubuntu 16.04.
tool.detect_orientation(img) gives error as below: KeyError Traceback (most recent call last) /anaconda3/lib/python3.6/site-packages/pyocr/tesseract.py in detect_orientation(image, lang) 213 output = {x: y for (x, y) in output} --> 214 angle = int(output.get('Rotate', output['Orientation in degrees'])) 215 # Tesseract reports the angle in the opposite direction the one we
KeyError: 'Orientation in degrees'