6

I'm looking about implementing MLKit face recognition library in my Android App. The only thing that I can't understand is if it's possible and how can I compare two photos and detect if they are the same person. I've read these guides:

Thanks

Ben Weiss
  • 17,182
  • 6
  • 67
  • 87

2 Answers2

5

ML Kit detects face contours, but does not recognize faces. So it can't determine whether two detected faces are of the same person.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
  • Thanks, do you know any other libs that can help me with face comparison for Android? – Davide Bulbarelli Dec 17 '18 at 15:08
  • 1
    That's more a topic for a Google search than for a Stack Overflow question (where technology recommendations are off-topic). But when I did a quick search I found an interesting (if a bit old) [comparison between cloud based vision APIs](https://www.kairos.com/blog/face-recognition-kairos-vs-microsoft-vs-google-vs-amazon-vs-opencv). – Frank van Puffelen Dec 17 '18 at 15:40
2

MLKit is not able to, and this seems to be a feature that is many years away from MLKit. You'd have to use face recognition, and there are solution for on-device and in the cloud.

The best repo I found for on-device face recognition, primarily because it is unsupervised (it doesn't require users to have trained data (labels for each person to be detected)): https://github.com/njordsir/Clustering-faces-android

Ben Butterworth
  • 22,056
  • 10
  • 114
  • 167