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)

 

posted @ 2019-09-08 17:25  i舒  阅读(675)  评论(0编辑  收藏  举报