12

Similar to fingerprint authentication for apps, i am trying to implement face recognition authentication in one of my android app. Can anyone guide me on how to achieve the same using any library or anything.

Ahmed Nabil
  • 17,392
  • 11
  • 61
  • 88
imi
  • 259
  • 1
  • 3
  • 14

3 Answers3

5

Android’s Face Recognition (Software) is less safe than Apple Face ID (Hardware)
Because of

  • It doesn’t work in poor lighting conditions
  • It is possible to unlock a phone with a picture

So, it’s more a convenience as a feature than a security.

Ahmed Nabil
  • 17,392
  • 11
  • 61
  • 88
  • 2
    100% correct , beside , face recognition has already show field for to many raison , as twins case , pictures , present of galsses , etc i was working on an app for security with Oauth2 and fingerPrint + face recogniition , we drop the face side becouse is not a "big deal " in my vision , even the apple face ID is not working well that why you can focus on passwords ( tokens ) , + fingerprint( to 50% ) – MoxGeek Dec 18 '18 at 14:06
1

I think you should go for Android Face Detection API / Vision API

check for the documentation & tutorial

find the same on GitHub

There is also an library which I had heard about but I haven't tested it

You can have option for going with Firebase's new introduction: Firebase ML kit

Find documentation for ML kit > Face Recognition here

Deep Patel
  • 2,584
  • 2
  • 15
  • 28
  • 7
    Just a remark: Currently MLKit can **NOT** _recognize_ faces, it can only _detect_ them. That is not the same thing. If you want to add recognition on top of MLKit, I suggest using TensorFlow or similar. – thatbrainiac Dec 18 '18 at 13:33
0

If you really want to develop a real accurate Face authentication (such Apple's FaceID or Samsung's Face Recognition), try to find if you can access their API. If they don't open their API, you can't do it.

But, as starter, maybe you can use Azure's Facial Recognition. Read more

Or if you simply just want to detect faces, you can also use Firebase ML Kit. Read more

Yosi Pramajaya
  • 3,895
  • 2
  • 12
  • 34