Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Saving to TIFF does not work #47

Closed
mikegerber opened this issue Aug 23, 2022 · 5 comments
Closed

Saving to TIFF does not work #47

mikegerber opened this issue Aug 23, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@mikegerber
Copy link
Member

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
Copy link
Member Author

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
Copy link
Member Author

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
Copy link
Member Author

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

install opencv-python-3.4.15.55

@bertsky
Copy link
Contributor

bertsky commented Apr 13, 2023

@mikegerber can you please try with #59 again?

@mikegerber
Copy link
Member Author

mikegerber commented Aug 16, 2023

@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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants