![]() | 1 | initial version |
predict() just returns the id, you trained it on, whatever that was.
the problem seems more, like you train it on a lot of images from a single person, and then try to distinguish another by the confidence. this simply won't work.
if your intent was, to use this as a authentification mechanism fro a single person, this also won't work, it's the wrong class for that. (you'd need more like a 2-class SVM, trained on person vs anyone-else)