2 ms·
is there a simple way to detect blur? I want the iPhone to show an alert that the previous photo was blurred - I ended up with a blurred photo of text on a post
by balaji1 4y ago
is there a simple way to detect blur? I want the iPhone to show an alert that the previous photo was blurred - I ended up with a blurred photo of text on a poster as I walked past it.
- loxias 4y agoLook at the frequency spectrum. If you consider focus, or "blurness" a parameter that varies, the value where the picture is "least blurry" or "most in focus" tends to be a local maxima of the power of the higher frequency components. When the picture is crisper edges will be more pronounced, which is high(er) frequency information. So the high frequency power would be at a local maxima. (If that doesn't make sense yet, try imagining the opposite :D When a picture is the "most blurred" or "most out of focus" it looks like a soft colorfield. low frequency :D)
- anon_123g987 4y agoThere's no simple and easy way as far as I know, but there are many approaches both for blur detection and automatic correction (kernel estimation). It's called blind deconvolution. https://en.wikipedia.org/wiki/Blind_deconvolution https://en.wikipedia.org/wiki/Blind_deconvolution