【发布时间】:2018-08-14 00:25:24
【问题描述】:
我收到以下错误:
ModuleNotFoundError: 没有名为“图像”的模块
在为 OCR 运行以下脚本时:
import Image
from tesseract import image_to_string
print(image_to_string(Image.open('marlboro.png'), lang='eng'))
我通过 Anaconda 使用 Spider 并安装了 Pillow。
【问题讨论】:
-
当我遇到这个问题时,我重新安装了 pytesseract 并且它工作正常。有时就这么简单。
标签: python image image-processing ocr