pytesseract · PyPI
https://pypi.org/project/pytesseract28.06.2021 · Python-tesseract is a wrapper for Google’s Tesseract-OCR Engine . It is also useful as a stand-alone invocation script to tesseract, as it can read all image types supported by the Pillow and Leptonica imaging libraries, including jpeg, png, gif, bmp, tiff, and others.
pytesseract · PyPI
pypi.org › project › pytesseractJun 28, 2021 · # Example of adding any additional options custom_oem_psm_config = r '--oem 3 --psm 6' pytesseract. image_to_string (image, config = custom_oem_psm_config) # Example of using pre-defined tesseract config file with options cfg_filename = 'words' pytesseract. run_and_get_output (image, extension = 'txt', config = cfg_filename)