I am trying to remove background color so as to improve the accuracy of OCR against images. A sample would look like below:
If your image is captured as RGB, just use the green image or quickly convert the bayer pattern which is probably @misha's convert to greyscale solutions probably do.