% ocrd-eynollah-segment --overwrite -I OCR-D-IMG-BIN -O OCR-D-SEG-LINE -P models /var/lib/eynollah
07:24:53.121 INFO eynollah - INPUT FILE PHYS_0030 (1/1)
07:24:53.232 INFO eynollah - resize and enhance image
07:24:53.232 INFO eynollah - Detected 300 DPI
Traceback (most recent call last):
File "/usr/local/bin/ocrd-eynollah-segment", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.6/dist-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/ocrd_cli.py", line 8, in main
return ocrd_cli_wrap_processor(EynollahProcessor, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/ocrd/decorators/__init__.py", line 91, in ocrd_cli_wrap_processor
run_processor(processorClass, ocrd_tool, mets, workspace=workspace, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/ocrd/processor/helpers.py", line 72, in run_processor
processor.process()
File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/processor.py", line 57, in process
Eynollah(**eynollah_kwargs).run()
File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/eynollah.py", line 1827, in run
img_res, is_image_enhanced, num_col_classifier, num_column_is_classified = self.run_enhancement()
File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/eynollah.py", line 1647, in run_enhancement
is_image_enhanced, img_org, img_res, num_col_classifier, num_column_is_classified, img_bin = self.resize_and_enhance_image_with_column_classifier()
File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/eynollah.py", line 400, in resize_and_enhance_image_with_column_classifier
_, page_coord = self.early_page_for_num_of_column_classification(img_bin)
File "/usr/local/lib/python3.6/dist-packages/qurator/eynollah/eynollah.py", line 650, in early_page_for_num_of_column_classification
cnt = contours[np.argmax(cnt_size)]
File "<__array_function__ internals>", line 6, in argmax
File "/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py", line 1186, in argmax
return _wrapfunc(a, 'argmax', axis=axis, out=out)
File "/usr/local/lib/python3.6/dist-packages/numpy/core/fromnumeric.py", line 61, in _wrapfunc
return bound(*args, **kwds)
ValueError: attempt to get argmax of an empty sequence
With PPN73399136X.zip, I get the following error, using 0.0.3: