James R. Barlow
589f19559d
Rewrite Dockerfiles to use ubuntu 16.10 base system
...
Debian now has a few disadvantages:
-there is no convenient PPA for Debian tesseract 4.0, but there is for
Ubuntu
-Ubuntu sets locale to UTF-8 automatically removing the need to do this
All three ocrmypdf docker images are now based on a common Ubuntu
16.10 image, derived from the one used to build ocrmypdf-tess4.
-polyglot now differs from -tess4 only by opting into the tess4 PPA.
Both Ubuntu 16.10 and Debian stretch use tesseract 3.04.01 now making
the sharp.ttf patch unnecessary. /etc/apt/sources has been unused for a
while now both have newer Ghostscripts.
2017-02-06 14:39:29 -08:00
James R. Barlow
f28bc25dc0
Configure travis to handle deployment to PyPI; also lint .travis.yml
2017-02-06 13:50:53 -08:00
James R. Barlow
a0657ad937
Prevent use of —pdf-renderer tess4 on tesseract 3
2017-02-06 13:49:43 -08:00
James R. Barlow
5b8d88af4c
Suggest use of aliases to hide docker run
2017-01-30 15:08:02 -08:00
James R. Barlow
fa82b50340
Adding missing file Dockerfile.tess4
2017-01-29 18:34:01 -08:00
James R. Barlow
005216bc57
Support ocrmypdf-tess4
2017-01-29 18:26:52 -08:00
James R. Barlow
e748fdcf6f
v4.4.1 release notes
v4.4.1
2017-01-28 22:23:35 -08:00
James R. Barlow
8c17c9918e
Add documentation and test cases for —tesseract-config
...
This parameter has existed for along time but never really got any
attention.
2017-01-28 22:06:51 -08:00
James R. Barlow
ea0dd99d0b
More documentation updates
2017-01-28 15:35:59 -08:00
James R. Barlow
e0cc67afae
docs: suggest —oem 1
2017-01-28 14:58:25 -08:00
James R. Barlow
04f9cbe364
Describe how to use tesseract 4.0 while 3.04 is installed
2017-01-27 18:13:59 -08:00
James R. Barlow
99afebd033
tesseract jobs_limit(2)
...
At least on macOS with my quadcore performance improves with two
tesseracts in parallel (20% gain). Hard to say how this will affect
Linux, but stepping up to 2 jobs seems justifiable.
2017-01-27 18:13:12 -08:00
James R. Barlow
a6feacc810
travis: fix ‘pip install’ by moving working code out of the way
2017-01-27 14:33:23 -08:00
James R. Barlow
65e4b1672f
cffi: verbose=True
2017-01-27 14:17:13 -08:00
James R. Barlow
46cc0dd190
Revert "Do we need to exclude ocrmypdf.lib?"
...
This reverts commit 678b9fb603 .
2017-01-27 13:51:30 -08:00
James R. Barlow
678b9fb603
Do we need to exclude ocrmypdf.lib?
2017-01-27 13:49:11 -08:00
James R. Barlow
49ab0c1f0b
setup.py: cffi is definitely needed in setup_requires
2017-01-27 13:43:47 -08:00
James R. Barlow
ab490a7736
Experiment: update *requirements.txt, use more current travis build steps
...
Perhaps this works around the pip/setup.py asymmetry that broke the
4.4 release.
2017-01-27 13:13:14 -08:00
James R. Barlow
e4ce1dae35
setup.py: for some reason, subpackages must be explicitly specified
v4.4.post1
2017-01-27 00:37:05 -08:00
James R. Barlow
179b812acb
Fix readthedocs build error
2017-01-26 23:57:51 -08:00
jbarlow83 and GitHub
7f170517ec
Note about pytest-helpers-namespace
2017-01-26 23:15:32 -08:00
James R. Barlow
5480da4f04
Additional docs updates for v4.4
v4.4
2017-01-26 23:02:44 -08:00
James R. Barlow
9a15a4db10
Ensure specified destination is writable before starting pipeline process
2017-01-26 22:08:24 -08:00
James R. Barlow
55aeaec293
Autorotation check: Replace duplicated tests with parameterized test
2017-01-26 18:07:59 -08:00
James R. Barlow
f6df1fb40c
Fix test suite regression: output files dumped in tests/resources
2017-01-26 18:07:09 -08:00
James R. Barlow
b889a89c36
Fix remaining 3.4/3.5 regressions
2017-01-26 17:53:27 -08:00
James R. Barlow
1976dc6f30
Fix issue #121 “pop from empty list” (content stream parsing error)
2017-01-26 17:24:40 -08:00
James R. Barlow
e864c65d26
(Hopefully) Fix Path <-> py.path conversion on Py3.4/3.5
2017-01-26 17:19:15 -08:00
James R. Barlow
02fba02d31
Refactor test suite to use fixtures to manage paths
2017-01-26 16:38:59 -08:00
James R. Barlow
fb9e7c82f6
Move duplicate test code into common namespace
2017-01-26 13:36:52 -08:00
James R. Barlow
77d31bf646
Add renderers page (missed from previous)
2017-01-26 13:20:44 -08:00
James R. Barlow
29ca799bcf
Move pytest.ini into setup.cfg
2017-01-26 12:45:38 -08:00
James R. Barlow
467b7f0163
Update docs for eventual v4.4 release
2017-01-26 12:29:11 -08:00
James R. Barlow
bad67c6dc5
Rename ‘tesstop’ to ‘tess4’
...
There’s no reason text-only PDF shouldn’t become the default for
tesseract 4.
2017-01-26 12:28:51 -08:00
James R. Barlow
ac40426971
Implement “tesstop” (tesseract v4 text-only pages - working name)
2017-01-20 17:16:01 -08:00
James R. Barlow
7acfaf6d34
pipeline: rename some of the stages, for clarity
2017-01-20 17:15:00 -08:00
James R. Barlow
99e47c9c04
tesseract: add support for using v4 textonly_pdf feature
2017-01-20 17:06:23 -08:00
James R. Barlow
d7904e2251
Travis now has Python 3.6, test against it
2017-01-20 14:26:17 -08:00
James R. Barlow
68aef489de
Merge branch 'master' (4.3.5, Python 3.6 support) into develop
...
# Conflicts:
# dev_requirements.txt
# requirements.txt
2017-01-20 14:25:28 -08:00
James R. Barlow
3f9adcd5e0
Document idea for producing companion text files
2017-01-19 16:48:05 -08:00
James R. Barlow
6cc5135d2d
Output to stdout: ensure stdout is flushed to prevent truncation errors
2017-01-19 16:41:10 -08:00
James R. Barlow
d4c72b371f
Forward --oem argument to tesseract 4
2017-01-18 21:37:50 -08:00
James R. Barlow
18b6f05657
Resolve issue #124 - poor performance with Tesseract v4
...
It seems that Tesseract v4 on a platform with OpenMP working correctly
while perform poorly with ocrmypdf because each will also soak up all
available CPUs. Running N^2 processes/threads on a N-core CPU where
each wants 100% of CPU turns out to be detrimental.
So, we restrict ocrmypdf w/tessv4 to a single Tesseract process at a
time, for now. Alternative may be to limit OpenMP threads if throughput
is higher.
2017-01-18 17:52:12 -08:00
James R. Barlow
c42d9baa26
tesseract: for v4, use --psm while keeping -psm for v3
...
At the moment v4 accepts both but who knows if this will get dropped,
so do as document for each version.
2017-01-18 17:43:47 -08:00
James R. Barlow
6e27ecd2b9
Finalize ‘exec’ migration and make it backward compatibility for now
2017-01-18 17:40:50 -08:00
James R. Barlow
482692396e
Add installation instructions for Ubuntu 16.04
2017-01-17 08:17:56 -08:00
James R. Barlow
c48acf165a
v4.3.5: Python 3.6 compatibility
v4.3.5
2017-01-03 00:45:33 -08:00
James R. Barlow
9e004c3ec0
Another attempt at py 3.4/3.5
...
Revert to exactly what the previous passing build specified.
2017-01-03 00:34:26 -08:00
James R. Barlow
7be4e9c919
fix setuptools-scm for py 3.4, 3.5
2017-01-03 00:25:57 -08:00
James R. Barlow
5ec38a4bed
Update requirements files and documentation for Python 3.6 - no code changes
2017-01-03 00:11:34 -08:00