資源簡介
由于文件太大傳不了,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個文件信息
- 上一篇:C# 雙緩沖區實現解決屏幕閃爍問題
- 下一篇:C#訪問sqlite并分頁顯示源碼
評論
共有 條評論