主权项 |
1. A camera focus method comprising:
receiving, by a computer, a first image from a camera arrangement with a camera lens positioned in a first position, wherein the camera arrangement is integral with the computer; extracting from the first image first focus information, where first focus information comprises a first value for each of focus windows; storing the first focus information as associated with the first lens position; moving the camera lens to a second position; receiving, by the computer, a second image from the camera arrangement with the camera lens positioned in the second position; extracting from the second image second focus information, where second focus information comprises a second value for each of the focus windows, wherein each second value corresponds to one of the first values; storing the second focus information as associated with the second lens position; comparing, a plurality of first values with the corresponding second values to determine a plurality of relative values, where each relative value indicates whether moving the camera lens to the second position corresponds to a first direction that approaches or a second direction that moves away from a maximum focus position for each of the focus windows; and determining whether a number of focus windows with relative values associated with the first or second direction satisfy a pre-defined standard for determining an autofocus lens position. |