Is there some mechanism to say whether the image is "clean" for the purpose of image processing?
For example, in the following image, the topmost row is the cleanest and the bottom one is the least clean. As a result, the top-image gives accurate output; the bottom-one gives less accurate.
The purpose is to use the image for Optical Character Recognition. And, I wanted to check beforehand, if the image is sufficiently clean or not.