コード例 #1
0
ファイル: Face.cs プロジェクト: peapodss/DaySign
        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);
        }
コード例 #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);
        }
コード例 #3
0
        public bool CheckFace(Bitmap photo, out AFD_Face face)
        {
            bool ret = faceFD.CheckFace(photo, out face);

            return(ret);
        }