主权项 |
1. An apparatus comprising:
a display device having a display screen which emits light; an imaging device which takes an image of an object placed before the display screen and thereby generates input image data; a processor; and a memory which stores a plurality of instructions, which when executed by the processor, causes the processor to execute:
controlling the display device to emit light and thereby changeably display predetermined images on the display screen,controlling the imaging device to take the image of the object in synchronization with the emission of light by the display screen to display a respective predetermined image of the predetermined images on the display screen, wherein the synchronization allows the imaging device to take the image via the emission of light by the display screen without emitting human visible photographic flash and allows a light emitting time of the display screen to be reduced by controlling the emission of light to be synchronized with the taking of the image, andextracting image data of the object by comparing the input image data generated by imaging device with data of the respective predetermined image displayed on the display screen, wherein the input image data and the data of the respective predetermined image respectively have a plurality of pixel values, and the instructions, when executed by the processor, cause the processor to execute: if a difference between a part of the pixel values of the input image data and a corresponding part of the pixel values of the respective predetermined image, the corresponding part of the pixel values indicating the object, is equal to or larger than a second predetermined value, determining and outputting that no object exists, if the difference is not equal to or larger than the second predetermined value, determining and outputting that the object exists, the pixel values are luminance values, and the predetermined image displayed on the display screen has a first combination of colors that is different than a second combination of colors of the respective input image data generated by the imaging device. |