qurator-spk / sbb_binarization

Document Image Binarization
Apache License 2.0
67 stars 14 forks source link

Saving to TIFF does not work #47

Closed mikegerber closed 10 months ago

mikegerber commented 1 year ago

E.g.

% sbb_binarize --patches --model-dir /home/mike/devel/qurator-data/sbb_binarization/2022-08-16/ OCR-D-IMG_00000024.tif OCR-D-IMG_00000024-bin.tif

produces a transparent(?) TIFF with no content. No warning, no error.

See also #46.

mikegerber commented 1 year ago

I had a brief look into checking the result of cv2.imwrite. While this would be a good idea in any case, it reports success (True) for the TIFF...

mikegerber commented 1 year ago

To be clear: I don't need TIFF output, it would 100% be ok if it would write a good image file OR threw an error (instead of a broken TIFF).

mikegerber commented 1 year ago

@vahidrezanezhad suggests in a private message that downgrading could help...

install opencv-python-3.4.15.55

bertsky commented 1 year ago

@mikegerber can you please try with #59 again?

mikegerber commented 10 months ago

@mikegerber can you please try with #59 again?

Using 0.1.0 (includes #59) and model 2021-03-09 SavedModel (not 2022-08-16, but 2021-03-09 as this is the latest from the README) it seems to work.

(I had some issues with the models zips, see #63, maybe that was related.)