Patent ID: 8922831

Claim:
An image capturing device comprising: an image capturing unit that includes: an optical transmission member disposed on a surface facing a subject; and a sensor unit that captures an image of the subject via the optical transmission member; a moving unit that moves the image capturing unit in an optical axis direction of the sensor unit; a detector that detects a contamination from each of a first image and a second image, the first image being captured by the sensor unit when the image capturing unit is located at a first position in the optical axis direction, and the second image being captured by the sensor unit when the image capturing unit is located at a second position spaced farther away from the subject than the first position in the optical axis direction; and a determining unit that determines that a contamination is deposited on the optical transmission member when a difference in the number of pixels in which a contamination is detected between the first image and the second image is less than a first threshold.