【发布时间】:2017-01-12 11:20:00
【问题描述】:
是否可以使用pyocr 或Tesseract 从图像中获取字体大小?
下面是我的代码。
tools = pyocr.get_available_tools()
tool = tools[0]
txt = tool.image_to_string(
Imagee.open(io.BytesIO(req_image)),
lang=lang,
builder=pyocr.builders.TextBuilder()
)
在这里,我使用函数 image_to_string 从图像中获取文本。现在,我的问题是,如果我的文本也能得到font-size(number)。
【问题讨论】:
-
尝试将您的示例代码修改为minimal reproducible example。
标签: python tesseract font-size python-tesseract