OCR接口

OCR基础框

import pytesseract
from PIL import Image

img = Image.open('实际数据1.jpeg')
#具体位置截图
image1 = Image.crop((left,top,right,bottom))
text = pytesseract.image_to_string(img)

print(type(text))
print(text)

posted on 2021-08-13 16:20  _albert  阅读(127)  评论(0编辑  收藏  举报