| | |
| | | ModelAdapter dbPerson2 = BaseManager.findById("person", "p2"); |
| | | featureData2 = Base64.decode(dbPerson2.getString("camera_image_feature"), Base64.NO_WRAP); |
| | | float score = FaceId.instance.compareFeature(featureData1, featureData2); |
| | | System.out.println("testSdk=" + score); |
| | | System1.out.println("testSdk=" + score); |
| | | BaseApplication.getApplication().detectLock.unlock(); |
| | | } |
| | | |
| | |
| | | // 2 |
| | | public native String compareFeatureInDb(byte[] featureBuffer, int minScore); |
| | | |
| | | public native String compareFeatureInAllDb(byte[] featureBuffer, int minScore); |
| | | |
| | | // 1 3 |
| | | public native void addFeatureToDb(String id, byte[] featureBuffer); |
| | | |
| | | public native void addFeatureToAllDb(String id, byte[] featureBuffer); |
| | | |
| | | public native void removeFeatureFromDb(String id); |
| | | |
| | | public native void addFeatureToTempDb(String id, byte[] featureBuffer); |