Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
aa394440db | ||
|
|
3b98a1a04b | ||
|
|
fcb89b0c58 |
+3
-1
@@ -63,9 +63,11 @@ RUN chmod 644 /usr/share/tesseract-ocr/tessdata/pdf.ttf
|
|||||||
|
|
||||||
# Install application and dependencies
|
# Install application and dependencies
|
||||||
# In this arrangement Pillow and reportlab will be provided by the system
|
# In this arrangement Pillow and reportlab will be provided by the system
|
||||||
|
# Even though ocrmypdf is locally present, pull from PyPI because
|
||||||
|
# Dockerhub and setuptools_scm clash
|
||||||
RUN . /appenv/bin/activate; \
|
RUN . /appenv/bin/activate; \
|
||||||
pip install --upgrade pip \
|
pip install --upgrade pip \
|
||||||
&& pip install /application \
|
&& pip install ocrmypdf \
|
||||||
&& pip install --no-cache-dir -r /application/test_requirements.txt
|
&& pip install --no-cache-dir -r /application/test_requirements.txt
|
||||||
|
|
||||||
# Remove the junk
|
# Remove the junk
|
||||||
|
|||||||
+4
-4
@@ -15,15 +15,15 @@ New features
|
|||||||
- Automatic page rotation (``-r``) is now available. It uses ignores any prior rotation information
|
- Automatic page rotation (``-r``) is now available. It uses ignores any prior rotation information
|
||||||
on PDFs and sets rotation based on the dominant orientation of detectable text. This feature is
|
on PDFs and sets rotation based on the dominant orientation of detectable text. This feature is
|
||||||
fairly reliable but some false positives occur especially if there is not much text to work with. (#4)
|
fairly reliable but some false positives occur especially if there is not much text to work with. (#4)
|
||||||
- Deskewing is now performed using Leptonica instead of unpaper. Leptonica deskews images faster and
|
- Deskewing is now performed using Leptonica instead of unpaper. Leptonica is faster and more reliable
|
||||||
more reliably than unpaper.
|
at image deskewing than unpaper.
|
||||||
|
|
||||||
|
|
||||||
Fixes
|
Fixes
|
||||||
-----
|
-----
|
||||||
|
|
||||||
- Fixed an issue where lossless reconstruction could cause some pages to be appear incorrectly
|
- Fixed an issue where lossless reconstruction could cause some pages to be appear incorrectly
|
||||||
rotated in the page had a /Rotate tag applied (#50)
|
if the page was rotated by the user in Acrobat after being scanned (specifically if it a /Rotate tag)
|
||||||
- Fixed an issue where lossless reconstruction could misalign the graphics layer with respect to
|
- Fixed an issue where lossless reconstruction could misalign the graphics layer with respect to
|
||||||
text layer if the page had been cropped such that its origin is not (0, 0) (#49)
|
text layer if the page had been cropped such that its origin is not (0, 0) (#49)
|
||||||
|
|
||||||
@@ -31,7 +31,7 @@ Fixes
|
|||||||
Changes
|
Changes
|
||||||
-------
|
-------
|
||||||
|
|
||||||
- Logging output much is now better
|
- Logging output is now much easier to read
|
||||||
- ``--deskew`` is now performed by Leptonica instead of unpaper (#25)
|
- ``--deskew`` is now performed by Leptonica instead of unpaper (#25)
|
||||||
- libffi is now required
|
- libffi is now required
|
||||||
- Some changes were made to the Docker and Travis build environments to support libffi
|
- Some changes were made to the Docker and Travis build environments to support libffi
|
||||||
|
|||||||
@@ -107,8 +107,8 @@ def get_orientation(input_file, language: list, timeout: float, log):
|
|||||||
osd[parts[0].strip()] = parts[1].strip()
|
osd[parts[0].strip()] = parts[1].strip()
|
||||||
|
|
||||||
oc = OrientationConfidence(
|
oc = OrientationConfidence(
|
||||||
angle=int(osd['Orientation in degrees']),
|
angle=int(osd.get('Orientation in degrees', 0)),
|
||||||
confidence=float(osd['Orientation confidence']))
|
confidence=float(osd.get('Orientation confidence', 0)))
|
||||||
return oc
|
return oc
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user