Patent attributes
In various embodiments, the present invention relates to methods, systems, architectures, algorithms, designs, and user interfaces for light-field based autofocus. In response to receiving a focusing request at a camera, a light-field autofocus system captures a light-field image. An image crop that contains a region of interest and a specified border is determined. A series of refocused images are generated for the image crop at different scene depths. A focus metric is calculated for each refocused image. The scene depth of the refocused image with the best focus metric is identified as the appropriate focus. The focus motor position for the appropriate focus is selected and the focus motor is automatically driven to the selected focus motor position.