[face recognization] How to exclude the input image that isn't in the training set
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
hi everyone
I use PCA for recognizing face . here is my code shortly:
[evectors, score, evalues] = princomp(images_train_eig');
num_eigenfaces = 10;
n_evectors = evectors(:, 1:num_eigenfaces);
% project the images into the subspace to generate the feature vectors
features = n_evectors' * shifted_images;
% calculate the similarity of the input to each training image
feature_vec = n_evectors' * (input_image(:) - mean_face);
similarity_score = arrayfun(@(n) 1 / (1 + norm(features(:,n) - feature_vec)), 1:num_images);
% find the image with the highest similarity
[match_score, match_ix] = max(similarity_score);
how can i recognize people that doesn't in my training set ,
Please answer me with keywords or any clues. Thank you
0 commentaires
Réponses (0)
Voir également
Catégories
En savoir plus sur Dimensionality Reduction and Feature Extraction dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!