of Person Detected Information of person detected Original image or video Start to recognize people in the 3 views Adjust the 3 views ( , zoom) Save image in the view Video conrol bar Zoom out, zoom in
face Calculate the feature distance between input features and those in database Pickle containing all database features Verify if the person is in our database moilApp plugin_Face Recognition-Machenism (cont.)
To determine whether the distances between feature vectors can be utilized for face recognition/verification. • If the feature distances between pairs of the same individual's face are smaller than those between face pairs of different individuals, then the distances can be used as an indicator for implementing face recognition.
• We download the president Tsai's and singer Deng's images to do the experiment. • The dataset consists of 10 Tsai's and 10 Deng's frontal image (manually selected) • We use the alignment tool to crop and align the face, then resize all the face images to (224, 224, 3)
by Keras to extract the feature of each face • Target layer: 'fc7' • The dimension of feature is 4096 • We extract all 10 features from both Tsai's and Deng's face and normalize them into L2 format, then save them to pickle file
calculation method 1. Euclidean distance 2. Cosine distance • There are 3 kinds of conditions to calculate 1. Distance between all Tsai's image (45 pairs) 2. Distance between all Deng's image (45 pairs) 3. Distance between Deng's face and Tsai's face (100 pairs)
To check if the distance of feature vectors can be used for face recognition/verification • The dataset consists of 57 Tsai's and 46 Deng's image (frontal and profile) • We use the alignment tool to crop and align the face, then resize all the face images to (224, 224, 3)
calculation method 1. Euclidean distance 2. Cosine distance • There are 3 kinds of conditions to calculate 1. Distance between all Tsai's image (1596 pairs) 2. Distance between all Deng's image (1035 pairs) 3. Distance between Deng's face and Tsai's face (2622 pairs)
relatively low comparing to that of Tsai's, it may cause the features extracted vary. → Use PIL.ImageFilter.UnsharpMask() on Deng's images and see if there's any improvement. 2. Maybe each person need different threshold for verification, or we should try other classification tools such as SVM.
To check if the distance of feature vectors can be used for face recognition/verification • The dataset consists of 57 Tsai's and 46 Deng's image (frontal and profile) • All Deng's images are sharpened using PIL.ImageFilter.UnsharpMask() UnsharpMask(radius=2, percent=150, threshold=3) (Default) • We use the alignment tool to crop and align the face, then resize all the face images to (224, 224, 3)