Example #1
0
        public byte[] GetFaceTemplate()
        {
            byte[] retValue;
            if (FacePosition == null)
            {
                FSDK.GetFaceTemplate(ImageHandle, out retValue);
            }
            else if (Features?.Length == FSDK.FSDK_FACIAL_FEATURE_COUNT)
            {
                FSDK.GetFaceTemplateUsingFeatures(ImageHandle, ref Features, out retValue);
            }
            else
            {
                FSDK.GetFaceTemplateInRegion(ImageHandle, ref FacePosition, out retValue);
            }

            return(retValue);
        }