eynollah
eynollah copied to clipboard
Expected Ptr<cv::UMat> for argument 'contour'
Did build a new singularity image from docker ocrd/all:maximum today, approx. 14:00 CEST.
using this image (with OCR-D): https://digi.ub.uni-heidelberg.de/diglitData/v/duerer1527--aa--deskew.png
and using this command:
ocrd-eynollah-segment -P models default -I OCR-D-004 -O OCR-D-005 # ...004 contains png above
I'll get this error message:
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'