【问题标题】:Tesseract searchable pdf creation doesn't workTesseract 可搜索的 pdf 创建不起作用
【发布时间】:2018-01-30 10:54:14
【问题描述】:

我正在运行 Tesseract 4.0.0,我尝试了以下命令来创建可搜索的 pdf,但它似乎不起作用:

tesseract input output pdf    

它给出了一个错误:

can't open file "\Program Files\...//pdf.ttf"!  
error during processing 

pdf 文件已创建,但无法打开。 我尝试了不同的图像格式:jpg、tif、png,但没有成功。

【问题讨论】:

    标签: pdf tesseract


    【解决方案1】:

    确实可以,不确定您使用的是哪个操作系统,但我意识到要使其在 Linux 上运行,必须进行完整安装

    sudo apt install tesseract-ocr
    sudo apt install tesseract-ocr-all
    

    然后,例如,对于德语文档,最初是多页 tif:

    tesseract multipage-tiff.tif out pdf -l deu
    

    手册很有用 - https://github.com/tesseract-ocr/tesseract/wiki

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-31
      • 2021-12-22
      • 2021-10-18
      • 2014-03-10
      • 2012-04-13
      • 1970-01-01
      相关资源
      最近更新 更多