如何验证没有重复的指纹

时间:2018-07-19 21:04:57

标签: java android fingerprint biometrics

我正在使用适用于android的集成生物识别sdk,并且我想验证指纹是否重复,我发现这些方法显然适用于该工作

  1. ibScanDevice.addFingerImage
  2. ibScanDevice.isFingerDuplicated
  3. ibScanDevice.isValidFingerGeometry

但是我无法使它们正常工作,第一种方法始终返回0,并且我必须返回1,表示该图像已成功保存,该人已经使用集成的生物特征sdk IBSCanUltimate

try {
  int x = ibScanDevice.addFingerImage(imageData1[0], IBScanDevice.IBSU_FINGER_RIGHT_INDEX, IBScanDevice.ImageType.FLAT_SINGLE_FINGER, false);
                                Log.d("bnx", "addfinger = " + x); 
                            } catch (IBScanException e1) {
                                e1.printStackTrace();
                            }



                         try {
                                ibScanDevice.isFingerDuplicated(imageData1[0], IBScanDevice.IBSU_FINGER_LEFT_LITTLE, IBScanDevice.ImageType.FLAT_SINGLE_FINGER, 2);
                            } catch (IBScanException e1) {
                                e1.printStackTrace();

                            }


                            boolean valid = ibScanDevice.isValidFingerGeometry(imageData1[0], IBScanDevice.IBSU_FINGER_LEFT_LITTLE, IBScanDevice.ImageType.FLAT_SINGLE_FINGER);

0 个答案:

没有答案