I'm doing real-time step-by-step analysis of the video stream in iOS.
I need to assign a rating for each frame, as in focus. The method should be very fast for calculating on a mobile device and should be sufficiently reliable.
I tried simple things like summing after using the edge detector, but were not impressed with the results. I also tried using the focus estimates presented in the frame metadata dictionary, but they are significantly affected by the brightness of the image and much more on the device.
What are good ways to calculate fast and reliable focus counts?
source
share