1. An image capturing apparatus comprising: a casing having an opening; a light source arranged inside the casing; a sensor arranged inside the casing and configured to capture, through the opening, an image of an object present outside the casing while the light source is on; and a distance calculator to calculate a distance between the casing and the object, based on an image that has been captured by the sensor and contains, within an image region of the object defined by the opening, a high-luminance region and low-luminance regions located more outside than the high-luminance region.