小编Wit*_*her的帖子

使用 Tesseract 和 Pyocr 在 Python 中获取字体大小

是否可以使用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()
)
Run Code Online (Sandbox Code Playgroud)

在这里,我使用函数从图像中获取文本image_to_string。现在,我的问题是,如果我也能得到font-size(数字)我的文字。

python tesseract font-size python-tesseract

5
推荐指数
1
解决办法
7654
查看次数

标签 统计

font-size ×1

python ×1

python-tesseract ×1

tesseract ×1