With the above storage medium, after the target image is obtained, on the one hand, the facial feature data can be extracted automatically from the facial image in the target image, and then face liveness recognition is performed based on the facial feature data so that a probability of recognizing a face liveness is obtained; on the other hand, the background feature data can be extracted automatically from the extended facial image in the target image, and then face liveness recognition is performed based on the background feature data so that a probability of recognizing a face liveness is obtained. In this way, with reference to the two probabilities, a recognition result is obtained indicating whether the target image is a live facial image. This not only ensures accuracy of face liveness detection to some extent, but also avoids time consumption caused by necessity of user cooperation and interaction, thereby improving efficiency of the face liveness detection.