use a fuzzy logic to determie what's "white".
use imagemagick to do pre-processing
requires imagemagick