qurator-spk / sbb_binarization

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

output is inverted in certain input formats #33

Closed bertsky closed 2 years ago

bertsky commented 2 years ago

I sometimes get output which looks like this:

OCR-D-SEG-PAGE-BIN_Ratsbuecher_O_10_0237 IMG-BIN

The input image for this was a PNG (which someone seems to have converted somehow from an original JPEG):

Ratsbuecher_O_10_0237

(That's from this GT BTW.)

vahidrezanezhad commented 2 years ago

Dear @bertsky,

This is weird since my outputs for both old and new models are different than yours. And of course, they are as expected!!

vahidrezanezhad commented 2 years ago

Robert_hwn_bin_old

vahidrezanezhad commented 2 years ago

Robert_hwn_bin

cneud commented 2 years ago

I also tried out current master with the example images above, but all outputs were fine and as expected, I cannot reproduce?

cneud commented 2 years ago

@bertsky Since neither @vahidrezanezhad nor I can reproduce, I will close this, but feel free to reopen if you encounter this again with the current code.

bertsky commented 1 year ago

Confirming this went away with 0.0.10. (Last tried 0.0.8)

Thanks for your feedback.