4

I used fingerprint authentication using Biometric api and its working.I need to do the same for face recognition ,like for a login button click instead of password i'll be using face authentication .

So is it possible with Biometric api or I have to use Open cv?

Luther
  • 573
  • 1
  • 6
  • 16

2 Answers2

10

You can authenticate all form factors (i.e. face, iris, fingerprint, etc.) using the AndroidX Biometric library as explained in this blog post and this blog post. Essentially, your app is not responsible for targeting specific form-factors. The library does the work for you. If a device supports facial biometrics, then your user will see a prompt for facial authentication; if your device supports fingerprint biometrics, then your user will see a prompt for fingerprint authentication; and so on.

Isai Damier
  • 976
  • 6
  • 8
  • Your blog was way more helpful. – Luther Jan 14 '20 at 06:59
  • 2
    and what is the case when device support both fingerprint and face unlock? In my device fingerprint and face unlock both available but everytime it opens fingerprint popup and when I delete all the fingerprint it show not fingerprint enrolled error. Can you help?? – Alok Singh May 12 '20 at 07:48
  • 1
    @AlokSingh As far as I know: Biometric auth can be 'weak' or 'strong'. Only strong will be used. The App can not change this. So when Finger is strong and Face is weak only Finger is available. It seems that this will be changed in Android 11 (https://www.biometricupdate.com/202003/biometric-features-in-android-11-give-developers-more-authentication-security-options). Maybe two more links to this topis: https://source.android.com/compatibility/android-cdd#7_3_10_biometric_sensors and https://medium.com/androiddevelopers/migrating-from-fingerprintmanager-to-biometricprompt-4bc5f570dccd – Sebastian Jul 07 '20 at 08:48
  • Am I right that face unlock available only for devices with special hardware camera, like Pixel4? – Konstantin Konopko Dec 15 '20 at 15:44
  • Also, what is your suggestion about fingerprint login to an app for multiple users? Is it possible, or user must be logged in to the OS first? – Konstantin Konopko Dec 15 '20 at 15:47
  • If both(like finger print and face)will support on the device then how to opt for one of those., am always getting fingerprint not face ., if i remove fingerprint on the device then only it is asking for Face recognition. – Harish Feb 23 '21 at 14:13
-1

BOTH BIOMETRIC SAFE PARAMETERS ARE:

  1. FACE
  2. FINGERPRINT
  3. FINGERPRINT READER FOR LIFE SIGN DIRECTLY IN SYNCH WITH ALL PARAMETERS.
  4. FAIL PROOF:ADDED VERBAL COMM. TO AUTHORIZE THE AUTHENTICATION