public AFR_FSDK_FACEMODEL deepCopy()
        {
            if (IntPtr.Zero == pbFeature)
            {
                throw new Exception("invalid feature");
            }

            AFR_FSDK_FACEMODEL feature = new AFR_FSDK_FACEMODEL();

            feature.lFeatureSize = lFeatureSize;
            feature.pbFeature    = Marshal.AllocCoTaskMem(feature.lFeatureSize);
            CLibrary.memcpy(feature.pbFeature, pbFeature, feature.lFeatureSize);
            return(feature);
        }
Example #2
0
        public AFR_FSDK_FACEMODEL deepCopy()
        {
            if (IntPtr.Zero == pbFeature)
            {
                throw new Exception("invalid feature");
            }

            AFR_FSDK_FACEMODEL feature = new AFR_FSDK_FACEMODEL();

            feature.lFeatureSize = lFeatureSize;
            feature.pbFeature    = Marshal.AllocCoTaskMem(feature.lFeatureSize);
            byte[] tmp_pFeature = new byte[feature.lFeatureSize];
            Marshal.Copy(pbFeature, tmp_pFeature, 0, feature.lFeatureSize);
            Marshal.Copy(tmp_pFeature, 0, feature.pbFeature, feature.lFeatureSize);
            return(feature);
        }
 public static extern IntPtr AFR_FSDK_FacePairMatching(
     IntPtr hEngine,
     ref AFR_FSDK_FACEMODEL reffeature,
     ref AFR_FSDK_FACEMODEL probefeature,
     ref float pfSimilScore
     );
 public static extern IntPtr AFR_FSDK_ExtractFRFeature(
     IntPtr hEngine,
     ref ASVLOFFSCREEN pImgData,
     ref AFR_FSDK_FACEINPUT pFaceRes,
     ref AFR_FSDK_FACEMODEL pFaceModels
     );