James R. Barlow
2da556bf79
Fix unsupported operand Decimal, float
2018-11-16 02:13:25 -08:00
James R. Barlow
b183ad8167
Fix barcodes error handling
2018-11-16 02:08:16 -08:00
James R. Barlow
d3b334c10f
Test case: true type font without Unicode mapping
2018-11-15 16:22:53 -08:00
James R. Barlow
622f2c4bab
More argument checking
2018-11-15 15:59:38 -08:00
James R. Barlow
07b638a394
pdfminer: detect TrueType fonts with no valid encoding information
2018-11-15 13:44:11 -08:00
James R. Barlow
9bee2405d8
Leptonica: make threshold functions more flexible
2018-11-15 13:43:34 -08:00
James R. Barlow
8f040491bf
Fix erasure of undetectable barcodes
2018-11-15 12:03:51 -08:00
James R. Barlow
8a18988706
Fix 'del draw' exception
2018-11-15 12:02:53 -08:00
James R. Barlow
47a954514b
Fix name2unicode ignoring certain markers
2018-11-15 12:02:30 -08:00
James R. Barlow
e3b65d4288
Fix detailed page analysis enabled at wrong time
2018-11-15 12:02:08 -08:00
James R. Barlow
3a2745445a
Fix docs build
2018-11-12 13:26:04 -08:00
James R. Barlow
9593aa4fb9
Merge v7.3.0 development
2018-11-11 01:38:42 -08:00
James R. Barlow
817d520e63
Merge branch 'master' of github.com:jbarlow83/OCRmyPDF
2018-11-11 01:34:00 -08:00
James R. Barlow
700abbb8a5
Documentation for OCR quality features
2018-11-10 15:48:41 -08:00
James R. Barlow
701ef1df3f
Add threshold function to work around Tesseract's poor thresholding of bright backgrounds
2018-11-10 15:34:37 -08:00
James R. Barlow
cc7f2a3f02
Fix Python 3.5 pathlib regressions
2018-11-10 02:11:23 -08:00
James R. Barlow
5ed05e08b1
Fix "no languages" test and misuse of os.environ
2018-11-09 01:57:11 -08:00
James R. Barlow
58b26f6715
Leptonica: learn to despeckle 1bpp images
2018-11-07 01:49:13 -08:00
James R. Barlow
806daf4284
leptonica: reduce boilerplate for PIX (2/2)
2018-11-06 20:33:40 -08:00
James R. Barlow
c64bc9329e
leptonica: reduce boilerplate for wrapper classes (except PIX)
2018-11-06 20:12:09 -08:00
James R. Barlow
dd01745519
Leptonica: add masked threshold fn
2018-11-06 19:31:06 -08:00
James R. Barlow
03076e89ce
Leptonica: reduce verbosity, more error trapping, more garbage collection
2018-11-06 11:10:59 -08:00
James R. Barlow
02f37293ee
Integrate barcode masking
2018-11-05 13:01:13 -08:00
James R. Barlow
590942ad14
Leptonica: Add barcode API
2018-11-05 01:48:38 -08:00
James R. Barlow
2125b5bfab
Remove text detection from our parser interpret_contents
...
It's redundant now
2018-11-04 15:47:55 -08:00
James R. Barlow
b96532caa4
Only do detailed page analysis when needed by --redo-ocr
2018-11-04 15:40:49 -08:00
James R. Barlow
995fc58466
Move Ghostscript text analysis into its own module
2018-11-04 14:55:48 -08:00
James R. Barlow
c023cae299
Make pdfminer Type3 patch conditional on PScript5.dll
...
It appears that PDFs created by this software have a bug in their BBox
which will cause us to misjudge the space occupied by the font.
Other programs probably work around this by ignoring BBox and reading
each character procedure.
2018-11-04 01:53:53 -07:00
James R. Barlow
237eaf9130
Exception message not printed in some cases
...
Closes #310
2018-11-03 17:10:24 -07:00
James R. Barlow
8b9ab25125
coverage: test compile leptonica
2018-11-02 01:55:25 -07:00
James R. Barlow
3be02e1e8d
coverage: improve leptonic; don't create objects with null pointers
2018-11-02 01:10:10 -07:00
James R. Barlow
64c9ede979
leptonica: barcodes, BOXA
2018-11-02 00:42:01 -07:00
James R. Barlow
b8214b3c49
coverage: exclude unicodefun.py
2018-11-02 00:33:08 -07:00
James R. Barlow
1364c63b7c
Fix failure to pickle file with AcroForm
2018-11-01 20:07:53 -07:00
James R. Barlow
4ba9e8fe25
Add AcroForm detection
2018-10-30 22:28:44 -07:00
James R. Barlow
a195713bb4
Throw exception on corrupt text
2018-10-30 16:35:09 -07:00
James R. Barlow
be31cec332
Add corrupt text warning (when using --redo-ocr)
2018-10-30 16:19:58 -07:00
James R. Barlow
22a7cd3421
Add argument checks for --redo-ocr
2018-10-30 16:19:13 -07:00
James R. Barlow
8b61d2d521
pdfminer: If font descent claims to be positive, treat it as negative
2018-10-30 14:40:53 -07:00
James R. Barlow
559e5269d2
Ensure inline image is parsed correctly
...
Requires pikepdf > 0.3.6
2018-10-29 23:30:53 -07:00
James R. Barlow
ebf6acb318
pdfminer patch: Type3 font height calculation is incorrect
...
Not sure where it goes wrong or why it needs special treatment, but
this does address it.
2018-10-29 22:27:25 -07:00
James R. Barlow
7acd75f013
pipeline: fix bbox coordinates
2018-10-29 22:26:37 -07:00
James R. Barlow
93623b2226
Refactor TextboxInfo
2018-10-29 14:46:40 -07:00
James R. Barlow
d71fd089cb
layout: allow names beginning with /i0123 for now
...
Showed up in GGastro2.pdf. Need to check if this pattern has valid
Unicode mappings but allow for now.
2018-10-29 14:45:59 -07:00
James R. Barlow
de80fb6bc8
Fix some failing tests after --redo-ocr changes
2018-10-29 11:49:38 -07:00
James R. Barlow
8e396f4be2
Document --redo-ocr more accurately
2018-10-29 02:03:58 -07:00
James R. Barlow
efec6da377
Fix error on serializing bad character markers
...
(Since they held a reference to their font, which in turn, had an
open file handle.)
2018-10-29 02:02:00 -07:00
James R. Barlow
00ef53195e
Fix corrupt Unicode mapping detection's false positives
2018-10-29 01:30:19 -07:00
James R. Barlow
f564aaf485
Remove only_ocr_text
2018-10-28 22:41:18 -07:00
James R. Barlow
5ac2d31d0d
Redo OCR can now handle visible and invisible text, so adjust accordingly
...
Still can't filter out corrupt text
2018-10-28 14:06:25 -07:00