A computer program product having computer instructions, recorded on a computer readable medium, for enabling a computer executing the computer instructions to perform operations comprising:
- imaging a subject:
- detecting a moving direction of said subject based on two or more images of said subject taken at different times by one of said plurality of imaging devices;
- selecting one of said plurality of imaging devices, that is to capture an authentication image of said subject, based on said moving direction detected by said direction detection unit and said positions of said plurality of imaging devices;
- storing said authentication image captured buy said selected one imaging device;
- and
- authenticating said subject based on said authentication image stored in said storage unit;
- wherein said selecting is a detection of a frontal direction of said subject based on said moving direction detected by said direction detection unit and selects one of said plurality of imaging devices, that is able to image a front view of said subject, based on said positions of said plurality of imaging devices,
- said selecting includes selecting said one of said plurality of imaging devices, that is to capture said authentication image of said subject, based on said detected moving direction, said detected moving direction used to calculate a position to which said subject will move to, and based on positional information related to said position of each of said plurality of imaging devices, and
- said selecting includes determining which one of said plurality of imaging devices to select by detecting said frontal direction of said subject and determining which one of said plurality of imaging devices is near said calculated position to which said subject will move to based on said positional information related to said position of each of said plurality of imaging devices and is in a position to capture said front view of said subject, and initializing said one of said plurality of imaging devices to capture said authentication image of said subject.