Open subha-v opened 2 years ago
@subha-v for fix this only makes:
sudo apt-get install python3-pil tesseract-ocr libtesseract-dev tesseract-ocr-eng tesseract-ocr-script-latn
pytesseract.pytesseract.tesseract_cmd = 'C:/OCR/Tesseract-OCR/tesseract.exe' # your path may be different
after steps above, I get the following result:
ps: I editted my local code the line 56 because I was getting ValueError: too many values to unpack
exception.
Let me know if work for you.
Hi Leonardo, thank you. I'm currently using a mac, so I'm not sure if these exact instructions could help. Do you have any advice for that?
Did you had installed tesseract using on your mac? Using the following command:
brew install tesseract
If this yes and this don't work yet, I suggest that we mount a docker image to resolve this problem.
One issue we're having is the pytesseract module saying that it's uninstalled even after doing pip install pytesseract. This creates a problem in the OCR. Please try to replicate this by running TextExtraction.py and seeing where it says pytesseract not installed.