convert image to text using python pytesseract (osr)

Publicado em: 23 Janeiro 2022
no canal de: Free Python Code
247
8

https://pypi.org/project/pytesseract/
https://tesseract-ocr.github.io/tessd...
------------------------------------------------------------------------------------
Python-tesseract is an optical character recognition (OCR) tool for python. That is, it will recognize and “read” the text embedded in images.

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. Additionally, if used as a script, Python-tesseract will print the recognized text instead of writing it to a file.
-------------------------------------------------------------------------------------------------------------
INSTALLATION
Prerequisites:

Python-tesseract requires Python 3.6+

You will need the Python Imaging Library (PIL) (or the Pillow fork). Under Debian/Ubuntu, this is the package python-imaging or python3-imaging.

Install Google Tesseract OCR (additional info how to install the engine on Linux, Mac OSX and Windows). You must be able to invoke the tesseract command as tesseract. If this isn’t the case, for example because tesseract isn’t in your PATH, you will have to change the “tesseract_cmd” variable pytesseract.pytesseract.tesseract_cmd. Under Debian/Ubuntu you can use the package tesseract-ocr. For Mac OS users. please install homebrew package tesseract.

Note: Make sure that you also have installed tessconfigs and configs from tesseract-ocr/tessconfigs or via the OS package manager.

Installing via pip:


Nesta página do site você pode assistir ao vídeo on-line convert image to text using python pytesseract (osr) duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Free Python Code 23 Janeiro 2022, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 247 vezes e gostou 8 espectadores. Boa visualização!