1. A method, comprising: focusing incident light on a pixel array with a lens; capturing a sequence of images with the pixel array; with image processing circuitry, calculating statistical metrics from the captured sequence of images; calculating a motion score based on the statistical metrics; and determining when to refocus the lens based at least partly on the motion score.