tesserocr-deskew abort when running with latest code from Git and v0.9.0, but not with v0.8.5:
23:15:14.628 INFO ocrd.task_sequence.run_tasks - Start processing task 'tesserocr-deskew -I OCR-D-BIN-DENOISE -O OCR-D-BIN-DENOISE-DESKEW -p '{"operation_level": "page", "dpi": -1, "min_orientation_confidence": 1.5}''
23:15:15.364 INFO processor.TesserocrDeskew - INPUT FILE 0 / IMG_OCR-D-BIN-DENOISE_459867
23:15:15.390 INFO processor.TesserocrDeskew - Page 'IMG_OCR-D-BIN-DENOISE_459867' images will use 300 DPI from image meta-data
23:15:15.390 INFO processor.TesserocrDeskew - Deskewing on 'page' level in page 'IMG_OCR-D-BIN-DENOISE_459867'
23:15:15.936 INFO processor.TesserocrDeskew - applying OSD orientation result 0° clockwise with high confidence 2 in page 'IMG_OCR-D-BIN-DENOISE_459867'
23:15:15.937 INFO processor.TesserocrDeskew - ignoring OSD script result "Cyrillic" due to low confidence 0 in page 'IMG_OCR-D-BIN-DENOISE_459867'
23:15:16.601 INFO processor.TesserocrDeskew - orientation/deskewing for page 'IMG_OCR-D-BIN-DENOISE_459867': PAGE_UP / LEFT_TO_RIGHT / TOP_TO_BOTTOM / -0.094°
Traceback (most recent call last):
File "/home/stweil/src/github/OCR-D/venv-20200815/bin/ocrd-tesserocr-deskew", line 8, in <module>
sys.exit(ocrd_tesserocr_deskew())
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd_tesserocr/cli.py", line 46, in ocrd_tesserocr_deskew
return ocrd_cli_wrap_processor(TesserocrDeskew, *args, **kwargs)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd/decorators.py", line 102, in ocrd_cli_wrap_processor
run_processor(processorClass, ocrd_tool, mets, workspace=workspace, **kwargs)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd/processor/base.py", line 61, in run_processor
processor.process()
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd_tesserocr/deskew.py", line 119, in process
file_id)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd_tesserocr/deskew.py", line 292, in _process_segment
file_grp=self.image_grp)
AttributeError: 'TesserocrDeskew' object has no attribute 'image_grp'
Traceback (most recent call last):
File "/home/stweil/src/github/OCR-D/venv-20200815/bin/ocrd", line 8, in <module>
sys.exit(cli())
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd/cli/process.py", line 27, in process_cli
run_tasks(mets, log_level, page_id, tasks, overwrite)
File "/home/stweil/src/github/OCR-D/venv-20200815/lib/python3.7/site-packages/ocrd/task_sequence.py", line 148, in run_tasks
raise Exception("%s exited with non-zero return value %s" % (task.executable, returncode))
Exception: ocrd-tesserocr-deskew exited with non-zero return value 1
tesserocr-deskew
abort when running with latest code from Git and v0.9.0, but not with v0.8.5: