Beispiel #1
0
        public bool CheckFace(Bitmap bitmap, out AFD_Face face)
        {
            bool ret = CheckFace(bitmap, out AFD_FSDK_FACERES faceRes, out IntPtr offInputPtr, out IntPtr imageDataPtr);

            face = faceRes.DeIntPtr();
            return(ret);
        }
Beispiel #2
0
        public bool CheckFace(PictureBox pictureBox, out AFD_Face face)
        {
            face = new AFD_Face();
            if (!CheckImage(pictureBox))
            {
                return(false);
            }

            Bitmap bitmap = new Bitmap(pictureBox.Image);
            bool   ret    = faceFD.CheckFace(bitmap, out face);

            pictureBox.Image.Dispose();
            pictureBox.Image = bitmap;
            return(ret);
        }
Beispiel #3
0
        public bool CheckFace(Bitmap photo, out AFD_Face face)
        {
            bool ret = faceFD.CheckFace(photo, out face);

            return(ret);
        }