OCR Image Color Editing

OCR works faster and more accurately when we read black text on a white background.

If we have for example blue text on a pink background, we will want to wasp blue to black and pink to white before OCR.

Th is can be very time consuming and slow using System.Drawing, but is completely automated with IronOcr.

The OcrInput.ReplaceColor method allows us to replace one color with another in a document.

It is fuzzy and you may specify a % tolerance from an exact RGB.

This removed the need to use using Photoshop or ImageMagick scripts to prepare images for OCR.