1#1. Install tesseract using windows installer available at: https://github.com/UB-Mannheim/tesseract/wiki
2
3#2. Note the tesseract path from the installation.Default installation path at the time the time of this edit was: C:\Users\USER\AppData\Local\Tesseract-OCR. It may change so please check the installation path.
4
5#3. pip install pytesseract
6
7#4. Set the tesseract path in the script before calling image_to_string:
8
9pytesseract.pytesseract.tesseract_cmd = r'C:\Users\USER\AppData\Local\Tesseract-OCR\tesseract.exe'
1sudo apt update
2sudo apt install tesseract-ocr
3sudo apt install libtesseract-dev
4