This solution determines whether the face detected by the camera is real or merely an image displayed on a phone screen or a pre-recorded video of the user.