I want to run some small images/sprites through OCR (Tesseract, probably) and extract a number or words out of it, and I know these number/words will be of a specific color (let's say white on a noisy/colored background).
While reading about pre-processing images for OCR, I thought it would be really beneficial to just remove everything that's not white from the image.
I'm using both imagemagick and vips but I have no idea where to start, what operations to use and how to search for it.



