There is an application that in real time should recognize text from the camera. Tell me how to understand that you need to send an image from the camera for processing (text recognition), that is, the camera does not shake (or does not shake much) and the image is blurred.
I thought about checking the image for blur in the onFramePreview method (again, how can I check this?).
Or, periodically call the onAutoFocus method, check the image for blurring in it and, if successful, send for processing.
Either stupidly periodically using the onAutoFocus method to receive an image and send it for processing until we get an acceptable result.
Thank you in advance)