python字符识别 Python:tesserocr 在 windows 下的安装及简单使用

tesserocr 是 python 的一个 OCR 库,它是对 tesseract 做的一层 Python API 封装,所以他的核心是tesseract。

使用

import tesserocr
from PIL import Image

img = Image.open('1.png')
result = tesserocr.image_to_text(img)
print(result)