{'fraction_non_alphanumeric': 0.020588235294117647, 'fraction_numerical': 0.0, 'mean_word_length': 5.543269230769231, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Face anti-spoofing based on weighted neighborhood pixel difference pattern

Abstract. The vulnerability of face recognition-based unlocking systems to spoofing attacks is a serious problem. With the development of science and technology, face pictures on the Internet are particularly easy to obtain and recreate. A face spoofing attack happens when someone fakes a face and tries to pass the verification of the face recognition system, which seriously threatens the security of users’ information. We propose a method based on quantifying the difference between neighborhood pixels around the center of a local region, namely, weighted neighborhood difference quantization local binary pattern (LBP), against print attacks, and video-replay attacks. The proposed method quantifies the differences between neighborhood pixels without using the center one and uses a linear weighting scheme to improve the discriminant capability of the traditional LBP. The combination of the proposed algorithm and the spatial pyramid further improves the performance of face spoofing detection. We also conducted a lot of experiments in different color spaces to illustrate the role of color in face spoofing detection. The improved method achieves better results in three challenging face anti-spoofing databases, CASIA FASD, Replay-Attack, and Replay-Mobile, respectively.