public void init(Context context, FaceSDK.RecognizeType type) { if (faceRecognize == null) { faceRecognize = new FaceRecognize(context); faceRecognize.InitModel(type); } }
public void initWithIdCardRecognizeModel(Context context, FaceSDK.RecognizeType type) { if (faceRecognize == null) { faceRecognize = new FaceRecognize(context); faceRecognize.InitModel(FaceSDK.RecognizeType.RecognizeIdPhoto); } }
public float getFaceFeatureDistance(byte[] firstFeature, byte[] secondFeature, FaceSDK.RecognizeType type) { return(faceRecognize.GetFaceSimilarity(firstFeature, secondFeature, type)); }