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