我已经在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