I’m developing an Android application and need to group images that contain the same person’s face. I plan to use Google ML Kit for face detection and recognition, but I’m not sure how to implement the logic for comparing faces and grouping them.
Could someone explain the steps or logic required to achieve this with Google ML Kit? I don’t have any sample code yet, so a detailed explanation or any pointers would be really helpful.
Thanks in advance!
What did you try?
So far, I’ve integrated Google ML Kit into my Android project and successfully implemented face detection. However, I’m stuck on how to proceed with comparing detected faces to determine if they belong to the same person and then group them accordingly.
What were you expecting?
I was expecting to find a way to match detected faces and create a collation of images with the same person. Ideally, I’d like to understand the best approach to implement this logic using Google ML Kit, whether through face embeddings, feature extraction, or any other method that might be effective.
Sujal Lathiya is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.