Embodiments of this application disclose a facial recognition method and device, and belong to the field of computer vision in artificial intelligence AI. The method includes: obtaining a first face image and a second face image, where the first face image is a current face image obtained by a camera, and the second face image is a stored reference face image; determining whether a modality of the first face image is the same as a modality of the second face image; if the modality of the first face image is different from the modality of the second face image, separately mapping the first face image and the second face image to a cross-modal space, to obtain a first sparse facial feature of the first face image in the cross-modal space and a second sparse facial feature of the second face image in the cross-modal space; and performing facial recognition on the first face image based on the first sparse facial feature and the second sparse facial feature. According to the embodiments of this application, a cross-modal facial recognition speed can be increased.
FACE RECOGNITION METHOD AND DEVICE