Exemple #1
0
 /// <summary> 人脸比对结论 </summary>
 /// <param name="rf1">人脸特征码1</param>
 /// <param name="rf2">人脸特征码2</param>
 public static Single FaceResult(RrFeatureT rf1, RrFeatureT rf2)
 {
     try
     {
         byte[] byFp1 = StructToBytes(rf1);
         byte[] byFp2 = StructToBytes(rf2);
         return(FaceverifyDll.rr_fv_compare_features(byFp1, byFp2));
     }
     catch (Exception ex)
     {
         ex.ToSaveLog("FaceResult:");
     }
     return(0);
 }
 /// <summary>提取人像特征码 </summary>
 public RrFeatureT FaceTz()
 {
     try
     {
         var ft = new RrFeatureT();
         //var fp = new RrFacePrimaryT { rect = _rf.rect, landmarks = _rf.landmarks };
         //byte[] byFp = FaceFun.StructToBytes(fp);
         byte[] byFp = FaceFun.StructToBytes(_rf);
         VerifyIr = FaceverifyDll.rr_fv_extract_feature(_ip1, _itData, RrImageType.RR_IMAGE_BGR8UC3, _w, _h, byFp, ref ft);
         Rft      = ft;
         return(ft);
     }
     catch (Exception ex)
     {
         ex.ToSaveLog("FaceData.FaceTz:");
     }
     return(Rft);
 }
Exemple #3
0
 public static extern IntPtr rr_fv_extract_feature(IntPtr verifier_handle, IntPtr image_data, RrImageType image_type, int image_width, int image_height, byte[] face, ref RrFeatureT p_feature);