As shown in
The obtaining module 801 is configured to obtain a target image.
The first extraction module 802 is configured to extract facial feature data of a facial image in the target image.
The first recognition module 803 is configured to perform face liveness recognition according to the facial feature data to obtain a first confidence level. The first confidence level denotes a first probability of recognizing a live face or person.
The second extraction module 804 is configured to extract background feature data from an extended facial image. The extended facial image is obtained by extending a region that covers the facial image.
The second recognition module 805 is configured to perform face liveness recognition according to the background feature data to obtain a second confidence level. The second confidence level denotes a second probability of recognizing a live face or person.
The output module 806 is configured to obtain, according to the first confidence level and the second confidence level, a recognition result indicating that the target image is a live facial image.