OCR-D/ocrd_all

sbb-binarize: 'int' object is not subscriptable

jbarth-ubhd opened this issue · 4 comments

Dear reader,
tried sbb-textline (recommended on step 1),
got this error message:

  File "/usr/local/lib/python3.6/site-packages/sbb_binarize/sbb_binarize.py", line 270, in run
    img_last[:, :][img_last[:, :] > 0] = 255
TypeError: 'int' object is not subscriptable

(almost) complete workflow environment see https://digi.ub.uni-heidelberg.de/diglitData/v/duerer1527_-_aa.zip . Extracts to directory "aa". See run.sh and ocrd.log

ocrd.sif -> ocrd-2022-08-15.sif (not a newer one because OCR-D/ocrd_tesserocr#189 )

Should be transferred to sbb_binarize.

Probably one of the recent Numpy changes.

Which version of numpy and sbb_binarize is this?

> singularity exec -e ocrd.sif ocrd-sbb-binarize -V
Version 0.0.10, ocrd/core 2.38.0

> singularity exec -e ocrd.sif python -c "import numpy as np
> print(np.__version__)"
1.19.5

kba commented

I cannot transfer issues across organisations, so I created qurator-spk/sbb_binarization#57 manually. Best to continue discussion over there, so my QURATOR/MMK colleagues see this.