R
R
Rostislav Ivanov2021-11-18 13:42:30
Python
Rostislav Ivanov, 2021-11-18 13:42:30

Where to install Tesseract OCR for Python?

I looked at many Tesseract OCR installation guides with different links.

There are 2 links:
1. https://pypi.org/project/pytesseract/#files
2. https://github.com/UB-Mannheim/tesseract/wiki

Someone says to download the file from the first site.
Another says: from the second.

Where to download? Maybe this is the same version of the program, just posted on different sites.
It's just that the names of the files are different:
On the pypi website: pytesseract-0.3.8.tar.gz (Archive 14.6 kB).
I open the setup.py file in the archive. Cmd opens and immediately closes.
On github: tesseract-ocr-w64-setup-v5.0.0-rc1.20211030.exe (51mb).

Maybe the question is a bit stupid, but it's better to ask than to suffer later.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
soremix, 2021-11-18
@Slavik28

These are two completely different files.
The pypi version is the pytesseract library itself.
Pytesseract is a wrapper for the Tesseract tool. The Tesseract binaries are on the second site you mentioned.
You need both tesseract itself and a library to work with it in python.
So install pytesseract
pip install pytesseract
AND download Tesseract from https://github.com/UB-Mannheim/tesseract/wiki

A
AIRME, 2021-11-22
@AIRME

Tell me, if there is no Internet access on the PC, how to connect the tesseract library to the python?
Separately, I downloaded tesseract OCR from a laptop and installed it on a PC.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question