want to dispaly image not found
3 views (last 30 days)
Show older comments
I am working on face recognisation ,i have train data set and test data set,my code predicts the near face if i select a face image ,but if the selected face is not present in training data set,i want to display a command ."face not found ",can u suggest an method,or code for this
0 Comments
Answers (1)
Walter Roberson
on 28 Oct 2011
disp('"face not found"')
I suspect that is not your real question, though. I suspect your real question is "How can I detect that a face is not in the training set?". The answer to that is going to depend upon how your do your face recognition.
I suspect that (one of the) outputs of applying the recognition algorithm is a similarity or probability measure. It will be up to you to decide what value of similarity or probability indicates a non-match. There is no "right" answer in such a matter: there is only tuning it to be more or less generous in deciding that a match has occurred. In some cases you want to err on the side of rejecting matches that are not clearly people you know (e.g., if you were doing access controls that permitted only authorized people), and in other cases you want to err on the side of alerting authorities about a possible but unclear match (e.g., if you are searching for dangerous people or people who might have deliberately disguised themselves.)
5 Comments
Walter Roberson
on 28 Oct 2011
Perhaps for Pat's requirements, it _is_ relatively simple: perhaps Pat needs to detect *exact* copies of the training images and reject everything else.
In such a case, what I might do is use the neural net to find the closest match, and then compare the original of the closest to the input image.
Or perhaps it is a matter of adjusting the weights to be more rigid in the matching process and of using a net big enough to store exact copies of all of the training images...
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!