MATLAB: Recognise the test image…

#face recognitionImage Processing Toolbox

I have used the code from the following link…
http://www.mathworks.in/matlabcentral/fileexchange/37351-face-recognition-software/content/fhmm1/testsys.m
This runs well and recognizes the faces correctly when tested with those stored in the database… but when tested with a new face image not stored in the database also it randomly says some other class it belongs to.. why???? The response should be FACE NOT FOUND!!!!!

Best Answer

This might be because the code must be finding the minimum distance between test images and images in database. And then outputting result according to the minimum distance found. It might have not been programmed for the kind of output u are expecting. Because for that, you have to specify some threshold value say, t. Then if Distance > t, it must output "Not Found" and if Distance < t, it must output the found image.