Liveness detection apparatus, control method, and computer-readable medium
A liveness detection apparatus ( 2000 ) causes a display apparatus ( 20 ) to display a plurality of screens ( 30 ). At least one of the plurality of screens ( 30 ) has a plurality of regions ( 32 ). At least two of the plurality of regions ( 32 ) include different indications. The liveness detection apparatus ( 2000 ) acquires a plurality of captured images ( 40 ). The captured image ( 40 ) is generated by capturing an image of a target object ( 50 ) with a camera ( 10 ) while the screen ( 30 ) is displayed. The liveness detection apparatus ( 2000 ) determines whether or not the target object ( 50 ) is a living body by using the plurality of captured images ( 40 ).
1 . A non-transitory computer-readable medium storing a program executed by a computer, the program causing the computer to execute:
causing a display apparatus to display a guide related to a direction of a line of sight and a guide related to a face direction, wherein the guides prompt to swing the face left and right while continuously viewing a same place;
acquiring captured images generated by capturing a target with a camera a plurality of times;
determining whether or not a posture of the target is a posture suitable for liveness detection by using the captured images;
causing the display apparatus to display a guide prompting to take an appropriate posture in a case where the posture of the target is not a posture suitable for liveness detection;
computing a difference between the face direction and a line-of-sight direction for each of the captured images by using an image of a face of the target captured in each of the captured images; and
determining whether or not the target is a living body based on the computed difference,
wherein the program causes the computer to execute:
determining whether or not a posture of the face and a posture of a torso of the target satisfy a predetermined condition by using an image of the face and the torso of the target that are captured in the captured images; and
causing the display apparatus to display a guide prompting to take an appropriate posture in a case where the predetermined condition is not satisfied.
2 . The non-transitory computer-readable medium according to claim 1 , wherein the program causes the computer to execute:
determining whether or not a face direction of the target on a vertical plane is within a predetermined range by using the image of the face of the target that is captured in the captured images; and
causing the display apparatus to display a guide prompting to take an appropriate posture in a case where the face direction of the target on the vertical plane is not within the predetermined range.
3 . The non-transitory computer-readable medium according to claim 2 , wherein different guides are displayed for a case where the target takes a motion of swinging the face and a case where the target does not take the motion of swinging the face.
4 . The non-transitory computer-readable medium according to claim 1 , the program causes the computer to execute: determining, for a terminal in which the display apparatus is installed, whether or not a magnitude of an inclination on a vertical plane is equal to or less than a predetermined threshold; and causing the display apparatus to display a guide prompting to set a pose of the terminal to an appropriate pose in a case where the magnitude of the inclination is not equal to or less than the predetermined threshold.
5 . A liveness detection apparatus comprising:
at least one memory storing instructions; and
at least one processor that is configured to execute the instructions to:
causes a display apparatus to display a guide related to a direction of a line of sight and a guide related to a face direction, wherein the guides prompt to swing the face left and right while continuously viewing a same place;
acquire captured images generated by capturing a target with a camera a plurality of times;
determine whether or not a posture of the target is a posture suitable for liveness detection by using the captured images;
cause the display apparatus to display a guide prompting to take an appropriate posture in a case where the posture of the target is not a posture suitable for liveness detection;
compute a difference between the face direction and a line-of-sight direction for each of the captured images by using an image of a face of the target captured in each of the captured images; and
determine whether or not the target is a living body based on the computed difference,
wherein the at least one processor is configured to execute the instructions further to:
determine whether or not a posture of the face and a posture of a torso of the target satisfy a predetermined condition by using an image of the face and the torso of the target that are captured in the captured images; and
cause the display apparatus to display a guide prompting to take an appropriate posture in a case where the predetermined condition is not satisfied.
6 . A control method to be executed by a computer, the control method comprising:
causing a display apparatus to display a guide related to a direction of a line of sight and a guide related to a face direction, wherein the guides prompt to swing the face left and right while continuously viewing a same place;
acquiring captured images generated by capturing a target with a camera a plurality of times;
determining whether or not a posture of the target is a posture suitable for liveness detection by using the captured images;
causing the display apparatus to display a guide prompting to take an appropriate posture in a case where the posture of the target is not a posture suitable for liveness detection;
computing a difference between the face direction and a line-of-sight direction for each of the captured images by using an image of a face of the target captured in each of the captured images; and
determining whether or not the target is a living body based on the computed difference,
wherein the control method further comprises:
determining whether or not a posture of the face and a posture of a torso of the target satisfy a predetermined condition by using an image of the face and the torso of the target that are captured in the captured images; and
causing the display apparatus to display a guide prompting to take an appropriate posture in a case where the predetermined condition is not satisfied.
7 . The liveness detection apparatus according to claim 5 , wherein the at least one processor is configured to execute the instructions further to:
determine whether or not a face direction of the target on a vertical plane is within a predetermined range by using the image of the face of the target that is captured in the captured images; and
cause the display apparatus to display a guide prompting to take an appropriate posture in a case where the face direction of the target on the vertical plane is not within the predetermined range.
8 . The liveness detection apparatus according to claim 7 , wherein different guides are displayed for a case where the target takes a motion of swinging the face and a case where the target does not take the motion of swinging the face.
9 . The liveness detection apparatus according to claim 5 , wherein the at least one processor is configured to execute the instructions further to:
determine, for a terminal in which the display apparatus is installed, whether or not a magnitude of an inclination on a vertical plane is equal to or less than a predetermined threshold; and
cause the display apparatus to display a guide prompting to set a pose of the terminal to an appropriate pose in a case where the magnitude of the inclination is not equal to or less than the predetermined threshold.
10 . The control method according to claim 6 , further comprising:
determining whether or not a face direction of the target on a vertical plane is within a predetermined range by using the image of the face of the target that is captured in the captured images; and
causing the display apparatus to display a guide prompting to take an appropriate posture in a case where the face direction of the target on the vertical plane is not within the predetermined range.
11 . The control method according to claim 10 , wherein different guides are displayed for a case where the target takes a motion of swinging the face and a case where the target does not take the motion of swinging the face.
12 . The control method according to claim 6 , further comprising: determining, for a terminal in which the display apparatus is installed, whether or not a magnitude of an inclination on a vertical plane is equal to or less than a predetermined threshold; and
causing the display apparatus to display a guide prompting to set a pose of the terminal to an appropriate pose in a case where the magnitude of the inclination is not equal to or less than the predetermined threshold.