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.
Best Answer