Patent ID: 7697830

Claim:
A digital camera adapted to have attached thereto a taking lens that forms an object image, wherein the taking lens has a focusing unit that focuses the taking lens, the camera comprising: an imaging device for picking up the object image; a first focus detection unit for performing focus detection based on a phase difference among a plurality of object images respectively taken through different pupil areas of the taking lens; a second focus detection unit for performing focus detection based on a contrast value of the object image; a determination unit for determining whether the focus detection by the first focus detection unit is possible by determining, based on lens information of the taking lens, whether shading occurs in respective light fluxes passing through the different pupil areas of the taking lens; and a control unit that controls the focusing unit to focus the taking lens based on a focus detection result of the first focus detection unit when the determination unit determines that the focus detection by the first focus detection unit is possible, and controls the focusing unit to focus the taking lens based on a focus detection result of the second focus detection unit when the determination unit determines that the focus detection by the first focus detection unit is not possible.