I built leptonlib 1.73-6 including Sean's patch on powerpc and s390x.
I then ran ocrmypdf's test suite against it.
Test results went from:
tests/test_hocrtransform.py .
tests/test_main.py
...F......................ss.F.................................................
tests/test_pageinfo.py ....
to:
tests/test_hocrtransform.py .
tests/test_main.py
..........................ss.......FFF.........................................
tests/test_pageinfo.py ....
Tests on little-endian architectures remained successful, so it seems
to be a step in the right direction, but we aren't quite there yet.
Output of new failing tests attached.
============================= test session starts ==============================
platform linux -- Python 3.5.2+, pytest-2.9.2, py-1.4.31, pluggy-0.3.1
rootdir:
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4,
inifile: pytest.ini
collected 85 items
test_requirements.txt s
tests/test_hocrtransform.py .
tests/test_main.py
..........................ss.......FFF.........................................
tests/test_pageinfo.py ....
=================================== FAILURES ===================================
____________________________ test_autorotate[hocr] _____________________________
spoof_tesseract_cache = {'ADTTMP':
'/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS': '/data/adttmp...untu1', 'AUTOPKGTEST_ARTIFACTS':
'/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/test-suite-artifacts',
...}
renderer = 'hocr'
@pytest.mark.parametrize('renderer', [
'hocr',
'tesseract',
])
def test_autorotate(spoof_tesseract_cache, renderer):
# cardinal.pdf contains four copies of an image rotated in each cardinal
# direction - these ones are "burned in" not tagged with /Rotate
out = check_ocrmypdf('cardinal.pdf', 'test_autorotate_%s.pdf' %
renderer,
'-r', '-v', '1', env=spoof_tesseract_cache)
for n in range(1, 4+1):
correlation = check_monochrome_correlation(
reference_pdf=_infile('cardinal.pdf'),
reference_pageno=1,
test_pdf=out,
test_pageno=n)
> assert correlation > 0.80
E assert 0.0562746599316597 > 0.8
tests/test_main.py:401: AssertionError
----------------------------- Captured stdout call -----------------------------
DEBUG - ocrmypdf 4.3.4
DEBUG -
os.symlink(/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/resources/cardinal.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/origin)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/origin,
/tmp/com.github.ocrmypdf.5hxi1p4t/origin.pdf)
DEBUG - [{'images': [{'dpi_h': Decimal('300.000'), 'type': 'image', 'width':
2550, 'bpc': 1, 'color': 'gray', 'dpi': Decimal('300.000'), 'name': '/Im0',
'comp': 1, 'dpi_w': Decimal('300.000'), 'enc': 'jbig2', 'height': 3300}],
'height_inches': Decimal('11'), 'rotate': 0, 'has_text': False, 'width_pixels':
2550, 'width_inches': Decimal('8.5'), 'xres': Decimal('300.000'), 'yres':
Decimal('300.000'), 'pageno': 0, 'height_pixels': 3300}, {'images': [{'dpi_h':
Decimal('300.000'), 'type': 'image', 'width': 2550, 'bpc': 1, 'color': 'gray',
'dpi': Decimal('300.000'), 'name': '/Im0', 'comp': 1, 'dpi_w':
Decimal('300.000'), 'enc': 'jbig2', 'height': 3300}], 'height_inches':
Decimal('8.5'), 'rotate': 0, 'has_text': False, 'width_pixels': 3300,
'width_inches': Decimal('11'), 'xres': Decimal('300.000'), 'yres':
Decimal('300.000'), 'pageno': 1, 'height_pixels': 2550}, {'images': [{'dpi_h':
Decimal('300.000'), 'type': 'image', 'width': 2550, 'bpc': 1, 'color': 'gray',
'dpi': Decimal('300.000'), 'name': '/Im0', 'comp': 1, 'dpi_w':
Decimal('300.000'), 'enc': 'jbig2', 'height': 3300}], 'height_inches':
Decimal('11'), 'rotate': 0, 'has_text': False, 'width_pixels': 2550,
'width_inches': Decimal('8.5'), 'xres': Decimal('300.000'), 'yres':
Decimal('300.000'), 'pageno': 2, 'height_pixels': 3300}, {'images': [{'dpi_h':
Decimal('300.000'), 'type': 'image', 'width': 2550, 'bpc': 1, 'color': 'gray',
'dpi': Decimal('300.000'), 'name': '/Im0', 'comp': 1, 'dpi_w':
Decimal('300.000'), 'enc': 'jbig2', 'height': 3300}], 'height_inches':
Decimal('8.5'), 'rotate': 0, 'has_text': False, 'width_pixels': 3300,
'width_inches': Decimal('11'), 'xres': Decimal('300.000'), 'yres':
Decimal('300.000'), 'pageno': 3, 'height_pixels': 2550}]
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.ocr.page.pdf)
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
INFO - 1: page is facing ⇧, confidence 1.32 - no change
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.ocr.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.ocr.oriented.pdf)
INFO - 4: page is facing ⇩, confidence 1.98 - confidence too low to rotate
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.ocr.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.ocr.oriented.pdf)
INFO - 2: page is facing ⇧, confidence 1.87 - no change
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.ocr.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.ocr.oriented.pdf)
INFO - 3: page is facing ⇩, confidence 0.85 - confidence too low to rotate
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.ocr.page.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.ocr.oriented.pdf)
DEBUG - Rasterize 000001.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000003.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000002.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000004.ocr.oriented.pdf with pngmono
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.pp-background.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.pp-background.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.pp-background.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.pp-background.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.pp-background.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.pp-deskew.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.pp-deskew.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.pp-deskew.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.pp-deskew.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.pp-deskew.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.page.png,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.image)
INFO - 1: [tesseract] Tesseract cache hit
INFO - 1: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/9b0796dcbcd6863c98f5c10c7c246290d7761f31
DEBUG - 1: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000001.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000001.image-layer.pdf)
DEBUG - 4: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000004.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.image-layer.pdf)
DEBUG - 2: page eligible for lossless reconstruction
DEBUG - 3: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000002.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.image-layer.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.5hxi1p4t/000003.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.image-layer.pdf)
INFO - 3: [tesseract] Tesseract cache miss
INFO - 4: [tesseract] Tesseract cache miss
INFO - 3: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/1dd150e636dc4c253d6d80d84a243838b6d1c9ea
INFO - 4: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/ac2df0563269adc2a8586d2fad819cc22dc503d7
INFO - 2: [tesseract] Tesseract cache miss
INFO - 2: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/fce078fe90b5a3a724dc68424cceb54a33929057
DEBUG - Final pages: /tmp/com.github.ocrmypdf.5hxi1p4t/000001.rendered.pdf
/tmp/com.github.ocrmypdf.5hxi1p4t/000002.rendered.pdf
/tmp/com.github.ocrmypdf.5hxi1p4t/000003.rendered.pdf
/tmp/com.github.ocrmypdf.5hxi1p4t/000004.rendered.pdf
/tmp/com.github.ocrmypdf.5hxi1p4t/pdfa_def.ps
DEBUG -
INFO - Output file is a PDF/A-2B (as expected)
DEBUG - [{'has_text': False,
'height_inches': Decimal('11'),
'height_pixels': 3300,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 0,
'rotate': 0,
'width_inches': Decimal('8.5'),
'width_pixels': 2550,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('8.5'),
'height_pixels': 2550,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 1,
'rotate': 0,
'width_inches': Decimal('11'),
'width_pixels': 3300,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('11'),
'height_pixels': 3300,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 2,
'rotate': 0,
'width_inches': Decimal('8.5'),
'width_pixels': 2550,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('8.5'),
'height_pixels': 2550,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 3,
'rotate': 0,
'width_inches': Decimal('11'),
'width_pixels': 3300,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')}]
________________________________________
Tasks which will be run:
Task enters queue = 'triage'
Completed Task = 'triage'
Task enters queue = 'repair_pdf'
Completed Task = 'repair_pdf'
Task enters queue = 'split_pages'
Task enters queue = 'generate_postscript_stub'
Completed Task = 'split_pages'
Task enters queue = 'rasterize_preview'
Completed Task = 'generate_postscript_stub'
Completed Task = 'rasterize_preview'
Task enters queue = 'orient_page'
Completed Task = 'orient_page'
Task enters queue = 'rasterize_with_ghostscript'
Task enters queue = 'skip_page'
Uptodate Task = 'skip_page'
WARNING:
In Task 'skip_page':
No jobs were run because no file names matched.
Please make sure that the regular expression is correctly specified.
Completed Task = 'rasterize_with_ghostscript'
Task enters queue = 'preprocess_remove_background'
Completed Task = 'preprocess_remove_background'
Task enters queue = 'preprocess_deskew'
Completed Task = 'preprocess_deskew'
Task enters queue = 'preprocess_clean'
Completed Task = 'preprocess_clean'
Task enters queue = 'select_image_for_pdf'
Task enters queue = 'ocr_tesseract_hocr'
Completed Task = 'select_image_for_pdf'
Task enters queue = 'select_image_layer'
Completed Task = 'select_image_layer'
Completed Task = 'ocr_tesseract_hocr'
Task enters queue = 'render_hocr_page'
Completed Task = 'render_hocr_page'
Task enters queue = 'add_text_layer'
Completed Task = 'add_text_layer'
Task enters queue = 'merge_pages_ghostscript'
Completed Task = 'merge_pages_ghostscript'
Task enters queue = 'copy_final'
Completed Task = 'copy_final'
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/output/main/cardinal.pdf.ref0001.png
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/output/main/cardinal.pdf.ref0001.png
__________________________ test_autorotate[tesseract] __________________________
spoof_tesseract_cache = {'ADTTMP':
'/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS': '/data/adttmp...untu1', 'AUTOPKGTEST_ARTIFACTS':
'/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/test-suite-artifacts',
...}
renderer = 'tesseract'
@pytest.mark.parametrize('renderer', [
'hocr',
'tesseract',
])
def test_autorotate(spoof_tesseract_cache, renderer):
# cardinal.pdf contains four copies of an image rotated in each cardinal
# direction - these ones are "burned in" not tagged with /Rotate
out = check_ocrmypdf('cardinal.pdf', 'test_autorotate_%s.pdf' %
renderer,
'-r', '-v', '1', env=spoof_tesseract_cache)
for n in range(1, 4+1):
correlation = check_monochrome_correlation(
reference_pdf=_infile('cardinal.pdf'),
reference_pageno=1,
test_pdf=out,
test_pageno=n)
> assert correlation > 0.80
E assert 0.0562746599316597 > 0.8
tests/test_main.py:401: AssertionError
----------------------------- Captured stdout call -----------------------------
DEBUG - ocrmypdf 4.3.4
DEBUG -
os.symlink(/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/resources/cardinal.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/origin)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/origin,
/tmp/com.github.ocrmypdf.kafif3ic/origin.pdf)
DEBUG - [{'width_inches': Decimal('8.5'), 'images': [{'width': 2550, 'bpc':
1, 'name': '/Im0', 'comp': 1, 'enc': 'jbig2', 'dpi_w': Decimal('300.000'),
'dpi_h': Decimal('300.000'), 'height': 3300, 'color': 'gray', 'type': 'image',
'dpi': Decimal('300.000')}], 'xres': Decimal('300.000'), 'pageno': 0,
'width_pixels': 2550, 'rotate': 0, 'yres': Decimal('300.000'), 'has_text':
False, 'height_inches': Decimal('11'), 'height_pixels': 3300}, {'width_inches':
Decimal('11'), 'images': [{'width': 2550, 'bpc': 1, 'name': '/Im0', 'comp': 1,
'enc': 'jbig2', 'dpi_w': Decimal('300.000'), 'dpi_h': Decimal('300.000'),
'height': 3300, 'color': 'gray', 'type': 'image', 'dpi': Decimal('300.000')}],
'xres': Decimal('300.000'), 'pageno': 1, 'width_pixels': 3300, 'rotate': 0,
'yres': Decimal('300.000'), 'has_text': False, 'height_inches': Decimal('8.5'),
'height_pixels': 2550}, {'width_inches': Decimal('8.5'), 'images': [{'width':
2550, 'bpc': 1, 'name': '/Im0', 'comp': 1, 'enc': 'jbig2', 'dpi_w':
Decimal('300.000'), 'dpi_h': Decimal('300.000'), 'height': 3300, 'color':
'gray', 'type': 'image', 'dpi': Decimal('300.000')}], 'xres':
Decimal('300.000'), 'pageno': 2, 'width_pixels': 2550, 'rotate': 0, 'yres':
Decimal('300.000'), 'has_text': False, 'height_inches': Decimal('11'),
'height_pixels': 3300}, {'width_inches': Decimal('11'), 'images': [{'width':
2550, 'bpc': 1, 'name': '/Im0', 'comp': 1, 'enc': 'jbig2', 'dpi_w':
Decimal('300.000'), 'dpi_h': Decimal('300.000'), 'height': 3300, 'color':
'gray', 'type': 'image', 'dpi': Decimal('300.000')}], 'xres':
Decimal('300.000'), 'pageno': 3, 'width_pixels': 3300, 'rotate': 0, 'yres':
Decimal('300.000'), 'has_text': False, 'height_inches': Decimal('8.5'),
'height_pixels': 2550}]
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000001.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000002.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000003.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000004.ocr.page.pdf)
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
INFO - 1: page is facing ⇧, confidence 1.32 - no change
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.ocr.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000001.ocr.oriented.pdf)
INFO - 2: page is facing ⇧, confidence 1.87 - no change
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.ocr.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000002.ocr.oriented.pdf)
INFO - 4: page is facing ⇩, confidence 1.98 - confidence too low to rotate
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.ocr.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000004.ocr.oriented.pdf)
INFO - 3: page is facing ⇩, confidence 0.85 - confidence too low to rotate
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.ocr.page.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000003.ocr.oriented.pdf)
DEBUG - Rasterize 000001.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000003.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000004.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000002.ocr.oriented.pdf with pngmono
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000001.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000002.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000004.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000003.pp-background.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.pp-background.png,
/tmp/com.github.ocrmypdf.kafif3ic/000001.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.pp-background.png,
/tmp/com.github.ocrmypdf.kafif3ic/000002.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.pp-background.png,
/tmp/com.github.ocrmypdf.kafif3ic/000003.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.pp-background.png,
/tmp/com.github.ocrmypdf.kafif3ic/000004.pp-deskew.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.pp-deskew.png,
/tmp/com.github.ocrmypdf.kafif3ic/000001.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.pp-deskew.png,
/tmp/com.github.ocrmypdf.kafif3ic/000004.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.pp-deskew.png,
/tmp/com.github.ocrmypdf.kafif3ic/000002.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.pp-deskew.png,
/tmp/com.github.ocrmypdf.kafif3ic/000003.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000001.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000002.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000004.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.page.png,
/tmp/com.github.ocrmypdf.kafif3ic/000003.image)
INFO - 1: [tesseract] Tesseract cache hit
INFO - 1: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/9b0796dcbcd6863c98f5c10c7c246290d7761f31
INFO - 3: [tesseract] Tesseract cache hit
INFO - 3: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/1dd150e636dc4c253d6d80d84a243838b6d1c9ea
DEBUG - 2: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000002.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000002.image-layer.pdf)
DEBUG - 1: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000001.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000001.image-layer.pdf)
DEBUG - 4: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000004.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000004.image-layer.pdf)
DEBUG - 3: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.kafif3ic/000003.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.kafif3ic/000003.image-layer.pdf)
INFO - 4: [tesseract] Tesseract cache miss
INFO - 4: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/3a7430ab7c8079c0f3473805aab10dea0bb3ea75
INFO - 2: [tesseract] Tesseract cache miss
INFO - 2: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/9cc1fea56f8d28b0ba73ade7e1555f2031d6b08e
DEBUG - Final pages: /tmp/com.github.ocrmypdf.kafif3ic/000001.rendered.pdf
/tmp/com.github.ocrmypdf.kafif3ic/000002.rendered.pdf
/tmp/com.github.ocrmypdf.kafif3ic/000003.rendered.pdf
/tmp/com.github.ocrmypdf.kafif3ic/000004.rendered.pdf
/tmp/com.github.ocrmypdf.kafif3ic/pdfa_def.ps
DEBUG -
INFO - Output file is a PDF/A-2B (as expected)
DEBUG - [{'has_text': False,
'height_inches': Decimal('11'),
'height_pixels': 3300,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 0,
'rotate': 0,
'width_inches': Decimal('8.5'),
'width_pixels': 2550,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('8.5'),
'height_pixels': 2550,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 1,
'rotate': 0,
'width_inches': Decimal('11'),
'width_pixels': 3300,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('11'),
'height_pixels': 3300,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 2,
'rotate': 0,
'width_inches': Decimal('8.5'),
'width_pixels': 2550,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('8.5'),
'height_pixels': 2550,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 3,
'rotate': 0,
'width_inches': Decimal('11'),
'width_pixels': 3300,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')}]
________________________________________
Tasks which will be run:
Task enters queue = 'triage'
Completed Task = 'triage'
Task enters queue = 'repair_pdf'
Completed Task = 'repair_pdf'
Task enters queue = 'split_pages'
Task enters queue = 'generate_postscript_stub'
Completed Task = 'split_pages'
Task enters queue = 'rasterize_preview'
Completed Task = 'generate_postscript_stub'
Completed Task = 'rasterize_preview'
Task enters queue = 'orient_page'
Completed Task = 'orient_page'
Task enters queue = 'rasterize_with_ghostscript'
Task enters queue = 'skip_page'
Uptodate Task = 'skip_page'
WARNING:
In Task 'skip_page':
No jobs were run because no file names matched.
Please make sure that the regular expression is correctly specified.
Completed Task = 'rasterize_with_ghostscript'
Task enters queue = 'preprocess_remove_background'
Completed Task = 'preprocess_remove_background'
Task enters queue = 'preprocess_deskew'
Completed Task = 'preprocess_deskew'
Task enters queue = 'preprocess_clean'
Completed Task = 'preprocess_clean'
Task enters queue = 'select_image_for_pdf'
Task enters queue = 'ocr_tesseract_hocr'
Completed Task = 'select_image_for_pdf'
Task enters queue = 'select_image_layer'
Completed Task = 'select_image_layer'
Completed Task = 'ocr_tesseract_hocr'
Task enters queue = 'render_hocr_page'
Completed Task = 'render_hocr_page'
Task enters queue = 'add_text_layer'
Completed Task = 'add_text_layer'
Task enters queue = 'merge_pages_ghostscript'
Completed Task = 'merge_pages_ghostscript'
Task enters queue = 'copy_final'
Completed Task = 'copy_final'
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/output/main/cardinal.pdf.ref0001.png
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/output/main/cardinal.pdf.ref0001.png
________________________ test_autorotate_threshold_low _________________________
spoof_tesseract_cache = {'ADTTMP':
'/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/autopkgtest_tmp',
'ADT_ARTIFACTS': '/data/adttmp...untu1', 'AUTOPKGTEST_ARTIFACTS':
'/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/test-suite-artifacts',
...}
def test_autorotate_threshold_low(spoof_tesseract_cache):
out = check_ocrmypdf('cardinal.pdf',
'test_autorotate_threshold_low.pdf',
'--rotate-pages-threshold', '1',
'-r', '-v', '1', env=spoof_tesseract_cache)
# Low threshold -> always rotate -> expect high correlation between
# reference page and test page
correlation = check_monochrome_correlation(
reference_pdf=_infile('cardinal.pdf'),
reference_pageno=1,
test_pdf=out,
test_pageno=3)
> assert correlation > 0.80
E assert 0.015445728786289692 > 0.8
tests/test_main.py:416: AssertionError
----------------------------- Captured stdout call -----------------------------
DEBUG - ocrmypdf 4.3.4
DEBUG -
os.symlink(/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/resources/cardinal.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/origin)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/origin,
/tmp/com.github.ocrmypdf.fiehryoo/origin.pdf)
DEBUG - [{'xres': Decimal('300.000'), 'has_text': False, 'width_pixels':
2550, 'height_pixels': 3300, 'height_inches': Decimal('11'), 'images': [{'dpi':
Decimal('300.000'), 'dpi_h': Decimal('300.000'), 'enc': 'jbig2', 'name':
'/Im0', 'bpc': 1, 'type': 'image', 'width': 2550, 'color': 'gray', 'height':
3300, 'comp': 1, 'dpi_w': Decimal('300.000')}], 'pageno': 0, 'yres':
Decimal('300.000'), 'rotate': 0, 'width_inches': Decimal('8.5')}, {'xres':
Decimal('300.000'), 'has_text': False, 'width_pixels': 3300, 'height_pixels':
2550, 'height_inches': Decimal('8.5'), 'images': [{'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'), 'enc': 'jbig2', 'name': '/Im0', 'bpc': 1, 'type':
'image', 'width': 2550, 'color': 'gray', 'height': 3300, 'comp': 1, 'dpi_w':
Decimal('300.000')}], 'pageno': 1, 'yres': Decimal('300.000'), 'rotate': 0,
'width_inches': Decimal('11')}, {'xres': Decimal('300.000'), 'has_text': False,
'width_pixels': 2550, 'height_pixels': 3300, 'height_inches': Decimal('11'),
'images': [{'dpi': Decimal('300.000'), 'dpi_h': Decimal('300.000'), 'enc':
'jbig2', 'name': '/Im0', 'bpc': 1, 'type': 'image', 'width': 2550, 'color':
'gray', 'height': 3300, 'comp': 1, 'dpi_w': Decimal('300.000')}], 'pageno': 2,
'yres': Decimal('300.000'), 'rotate': 0, 'width_inches': Decimal('8.5')},
{'xres': Decimal('300.000'), 'has_text': False, 'width_pixels': 3300,
'height_pixels': 2550, 'height_inches': Decimal('8.5'), 'images': [{'dpi':
Decimal('300.000'), 'dpi_h': Decimal('300.000'), 'enc': 'jbig2', 'name':
'/Im0', 'bpc': 1, 'type': 'image', 'width': 2550, 'color': 'gray', 'height':
3300, 'comp': 1, 'dpi_w': Decimal('300.000')}], 'pageno': 3, 'yres':
Decimal('300.000'), 'rotate': 0, 'width_inches': Decimal('11')}]
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000001.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000002.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000003.ocr.page.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000004.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000004.ocr.page.pdf)
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG -
INFO - 1: page is facing ⇧, confidence 1.32 - rotation appears correct
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.ocr.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000001.ocr.oriented.pdf)
INFO - 2: page is facing ⇧, confidence 1.87 - rotation appears correct
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.ocr.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000002.ocr.oriented.pdf)
INFO - 3: page is facing ⇩, confidence 0.85 - confidence too low to rotate
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.ocr.page.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000003.ocr.oriented.pdf)
INFO - 4: page is facing ⇩, confidence 1.98 - will rotate
DEBUG - Rasterize 000001.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000002.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000004.ocr.oriented.pdf with pngmono
DEBUG - Rasterize 000003.ocr.oriented.pdf with pngmono
DEBUG -
DEBUG -
DEBUG -
DEBUG -
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000001.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000002.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000003.pp-background.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000004.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000004.pp-background.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.pp-background.png,
/tmp/com.github.ocrmypdf.fiehryoo/000001.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.pp-background.png,
/tmp/com.github.ocrmypdf.fiehryoo/000002.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.pp-background.png,
/tmp/com.github.ocrmypdf.fiehryoo/000003.pp-deskew.png)
DEBUG -
os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000004.pp-background.png,
/tmp/com.github.ocrmypdf.fiehryoo/000004.pp-deskew.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.pp-deskew.png,
/tmp/com.github.ocrmypdf.fiehryoo/000001.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.pp-deskew.png,
/tmp/com.github.ocrmypdf.fiehryoo/000003.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.pp-deskew.png,
/tmp/com.github.ocrmypdf.fiehryoo/000002.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000004.pp-deskew.png,
/tmp/com.github.ocrmypdf.fiehryoo/000004.pp-clean.png)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000001.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000002.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000003.image)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000004.page.png,
/tmp/com.github.ocrmypdf.fiehryoo/000004.image)
INFO - 1: [tesseract] Tesseract cache hit
INFO - 1: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/9b0796dcbcd6863c98f5c10c7c246290d7761f31
INFO - 3: [tesseract] Tesseract cache hit
INFO - 3: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/1dd150e636dc4c253d6d80d84a243838b6d1c9ea
DEBUG - 1: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000001.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000001.image-layer.pdf)
DEBUG - 2: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000002.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000002.image-layer.pdf)
DEBUG - 3: page eligible for lossless reconstruction
DEBUG - 4: page eligible for lossless reconstruction
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000003.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000003.image-layer.pdf)
DEBUG - os.symlink(/tmp/com.github.ocrmypdf.fiehryoo/000004.ocr.oriented.pdf,
/tmp/com.github.ocrmypdf.fiehryoo/000004.image-layer.pdf)
INFO - 4: [tesseract] Tesseract cache miss
INFO - 4: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/bcc820af9ed5802895e00c93babd33aa9e25ab02
INFO - 2: [tesseract] Tesseract cache miss
INFO - 2: [tesseract]
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/cache/c9ffcba72c5e4be66015ff7e25998513d954f353
INFO - 4: rotating image layer 180 degrees
DEBUG - Final pages: /tmp/com.github.ocrmypdf.fiehryoo/000001.rendered.pdf
/tmp/com.github.ocrmypdf.fiehryoo/000002.rendered.pdf
/tmp/com.github.ocrmypdf.fiehryoo/000003.rendered.pdf
/tmp/com.github.ocrmypdf.fiehryoo/000004.rendered.pdf
/tmp/com.github.ocrmypdf.fiehryoo/pdfa_def.ps
DEBUG -
INFO - Output file is a PDF/A-2B (as expected)
DEBUG - [{'has_text': False,
'height_inches': Decimal('11'),
'height_pixels': 3300,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 0,
'rotate': 0,
'width_inches': Decimal('8.5'),
'width_pixels': 2550,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('8.5'),
'height_pixels': 2550,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 1,
'rotate': 0,
'width_inches': Decimal('11'),
'width_pixels': 3300,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('11'),
'height_pixels': 3300,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 2,
'rotate': 0,
'width_inches': Decimal('8.5'),
'width_pixels': 2550,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')},
{'has_text': False,
'height_inches': Decimal('8.5'),
'height_pixels': 2550,
'images': [{'bpc': 1,
'color': 'gray',
'comp': 1,
'dpi': Decimal('300.000'),
'dpi_h': Decimal('300.000'),
'dpi_w': Decimal('300.000'),
'enc': 'jbig2',
'height': 3300,
'name': '/Im0',
'type': 'image',
'width': 2550}],
'pageno': 3,
'rotate': 0,
'rotated': 180,
'width_inches': Decimal('11'),
'width_pixels': 3300,
'xres': Decimal('300.000'),
'yres': Decimal('300.000')}]
INFO - Page orientations detected: 4s
________________________________________
Tasks which will be run:
Task enters queue = 'triage'
Completed Task = 'triage'
Task enters queue = 'repair_pdf'
Completed Task = 'repair_pdf'
Task enters queue = 'split_pages'
Task enters queue = 'generate_postscript_stub'
Completed Task = 'split_pages'
Task enters queue = 'rasterize_preview'
Completed Task = 'generate_postscript_stub'
Completed Task = 'rasterize_preview'
Task enters queue = 'orient_page'
Completed Task = 'orient_page'
Task enters queue = 'skip_page'
Uptodate Task = 'skip_page'
WARNING:
In Task 'skip_page':
No jobs were run because no file names matched.
Please make sure that the regular expression is correctly specified.
Task enters queue = 'rasterize_with_ghostscript'
Completed Task = 'rasterize_with_ghostscript'
Task enters queue = 'preprocess_remove_background'
Completed Task = 'preprocess_remove_background'
Task enters queue = 'preprocess_deskew'
Completed Task = 'preprocess_deskew'
Task enters queue = 'preprocess_clean'
Completed Task = 'preprocess_clean'
Task enters queue = 'select_image_for_pdf'
Task enters queue = 'ocr_tesseract_hocr'
Completed Task = 'select_image_for_pdf'
Task enters queue = 'select_image_layer'
Completed Task = 'select_image_layer'
Completed Task = 'ocr_tesseract_hocr'
Task enters queue = 'render_hocr_page'
Completed Task = 'render_hocr_page'
Task enters queue = 'add_text_layer'
Completed Task = 'add_text_layer'
Task enters queue = 'merge_pages_ghostscript'
Completed Task = 'merge_pages_ghostscript'
Task enters queue = 'copy_final'
Completed Task = 'copy_final'
/data/adttmp/autopkgtest-virt-lxc.shared.hw7c_x0x/downtmp/build.hfb/ocrmypdf-4.3.4/tests/output/main/cardinal.pdf.ref0001.png
=============== 3 failed, 79 passed, 3 skipped in 450.64 seconds ===============