An imaging device comprising: a rolling shutter type image sensor configured to take an image of an object by taking an image of each line structuring the image area; a plurality of spot light sources each configured to radiate a spot light to the object; a position-shape detection unit configured to: detect distances between adjacent spot lights of each line in a first image taken by the rolling shutter type image sensor; estimate an inclination of the object in the first image, based on one of the distances between adjacent spot lights in a portion of the first image corresponding to a first line and another one of the distances between adjacent spot lights in a portion of the first image corresponding to a second line; estimate, with use of the distances between adjacent spot lights in each line of the first image, a position and shape of spot lights in an image of the object which is to be generated by correcting a distortion of the rolling shutter type image sensor caused by a movement of the object during the taking of the first image, the image to be generated being an image of the object remained with the estimated inclination; and calculate distortion information for correcting a position of each spot light in the first image influenced by the distortion, so that a position of each spot light in the first image corresponds to a position of a respective spot light in the image to be generated without the distortion, and a distortion correction unit configured to correct the distortion in a second image based on the distortion information and a shape of a spot light in the first image, wherein the second image is one of: the first image taken when both of the spot light sources and a diffused light source are turned on, and another image taken by the rolling shutter type image sensor when the diffused light source is turned on and the spot lights sources are turned off. a rolling shutter type image sensor configured to take an image of an object by taking an image of each line structuring the image area; a plurality of spot light sources each configured to radiate a spot light to the object; a position-shape detection unit configured to: detect distances between adjacent spot lights of each line in a first image taken by the rolling shutter type image sensor; estimate an inclination of the object in the first image, based on one of the distances between adjacent spot lights in a portion of the first image corresponding to a first line and another one of the distances between adjacent spot lights in a portion of the first image corresponding to a second line; estimate, with use of the distances between adjacent spot lights in each line of the first image, a position and shape of spot lights in an image of the object which is to be generated by correcting a distortion of the rolling shutter type image sensor caused by a movement of the object during the taking of the first image, the image to be generated being an image of the object remained with the estimated inclination; and calculate distortion information for correcting a position of each spot light in the first image influenced by the distortion, so that a position of each spot light in the first image corresponds to a position of a respective spot light in the image to be generated without the distortion, and detect distances between adjacent spot lights of each line in a first image taken by the rolling shutter type image sensor; estimate an inclination of the object in the first image, based on one of the distances between adjacent spot lights in a portion of the first image corresponding to a first line and another one of the distances between adjacent spot lights in a portion of the first image corresponding to a second line; estimate, with use of the distances between adjacent spot lights in each line of the first image, a position and shape of spot lights in an image of the object which is to be generated by correcting a distortion of the rolling shutter type image sensor caused by a movement of the object during the taking of the first image, the image to be generated being an image of the object remained with the estimated inclination; and calculate distortion information for correcting a position of each spot light in the first image influenced by the distortion, so that a position of each spot light in the first image corresponds to a position of a respective spot light in the image to be generated without the distortion, and a distortion correction unit configured to correct the distortion in a second image based on the distortion information and a shape of a spot light in the first image, wherein the second image is one of: the first image taken when both of the spot light sources and a diffused light source are turned on, and another image taken by the rolling shutter type image sensor when the diffused light source is turned on and the spot lights sources are turned off. the first image taken when both of the spot light sources and a diffused light source are turned on, and another image taken by the rolling shutter type image sensor when the diffused light source is turned on and the spot lights sources are turned off.