I am trying to remove background color so as to improve the accuracy of OCR against images. A sample would look like below:
You can do this using GIMP (or any other image editing tool).
Blurred image:
Difference image:
Binary:
If you're doing it as a once-off, GIMP is probably good enough. If you expect to do this many times over, you could probably write an imagemagick script or code up your approach using something like Python and OpenCV.
Some problems with the above approach: