Patent ID: 8102462

Claim:
An imaging device comprising: an imaging element; moving means for moving an optical system; decision means for deciding a position to which the optical system is to be moved by the moving means so that a subject is brought into focus, based on a contrast of an image captured by the imaging element; means for storing an image captured by the imaging element when the optical system is moved to the position decided by the deciding means; light emitting means for emitting light; light control means for determining a proper amount of light at a shooting time to be emitted by the light emitting means, based on a brightness of the subject when the light emitting means is caused to make a preliminary light emission; distance acquisition means for acquiring a subject distance to the subject corresponding to the brightness of the subject when the preliminary light emission is made by the light emitting means to allow the light control means to determine the proper amount of light; and nullifying means for nullifying the decision by the decision means when a relationship between the position decided by the decision means and the subject distance acquired by the distance acquisition means meets a predetermined condition.