摘要 |
A focusing method is disclosed for moving a lens to a focal position when shooting a target object. According to the focusing method, the target object is photographed respectively with the lens at a plurality of initial testing positions to determine an initial sampling position and a sampling direction. And a plurality of candidate positions is determined according to the initial sampling position and the sampling direction. The target object is then photographed respectively at the candidate positions to generate a plurality of candidate images. For each of the candidate images, at least one focus value corresponding to the candidate image is calculated, and the focal position is determined according to the focus values corresponding to the candidate images.
|