A non-transitory, computer readable storage medium containing a computer program, which when executed by a computer, generates output image data by capturing an image of a subject and by successively acquiring data of the image, comprising:
- controlling a pair of cameras, comprising a first camera and a second camera, which has a higher shutter speed than the first camera;
- processing the first image such that at least one region of interest of the subject found within the first image is identified;
- causing the first and second cameras to capture the first and second images of the subject using respective imaging parameters, and causing the second camera to capture the second image of the subject such that the second image is limited to the at least one region of interest;
- and
- generating the output image data, wherein:
- the second image captured by the second camera is subject to:
- (i) an imaging condition defined to track a target within the subject, and (ii) a frame rate lower than a frame rate of the first camera used at the time of imaging,
- the processing further includes:
- (i) recognizing motion by the target by reference to a displacement of the target and to a scan speed used at the time of capturing the image so as to acquire a change in target speed of the target, and (ii) recognizing a gesture of the target based on a pattern of the motion of the target, and
- the generating includes generating the output image data by processing the first image captured by the first camera and including text corresponding to the gesture in the output image data.