Ask Your Question
0

PCA for authentication.

asked 2014-03-27 06:58:37 -0600

piyush gravatar image

Hello all, I have used PCA for recognition successfully. I was wondering if we can use it for Authentication. What I mean, I want to get a degree of match of the test sample with all the existing training classes. like 79% for class 0, 60 % for class 2. At present it give output as class that has highest match. I want to get matching percentage with all the training classes.

Thanks, -Piyush

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-03-27 11:05:14 -0600

You can get the confidence level for the predicted class:

Ptr<FaceRecognizer> model = createEigenFaceRecognizer(10,2000000000);
int predictedLabel = -1;
double confidence = 0.0;
model->predict(face, predictedLabel, confidence);
edit flag offensive delete link more

Comments

Have you understood the question ? I want the confidence of test image with all the training class.

piyush gravatar imagepiyush ( 2014-03-30 00:45:39 -0600 )edit

I don't think you can extract that without changing the face recognizer API. The confidence level is the closest thing you can extract.

GilLevi gravatar imageGilLevi ( 2014-03-30 09:27:18 -0600 )edit

We can tweak into the code, are all the codes available to us for changing, or incorporated inside object files .lib we use in windows. If you can guide on this.

piyush gravatar imagepiyush ( 2014-04-02 16:08:16 -0600 )edit

I'm sorry, but I'm not that familiar with the code. However, I would be glad to take a look and try to help you with that, but I'm afraid I would only get to it in a few days. You can mail me at [email protected] so we'll continue discussing there.

GilLevi gravatar imageGilLevi ( 2014-04-03 09:27:38 -0600 )edit

Question Tools

Stats

Asked: 2014-03-27 06:58:37 -0600

Seen: 225 times

Last updated: Mar 27 '14