1. A method of adjusting a focus of a camera, the method comprising: translating a lens to a first position; vibrating the lens relative to the first position so as to tend to vary the focus provided by the lens, the vibrating being performed using an actuator; capturing a first image on an image sensor from light received through the lens while the vibration of the lens relative to the first position is maintained; calculating a first sharpness score associated with the first image; translating the lens to a second position; vibrating the lens relative to the second position so as to tend to vary the focus provided by the lens, the vibrating being performed using the actuator; capturing a second image on the image sensor from light received through the lens while the vibration of the lens relative to the second position is maintained; and calculating a second sharpness score associated with the second image.