I have the following images:
source: https://imgur.com/58lyq2W
source: https://imgur.com/sNdyHAn
I was unsuccessful to delete all the noisy background and let only the text. I have used this great script by Fred, textcleaner and it gave me sometimes good results sometimes no. So I thought I could delete all the colors in the image except Black and it's variants.
So what I did was
Code: Select all
convert image.jpg -fill white -fuzz 40% +opaque "#000000" removed.png
I tried also to binarize the image and clean it as follows:
Code: Select all
localthresh -m 3 -r 25 -b 20 -n yes image.png output.png
textcleaner -b white -g -e normalize -f 35 -o 6 -t 50 -S 200 -T output.png binarize.png
denoise -f 2 -s "20x20+203+152" binarize.png binarize.png
source: https://imgur.com/HZsYI7G
source: https://imgur.com/jA4R6vD
Sometimes even worse.
Is there anyway I could do that, I am still a newbie and searching on google didn't give me much.
Or if there is another procedure to follow to get better results it would be appreciated.
Thanks you.
Regards!