Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            FaceAi face = FaceAi.GetInstance();
            bool   b    = face.UserDelDemo(uid.Text);

            if (b)
            {
                MessageBox.Show("操作成功");
            }
            else
            {
                MessageBox.Show("操作失败");
            }
        }
Beispiel #2
0
        private void 提交_Click(object sender, EventArgs e)
        {
            MemoryStream ms = new MemoryStream();

            pictureBox1.Image.Save(ms, ImageFormat.Jpeg);

            FaceAi face = FaceAi.GetInstance();
            bool   b    = face.UserAddDemo(uid.Text, user_info.Text, ms.ToArray());

            if (b)
            {
                MessageBox.Show("操作成功");
            }
            else
            {
                MessageBox.Show("操作失败");
            }
        }