我已经使用命令在Google colab中安装了tesseract
/m:1
然后我运行命令
!pip3 install pytesseract
!pip3 install tesseract-ocr
!sudo apt install libtesseract-dev
然后我得到了错误
from pytesseract import image_to_string
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'/usr/local/bin/pytesseract'
pytesseract.image_to_string(img, lang='eng', config=r'--oem 3 --psm 7')