GerHobbelt / W

tracking bugs, caveats, reminders and ramblings in and of my public clones/forks
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

tesseract: internal image preprocessing: remove alpha channel of input image #12

Open GerHobbelt opened 2 months ago

GerHobbelt commented 2 months ago

Example: 1093 from corpus: https://github.com/GerHobbelt/tesseract-bulk-testing-fun-with-assertion-failures/blob/main/sizes/1093-barcode.png

GerHobbelt commented 2 months ago

SHA-1: 813137dd58581d43bf4853f7b25de6d69c4abbd2

TODO: delay the alpha channel removal until we need the image for processing, so that the first logging of the "original input image" will still carry the original alpha channel: that way we can then also observe the actual difference, hence result, of removing said alpha channel before greyscaling & thresholding the source image.