An image taking device (1), which takes an image of an object by focusing reflected light from the object on an image sensor (212), is provided with a distance measuring sensor (27) for measuring a distance between the object and the image taking device (1), and means for controlling exposure time of the image sensor (212) upon taking an image in accordance with a measurement result.