open ( 'test-european.jpg' ), lang = 'fra' )) # In order to bypass the image conversions of pytesseract, just use relative or absolute image path # NOTE: In this case you should provide tesseract supported images or tesseract will return error print ( pytesseract.
get_languages ( config = '' )) # French text image to string print ( pytesseract. open ( 'test.png' ))) # List of available languages print ( pytesseract. tesseract_cmd = r '' # Example tesseract_cmd = r'C:\Program Files (x86)\Tesseract-OCR\tesseract' # Simple image to string print ( pytesseract. Library usage: try : from PIL import Image except ImportError : import Image import pytesseract # If you don't have tesseract executable in your PATH, include the following: pytesseract. Note: Test images are located in the tests/data folder of the Git repo.