Skip to content Skip to sidebar Skip to footer

(2, 'usage: Pytesseract [-l Lang] Input_file') On Google Colab

I am trying to run Tesseract into Google Colab: !sudo apt install tesseract-ocr !pip install pytesseract import pytesseract import shutil import os import random try: from PIL im

Solution 1:

Solved by using:

pytesseract.pytesseract.tesseract_cmd = (
    r'/usr/bin/tesseract'
)

Post a Comment for "(2, 'usage: Pytesseract [-l Lang] Input_file') On Google Colab"