Closed bertsky closed 4 months ago
@bertsky Could you please share the input file? And does this happen in the OCR-D pipeline or in the standalone Eynollah?
Oops, sry, my local branch already had a few more commits I forgot about, which exposed a problem with check_dpi
.
See https://github.com/qurator-spk/eynollah/pull/108/commits/60cf0bddfd35dd3fcd87b2e077b05bb170983977
(IOW the type checking for PIL.Image was wrong, which had the conditional enter the branch expecting an array)
Would you like me to make a cherry-picked PR for this fix?
Oops, sry, my local branch already had a few more commits I forgot about, which exposed a problem with
check_dpi
.See 60cf0bd
(IOW the type checking for PIL.Image was wrong, which had the conditional enter the branch expecting an array)
Would you like me to make a cherry-picked PR for this fix?
Yes, sure.
Oh, wow! I just realised that I had already fixed this in https://github.com/qurator-spk/eynollah/commit/867a7261de27bec7efc7e7add80f10ae18bc419a.
But somehow, I seemed to have forgot including #109 in #108.
In #108 we recently (probably because of a new OpenCV release) started to see this error:
I checked all places where
cv2.cvtColor
is used, and AFAICS it always gets passed a Numpy array. Unfortunately, OpenCV does not show the exact stack trace...