1

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

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

我一直试图从中提取数据的图像

4

1 回答 1

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

于 2020-08-31T09:51:21.917 回答