Next, at timing t408, the image stabilizing amount calculating unit 113 calculates the object image stabilizing amount based on the output from the object detecting unit 108, and notifies the focus detecting calculation area selecting unit 109 of information about the target object for which object image stabilization has been performed. The focus detecting calculation area selecting unit 109 selects the object information about the image stabilization target obtained at timing t403 and the focus detecting calculation result obtained at timing t407 from the calculation result of the rectangular areas divided into N×M at timing t407.
Next, at timing t409, the image sensor driving control unit 114 and the lens driving control unit 111 start the position driving in the image height of the image sensor 102 and focus driving of the optical system unit 101 to focus on the object. Then, the driving is completed until timing t405, which is the exposure start timing of the next frame. Operations after timing t410 are repetitions of the operations from timings t405 to t409.
This embodiment can achieve highly accurate focus detection by reducing the frequency of removing objects from the focus detecting calculation area while performing object image stabilization.