1. An imaging device comprising: an imaging element that by taking an image, outputs a signal which represents an optical image of an image taking target; a specific-object detection portion that successively obtains an input image based on an output signal from the imaging element and detects, based on an image signal of the input image, a position of a specific object contained in the image taking target on the input image; a clipped-image extraction portion that based on the detected position, sets a clip region smaller than a whole region of the input image into the input image and extracts an image in the clip region as a clipped image; and an image-quality compensation portion that improves resolution of the clipped image.