【发布时间】:2020-06-11 07:25:51
【问题描述】:
我想从下图中提取 (91)4608。我有几个图像,我正在寻找的模式是 (91)xxxx,x 是一个数字。我尝试使用 pytesseract 如下
from PIL import Image
import pytesseract, re
f = "1591107148_festo.jpg"
t = pytesseract.image_to_string(Image.open(f))
print(t)
但我得到如下的垃圾输出,我相信它已编码,并且我注意到所有文本都没有被提取。
sanna vioxva ON ‘sivan Hs3ae4 NOSAL -Aa aanesia
0 yep OF 10d
‘enous @989id
Bq ayesphyoque 9 (639,
ee anes 8
Siz aon
ish Be peapoyemes | oP
a RLM
eLY
pap Buinieg| §
Bz) Zoy aig Suns!
s$y084 U0} ayn
你能帮帮我吗,谢谢。
上面使用的图片是..
【问题讨论】:
标签: python computer-vision python-tesseract