I deployed my Streamlit app and it didn’t show any error in the “manage app” terminal, but when I try to use my app it shows an error saying that Tesseract is not installed, or it’s not in my way. Could you help me solve this?
git repo: GitHub - guilhermedonizetti/OCR_Python: Aplicação em Python para Optical Character Recognition (OCR)
Hi @guilhermedonizetti, welcome to the Streamlit community!!
The installation instructions for
pytesseract say that Google’s tesseract-ocr is a dependency. Meaning, you need to install
tesseract-ocr as an apt-get dependency (for Linux applications outside the Python environment).
The way to do that is to include the necessary dependencies in a
packages.txt file in your repo:
Create a new
packages.txtfile with the following lines:
The first line installs the base
tesseract-ocrapplication and supports only English by default. To support Portuguese, you need to install a language specific tesseract data file, which we do in the second line.
Reboot your app
Once you make the above changes, your app should successfully deploy!
@snehankekre it worked correctly, perfect.
Thank you very much!!