How to remove all colors except 'redish'
Posted: 2018-02-20T08:29:57-07:00
Hey guys,
Thanks for this active forum, helped me out a few times. But now I have a little issue myself:
I have some kind of 'exploded view': an image with an image with numbers: https://ibin.co/3sMyGGx8AT7Z.png
Problem is that numbers are a bit fuzzy: multiple shades of red.
I want to extract the numbers from this image with OCR. I'm getting around 70% of numbers correctly with OCR out of this image, but want to improve.
I know it's possible to remove everything but one color from an image, but have some difficulty implementing this for this image.
I have tried a lot of solutions:
convert image-bg.png -fuzz 22% -fill black -opaque "#da392f" image-clr.png
convert image-bg.png -fill white -fuzz 26% +opaque "#dd4337" image-clr.png
but the result contains a lot of noise which makes OCR a bit difficult. Can anybody hint me in the right direction? Best result would be a black-and-white image with only the numbers.
Thanks!
Thanks for this active forum, helped me out a few times. But now I have a little issue myself:
I have some kind of 'exploded view': an image with an image with numbers: https://ibin.co/3sMyGGx8AT7Z.png
Problem is that numbers are a bit fuzzy: multiple shades of red.
I want to extract the numbers from this image with OCR. I'm getting around 70% of numbers correctly with OCR out of this image, but want to improve.
I know it's possible to remove everything but one color from an image, but have some difficulty implementing this for this image.
I have tried a lot of solutions:
convert image-bg.png -fuzz 22% -fill black -opaque "#da392f" image-clr.png
convert image-bg.png -fill white -fuzz 26% +opaque "#dd4337" image-clr.png
but the result contains a lot of noise which makes OCR a bit difficult. Can anybody hint me in the right direction? Best result would be a black-and-white image with only the numbers.
Thanks!