Automatic photographing condition setting is achieved with accuracy. For
example, when a shutter button is half-pressed, preliminary photographing
is carried out under different photographing conditions to acquire
preview images. Then, each of the preview images is subjected to a face
detection process. Photographing conditions for photographing a person
are automatically adjusted to be suitable for a face area in one of the
preview images from which a face has been detected.