1 | initial version |
That's a difficult task. Cameras can change the focus and thus analyse, if the image gets sharper or not. Having only one picture, how can you decide if your image is blurred or if it is a perfectly sharp photo of a Gerhard Richter painting?
Basically, sharpness can be measured by analysing the edges, for example with a Sobel filter. Having strong edges is a good sign for sharpness. But if you don't have high contrasts in your image, it could also mean that you took a picture of something lacking contours.
The good thing is: you probably know, what's represented on your pictures. If you're expecting certain objects, it is easier to define some threshold which classifies the image as blurred or sharp.