我想从图像中提取一些价值

时间:2019-05-27 16:01:02

标签: python-2.7 python-tesseract

我已经在python 2.7中编写了代码以从图像中提取供应商名称,但输出返回空

from PIL import Image
import pytesseract, re
f = "D:\python\doc01111020190524141716_001\Ab.jpg"

t = pytesseract.image_to_string(Image.open(f))



m=re.findall(r'Vendor Name:[\d]+', t)


if m:
    print(m[0])

我希望输出为

vendor Name abc

0 个答案:

没有答案
相关问题