I'm trying to optimize image300.png for Tesseract OCR, the image will always look the same except for the text. So far I've managed to generate output.tiff. I've tried to use Photoshop to guide me with a gui, without any luck (the values e.g. in Photoshop levels don't corrospond with -level in Imagemagick).
Code: Select all
convert img300.png -grayscale Rec709Luminance -channel RGB -black-threshold 13% -white-thresh old 12.9% -negate output.tiff
https://www.dropbox.com/s/mluzbmt6tuuus ... .tiff?dl=0
Original file img300.png
https://www.dropbox.com/s/vdtt2w3kkfbix ... 0.png?dl=0
Optimal result img300_optimized.png
https://www.dropbox.com/s/w5kkf2ty3mw7c ... d.png?dl=0
I'm hopeing someone has some tips for me to get a better result, love to hear from you!