【问题标题】:Getting OCR text in Another line while using Pytesseract使用 Pytesseract 时在另一行中获取 OCR 文本
【发布时间】:2018-07-24 11:23:18
【问题描述】:

当我在 Pytesseract 中尝试 image_to_string 时,图像在同一行中有文本,但输出在不同的行中有相同的文本。

在 OCR 之前我需要做任何图像处理吗?

【问题讨论】:

    标签: python image python-tesseract


    【解决方案1】:

    您必须使用额外的配置参数 psm。将值设置为 6。

    pytesseract.image_to_string(image, lang="eng", config="--psm 6")
    

    希望这会有所帮助!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-06-11
      • 2021-07-07
      • 2016-10-11
      • 1970-01-01
      • 1970-01-01
      • 2020-06-22
      • 1970-01-01
      相关资源
      最近更新 更多