在google colab中运行时pytesseract中的错误

时间:2020-04-17 06:13:58

标签: python-3.x tesseract google-colaboratory opencv3.0 python-tesseract

我已经使用命令在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')

0 个答案:

没有答案