A device for generating heartbeat information of an object, includes circuitry configured to acquire a plurality of images of the object, the plurality of images being captured in a time series and including a first image and a second image, generate a luminance difference between a first segment in the first image and a second segment in the second image, the first segment and the second segment corresponding to a specific part of the object, execute a determination process for the first segment in the first image when the luminance difference is less than a threshold value, the determination process determining a value indicating a state of the object at a time when an image is captured based on luminance information of a segment in the image, and generate the heartbeat information based on a first value of the first image and other values of other images.