A human face is detected from an image. On the basis of a size of the
detected face and a focal length of a taking lens, a subject distance is
calculated. Further, a depth of field is calculated on the basis of the
calculated subject distance, the focal length of the taking lens and a
stop diameter. The calculated depth of field is analyzed. When it is
judged that the depth of field is deep, shooting is performed as it is.
When it is judged that the depth of field is shallow, the stop diameter
is reduced to deepen the depth of field. In addition, sensitivity of a
CCD image sensor is heightened to correct brightness of the image.