a very naive way to guess bg color.
trying several naive/bruteforce way to find delimiting scanlines
a script to "enhance" the image to make it "better" for text detection.

... with some subjective definition of "better" :)
make it brute-force scan all the pixels.