S724. Classify the target image through a fully connected layer of the second recognition model according to the extracted background feature data to obtain a second confidence level of the target image being a live facial image.
S726. Integrate the first confidence level and the second confidence level to obtain a confidence level of the target image being a live facial image.
S728. Determine whether the confidence level reaches a preset confidence level threshold; if the confidence level reaches the preset confidence level threshold, perform S730; if the confidence level does not reach the preset confidence level threshold, perform S732.
S730. Determine that the target image is a live facial image, when the confidence level reaches the preset confidence level threshold.
S732. Determine that the target image is a non-live facial image, when the confidence level does not reach the preset confidence level threshold.