Patent ID: 11922732
Assignee: PAYPAL, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 17:
18. A computer program product for facilitating liveness detection, the computer program product comprising a computer-readable memory having program instructions embodied therewith, the program instructions executable by a processor to cause the processor to:
display a box on a video being presented on a client device, wherein the video is a substantially real-time video of a space in front of the client device;
set, based on a determination of a location of a face in the video, a location of the box within the video that causes at least most of an image of the face to be outside the box prior to the image of the face moving to a location inside the box;
define a flash pattern as a series of bright and dark flashes;
in response to determining that the image of the face within the video has moved to the location inside the box:
flash an illumination source directed into the space in accordance with the flash pattern;
record a sequence of frames of the video in synchronization with the flash pattern, wherein the sequence of frames is captured after the image of the face has moved to the location inside the box and while the image of the face remains within the location inside the box; and
generate, after the sequence of frames is recorded, a liveness verification result based on an analysis of the sequence of frames.