小编Phe*_*mia的帖子

AttributeError: 模块“pytesseract”没有属性“image_to_string”

> import image 
> import pytesseract as pya
> 
> pya.tesseract_cmd = r'C:\Users\Euphz\Documents\Artworks\PSD\Speaking
of Dogs\201710'
> print(pya.image_to_string(image.open('doggieville.png')))
Run Code Online (Sandbox Code Playgroud)

回溯(最近一次调用):文件“C:\PythonProjects\pytesseract.py”,第 2 行,在 import pytesseract as pya 文件“C:\PythonProjects\pytesseract.py”,第 5 行,在 print(pya.image_to_string( image.open('doggieville.png'))) AttributeError: 模块 'pytesseract' 没有属性 'image_to_string'

为什么会发生???

python python-3.x python-tesseract

0
推荐指数
1
解决办法
5833
查看次数

标签 统计

python ×1

python-3.x ×1

python-tesseract ×1