Is Pytesseract actually supported by Repl.it?
I have been trying to run Pytesseract the last few days to no avail, even with the most basic script possible:
There seems to be no one else who has worked on this in Repl.it, which leads me to believe you cannot actually use Pytesseract?
Hope someone knows more about this issue, have a good day and thanks!
You can use Pytesseract, though you need to install the Tesseract executable. You also need to set the location in
@19wintersp I've looking at that as well and did the following:
>>> wget https://github.com/tesseract-ocr/tessdata/raw/master/eng.traineddata >>> mv -v /home/runner/Test/eng.traineddata /home/runner/.apt/usr/share/tesseract-ocr/4.00/tessdata/
Nevertheless, the same error seems to appear. Maybe the path needs to be changed?
@Noisewerk Oh, I would do:
git clone https://github.com/tesseract-ocr/tessdata
but you need to add the path to Tessdata to
import os os.environ["TESSDATA_PREFIX"] = "wherever you put the Tessdata folder"
If you used
git clone, that folder would be "~/Test/tessdata" for a repl called "Test".
@19wintersp In the end the following steps made it indeed work:
>>> install-pkg tesseract-ocr >>> wget https://github.com/tesseract-ocr/tessdata/raw/master/eng.traineddata >>> mv -v /home/runner/<yourFolderName>/eng.traineddata /home/runner/.apt/usr/share/tesseract-ocr/4.00/tessdata/ import os pytesseract.pytesseract.tesseract_cmd = "tesseract" os.environ["TESSDATA_PREFIX"] = "/home/runner/.apt/usr/share/tesseract-ocr/4.00/tessdata/"
Thank you so much for the help!
pip install Pytesseract, if that doesn't work, then it's probably not available in repl.it