| CPC G02B 7/023 (2013.01) [G02B 7/38 (2013.01); H04N 23/67 (2023.01)] | 20 Claims |

|
1. A method implemented on a device, the method comprising:
receiving, by a processor of the device upon execution by the processor of instructions stored in a memory of the device, a curve that is fit to through focus data for a lens of the device, the curve predetermined prior to a capture of an image;
capturing the image with the lens, wherein the lens is at a first lens position;
determining, by the processor upon the execution of the instructions, a measurement by using the image;
determining, by the processor upon the execution of the instructions and by at least comparing the measurement with the curve, the first lens position;
determining, by the processor upon the execution of the instructions, a distance based on the first lens position and the curve; and
causing, by the processor upon the execution of the instructions, the lens to be placed in a second lens position that corresponds to repositioning the lens from the first lens position according to the distance.
|