James R. Barlow
d700154e0e
Fix regressions after --skip-text improvements
2018-03-24 02:24:45 -07:00
James R. Barlow
efecf42566
Add PyMuPDF and use to detect text on pages
2018-03-24 02:16:53 -07:00
James R. Barlow
34d51b5d3d
Merge branch 'feature/faster-split'
2018-03-23 13:10:53 -07:00
James R. Barlow
dea8fcfb5b
Optimize page splitting by multiprocessing
...
Previously page splitting occurred in a single process because it was
not believed to affect performance much. It turned out to be an expensive
operation.
It now scales better with large page sizes although this has a negative
effect on small files.
Overall time changes as follows:
7 page file, 9.02s -> 9.56s
731 page file, 213s -> 97s
WITH --tesseract-timeout 0 --output-type pdf --skip-text
i.e. you don't get a 2.2x speed gain when OCR is available.
Squashed a commit to ix test suite failure on --rotate-pages
Squashed a commit to remove debug code
2018-03-23 13:07:51 -07:00
James R. Barlow
4f1f3b9b51
Move available_cpu_count to helpers
2018-03-23 13:07:51 -07:00
James R. Barlow
dfeb8812ad
Document some instances of 0 vs 1-based page numbering, import cleanup
2018-03-23 13:07:31 -07:00
James R. Barlow
63e2b4273a
Travis: avoid using set -e since it interferes with Travis
...
https://github.com/travis-ci/docs-travis-ci-com/issues/1672
2018-03-23 12:49:12 -07:00
James R. Barlow
5790dbc085
Merge commit '9e2105e08d5fc765dbf636d108809bb66ab562a5'
2018-03-20 18:15:57 -07:00
jbarlow83 and GitHub
9e2105e08d
Update readme shields
...
Drop Docker Hub for now, add homebrew
2018-03-20 17:16:28 -07:00
James R. Barlow
22582bbd1c
Travis: don't trigger Docker Hub anymore
...
Docker Cloud is set up to build on pushes to master and tagged releases.
Hopefully that will work out.
2018-03-19 21:09:31 -07:00
James R. Barlow
e5f27b7a12
Solve text detection issue with PyMuPDF
2018-03-15 22:29:56 -07:00
James R. Barlow
e88ec9822b
Tweak release notes
v5.7.0
2018-03-15 17:09:43 -07:00
James R. Barlow
5ffd2f5c96
Not ending Py3.5 support just yet
2018-03-15 17:06:11 -07:00
James R. Barlow
11fdb4c5d8
Update release notes for v5.7.0
2018-03-15 17:06:04 -07:00
James R. Barlow
319aff6d09
Merge better-hocr
2018-03-15 16:59:59 -07:00
James R. Barlow
a614fa3400
hocr: simplify some math expressions and add comments
2018-03-14 17:05:40 -07:00
endolith and jbarlow83
8d691391ac
Fix typos in advanced.rst ( #228 )
2018-03-14 15:54:55 -04:00
James R. Barlow
0089a84c94
hocr: Make interword spaces default and non-optional for hocr
...
Update documentation to match.
2018-03-13 14:51:47 -07:00
James R. Barlow
90676e1c6a
hocr: Remove baseline dashes
2018-03-13 14:45:31 -07:00
James R. Barlow
062901be43
Some cleanup and variable renaming
2018-03-13 14:29:22 -07:00
James R. Barlow
b195d79b50
Refactoring
2018-03-13 11:04:34 -07:00
James R. Barlow
6d7ee98721
Force Tesseract 4 to be single threaded
...
Gives better performance (throughput basis) than the existing solution
and scales better on powerful boxes.
2018-03-13 08:54:52 -07:00
James R. Barlow
fc0800ed5d
v5.6.3 notes
v5.6.3
2018-03-12 03:41:12 -07:00
James R. Barlow
f4e3a0e5b2
v5.6.2 notes
2018-03-09 15:37:08 -08:00
James R. Barlow
d631c80024
Suppress debug message when merging large files
2018-03-09 11:10:45 -08:00
James R. Barlow
f1f0033875
Suppress spurious debug message in --output-type pdf
2018-03-09 11:07:28 -08:00
James R. Barlow
84d120e850
v5.6.1 notes
v5.6.1
2018-03-09 08:00:42 -08:00
James R. Barlow
8159cc6b88
Skip one test that fails for qpdf 8.0.[0,1], due to qpdf regression
2018-03-09 07:57:22 -08:00
James R. Barlow
995f8c106b
hocr: account for baseline offset to position text more accurately
2018-03-09 07:45:41 -08:00
Jim Barlow
7cc104b138
hocr: account for skewed baseline
2018-03-05 11:16:40 -05:00
James R. Barlow
b3a7299a62
hocr: refactor/improve PEP8 a bit
2018-03-05 10:47:36 -05:00
James R. Barlow
0e7a4deaec
hocr: add baseline function, hocr doc link
2018-03-05 10:47:36 -05:00
James R. Barlow
b4d66650bd
hocr: adjust text cursor with relative moves
2018-03-05 10:47:36 -05:00
James R. Barlow
4986afca28
hocr: Refactor use of text object
...
We don't need to declare the font on each word.
No improvement for removing trailing space or adding \n
2018-03-05 10:47:36 -05:00
James R. Barlow
2b6004a82b
hocr: Make words on line use the line height
...
Seems to improve the behavior and appearance
of selected text a fair bit.
2018-03-05 10:47:36 -05:00
James R. Barlow
04c54a7c31
Suppress spurious debug message in --output-type pdf
2018-03-05 10:47:36 -05:00
James R. Barlow
7ae6c5ae87
Trial merge interword-spaces
2018-03-02 23:47:06 -08:00
James R. Barlow
4046766ca5
Fix Python 3.5 test suite failure on symlinks
...
Did not account for API difference in pathlib
2018-03-02 16:57:46 -08:00
James R. Barlow
810390df0b
pipeline: Refactor duplicate with clause
2018-03-02 16:57:15 -08:00
James R. Barlow
de749bc7ae
Fix regression - output to stdout broken
2018-03-02 15:35:51 -08:00
James R. Barlow
9965b8800c
Move Dockerfiles out of the way
2018-03-02 15:26:41 -08:00
James R. Barlow
ab870fddd6
Dockerignore: glob supported now
2018-03-02 15:24:42 -08:00
James R. Barlow
a79d6807cf
Dockerfiles: remove deprecated MAINTAINER tag
2018-03-02 15:24:28 -08:00
James R. Barlow
8185fb7e43
Migrate Travis CI setup to Brewfile
2018-03-02 15:16:05 -08:00
Tucker Barbour and jbarlow83
4b10929b25
Fix Homebrew python package ( #227 )
...
Homebrew removed python3 and python now defaults to version 3. Here we
use `brew upgrade python` to upgrade the pre-installed version of
python to python3.
2018-03-02 14:59:23 -08:00
Tucker Barbour
f6c70312c9
Fix Homebrew python package
...
Homebrew removed python3 and python now defaults to version 3. Here we
use `brew upgrade python` to upgrade the pre-installed version of
python to python3.
2018-03-02 14:26:13 +00:00
Tucker Barbour
9fd9c7a51f
Scale BoundingBox and Text elements to account for additional space.
...
Here we are manually scaling the pt width used for the BoundingBox and
the Text element when manually adding whitespace to account for
limitations of the PDF.js viewer. This fixes an initial regression
noticed when selecting text elements in Chrome and PDFium. The width
of the Text element and BoundBox had not been adjusted for the
additional whitespace so the highlighting was offset slightly.
2018-03-02 11:18:47 +00:00
Charles Forcey
422e619978
Add a note to the documentation about interword-spaces
2018-03-01 13:15:03 -05:00
Tucker Barbour and Charles Forcey
e6e34251c6
Add option to explicitly add interword spaces to HOCR pdf-renderer
...
This commit includes an optional work around for limitations of the
PDF.js viewer described in
https://github.com/jbarlow83/OCRmyPDF/issues/133 . Here is explicitly
add an addition space to text elements before drawing them on the PDF
canvas when using the HOCR renderer. This option does not apply to
other pdf renderers in OCRmyPDF and is turned off by default.
2018-03-01 13:15:03 -05:00
James R. Barlow
2d8aad1086
Improve docs
2018-03-01 00:24:38 -08:00