Answer the question
In order to leave comments, you need to log in
How to programmatically determine the quality of a photo?
Are there methods to programmatically determine which of the two photos is better in quality? The same photo is scanned on two different scanners in different places and under different conditions. You need to add the best scan to the database.
Example from the Internet:
The left photo should be added.
Thank you!
Answer the question
In order to leave comments, you need to log in
To assess sharpness, you can use the histogram of gradients, as in this topic habrahabr.ru/post/175717
You can try to analyze the amplitude of the "medium" frequencies in any two-dimensional harmonic transformation (Fourier, Haar and other wavelets). Where the amplitude is higher - there is more information capacity.
It is better not to consider the upper frequencies - otherwise the photo noisy with small noise will give high performance.
You can come up with your own metric, for example, how different are the colors of pixels in different squares. Or train a neural network. In any case, you will need a large test set (at least 1000 pairs of photos) to test the algorithms.
when there is something to compare with, then in principle you can still decide, but when there is only one photo, let's say only (B), then you will not determine what quality it is.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question