• 大小: 5.82MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-09-28
  • 语言: C#
  • 标签: 人脸识别  seataface  

资源简介

由于文件太大传不了,MODEL文件夹下缺失seeta_fr_v1.0.bin文件,请百度下载. 代码可以编译通过。

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;

namespace SeataFaceDemo
{
    public partial class Form1 : Form
    {
        [DllImport(“SeataFaceLibrary.dll“ CallingConvention = CallingConvention.Winapi)]
        private static extern int VerifyEx(string imageFile1 string imageFile2);

        string imageFile1 = string.Empty;
        string imageFile2 = string.Empty;

        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                imageFile1 = openFileDialog1.FileName;
                pictureBox1.ImageLocation = imageFile1;
            }
        }

        private void button2_Click(object sender EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                imageFile2 = openFileDialog1.FileName;
                pictureBox2.ImageLocation = imageFile2;
            }
        }

        private void button3_Click(object sender EventArgs e)
        {
            if (!string.IsNullOrEmpty(imageFile1) && !string.IsNullOrEmpty(imageFile2))
            {
                DateTime start = DateTime.Now;
                int score = VerifyEx(imageFile1 imageFile2);
                double TotalMilliseconds = DateTime.Now.Subtract(start).TotalMilliseconds;
                label1.Text = DateTime.Now.ToString(“yyyy/MM/dd HH:mm:ss“) + “人脸相似度比分:“ + score + “  用时(毫秒):“ + TotalMilliseconds;
                Random rad = new Random();
                label1.BackColor = Color.FromArgb(rad.Next(1 255) rad.Next(1 255) rad.Next(1 255));
            }
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      53248  2017-10-18 17:51  SeataFaceDemo\SeataFaceDemo\bin\Debug\FaceAlignment.dll

     文件     457728  2017-10-18 17:50  SeataFaceDemo\SeataFaceDemo\bin\Debug\FaceDetection.dll

     文件     467456  2017-10-18 17:49  SeataFaceDemo\SeataFaceDemo\bin\Debug\Identificationd.dll

     文件    2083352  2017-10-11 10:28  SeataFaceDemo\SeataFaceDemo\bin\Debug\model\seeta_fa_v1.0.bin

     文件    1209904  2017-10-11 10:27  SeataFaceDemo\SeataFaceDemo\bin\Debug\model\seeta_fd_frontal_v1.0.bin

     文件     631616  2010-09-06 13:24  SeataFaceDemo\SeataFaceDemo\bin\Debug\msvcp100d.dll

     文件    1467200  2010-09-06 13:22  SeataFaceDemo\SeataFaceDemo\bin\Debug\msvcr100d.dll

     文件    3475456  2014-10-01 17:16  SeataFaceDemo\SeataFaceDemo\bin\Debug\opencv_core2410d.dll

     文件    3593216  2014-10-01 17:16  SeataFaceDemo\SeataFaceDemo\bin\Debug\opencv_highgui2410d.dll

     文件    3141632  2014-10-01 17:16  SeataFaceDemo\SeataFaceDemo\bin\Debug\opencv_imgproc2410d.dll

     文件    1152512  2014-10-01 17:17  SeataFaceDemo\SeataFaceDemo\bin\Debug\opencv_nonfree2410d.dll

     文件    1529856  2014-10-01 17:17  SeataFaceDemo\SeataFaceDemo\bin\Debug\opencv_objdetect2410d.dll

     文件      12288  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\bin\Debug\SeataFaceDemo.exe

     文件      26112  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\bin\Debug\SeataFaceDemo.pdb

     文件      11608  2017-10-20 16:20  SeataFaceDemo\SeataFaceDemo\bin\Debug\SeataFaceDemo.vshost.exe

     文件        490  2010-03-17 22:39  SeataFaceDemo\SeataFaceDemo\bin\Debug\SeataFaceDemo.vshost.exe.manifest

     文件     168960  2017-10-20 16:19  SeataFaceDemo\SeataFaceDemo\bin\Debug\SeataFaceLibrary.dll

     文件       1997  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\Form1.cs

     文件      10177  2017-10-20 16:24  SeataFaceDemo\SeataFaceDemo\Form1.Designer.cs

     文件       6020  2017-10-20 16:24  SeataFaceDemo\SeataFaceDemo\Form1.resx

     文件        789  2017-10-20 16:20  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       5316  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        561  2017-10-20 16:23  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\SeataFaceDemo.csproj.FileListAbsolute.txt

     文件        847  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\SeataFaceDemo.csproj.GenerateResource.Cache

     文件      12288  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\SeataFaceDemo.exe

     文件        180  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\SeataFaceDemo.Form1.resources

     文件      26112  2017-10-20 16:27  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\SeataFaceDemo.pdb

     文件        180  2017-10-20 16:23  SeataFaceDemo\SeataFaceDemo\obj\x86\Debug\SeataFaceDemo.Properties.Resources.resources

     文件        474  2017-10-20 16:20  SeataFaceDemo\SeataFaceDemo\Program.cs

     文件       1376  2017-10-20 16:20  SeataFaceDemo\SeataFaceDemo\Properties\AssemblyInfo.cs

............此处省略20个文件信息

评论

共有 条评论