I'm building a software to extract text in image.
But some uploaded images are blur, and hard to process.
So, I need to build a function to determine if an image is low or high quality.
How can I do it?<p>PS: Sorry for my bad english.
Downsample it and then up sample and see how different (e.g. mean squared error over the pixels) it is? (Or equivalently (assuming anti-aliasing in the sampling version), apply a low pass filter and compare.<p>Those are just heuristics, you'd have to try it to see how well they work.
This is hard to answer in general, although general aspects like contrast and resolution are important of course. Maybe you can provide some background regarding your know how and technology you're going to use.
google tools of image properties for each OS<p>that'd have resolution and bit ratio which I forget how to figure out honestly, not hard to learn in minutes though