James R. Barlow
bb91393b85
Fix “deskew-rotate” bug.
...
Turns out this occurred in any case where pdf-renderer hocr was used
and a tesseract timeout or error occurred. We created a replacement
page based on the unrotated page dimensions instead of the input image’s
dimensions.
2016-11-07 14:17:31 -08:00
James R. Barlow
8ac94879f1
lint: no need to check for DEVNULL; all supported versions have it
2016-08-31 16:28:18 -07:00
James R. Barlow
d446fe5922
Fix "too few characters" reported as error by tesseract -psm 0
2016-02-21 08:53:34 -08:00
James R. Barlow
8246cc0538
Gracefully recover from tesseract's failure to process very large images
...
And test cases to check this
2016-02-20 04:53:23 -08:00
James R. Barlow
ecc0ac9b19
Fix error on --tesseract-timeout timing out
2016-02-20 03:13:23 -08:00
James R. Barlow
71fbda8bf6
Adjust page orientation parsing to deal with change in Tess 3.04.01
2016-02-20 01:32:56 -08:00
James R. Barlow
ab0e5fa425
Improve error checking for tesseract -psm 0 (orientation) errors
2016-02-19 03:58:39 -08:00
James R. Barlow
f3b0434a87
Improve ability to capture error messages from tesseract on a crash
2016-02-19 03:48:49 -08:00
James R. Barlow
3b98a1a04b
Fix KeyError on unexpected tess output
2016-02-17 06:05:27 -08:00
James R. Barlow
7fbc0d6460
tesseract: unify logging function
2016-02-08 23:40:36 -08:00
James R. Barlow
6a7ed7d359
Make logging output a lot more useful
2016-02-08 00:58:14 -08:00
James R. Barlow
8a69671dbd
Suppress debug message
2016-02-07 15:43:57 -08:00
James R. Barlow
e9ec458304
tesseract: add command to access OSD values
2016-02-07 03:21:32 -08:00
James R. Barlow
9893ebf889
Suppress tesseract argument printout
2016-02-04 17:26:36 -08:00
James R. Barlow
074c1d71b4
Activate --tesseract-pagesegmode
2016-01-11 17:19:32 -08:00
James R. Barlow
1731ce2a44
Environment variables can now override default programs
2015-12-17 09:05:10 -08:00
James R. Barlow
5d111a3c04
Refactor tesseract --pdfrenderer calls to tesseract.py
2015-12-16 17:48:26 -08:00
James R. Barlow
10416f847f
Migrate tesseract-hocr code to tesseract module, because modularity
2015-12-16 17:36:11 -08:00
James R. Barlow
1cb5f6a90d
Refactor exit codes; test for missing tessdata
...
Some versions of tesseract installed by homebrew end up without a
functional tessdata folder, and tesseract is not helpful in this
situation, so add a new test to make sure our output is at least
indicative of the problem.
In the process of properly handling return codes I discovered
test_override_metadata triggers a NPE inside JHOVE probably due to the
Unicode character checking. This could be specific to my JRE (1.6.0_65,
Oracle) but it's probably JHOVE's fault. A valid PDF/A (per Acrobat)
is still generated.
2015-08-11 00:17:02 -07:00
James R. Barlow
6a160d22fe
Update release notes, add copyrights
2015-07-28 04:36:58 -07:00
James R. Barlow
6064160953
Get rid of subprocess call on import of tesseract, unpaper -- bit nasty
2015-07-28 01:00:29 -07:00
Jim Barlow
9adb0d696f
Prepare for Python packaging - move to ocrmypdf folder
2015-07-25 18:22:04 -07:00