【问题标题】:How can I improve text recognition accuracy with jTessBoxEditor?如何使用 jTessBoxEditor 提高文本识别的准确性?
【发布时间】:2020-08-31 06:26:39
【问题描述】:

我一直在尝试从扫描的 pdf 文档中提取数据。 我已经将 pdf 文件转换为 jpeg 文件(我附上了下面的图片链接),用不同的字体裁剪了单词和数字,合并到一个 tiff 文件中,并使用 jTessBoxEditor 训练了字体以生成一种新语言,我使用了该语言Tesseract-OCR 从文件中提取数据。但我无法提取确切的数据。 tesseract-ocr的文本识别准确率很差。

有人可以提出一种提高准确性的方法吗?

【问题讨论】:

    标签: python ocr tesseract python-tesseract pdf-extraction


    【解决方案1】:

    我无法提取确切的数据

    你用image_to_string方法了吗?

    text = pytesseract.image_to_string(image)
    

    部分输出:

    Prepared By: Pat Schelbel Inst No:95018369 Date:12/27/1995
    Post Office Address: + Barnett Bank of Volusia County Doc Stamp—Mort : 525.00
    Intang. Tax : 320. 0G
    SYD CROSBY, FLAGLER County
    LOANNO, — 288155 By: 1, Dtpaneaad D.C. Time:16243:
    [Space Above This Line For Recording Data]
    MORTGAGE
    THIS MORTGAGE (Seeuri Instrument’) Is givenon DECEMBER 20, 1995 . The mortgagoris
    JOYCE M. PETERSON, ASTRUSTEE AND INDIVIDUALLY AND ROGER E. PETERSON, HER HUSBAND
    of the Trust Agreement dated January 25, 1995.
    {"Borrower").
    This Security Instrument is given to Barnett Bank of Volusia County , care of Barnett
    Mortgage Company, P.O. Box 40843, Jacksonville, Florida 32203-0843, which Is organized and existing under the laws of
    the State of Florida ,and whose address is. 1825 Business Park Blvd, Daytona Beach, FL 32114
    Borrower owes Lender the principal sum of One Hundred Fifty Thousand Dollars and no/100
    Dollars (US.$ 150,000.00 ). This debtis
    evidenced by Borrower's note dated the same date as this Security Instrument ("Note"), which provides for monthly payments, with the full debt, if
    not paid earlier, due and payable on January 1, 2026 . This Security Instrument secures to Lender: (a) the repayment of the dabt
    evidenced by the Note, with interest, and all renewals, extensions and modifications of the Note; (b) the payment of all other sums, with interest,
    advanced under paragraph 7 to protect the security of this Security instrument; and (c) the performance of Borrower's covenants and agreements
    under this Security Instrument and the Note. For this purpose, Borrower does hereby mortgage, grant and convey to Lender the following
    descrived property locatedin Flagler County, Florida:
    .
    

    更新:Inst No 是使用 pytesseract 提取的

    【讨论】:

    • 感谢您的回复。我只能使用 image_to_string 方法获得部分输出。 Inst No: 等重要数据并不完全相同。并且页面右上角的数据(OFF REC 0546 PAGE 1005)没有被全部识别和提取。您能否建议一种提取所有这些重要数据的方法。谢谢。
    • 现在你在问我的朋友 :) 现在我知道该把重点放在哪里了
    • 我查了Inst No,它们完全一样,inst no是什么意思?
    • 是的。得到inst no。谢谢你:)
    • 使用pytesseract无法准确获取(OFF REC 0546 PAGE 1005),但可以从文本REC 0546rxs6100 5获取部分信息,其中rxs6指的是PAGE .
    猜你喜欢
    • 2017-09-08
    • 2020-11-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-18
    • 1970-01-01
    • 2020-10-03
    相关资源
    最近更新 更多