Closed jbarth-ubhd closed 1 year ago
Not sure if this is related to https://github.com/qurator-spk/eynollah/issues/106.
For OCR-D, please downgrade to https://github.com/qurator-spk/eynollah/pull/108 – or use the current version of ocrd_all, just released today.
If the problem persists, please report with a test data (input image) directly to eynollah repository.
Updated ocrd.sif today 14:12 CEST
approx. the same error:
15:05:05.439 ERROR ocrd.processor.helpers.run_processor - Failure in processor 'ocrd-eynollah-segment'
Traceback (most recent call last):
File "/build/core/ocrd/ocrd/processor/helpers.py", line 128, in run_processor
processor.process()
File "/build/eynollah/qurator/eynollah/processor.py", line 59, in process
Eynollah(**eynollah_kwargs).run()
File "/build/eynollah/qurator/eynollah/eynollah.py", line 2277, in run
cx_bigest, cy_biggest, _, _, _, _, _ = find_new_features_of_contours(contours_only_text_parent)
File "/build/eynollah/qurator/eynollah/utils/contour.py", line 80, in find_new_features_of_contours
areas_main = np.array([cv2.contourArea(contours_main[j]) for j in range(len(contours_main))])
File "/build/eynollah/qurator/eynollah/utils/contour.py", line 80, in <listcomp>
areas_main = np.array([cv2.contourArea(contours_main[j]) for j in range(len(contours_main))])
TypeError: Expected Ptr<cv::UMat> for argument 'contour'
Reported it to eynollah: https://github.com/qurator-spk/eynollah/issues/110
Thanks!
Using ocrd.sif built from ocrd/all:maximum at 2023-06-13 18:00 CEST
Tried with the image here:
https://digi.ub.uni-heidelberg.de/diglitData/v/duerer1527_-_aa2.tgz
... and essential the same workflow as in
run.sh
. See complete workflow at bottom.→
Workflow en detail: