Ask Your Question

Revision history [back]

How to find the top 'x' matches using the facial recognition algorithms

Hi,

I have an application that successfully finds and identifies faces in images. However, I need to change the application so that instead of it suggesting the most likely face (with associated confidence/distance), it instead provides the top 3 or 5 most likely faces with all their associated confidences. I then perform some other analytics to determine the best match.

I have not found any information in the opencv documentation on how to do this. I'm using an LBPH algorithm and using the "predict" method.

Can anyone provide any guidance on how I can have the algorithm produce the top 'x' matches?

Thanks