├── Com.Facecore.platform.Common
├── Com.Facecore.platform.Common.csproj
├── Common.cs
├── FormMove.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ ├── Debug
│ │ ├── Com.Facecore.platform.Common.dll
│ │ └── Com.Facecore.platform.Common.pdb
│ └── Release
│ │ ├── Com.Facecore.platform.Common.dll
│ │ └── Com.Facecore.platform.Common.pdb
└── obj
│ ├── Debug
│ ├── Com.Facecore.platform.Common.csproj.FileListAbsolute.txt
│ ├── Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
│ ├── Com.Facecore.platform.Common.dll
│ ├── Com.Facecore.platform.Common.pdb
│ └── DesignTimeResolveAssemblyReferencesInput.cache
│ └── Release
│ ├── Com.Facecore.platform.Common.csproj.FileListAbsolute.txt
│ ├── Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
│ ├── Com.Facecore.platform.Common.dll
│ ├── Com.Facecore.platform.Common.pdb
│ └── DesignTimeResolveAssemblyReferencesInput.cache
├── Com.Facecore.platform.sln
├── Com.Facecore.platform
├── Com.Facecore.platform.csproj
├── ConstUrl.cs
├── FaceClient.cs
├── FaceHttp.cs
├── ImageHelper.cs
├── Properties
│ └── AssemblyInfo.cs
├── bin
│ └── Debug
│ │ ├── Com.Facecore.platform.dll
│ │ ├── Com.Facecore.platform.pdb
│ │ ├── FaceCore.OpenPlatform.DTO.dll
│ │ ├── Newtonsoft.Json.dll
│ │ └── Newtonsoft.Json.xml
└── obj
│ ├── Debug
│ ├── Com.Facecore.platform.csproj.FileListAbsolute.txt
│ ├── Com.Facecore.platform.csprojResolveAssemblyReference.cache
│ ├── Com.Facecore.platform.dll
│ ├── Com.Facecore.platform.pdb
│ └── DesignTimeResolveAssemblyReferencesInput.cache
│ └── Release
│ ├── Com.Facecore.platform.csproj.FileListAbsolute.txt
│ ├── Com.Facecore.platform.csprojResolveAssemblyReference.cache
│ ├── DesignTimeResolveAssemblyReferencesInput.cache
│ └── build.force
├── Dllimport
├── AForge.Video.DirectShow.dll
├── AForge.Video.DirectShow.xml
├── AForge.Video.dll
├── AForge.Video.xml
├── AForge.dll
├── AForge.xml
└── FaceCore.OpenPlatform.DTO.dll
├── README.md
└── faceView
├── Download.cs
├── Form1.Designer.cs
├── Form1.cs
├── Form1.resx
├── Images
├── button
│ ├── 下拉箭头.png
│ ├── 关闭-点击.png
│ ├── 关闭.png
│ ├── 加载-人脸检测.png
│ ├── 加载-点击-人脸检测.png
│ ├── 加载摄像头-点击.png
│ ├── 加载摄像头.png
│ ├── 加载框-人脸检测.png
│ ├── 加载选框-动态人脸比对.png
│ ├── 开始比对-人脸比对认证.png
│ ├── 开始比对-动态人脸比对.png
│ ├── 开始比对-点击-人脸比对认证.png
│ ├── 开始比对-点击-动态人脸比对.png
│ ├── 拍照-动态人脸比对.png
│ ├── 拍照-点击-动态人脸比对.png
│ ├── 选择图片-点击.png
│ ├── 选择图片.png
│ ├── 选择照片-人脸比对认证.png
│ ├── 选择照片-动态人脸比对.png
│ ├── 选择照片-点击-人脸比对认证.png
│ └── 选择照片-点击-动态人脸比对.png
├── dfacecheck.png
├── dfacecheck_click.png
├── dfacecom.png
├── dfacecom_click.png
├── facecheck.png
├── facecheck_click.png
├── facecom.png
├── facecom_click.png
├── logo-facecore.png
├── offlinehigh.png
└── offlinehigh_click.png
├── Program.cs
├── Properties
├── AssemblyInfo.cs
├── Resources.Designer.cs
├── Resources.resx
├── Settings.Designer.cs
└── Settings.settings
├── UcControl
├── Common.cs
├── UcCompar.Designer.cs
├── UcCompar.cs
├── UcCompar.resx
├── UcDynamic.Designer.cs
├── UcDynamic.cs
├── UcDynamic.resx
├── UcDynamicCom.Designer.cs
├── UcDynamicCom.cs
├── UcDynamicCom.resx
├── UcFaceCheck.Designer.cs
├── UcFaceCheck.cs
├── UcFaceCheck.resx
├── UcIndex.Designer.cs
├── UcIndex.cs
└── UcIndex.resx
├── UcMenuItem.Designer.cs
├── UcMenuItem.cs
├── UcMenuItem.resx
├── bin
└── Debug
│ ├── AForge.Video.DirectShow.dll
│ ├── AForge.Video.DirectShow.xml
│ ├── AForge.Video.dll
│ ├── AForge.Video.xml
│ ├── AForge.dll
│ ├── AForge.xml
│ ├── AxInterop.WMPLib.dll
│ ├── Com.Facecore.platform.Common.dll
│ ├── Com.Facecore.platform.Common.pdb
│ ├── Com.Facecore.platform.dll
│ ├── Com.Facecore.platform.pdb
│ ├── FaceCore.OpenPlatform.DTO.dll
│ ├── Images
│ ├── button
│ │ ├── 下拉箭头.png
│ │ ├── 关闭-点击.png
│ │ ├── 关闭.png
│ │ ├── 加载-人脸检测.png
│ │ ├── 加载-点击-人脸检测.png
│ │ ├── 加载摄像头-点击.png
│ │ ├── 加载摄像头.png
│ │ ├── 加载框-人脸检测.png
│ │ ├── 加载选框-动态人脸比对.png
│ │ ├── 开始比对-人脸比对认证.png
│ │ ├── 开始比对-动态人脸比对.png
│ │ ├── 开始比对-点击-人脸比对认证.png
│ │ ├── 开始比对-点击-动态人脸比对.png
│ │ ├── 拍照-动态人脸比对.png
│ │ ├── 拍照-点击-动态人脸比对.png
│ │ ├── 选择图片-点击.png
│ │ ├── 选择图片.png
│ │ ├── 选择照片-人脸比对认证.png
│ │ ├── 选择照片-动态人脸比对.png
│ │ ├── 选择照片-点击-人脸比对认证.png
│ │ └── 选择照片-点击-动态人脸比对.png
│ ├── dfacecheck.png
│ ├── dfacecheck_click.png
│ ├── dfacecom.png
│ ├── dfacecom_click.png
│ ├── facecheck.png
│ ├── facecheck_click.png
│ ├── facecom.png
│ ├── facecom_click.png
│ ├── offlinehigh.png
│ └── offlinehigh_click.png
│ ├── Interop.WMPLib.dll
│ ├── Newtonsoft.Json.dll
│ ├── Newtonsoft.Json.xml
│ ├── faceView.exe
│ ├── faceView.pdb
│ ├── faceView.vshost.exe
│ └── faceView.vshost.exe.manifest
├── faceView.csproj
└── obj
├── Debug
├── AxInterop.WMPLib.dll
├── DesignTimeResolveAssemblyReferences.cache
├── DesignTimeResolveAssemblyReferencesInput.cache
├── Interop.WMPLib.dll
├── faceView.Form1.resources
├── faceView.Properties.Resources.resources
├── faceView.UcControl.UcCompar.resources
├── faceView.UcControl.UcDynamic.resources
├── faceView.UcControl.UcDynamicCom.resources
├── faceView.UcControl.UcFaceCheck.resources
├── faceView.UcControl.UcIndex.resources
├── faceView.UcMenuItem.resources
├── faceView.csproj.FileListAbsolute.txt
├── faceView.csproj.GenerateResource.Cache
├── faceView.csproj.ResolveComReference.cache
├── faceView.csprojResolveAssemblyReference.cache
├── faceView.exe
└── faceView.pdb
└── Release
├── AxInterop.WMPLib.dll
├── DesignTimeResolveAssemblyReferencesInput.cache
├── Interop.WMPLib.dll
├── build.force
├── faceView.Form1.resources
├── faceView.Properties.Resources.resources
├── faceView.UcControl.UcCompar.resources
├── faceView.UcControl.UcDynamic.resources
├── faceView.UcControl.UcDynamicCom.resources
├── faceView.UcControl.UcFaceCheck.resources
├── faceView.UcControl.UcIndex.resources
├── faceView.UcControl.UcVideo.resources
├── faceView.UcMenuItem.resources
├── faceView.csproj.FileListAbsolute.txt
├── faceView.csproj.GenerateResource.Cache
├── faceView.csproj.ResolveComReference.cache
└── faceView.csprojResolveAssemblyReference.cache
/Com.Facecore.platform.Common/Com.Facecore.platform.Common.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {3FEF20C0-BE81-4B5B-A5F4-F8D46CD92510}
8 | Library
9 | Properties
10 | Com.Facecore.platform.Common
11 | Com.Facecore.platform.Common
12 | v4.0
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 | x86
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
57 |
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/Common.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.IO;
5 | using System.Linq;
6 | using System.Text;
7 |
8 | namespace Com.Facecore.platform.Common
9 | {
10 | ///
11 | /// 公用方法类
12 | ///
13 | public class Common
14 | {
15 | ///
16 | /// 将指定位置矩形框绘制在图片上
17 | ///
18 | ///
19 | ///
20 | ///
21 | ///
22 | ///
23 | ///
24 | public static Image DrawImage(Image bitmap, int x, int y, int with, int height)
25 | {
26 | using (Graphics g = Graphics.FromImage(bitmap))
27 | {
28 | var rectangle = new Rectangle(x, y, with, height);
29 | g.DrawRectangle(new Pen(Color.Red, 2), rectangle);
30 | }
31 | return bitmap;
32 | }
33 | public static Image DrawImage(Image bitmap, Rectangle rect)
34 | {
35 | using (Graphics g = Graphics.FromImage(bitmap))
36 | {
37 | var rectangle = rect;
38 | g.DrawRectangle(new Pen(Color.Red, 2), rectangle);
39 | }
40 | return bitmap;
41 | }
42 |
43 | public static Image DrawImage(Image bitmap, int x, int y, int with, int height, string strPrintInfo)
44 | {
45 | using (Graphics g = Graphics.FromImage(bitmap))
46 | {
47 | var rectangle = new Rectangle(x, y, with, height);
48 | g.DrawRectangle(new Pen(Color.Red, 2), rectangle);
49 | Font f = new Font("宋体", 20, FontStyle.Bold, GraphicsUnit.Point);
50 | g.DrawString(strPrintInfo, f, Brushes.Green, new PointF(5, 5));
51 | }
52 | return bitmap;
53 | }
54 | public static Image DrawImage(Image bitmap, Rectangle rect, string strPrintInfo)
55 | {
56 | using (Graphics g = Graphics.FromImage(bitmap))
57 | {
58 | var rectangle = rect;
59 | g.DrawRectangle(new Pen(Color.Red, 2), rectangle);
60 | Font f = new Font("宋体", 20, FontStyle.Bold, GraphicsUnit.Point);
61 | g.DrawString(strPrintInfo, f, Brushes.Green, new PointF(5, 5));
62 | }
63 | return bitmap;
64 | }
65 | ///
66 | /// 文件转换为BYTE
67 | ///
68 | ///
69 | ///
70 | public static byte[] GetFilebyte(string filename)
71 | {
72 | if (File.Exists(filename))
73 | {
74 | FileStream stream = new FileStream(filename, FileMode.Open);
75 | byte[] bts = new byte[stream.Length];
76 | stream.Read(bts, 0, bts.Length);
77 | stream.Close();
78 | stream.Dispose();
79 | return bts;
80 | }
81 | return null;
82 | }
83 | public static byte[] GetFilebyte(Image img)
84 | {
85 | MemoryStream stream = new MemoryStream();
86 | img.Save(stream, System.Drawing.Imaging.ImageFormat.Bmp);
87 | return stream.ToArray();
88 | }
89 | public static byte[] GetFilebyte(Image img, System.Drawing.Imaging.ImageFormat format)
90 | {
91 | MemoryStream stream = new MemoryStream();
92 | img.Save(stream, format);
93 | return stream.ToArray();
94 | }
95 | public static Image ConvertImage(string filename)
96 | {
97 | byte[] bts = GetFilebyte(filename);
98 | if (bts == null)
99 | return null;
100 | return Image.FromStream(new MemoryStream(bts));
101 | }
102 | }
103 | }
104 |
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/FormMove.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.Linq;
5 | using System.Text;
6 | using System.Windows.Forms;
7 |
8 | namespace Com.Facecore.platform.Common
9 | {
10 | public class FormMove
11 | {
12 | //mouse point
13 | private int mouseX = 0;
14 | private int mouseY = 0;
15 | private Form form = null;
16 | ///
17 | /// 控件必须包含在form内,该方法才
18 | ///
19 | /// 触发事件的控件
20 | public void AddMoveForm(Control c)
21 | {
22 | form = c.FindForm();
23 |
24 | AddMoveForm(c, form);
25 | }
26 | private Form GetForm(Control c)
27 | {
28 | if (c.Parent == null)
29 | return null;
30 | if (c.Parent.GetType() == typeof(Form))
31 | return (Form)c.Parent;
32 | else
33 | return GetForm(c.Parent);
34 | }
35 | ///
36 | ///
37 | ///
38 | /// 触发事件的控件
39 | /// 窗体
40 | public void AddMoveForm(Control c, Form f)
41 | {
42 | if (f == null || c == null)
43 | return;
44 | form = f;
45 | c.MouseDown += f_MouseDown;
46 | c.MouseMove += f_MouseMove;
47 | }
48 |
49 | void f_MouseMove(object sender, MouseEventArgs e)
50 | {
51 | if (e.Button == MouseButtons.Left)
52 | {
53 | form.Location = new Point(Control.MousePosition.X - mouseX, Control.MousePosition.Y - mouseY);
54 | }
55 | }
56 |
57 | void f_MouseDown(object sender, MouseEventArgs e)
58 | {
59 | mouseX = e.X;
60 | mouseY = e.Y;
61 | }
62 | }
63 | }
64 |
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Com.Facecore.platform.Common")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Com.Facecore.platform.Common")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("1b8a09cb-a1e3-443c-ad33-77c770585a4b")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/bin/Debug/Com.Facecore.platform.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/bin/Debug/Com.Facecore.platform.Common.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/bin/Debug/Com.Facecore.platform.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/bin/Debug/Com.Facecore.platform.Common.pdb
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/bin/Release/Com.Facecore.platform.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/bin/Release/Com.Facecore.platform.Common.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/bin/Release/Com.Facecore.platform.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/bin/Release/Com.Facecore.platform.Common.pdb
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform.Common\bin\Debug\Com.Facecore.platform.Common.dll
2 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform.Common\bin\Debug\Com.Facecore.platform.Common.pdb
3 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Debug\Com.Facecore.platform.Common.dll
4 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Debug\Com.Facecore.platform.Common.pdb
5 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Debug\Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
6 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\bin\Debug\Com.Facecore.platform.Common.dll
7 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\bin\Debug\Com.Facecore.platform.Common.pdb
8 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Debug\Com.Facecore.platform.Common.dll
9 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Debug\Com.Facecore.platform.Common.pdb
10 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Debug\Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
11 |
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Debug/Com.Facecore.platform.Common.pdb
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\bin\Release\Com.Facecore.platform.Common.dll
2 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\bin\Release\Com.Facecore.platform.Common.pdb
3 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Release\Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
4 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Release\Com.Facecore.platform.Common.dll
5 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform.Common\obj\Release\Com.Facecore.platform.Common.pdb
6 |
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Release/Com.Facecore.platform.Common.pdb
--------------------------------------------------------------------------------
/Com.Facecore.platform.Common/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform.Common/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio 2013
4 | VisualStudioVersion = 12.0.21005.1
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Facecore.platform", "Com.Facecore.platform\Com.Facecore.platform.csproj", "{BF6B37F3-C2DA-4F78-98A7-C3383D6C93B0}"
7 | EndProject
8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "faceView", "faceView\faceView.csproj", "{BCEA3C32-DD73-4DEE-ABD3-86CC1DF8A2FB}"
9 | EndProject
10 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Com.Facecore.platform.Common", "Com.Facecore.platform.Common\Com.Facecore.platform.Common.csproj", "{3FEF20C0-BE81-4B5B-A5F4-F8D46CD92510}"
11 | EndProject
12 | Global
13 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
14 | Debug|Any CPU = Debug|Any CPU
15 | Release|Any CPU = Release|Any CPU
16 | EndGlobalSection
17 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
18 | {BF6B37F3-C2DA-4F78-98A7-C3383D6C93B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19 | {BF6B37F3-C2DA-4F78-98A7-C3383D6C93B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
20 | {BF6B37F3-C2DA-4F78-98A7-C3383D6C93B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
21 | {BF6B37F3-C2DA-4F78-98A7-C3383D6C93B0}.Release|Any CPU.Build.0 = Release|Any CPU
22 | {BCEA3C32-DD73-4DEE-ABD3-86CC1DF8A2FB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23 | {BCEA3C32-DD73-4DEE-ABD3-86CC1DF8A2FB}.Debug|Any CPU.Build.0 = Debug|Any CPU
24 | {BCEA3C32-DD73-4DEE-ABD3-86CC1DF8A2FB}.Release|Any CPU.ActiveCfg = Release|Any CPU
25 | {BCEA3C32-DD73-4DEE-ABD3-86CC1DF8A2FB}.Release|Any CPU.Build.0 = Release|Any CPU
26 | {3FEF20C0-BE81-4B5B-A5F4-F8D46CD92510}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27 | {3FEF20C0-BE81-4B5B-A5F4-F8D46CD92510}.Debug|Any CPU.Build.0 = Debug|Any CPU
28 | {3FEF20C0-BE81-4B5B-A5F4-F8D46CD92510}.Release|Any CPU.ActiveCfg = Release|Any CPU
29 | {3FEF20C0-BE81-4B5B-A5F4-F8D46CD92510}.Release|Any CPU.Build.0 = Release|Any CPU
30 | EndGlobalSection
31 | GlobalSection(SolutionProperties) = preSolution
32 | HideSolutionNode = FALSE
33 | EndGlobalSection
34 | GlobalSection(SubversionScc) = preSolution
35 | Svn-Managed = True
36 | Manager = AnkhSVN - Subversion Support for Visual Studio
37 | EndGlobalSection
38 | EndGlobal
39 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/Com.Facecore.platform.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Debug
6 | AnyCPU
7 | {BF6B37F3-C2DA-4F78-98A7-C3383D6C93B0}
8 | Library
9 | Properties
10 | Com.Facecore.platform
11 | Com.Facecore.platform
12 | v4.0
13 | 512
14 |
15 |
16 | true
17 | full
18 | false
19 | bin\Debug\
20 | DEBUG;TRACE
21 | prompt
22 | 4
23 | x86
24 |
25 |
26 | pdbonly
27 | true
28 | bin\Release\
29 | TRACE
30 | prompt
31 | 4
32 |
33 |
34 |
35 | False
36 | ..\..\..\cfsProject\FaceCore.OpenPlatform.DTO.dll
37 |
38 |
39 | False
40 | ..\..\FaceCore.OpenPlatform.DTO\bin\Debug\Newtonsoft.Json.dll
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 |
66 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/ConstUrl.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace Com.Facecore.platform
7 | {
8 | public class ConstUrl
9 | {
10 | public static string URL_CN = "http://api.facecore.cn";
11 | //public static string URL_CN = "http://localhost:8011";
12 | //public static string URL_CN = "http://localhost:8080";
13 |
14 |
15 | ///
16 | /// 特征值检测URL
17 | ///
18 | public static string FaceDeteiveResouse = "/api/facedetect";
19 |
20 | ///
21 | /// 人脸相似度比对URL
22 | ///
23 | public static string FaceCompareResouse = "/api/facecompare";
24 |
25 | ///
26 | /// 特征值检测WebURL
27 | ///
28 | public static string UrlFaceDetect = "/api/urlfacedetect";
29 | ///
30 | /// 添加人脸信息
31 | ///
32 | public static string AddPersonFace = "/api/personface";
33 | ///
34 | /// 特征值检测(加年龄性别)
35 | ///
36 | public static string FaceDeteiveAgeAndSexResouse = "/api/facedetectageandsex";
37 |
38 | }
39 | }
--------------------------------------------------------------------------------
/Com.Facecore.platform/FaceClient.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Drawing;
6 | using System.IO;
7 | using System.Runtime.Serialization.Formatters.Binary;
8 | using FaceCore.OpenPlatform.DTO;
9 |
10 | namespace Com.Facecore.platform
11 | {
12 | public class FaceClient
13 | {
14 | private string faceKey = string.Empty;
15 | private string faceUrlbase = string.Empty;
16 | public FaceClient(string key)
17 | {
18 | faceKey = key;
19 | }
20 |
21 | #region 特征值检测
22 | ///
23 | /// 特征值检测
24 | ///
25 | /// 文件地址
26 | ///
27 | public FaceDetectResponse FaceDetect(string filePath)
28 | {
29 | if (string.IsNullOrEmpty(filePath))//空
30 | return null;
31 | if (!File.Exists(Path.GetFullPath(filePath))) //文件不存在
32 | return null;
33 | FileStream fs = new FileStream(Path.GetFullPath(filePath), FileMode.Open);
34 | byte[] bs = new byte[fs.Length];
35 | fs.Read(bs, 0, bs.Length);
36 | fs.Close();
37 | fs.Dispose();
38 | return FaceDetect(bs);
39 | }
40 | ///
41 | /// 特征值检测
42 | ///
43 | /// 包含人脸的Image对象
44 | ///
45 | public FaceDetectResponse FaceDetect(Image img)
46 | {
47 | if (img == null)
48 | return null;
49 | var newImage = new Bitmap(img);
50 | MemoryStream ms = new MemoryStream();
51 | newImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
52 | newImage.Dispose();
53 |
54 | return FaceDetect(ms.ToArray());
55 |
56 | }
57 | ///
58 | /// 特征值检测
59 | ///
60 | /// 图片对象的byte数组
61 | ///
62 | public FaceDetectResponse FaceDetect(byte[] bts)
63 | {
64 | FaceHttp http = new FaceHttp();
65 | string image = Convert.ToBase64String(bts);
66 | //http.HttpPost("", "");
67 | FaceDetectRequest request = new FaceDetectRequest() { faceimage = image };
68 | string url = ConstUrl.URL_CN + ConstUrl.FaceDeteiveResouse + "?appkey=" + faceKey;
69 | var value = http.HttpPost(url, Newtonsoft.Json.JsonConvert.SerializeObject(request));
70 | return Newtonsoft.Json.JsonConvert.DeserializeObject(value);
71 | }
72 | #endregion
73 |
74 | #region 特征值检测包含年龄性别
75 | ///
76 | /// 特征值检测
77 | ///
78 | /// 文件地址
79 | ///
80 | public FaceDetectResponse FaceDetectAgeAndSex(string filePath)
81 | {
82 | if (string.IsNullOrEmpty(filePath))//空
83 | return null;
84 | if (!File.Exists(Path.GetFullPath(filePath))) //文件不存在
85 | return null;
86 | FileStream fs = new FileStream(Path.GetFullPath(filePath), FileMode.Open);
87 | byte[] bs = new byte[fs.Length];
88 | fs.Read(bs, 0, bs.Length);
89 | fs.Close();
90 | fs.Dispose();
91 | return FaceDetectAgeAndSex(bs);
92 | }
93 | ///
94 | /// 特征值检测
95 | ///
96 | /// 包含人脸的Image对象
97 | ///
98 | public FaceDetectResponse FaceDetectAgeAndSex(Image img)
99 | {
100 | if (img == null)
101 | return null;
102 | var newImage = new Bitmap(img);
103 | MemoryStream ms = new MemoryStream();
104 | newImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
105 | newImage.Dispose();
106 |
107 | return FaceDetectAgeAndSex(ms.ToArray());
108 |
109 | }
110 | ///
111 | /// 特征值检测
112 | ///
113 | /// 图片对象的byte数组
114 | ///
115 | public FaceDetectResponse FaceDetectAgeAndSex(byte[] bts)
116 | {
117 | FaceHttp http = new FaceHttp();
118 | string image = Convert.ToBase64String(bts);
119 | //http.HttpPost("", "");
120 | FaceDetectRequest request = new FaceDetectRequest() { faceimage = image };
121 | string url = ConstUrl.URL_CN + ConstUrl.FaceDeteiveAgeAndSexResouse + "?appkey=" + faceKey;
122 | var value = http.HttpPost(url, Newtonsoft.Json.JsonConvert.SerializeObject(request));
123 | return Newtonsoft.Json.JsonConvert.DeserializeObject(value);
124 | }
125 | #endregion
126 |
127 | #region 特征值比较
128 | ///
129 | /// 特征值比较
130 | ///
131 | /// 特征值返回串
132 | /// 特征值返回串
133 | public FaceCompareResponse FaceContrast(string facetrue1, string facetrue2)
134 | {
135 | FaceCompareRequest request = new FaceCompareRequest();
136 | request.facefeature1 = facetrue1;
137 | request.facefeature2 = facetrue2;
138 | string url = ConstUrl.URL_CN + ConstUrl.FaceCompareResouse + "?appkey=" + faceKey;
139 | FaceHttp http = new FaceHttp();
140 | return Newtonsoft.Json.JsonConvert.DeserializeObject(http.HttpPost(url, Newtonsoft.Json.JsonConvert.SerializeObject(request)));
141 | }
142 | #endregion
143 | }
144 | }
145 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/FaceHttp.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 | using System.Net;
6 | using System.IO;
7 |
8 | namespace Com.Facecore.platform
9 | {
10 | public class FaceHttp
11 | {
12 |
13 | public string HttpPost(string url, string data)
14 | {
15 | HttpWebRequest request = WebRequest.Create(url) as HttpWebRequest;
16 | request.Method = "POST";
17 | request.ContentType = "application/json";
18 | byte[] bs = Encoding.UTF8.GetBytes(data);
19 | Stream reqStream = request.GetRequestStream();
20 | reqStream.Write(bs, 0, bs.Length);
21 | reqStream.Close();
22 |
23 | string responseString = null;
24 | try
25 | {
26 | using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
27 | {
28 | StreamReader reader = new StreamReader(response.GetResponseStream());
29 | responseString = reader.ReadToEnd();
30 | reader.Close();
31 | }
32 | }
33 | catch (Exception exception)
34 | {
35 | //请求错误
36 | }
37 |
38 | return responseString;
39 | }
40 | }
41 | }
42 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/ImageHelper.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.IO;
5 | using System.Linq;
6 | using System.Text;
7 |
8 | namespace Com.Facecore.platform
9 | {
10 | public static class ImageHelper
11 | {
12 | ///
13 | /// 将byte[]类型转换为Image类型
14 | ///
15 | ///
16 | ///
17 | public static Bitmap ByteToImage(byte[] arr)
18 | {
19 | Bitmap image = null;
20 | if (arr != null)
21 | {
22 | MemoryStream mymemorystream = new MemoryStream(arr);
23 | image = (Bitmap)Bitmap.FromStream(mymemorystream);
24 | mymemorystream.Dispose();
25 | }
26 | return image;
27 | }
28 |
29 | ///
30 | /// 将Image类型转换为byte[]类型
31 | ///
32 | ///
33 | ///
34 | public static byte[] ImageToByte(Bitmap image)
35 | {
36 | if (image != null)
37 | {
38 | var newImage = new Bitmap(image);
39 | MemoryStream ms = new MemoryStream();
40 | newImage.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
41 | newImage.Dispose();
42 | return ms.ToArray();
43 | }
44 | else
45 | {
46 | return null;
47 | }
48 | }
49 | }
50 | }
51 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("Com.Facecore.platform")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("Com.Facecore.platform")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("0ad42d34-3ad0-4425-bc41-22a965ee414e")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/bin/Debug/Com.Facecore.platform.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/bin/Debug/Com.Facecore.platform.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform/bin/Debug/Com.Facecore.platform.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/bin/Debug/Com.Facecore.platform.pdb
--------------------------------------------------------------------------------
/Com.Facecore.platform/bin/Debug/FaceCore.OpenPlatform.DTO.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/bin/Debug/FaceCore.OpenPlatform.DTO.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform/bin/Debug/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/bin/Debug/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Com.Facecore.platform.dll
2 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Com.Facecore.platform.pdb
3 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\FaceCore.OpenPlatform.DTO.dll
4 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Newtonsoft.Json.dll
5 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Newtonsoft.Json.xml
6 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\obj\Debug\Com.Facecore.platform.dll
7 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\obj\Debug\Com.Facecore.platform.pdb
8 | E:\faceDemo\Com.Facecore.platform\Com.Facecore.platform\obj\Debug\Com.Facecore.platform.csprojResolveAssemblyReference.cache
9 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Com.Facecore.platform.dll
10 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Com.Facecore.platform.pdb
11 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\bin\Debug\Newtonsoft.Json.dll
12 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\obj\Debug\Com.Facecore.platform.dll
13 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\obj\Debug\Com.Facecore.platform.pdb
14 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\obj\Debug\Com.Facecore.platform.csprojResolveAssemblyReference.cache
15 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.dll
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Debug/Com.Facecore.platform.pdb
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Release/Com.Facecore.platform.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\Com.Facecore.platform\obj\Release\Com.Facecore.platform.csprojResolveAssemblyReference.cache
2 |
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Release/Com.Facecore.platform.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Release/Com.Facecore.platform.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/Com.Facecore.platform/obj/Release/build.force:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Com.Facecore.platform/obj/Release/build.force
--------------------------------------------------------------------------------
/Dllimport/AForge.Video.DirectShow.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Dllimport/AForge.Video.DirectShow.dll
--------------------------------------------------------------------------------
/Dllimport/AForge.Video.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Dllimport/AForge.Video.dll
--------------------------------------------------------------------------------
/Dllimport/AForge.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Dllimport/AForge.dll
--------------------------------------------------------------------------------
/Dllimport/FaceCore.OpenPlatform.DTO.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/Dllimport/FaceCore.OpenPlatform.DTO.dll
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | csharpfacecore
2 | ==============
3 | QQ群官方技术支持:343805354
4 |
5 | 电子邮件技术支持:facecore@qq.com
6 |
7 | 在线人脸识别演示:http://facecore.cn/Demo
8 |
9 | FaceCore开放平台C# Demo(www.facecore.cn)
10 |
--------------------------------------------------------------------------------
/faceView/Download.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Text;
5 |
6 | namespace faceView
7 | {
8 | public class Download
9 | {
10 | public static void DownloadFile(string URL, string filename, System.Windows.Forms.ProgressBar prog)
11 | {
12 | try
13 | {
14 |
15 | System.Net.HttpWebRequest Myrq = (System.Net.HttpWebRequest)System.Net.HttpWebRequest.Create(URL);
16 | System.Net.HttpWebResponse myrp = (System.Net.HttpWebResponse)Myrq.GetResponse();
17 | long totalBytes = myrp.ContentLength;
18 | if (prog != null)
19 | {
20 | prog.Maximum = (int)totalBytes;
21 | }
22 | System.IO.Stream st = myrp.GetResponseStream();
23 | System.IO.Stream so = new System.IO.FileStream(filename, System.IO.FileMode.Create);
24 | long totalDownloadedByte = 0;
25 | byte[] by = new byte[1024];
26 | int osize = st.Read(by, 0, (int)by.Length);
27 | while (osize > 0)
28 | {
29 | totalDownloadedByte = osize + totalDownloadedByte;
30 | System.Windows.Forms.Application.DoEvents();
31 | so.Write(by, 0, osize);
32 | if (prog != null)
33 | {
34 | prog.Value = (int)totalDownloadedByte;
35 | }
36 | osize = st.Read(by, 0, (int)by.Length);
37 | }
38 | so.Close();
39 | st.Close();
40 | }
41 | catch (System.Exception)
42 | {
43 | throw;
44 | }
45 |
46 | }
47 | ///
48 | /// 下载文件
49 | ///
50 | /// 下载文件地址
51 | /// 下载后的存放地址
52 | public static void DownloadFile(string URL, string filename)
53 | {
54 | DownloadFile(URL, filename, null);
55 | }
56 | public static bool IsUrl(string str_url)
57 | {
58 | return System.Text.RegularExpressions.Regex.IsMatch(str_url, @"http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?");
59 | }
60 | ///
61 | ///
62 | ///
63 | ///
64 | ///
65 | public static bool CheckFileTypeForImage(string fileExt)
66 | {
67 | List skey = new List() { ".jpg", ".jpeg", ".bmp", ".gif", ".png", ".tif" };
68 | return skey.Contains(fileExt.ToLower());
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/faceView/Form1.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace faceView
2 | {
3 | partial class Form1
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region Windows 窗体设计器生成的代码
24 |
25 | ///
26 | /// 设计器支持所需的方法 - 不要
27 | /// 使用代码编辑器修改此方法的内容。
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.pnlLeftMenu = new System.Windows.Forms.FlowLayoutPanel();
32 | this.pnlMain = new System.Windows.Forms.Panel();
33 | this.pnlContent = new System.Windows.Forms.Panel();
34 | this.pnlTitle = new System.Windows.Forms.Panel();
35 | this.label1 = new System.Windows.Forms.Label();
36 | this.pictureBox1 = new System.Windows.Forms.PictureBox();
37 | this.pnlMain.SuspendLayout();
38 | this.pnlTitle.SuspendLayout();
39 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
40 | this.SuspendLayout();
41 | //
42 | // pnlLeftMenu
43 | //
44 | this.pnlLeftMenu.Dock = System.Windows.Forms.DockStyle.Left;
45 | this.pnlLeftMenu.Location = new System.Drawing.Point(0, 0);
46 | this.pnlLeftMenu.Name = "pnlLeftMenu";
47 | this.pnlLeftMenu.Size = new System.Drawing.Size(139, 559);
48 | this.pnlLeftMenu.TabIndex = 0;
49 | //
50 | // pnlMain
51 | //
52 | this.pnlMain.Controls.Add(this.pnlContent);
53 | this.pnlMain.Controls.Add(this.pnlLeftMenu);
54 | this.pnlMain.Dock = System.Windows.Forms.DockStyle.Fill;
55 | this.pnlMain.Location = new System.Drawing.Point(0, 41);
56 | this.pnlMain.Name = "pnlMain";
57 | this.pnlMain.Size = new System.Drawing.Size(955, 559);
58 | this.pnlMain.TabIndex = 1;
59 | //
60 | // pnlContent
61 | //
62 | this.pnlContent.Dock = System.Windows.Forms.DockStyle.Fill;
63 | this.pnlContent.Location = new System.Drawing.Point(139, 0);
64 | this.pnlContent.Name = "pnlContent";
65 | this.pnlContent.Size = new System.Drawing.Size(816, 559);
66 | this.pnlContent.TabIndex = 1;
67 | //
68 | // pnlTitle
69 | //
70 | this.pnlTitle.Controls.Add(this.label1);
71 | this.pnlTitle.Controls.Add(this.pictureBox1);
72 | this.pnlTitle.Dock = System.Windows.Forms.DockStyle.Top;
73 | this.pnlTitle.Location = new System.Drawing.Point(0, 0);
74 | this.pnlTitle.Name = "pnlTitle";
75 | this.pnlTitle.Size = new System.Drawing.Size(955, 41);
76 | this.pnlTitle.TabIndex = 2;
77 | //
78 | // label1
79 | //
80 | this.label1.AutoSize = true;
81 | this.label1.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
82 | this.label1.ForeColor = System.Drawing.Color.White;
83 | this.label1.Location = new System.Drawing.Point(4, 13);
84 | this.label1.Name = "label1";
85 | this.label1.Size = new System.Drawing.Size(651, 14);
86 | this.label1.TabIndex = 1;
87 | this.label1.Text = "FaceCore人脸识别开放平台 - http://facecore.cn - QQ群:2338380147 - 技术支持:facecore@qq.com";
88 | //
89 | // pictureBox1
90 | //
91 | this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
92 | this.pictureBox1.Location = new System.Drawing.Point(915, 4);
93 | this.pictureBox1.Name = "pictureBox1";
94 | this.pictureBox1.Size = new System.Drawing.Size(34, 34);
95 | this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
96 | this.pictureBox1.TabIndex = 0;
97 | this.pictureBox1.TabStop = false;
98 | this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
99 | this.pictureBox1.MouseEnter += new System.EventHandler(this.pictureBox1_MouseEnter);
100 | this.pictureBox1.MouseLeave += new System.EventHandler(this.pictureBox1_MouseLeave);
101 | //
102 | // Form1
103 | //
104 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
105 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
106 | this.ClientSize = new System.Drawing.Size(955, 600);
107 | this.Controls.Add(this.pnlMain);
108 | this.Controls.Add(this.pnlTitle);
109 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
110 | this.Name = "Form1";
111 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
112 | this.Text = "Form1";
113 | this.Load += new System.EventHandler(this.Form1_Load);
114 | this.pnlMain.ResumeLayout(false);
115 | this.pnlTitle.ResumeLayout(false);
116 | this.pnlTitle.PerformLayout();
117 | ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
118 | this.ResumeLayout(false);
119 |
120 | }
121 |
122 | #endregion
123 |
124 | private System.Windows.Forms.FlowLayoutPanel pnlLeftMenu;
125 | private System.Windows.Forms.Panel pnlMain;
126 | private System.Windows.Forms.Panel pnlTitle;
127 | private System.Windows.Forms.Panel pnlContent;
128 | private System.Windows.Forms.PictureBox pictureBox1;
129 | private System.Windows.Forms.Label label1;
130 | }
131 | }
132 |
133 |
--------------------------------------------------------------------------------
/faceView/Form1.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Data;
5 | using System.Drawing;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Windows.Forms;
9 | using faceView.UcControl;
10 | using Com.Facecore.platform.Common;
11 | using System.IO;
12 |
13 | namespace faceView
14 | {
15 | public partial class Form1 : Form
16 | {
17 | private int mouseX = 0; private int mouseY = 0;
18 | public Form1()
19 | {
20 | InitializeComponent();
21 | }
22 | private void Form1_Load(object sender, EventArgs e)
23 | {
24 | this.pnlLeftMenu.Controls.Clear();
25 | this.pnlLeftMenu.BackColor = Color.FromArgb(42, 57, 80); //左侧背景色
26 | this.pnlTitle.BackColor = Color.FromArgb(54, 72, 96); //标题栏颜色
27 | this.pnlContent.BackColor = Color.FromArgb(238,241,248);
28 | InitImg();
29 | bindItem();
30 | pictureBox1.Image = ImgClose;
31 | FormMove move = new FormMove();
32 | move.AddMoveForm(this.pnlTitle);
33 |
34 | UcIndex ucIndex = new UcIndex();
35 | this.pnlContent.Controls.Add(ucIndex);
36 | ucIndex.Show();
37 |
38 | }
39 | private void InitImg()
40 | {
41 | ImgDFaceCheck = Common.ConvertImage(Path.GetFullPath("Images/dfacecheck.png"));
42 | ImgDFaceCheck_Click = Common.ConvertImage(Path.GetFullPath("Images/dfacecheck_click.png"));
43 | ImgDFaceCompar = Common.ConvertImage(Path.GetFullPath("Images/dfacecom.png"));
44 | ImgDFaceCompar_Click = Common.ConvertImage(Path.GetFullPath("Images/dfacecom_click.png"));
45 | ImgFaceCheck = Common.ConvertImage(Path.GetFullPath("Images/facecheck.png"));
46 | ImgFaceCheck_Click = Common.ConvertImage(Path.GetFullPath("Images/facecheck_click.png"));
47 | ImgFaceCompar = Common.ConvertImage(Path.GetFullPath("Images/facecom.png"));
48 | ImgFaceCompar_Click = Common.ConvertImage(Path.GetFullPath("Images/facecom_click.png"));
49 | ImgOfflineHigh = Common.ConvertImage(Path.GetFullPath("Images/offlinehigh.png"));
50 | ImgOfflineHigh_Click = Common.ConvertImage(Path.GetFullPath("Images/offlinehigh_click.png"));
51 | ImgClose = Common.ConvertImage(Path.GetFullPath("Images/button/关闭.png"));
52 | ImgClose_Click = Common.ConvertImage(Path.GetFullPath("Images/button/关闭-点击.png"));
53 | }
54 | private Image ImgDFaceCheck { get; set; }
55 | private Image ImgDFaceCheck_Click { get; set; }
56 | private Image ImgDFaceCompar { get; set; }
57 | private Image ImgDFaceCompar_Click { get; set; }
58 | private Image ImgFaceCheck { get; set; }
59 | private Image ImgFaceCheck_Click { get; set; }
60 | private Image ImgFaceCompar { get; set; }
61 | private Image ImgFaceCompar_Click { get; set; }
62 | private Image ImgOfflineHigh { get; set; }
63 | private Image ImgOfflineHigh_Click { get; set; }
64 | private Image ImgClose { get; set; }
65 | private Image ImgClose_Click { get; set; }
66 | private void bindItem()
67 | {
68 | Common.GetFilebyte(Path.GetFullPath("facecheck.png"));
69 | Common.GetFilebyte(Path.GetFullPath("facecheck_click.png"));
70 | UcMenuItem itemface = new UcMenuItem();
71 | itemface.Name = "facecheck";
72 | itemface.EnterImage = ImgFaceCheck;
73 | itemface.LeaveImage = ImgFaceCheck_Click;
74 | itemface.Click += itemface_Click;
75 | UcMenuItem itemCom = new UcMenuItem();
76 | itemCom.Name = "facecompar";
77 | itemCom.EnterImage = ImgFaceCompar;
78 | itemCom.LeaveImage = ImgFaceCompar_Click;
79 | itemCom.Click += itemface_Click;
80 | UcMenuItem itemDynamic = new UcMenuItem();
81 | itemDynamic.Name = "facedynamic";
82 | itemDynamic.EnterImage = ImgDFaceCheck;
83 | itemDynamic.LeaveImage = ImgDFaceCheck_Click;
84 | itemDynamic.Click += itemface_Click;
85 |
86 | UcMenuItem itemDynamicCom = new UcMenuItem();
87 | itemDynamicCom.Name = "facedynamiccom";
88 | itemDynamicCom.EnterImage = ImgDFaceCompar;
89 | itemDynamicCom.LeaveImage = ImgDFaceCompar_Click;
90 | itemDynamicCom.Click += itemface_Click;
91 |
92 | UcMenuItem itemvideo = new UcMenuItem();
93 | itemvideo.Name = "Video";
94 | itemvideo.EnterImage = ImgOfflineHigh;
95 | itemvideo.LeaveImage = ImgOfflineHigh_Click;
96 | itemvideo.Click += itemface_Click;
97 | this.pnlLeftMenu.Controls.Add(itemface);
98 | this.pnlLeftMenu.Controls.Add(itemCom);
99 | this.pnlLeftMenu.Controls.Add(itemDynamic);
100 | this.pnlLeftMenu.Controls.Add(itemDynamicCom);
101 | this.pnlLeftMenu.Controls.Add(itemvideo);
102 | }
103 | string focusKey = string.Empty;
104 | void itemface_Click(object sender)
105 | {
106 | UcMenuItem item = sender as UcMenuItem;
107 | switch (item.Name)
108 | {
109 | case "facecheck"://人脸检测
110 | if (focusKey != item.Name)
111 | {
112 | if (pnlContent.Controls.Count > 0)
113 | {
114 | UserControl uc = (UserControl)pnlContent.Controls[0];
115 | uc.Dispose();
116 | }
117 | focusKey = item.Name;
118 | UcFaceCheck compar = new UcFaceCheck();
119 | this.pnlContent.Controls.Add(compar);
120 | compar.Show();
121 | }
122 | break;
123 | case "facecompar": //人脸比对
124 | if (focusKey != item.Name)
125 | {
126 | if (this.pnlContent .Controls.Count > 0)
127 | {
128 | UserControl uc = (UserControl)pnlContent.Controls[0];
129 | uc.Dispose();
130 | }
131 | focusKey = item.Name;
132 | UcCompar compar = new UcCompar();
133 | this.pnlContent.Controls.Add(compar);
134 | compar.Show();
135 | }
136 | break;
137 | case "facedynamic": //对态人脸
138 | if (focusKey != item.Name)
139 | {
140 | if (this.pnlContent .Controls.Count > 0)
141 | {
142 | UserControl uc = (UserControl)pnlContent.Controls[0];
143 | uc.Dispose();
144 | }
145 | focusKey = item.Name;
146 | UcDynamic compar = new UcDynamic();
147 | this.pnlContent.Controls.Add(compar);
148 | compar.Show();
149 | }
150 | break;
151 | case "facedynamiccom": //对态人脸
152 | if (focusKey != item.Name)
153 | {
154 | if (this.pnlContent .Controls.Count > 0)
155 | {
156 | UserControl uc = (UserControl)pnlContent.Controls[0];
157 | uc.Dispose();
158 | }
159 | focusKey = item.Name;
160 | UcDynamicCom compar = new UcDynamicCom();
161 | this.pnlContent.Controls.Add(compar);
162 | compar.Show();
163 | }
164 | break;
165 | case "Video":
166 | MessageBox.Show("请和FaceCore取得联系,从而获得更佳的人脸识别技术体验~~~");
167 | break;
168 | }
169 | }
170 | private void pictureBox1_Click(object sender, EventArgs e)
171 | {
172 | if (pnlContent.Controls.Count > 0 )
173 | {
174 | pnlContent.Controls[0].Dispose();
175 | }
176 | this.Close();
177 | }
178 |
179 | private void pictureBox1_MouseEnter(object sender, EventArgs e)
180 | {
181 | pictureBox1.Image = ImgClose_Click;
182 | }
183 |
184 | private void pictureBox1_MouseLeave(object sender, EventArgs e)
185 | {
186 | pictureBox1.Image = ImgClose;
187 | }
188 |
189 | private void pnlTitle_MouseDown(object sender, MouseEventArgs e)
190 | {
191 | //mouseX = e.X; mouseY = e.Y;
192 | }
193 |
194 | private void pnlTitle_MouseMove(object sender, MouseEventArgs e)
195 | {
196 | //if (e.Button == MouseButtons.Left)
197 | //{
198 | // this.Location = new Point(Control.MousePosition.X - mouseX, Control.MousePosition.Y - mouseY);
199 | //}
200 | }
201 | }
202 | }
203 |
--------------------------------------------------------------------------------
/faceView/Form1.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/faceView/Images/button/下拉箭头.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/下拉箭头.png
--------------------------------------------------------------------------------
/faceView/Images/button/关闭-点击.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/关闭-点击.png
--------------------------------------------------------------------------------
/faceView/Images/button/关闭.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/关闭.png
--------------------------------------------------------------------------------
/faceView/Images/button/加载-人脸检测.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/加载-人脸检测.png
--------------------------------------------------------------------------------
/faceView/Images/button/加载-点击-人脸检测.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/加载-点击-人脸检测.png
--------------------------------------------------------------------------------
/faceView/Images/button/加载摄像头-点击.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/加载摄像头-点击.png
--------------------------------------------------------------------------------
/faceView/Images/button/加载摄像头.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/加载摄像头.png
--------------------------------------------------------------------------------
/faceView/Images/button/加载框-人脸检测.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/加载框-人脸检测.png
--------------------------------------------------------------------------------
/faceView/Images/button/加载选框-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/加载选框-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/button/开始比对-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/开始比对-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/Images/button/开始比对-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/开始比对-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/button/开始比对-点击-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/开始比对-点击-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/Images/button/开始比对-点击-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/开始比对-点击-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/button/拍照-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/拍照-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/button/拍照-点击-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/拍照-点击-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/button/选择图片-点击.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/选择图片-点击.png
--------------------------------------------------------------------------------
/faceView/Images/button/选择图片.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/选择图片.png
--------------------------------------------------------------------------------
/faceView/Images/button/选择照片-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/选择照片-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/Images/button/选择照片-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/选择照片-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/button/选择照片-点击-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/选择照片-点击-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/Images/button/选择照片-点击-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/button/选择照片-点击-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/Images/dfacecheck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/dfacecheck.png
--------------------------------------------------------------------------------
/faceView/Images/dfacecheck_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/dfacecheck_click.png
--------------------------------------------------------------------------------
/faceView/Images/dfacecom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/dfacecom.png
--------------------------------------------------------------------------------
/faceView/Images/dfacecom_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/dfacecom_click.png
--------------------------------------------------------------------------------
/faceView/Images/facecheck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/facecheck.png
--------------------------------------------------------------------------------
/faceView/Images/facecheck_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/facecheck_click.png
--------------------------------------------------------------------------------
/faceView/Images/facecom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/facecom.png
--------------------------------------------------------------------------------
/faceView/Images/facecom_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/facecom_click.png
--------------------------------------------------------------------------------
/faceView/Images/logo-facecore.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/logo-facecore.png
--------------------------------------------------------------------------------
/faceView/Images/offlinehigh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/offlinehigh.png
--------------------------------------------------------------------------------
/faceView/Images/offlinehigh_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/Images/offlinehigh_click.png
--------------------------------------------------------------------------------
/faceView/Program.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Linq;
4 | using System.Windows.Forms;
5 |
6 | namespace faceView
7 | {
8 | static class Program
9 | {
10 | ///
11 | /// 应用程序的主入口点。
12 | ///
13 | [STAThread]
14 | static void Main()
15 | {
16 | Application.EnableVisualStyles();
17 | Application.SetCompatibleTextRenderingDefault(false);
18 | Application.Run(new Form1());
19 | }
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/faceView/Properties/AssemblyInfo.cs:
--------------------------------------------------------------------------------
1 | using System.Reflection;
2 | using System.Runtime.CompilerServices;
3 | using System.Runtime.InteropServices;
4 |
5 | // 有关程序集的常规信息通过以下
6 | // 特性集控制。更改这些特性值可修改
7 | // 与程序集关联的信息。
8 | [assembly: AssemblyTitle("faceView")]
9 | [assembly: AssemblyDescription("")]
10 | [assembly: AssemblyConfiguration("")]
11 | [assembly: AssemblyCompany("")]
12 | [assembly: AssemblyProduct("faceView")]
13 | [assembly: AssemblyCopyright("Copyright © 2014")]
14 | [assembly: AssemblyTrademark("")]
15 | [assembly: AssemblyCulture("")]
16 |
17 | // 将 ComVisible 设置为 false 使此程序集中的类型
18 | // 对 COM 组件不可见。 如果需要从 COM 访问此程序集中的类型,
19 | // 则将该类型上的 ComVisible 特性设置为 true。
20 | [assembly: ComVisible(false)]
21 |
22 | // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
23 | [assembly: Guid("b02e5fcb-5d48-4198-a936-6ceaaf943be4")]
24 |
25 | // 程序集的版本信息由下面四个值组成:
26 | //
27 | // 主版本
28 | // 次版本
29 | // 生成号
30 | // 修订号
31 | //
32 | // 可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值,
33 | // 方法是按如下所示使用“*”:
34 | // [assembly: AssemblyVersion("1.0.*")]
35 | [assembly: AssemblyVersion("1.0.0.0")]
36 | [assembly: AssemblyFileVersion("1.0.0.0")]
37 |
--------------------------------------------------------------------------------
/faceView/Properties/Resources.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // 此代码由工具生成。
4 | // 运行时版本: 4.0.30319.18408
5 | //
6 | // 对此文件的更改可能会导致不正确的行为,并且如果
7 | // 重新生成代码,这些更改将丢失。
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace faceView.Properties
12 | {
13 |
14 |
15 | ///
16 | /// 一个强类型的资源类,用于查找本地化的字符串等。
17 | ///
18 | // 此类是由 StronglyTypedResourceBuilder
19 | // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
20 | // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
21 | // (以 /str 作为命令选项),或重新生成 VS 项目。
22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
25 | internal class Resources
26 | {
27 |
28 | private static global::System.Resources.ResourceManager resourceMan;
29 |
30 | private static global::System.Globalization.CultureInfo resourceCulture;
31 |
32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
33 | internal Resources()
34 | {
35 | }
36 |
37 | ///
38 | /// 返回此类使用的、缓存的 ResourceManager 实例。
39 | ///
40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
41 | internal static global::System.Resources.ResourceManager ResourceManager
42 | {
43 | get
44 | {
45 | if ((resourceMan == null))
46 | {
47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("faceView.Properties.Resources", typeof(Resources).Assembly);
48 | resourceMan = temp;
49 | }
50 | return resourceMan;
51 | }
52 | }
53 |
54 | ///
55 | /// 为所有资源查找重写当前线程的 CurrentUICulture 属性,
56 | /// 方法是使用此强类型资源类。
57 | ///
58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
59 | internal static global::System.Globalization.CultureInfo Culture
60 | {
61 | get
62 | {
63 | return resourceCulture;
64 | }
65 | set
66 | {
67 | resourceCulture = value;
68 | }
69 | }
70 | }
71 | }
72 |
--------------------------------------------------------------------------------
/faceView/Properties/Resources.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 | text/microsoft-resx
107 |
108 |
109 | 2.0
110 |
111 |
112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
113 |
114 |
115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
--------------------------------------------------------------------------------
/faceView/Properties/Settings.Designer.cs:
--------------------------------------------------------------------------------
1 | //------------------------------------------------------------------------------
2 | //
3 | // This code was generated by a tool.
4 | // Runtime Version:4.0.30319.18408
5 | //
6 | // Changes to this file may cause incorrect behavior and will be lost if
7 | // the code is regenerated.
8 | //
9 | //------------------------------------------------------------------------------
10 |
11 | namespace faceView.Properties
12 | {
13 |
14 |
15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
18 | {
19 |
20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
21 |
22 | public static Settings Default
23 | {
24 | get
25 | {
26 | return defaultInstance;
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/faceView/Properties/Settings.settings:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/faceView/UcControl/Common.cs:
--------------------------------------------------------------------------------
1 | using AForge.Video.DirectShow;
2 | using System;
3 | using System.Collections.Generic;
4 | using System.Linq;
5 | using System.Text;
6 |
7 | namespace faceView.UcControl
8 | {
9 | public class FaceCommon
10 | {
11 | #region 方法
12 | ///
13 | /// 获取已插USB摄像头硬件Id
14 | ///
15 | ///
16 | public static List GetCameraDeviceId()
17 | {
18 | List _cameraList = new List();
19 | FilterInfoCollection _filterInfoCollection = new FilterInfoCollection(FilterCategory.VideoInputDevice);//获取所有已插USB摄像头驱动信息
20 | if (_filterInfoCollection != null && _filterInfoCollection.Count > 0)
21 | {
22 | for (int i = 0; i < _filterInfoCollection.Count; i++)
23 | {
24 | _cameraList.Add(_filterInfoCollection[i].MonikerString); //向集合中添加USB摄像头硬件Id
25 | }
26 | _cameraList.Remove(""); //移出空项
27 | return _cameraList;
28 | }
29 | else
30 | {
31 | return null;
32 | }
33 | }
34 | #endregion
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcCompar.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace faceView.UcControl
2 | {
3 | partial class UcCompar
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region 组件设计器生成的代码
24 |
25 | ///
26 | /// 设计器支持所需的方法 - 不要
27 | /// 使用代码编辑器修改此方法的内容。
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.pic1 = new System.Windows.Forms.PictureBox();
32 | this.pic2 = new System.Windows.Forms.PictureBox();
33 | this.lblCompar = new System.Windows.Forms.Label();
34 | this.btn1Select = new System.Windows.Forms.Button();
35 | this.btn2Select = new System.Windows.Forms.Button();
36 | this.label2 = new System.Windows.Forms.Label();
37 | this.btnCompar = new System.Windows.Forms.Button();
38 | this.pic1Select = new System.Windows.Forms.PictureBox();
39 | this.pic2Select = new System.Windows.Forms.PictureBox();
40 | this.picCompar = new System.Windows.Forms.PictureBox();
41 | ((System.ComponentModel.ISupportInitialize)(this.pic1)).BeginInit();
42 | ((System.ComponentModel.ISupportInitialize)(this.pic2)).BeginInit();
43 | ((System.ComponentModel.ISupportInitialize)(this.pic1Select)).BeginInit();
44 | ((System.ComponentModel.ISupportInitialize)(this.pic2Select)).BeginInit();
45 | ((System.ComponentModel.ISupportInitialize)(this.picCompar)).BeginInit();
46 | this.SuspendLayout();
47 | //
48 | // pic1
49 | //
50 | this.pic1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(218)))), ((int)(((byte)(230)))));
51 | this.pic1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
52 | this.pic1.Location = new System.Drawing.Point(42, 87);
53 | this.pic1.Name = "pic1";
54 | this.pic1.Size = new System.Drawing.Size(295, 382);
55 | this.pic1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
56 | this.pic1.TabIndex = 0;
57 | this.pic1.TabStop = false;
58 | //
59 | // pic2
60 | //
61 | this.pic2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(218)))), ((int)(((byte)(230)))));
62 | this.pic2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
63 | this.pic2.Location = new System.Drawing.Point(477, 87);
64 | this.pic2.Name = "pic2";
65 | this.pic2.Size = new System.Drawing.Size(295, 382);
66 | this.pic2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
67 | this.pic2.TabIndex = 0;
68 | this.pic2.TabStop = false;
69 | //
70 | // lblCompar
71 | //
72 | this.lblCompar.BackColor = System.Drawing.Color.Transparent;
73 | this.lblCompar.Font = new System.Drawing.Font("宋体", 26.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
74 | this.lblCompar.ForeColor = System.Drawing.Color.Red;
75 | this.lblCompar.Location = new System.Drawing.Point(343, 215);
76 | this.lblCompar.Name = "lblCompar";
77 | this.lblCompar.Size = new System.Drawing.Size(128, 73);
78 | this.lblCompar.TabIndex = 1;
79 | //
80 | // btn1Select
81 | //
82 | this.btn1Select.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
83 | this.btn1Select.Location = new System.Drawing.Point(3, 519);
84 | this.btn1Select.Name = "btn1Select";
85 | this.btn1Select.Size = new System.Drawing.Size(110, 35);
86 | this.btn1Select.TabIndex = 3;
87 | this.btn1Select.Text = "选择照片";
88 | this.btn1Select.UseVisualStyleBackColor = true;
89 | this.btn1Select.Visible = false;
90 | this.btn1Select.Click += new System.EventHandler(this.btn1Select_Click);
91 | //
92 | // btn2Select
93 | //
94 | this.btn2Select.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
95 | this.btn2Select.Location = new System.Drawing.Point(699, 519);
96 | this.btn2Select.Name = "btn2Select";
97 | this.btn2Select.Size = new System.Drawing.Size(110, 35);
98 | this.btn2Select.TabIndex = 3;
99 | this.btn2Select.Text = "选择照片";
100 | this.btn2Select.UseVisualStyleBackColor = true;
101 | this.btn2Select.Visible = false;
102 | this.btn2Select.Click += new System.EventHandler(this.btn2Select_Click);
103 | //
104 | // label2
105 | //
106 | this.label2.AutoSize = true;
107 | this.label2.BackColor = System.Drawing.Color.Transparent;
108 | this.label2.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
109 | this.label2.ForeColor = System.Drawing.Color.Red;
110 | this.label2.Location = new System.Drawing.Point(145, 28);
111 | this.label2.Name = "label2";
112 | this.label2.Size = new System.Drawing.Size(503, 21);
113 | this.label2.TabIndex = 4;
114 | this.label2.Text = "选择照片必须是bmp,png,jpg,jpeg,tif格式中的一种";
115 | //
116 | // btnCompar
117 | //
118 | this.btnCompar.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
119 | this.btnCompar.Location = new System.Drawing.Point(349, 519);
120 | this.btnCompar.Name = "btnCompar";
121 | this.btnCompar.Size = new System.Drawing.Size(110, 35);
122 | this.btnCompar.TabIndex = 3;
123 | this.btnCompar.Text = "开始比对";
124 | this.btnCompar.UseVisualStyleBackColor = true;
125 | this.btnCompar.Visible = false;
126 | this.btnCompar.Click += new System.EventHandler(this.btnCompar_Click);
127 | //
128 | // pic1Select
129 | //
130 | this.pic1Select.Location = new System.Drawing.Point(119, 478);
131 | this.pic1Select.Name = "pic1Select";
132 | this.pic1Select.Size = new System.Drawing.Size(134, 46);
133 | this.pic1Select.TabIndex = 5;
134 | this.pic1Select.TabStop = false;
135 | this.pic1Select.Click += new System.EventHandler(this.btn1Select_Click);
136 | this.pic1Select.MouseEnter += new System.EventHandler(this.pic2Select_MouseEnter);
137 | this.pic1Select.MouseLeave += new System.EventHandler(this.pic2Select_MouseLeave);
138 | //
139 | // pic2Select
140 | //
141 | this.pic2Select.Location = new System.Drawing.Point(559, 478);
142 | this.pic2Select.Name = "pic2Select";
143 | this.pic2Select.Size = new System.Drawing.Size(134, 46);
144 | this.pic2Select.TabIndex = 5;
145 | this.pic2Select.TabStop = false;
146 | this.pic2Select.Click += new System.EventHandler(this.btn2Select_Click);
147 | this.pic2Select.MouseEnter += new System.EventHandler(this.pic2Select_MouseEnter);
148 | this.pic2Select.MouseLeave += new System.EventHandler(this.pic2Select_MouseLeave);
149 | //
150 | // picCompar
151 | //
152 | this.picCompar.Location = new System.Drawing.Point(340, 478);
153 | this.picCompar.Name = "picCompar";
154 | this.picCompar.Size = new System.Drawing.Size(134, 46);
155 | this.picCompar.TabIndex = 6;
156 | this.picCompar.TabStop = false;
157 | this.picCompar.Click += new System.EventHandler(this.btnCompar_Click);
158 | this.picCompar.MouseEnter += new System.EventHandler(this.picCompar_MouseEnter);
159 | this.picCompar.MouseLeave += new System.EventHandler(this.picCompar_MouseLeave);
160 | //
161 | // UcCompar
162 | //
163 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
164 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
165 | this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(241)))), ((int)(((byte)(248)))));
166 | this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
167 | this.Controls.Add(this.picCompar);
168 | this.Controls.Add(this.pic2Select);
169 | this.Controls.Add(this.pic1Select);
170 | this.Controls.Add(this.label2);
171 | this.Controls.Add(this.btn2Select);
172 | this.Controls.Add(this.btnCompar);
173 | this.Controls.Add(this.btn1Select);
174 | this.Controls.Add(this.lblCompar);
175 | this.Controls.Add(this.pic2);
176 | this.Controls.Add(this.pic1);
177 | this.Name = "UcCompar";
178 | this.Size = new System.Drawing.Size(812, 557);
179 | ((System.ComponentModel.ISupportInitialize)(this.pic1)).EndInit();
180 | ((System.ComponentModel.ISupportInitialize)(this.pic2)).EndInit();
181 | ((System.ComponentModel.ISupportInitialize)(this.pic1Select)).EndInit();
182 | ((System.ComponentModel.ISupportInitialize)(this.pic2Select)).EndInit();
183 | ((System.ComponentModel.ISupportInitialize)(this.picCompar)).EndInit();
184 | this.ResumeLayout(false);
185 | this.PerformLayout();
186 |
187 | }
188 |
189 | #endregion
190 |
191 | private System.Windows.Forms.PictureBox pic1;
192 | private System.Windows.Forms.PictureBox pic2;
193 | private System.Windows.Forms.Label lblCompar;
194 | private System.Windows.Forms.Button btn1Select;
195 | private System.Windows.Forms.Button btn2Select;
196 | private System.Windows.Forms.Label label2;
197 | private System.Windows.Forms.Button btnCompar;
198 | private System.Windows.Forms.PictureBox pic1Select;
199 | private System.Windows.Forms.PictureBox pic2Select;
200 | private System.Windows.Forms.PictureBox picCompar;
201 | }
202 | }
203 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcCompar.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 | using Com.Facecore.platform;
5 | using System.IO;
6 | using Com.Facecore.platform.Common;
7 |
8 | namespace faceView.UcControl
9 | {
10 | public partial class UcCompar : UserControl
11 | {
12 | public UcCompar()
13 | {
14 | InitializeComponent();
15 | ImgSelect = Common.ConvertImage(Path.GetFullPath("Images\\button\\选择照片-人脸比对认证.png"));
16 | ImgSelect_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\选择照片-点击-人脸比对认证.png"));
17 | ImgCompar = Common.ConvertImage(Path.GetFullPath("Images\\button\\开始比对-人脸比对认证.png"));
18 | ImgCompar_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\开始比对-点击-人脸比对认证.png"));
19 | pic1Select.Image = ImgSelect;
20 | pic2Select.Image = ImgSelect;
21 | picCompar.Image = ImgCompar;
22 | }
23 | private Image ImgSelect { get; set; }
24 | private Image ImgSelect_Click { get; set; }
25 | private Image ImgCompar { get; set; }
26 | private Image ImgCompar_Click { get; set; }
27 | string face1true = string.Empty;
28 | string face2true = string.Empty;
29 | private string SelectPicture()
30 | {
31 | var openFileDialog = new OpenFileDialog();
32 | openFileDialog.Filter =
33 | "JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg|" +
34 | "Windows Bitmap(*.bmp)|*.bmp|" +
35 | "Graphics Interchange Format (*.gif)|(*.gif)|" +
36 | "Portable Network Graphics (*.png)|*.png|" +
37 | "Tag Image File Format (*.tif)|*.tif;*.tiff";
38 | openFileDialog.ShowDialog();
39 | return openFileDialog.FileName;
40 | }
41 | private void btn1Select_Click(object sender, EventArgs e)
42 | {
43 | string filename = SelectPicture();
44 | if (!string.IsNullOrEmpty(filename))
45 | {
46 | FaceClient client = new FaceClient("8c1be718fa976083a6940009f36c056e");
47 | byte[] bt = GetFilebyte(filename);
48 | var face = client.FaceDetect(filename);//获取特征值
49 | pic1.Image = Image.FromStream(new MemoryStream(bt));
50 | if (face != null && face.facemodels.Count > 0)
51 | {
52 | face1true = face.facemodels[0].base64feature;
53 | }
54 | else
55 | {
56 | MessageBox.Show("未读取到人脸信息");
57 | pic1.Image = null;
58 | face1true = string.Empty;
59 | }
60 | }
61 | else
62 | {
63 | pic1.Image = null;
64 | face1true = string.Empty;
65 | }
66 |
67 | }
68 | private byte[] GetFilebyte(string filename)
69 | {
70 | if (File.Exists(filename))
71 | {
72 | FileStream stream = new FileStream(filename, FileMode.Open);
73 | byte[] bts = new byte[stream.Length];
74 | stream.Read(bts, 0, bts.Length);
75 | stream.Close();
76 | stream.Dispose();
77 | return bts;
78 | }
79 | return null;
80 | }
81 | private void btn2Select_Click(object sender, EventArgs e)
82 | {
83 | string filename = SelectPicture();
84 | if (!string.IsNullOrEmpty(filename))
85 | {
86 | FaceClient client = new FaceClient("8c1be718fa976083a6940009f36c056e");
87 | byte[] bt = GetFilebyte(filename);
88 | var face = client.FaceDetect(bt);//获取特征值
89 | pic2.Image = Image.FromStream(new MemoryStream(bt));
90 | if (face != null && face.facemodels.Count > 0)
91 | {
92 | face2true = face.facemodels[0].base64feature;
93 | }
94 | else
95 | {
96 | MessageBox.Show("未读取到人脸信息");
97 | pic2.Image = null;
98 | face2true = string.Empty;
99 | }
100 |
101 | }
102 | else
103 | {
104 | pic2.Image = null;
105 | face2true = string.Empty;
106 | }
107 | }
108 | private void btnCompar_Click(object sender, EventArgs e)
109 | {
110 | if (string.IsNullOrEmpty(face1true) || string.IsNullOrEmpty(face2true))
111 | {
112 | MessageBox.Show("缺少人脸信息");
113 | return;
114 | }
115 | FaceClient client = new FaceClient("8c1be718fa976083a6940009f36c056e");
116 | var contrast = client.FaceContrast(face1true, face2true);
117 | if (contrast != null)
118 | {
119 | lblCompar.Text = "相似度" + (contrast.similar * 100).ToString("0.00") + "%";
120 | }
121 | }
122 |
123 | private void pic2Select_MouseEnter(object sender, EventArgs e)
124 | {
125 | PictureBox pic = (PictureBox)sender;
126 | pic.Image = ImgSelect_Click;
127 | }
128 |
129 | private void pic2Select_MouseLeave(object sender, EventArgs e)
130 | {
131 | PictureBox pic = (PictureBox)sender;
132 | pic.Image = ImgSelect;
133 |
134 | }
135 |
136 | private void picCompar_MouseEnter(object sender, EventArgs e)
137 | {
138 | picCompar.Image = ImgCompar_Click;
139 | }
140 |
141 | private void picCompar_MouseLeave(object sender, EventArgs e)
142 | {
143 | picCompar.Image = ImgCompar;
144 | }
145 |
146 |
147 | }
148 | }
149 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcCompar.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcDynamic.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace faceView.UcControl
2 | {
3 | partial class UcDynamic
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | this.StopCamera();
17 | if (th != null)
18 | th.Abort();
19 | if (disposing && (components != null))
20 | {
21 | components.Dispose();
22 | }
23 | base.Dispose(disposing);
24 | }
25 |
26 | #region 组件设计器生成的代码
27 |
28 | ///
29 | /// 设计器支持所需的方法 - 不要
30 | /// 使用代码编辑器修改此方法的内容。
31 | ///
32 | private void InitializeComponent()
33 | {
34 | this.components = new System.ComponentModel.Container();
35 | this.picCamera = new System.Windows.Forms.PictureBox();
36 | this.cobxCameraList = new System.Windows.Forms.ComboBox();
37 | this.btnLoading = new System.Windows.Forms.Button();
38 | this.picFeature = new System.Windows.Forms.PictureBox();
39 | this.timer1 = new System.Windows.Forms.Timer(this.components);
40 | this.lblSpeed = new System.Windows.Forms.Label();
41 | this.picLoad = new System.Windows.Forms.PictureBox();
42 | ((System.ComponentModel.ISupportInitialize)(this.picCamera)).BeginInit();
43 | ((System.ComponentModel.ISupportInitialize)(this.picFeature)).BeginInit();
44 | ((System.ComponentModel.ISupportInitialize)(this.picLoad)).BeginInit();
45 | this.SuspendLayout();
46 | //
47 | // picCamera
48 | //
49 | this.picCamera.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(218)))), ((int)(((byte)(230)))));
50 | this.picCamera.Location = new System.Drawing.Point(15, 87);
51 | this.picCamera.Name = "picCamera";
52 | this.picCamera.Size = new System.Drawing.Size(404, 445);
53 | this.picCamera.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
54 | this.picCamera.TabIndex = 5;
55 | this.picCamera.TabStop = false;
56 | //
57 | // cobxCameraList
58 | //
59 | this.cobxCameraList.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
60 | this.cobxCameraList.FormattingEnabled = true;
61 | this.cobxCameraList.Location = new System.Drawing.Point(15, 29);
62 | this.cobxCameraList.Name = "cobxCameraList";
63 | this.cobxCameraList.Size = new System.Drawing.Size(648, 20);
64 | this.cobxCameraList.TabIndex = 6;
65 | //
66 | // btnLoading
67 | //
68 | this.btnLoading.Location = new System.Drawing.Point(530, 3);
69 | this.btnLoading.Name = "btnLoading";
70 | this.btnLoading.Size = new System.Drawing.Size(120, 23);
71 | this.btnLoading.TabIndex = 7;
72 | this.btnLoading.Text = "加载";
73 | this.btnLoading.UseVisualStyleBackColor = true;
74 | this.btnLoading.Visible = false;
75 | this.btnLoading.Click += new System.EventHandler(this.btnLoading_Click);
76 | //
77 | // picFeature
78 | //
79 | this.picFeature.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(214)))), ((int)(((byte)(218)))), ((int)(((byte)(230)))));
80 | this.picFeature.Location = new System.Drawing.Point(429, 87);
81 | this.picFeature.Name = "picFeature";
82 | this.picFeature.Size = new System.Drawing.Size(360, 445);
83 | this.picFeature.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
84 | this.picFeature.TabIndex = 0;
85 | this.picFeature.TabStop = false;
86 | //
87 | // timer1
88 | //
89 | this.timer1.Enabled = true;
90 | this.timer1.Interval = 1000;
91 | this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
92 | //
93 | // lblSpeed
94 | //
95 | this.lblSpeed.AutoSize = true;
96 | this.lblSpeed.Location = new System.Drawing.Point(13, 61);
97 | this.lblSpeed.Name = "lblSpeed";
98 | this.lblSpeed.Size = new System.Drawing.Size(65, 12);
99 | this.lblSpeed.TabIndex = 10;
100 | this.lblSpeed.Text = "检测倒计时";
101 | //
102 | // picLoad
103 | //
104 | this.picLoad.Location = new System.Drawing.Point(669, 26);
105 | this.picLoad.Name = "picLoad";
106 | this.picLoad.Size = new System.Drawing.Size(120, 26);
107 | this.picLoad.TabIndex = 11;
108 | this.picLoad.TabStop = false;
109 | this.picLoad.Click += new System.EventHandler(this.btnLoading_Click);
110 | this.picLoad.MouseEnter += new System.EventHandler(this.picLoad_MouseEnter);
111 | this.picLoad.MouseLeave += new System.EventHandler(this.picLoad_MouseLeave);
112 | //
113 | // UcDynamic
114 | //
115 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
116 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
117 | this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(238)))), ((int)(((byte)(241)))), ((int)(((byte)(248)))));
118 | this.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
119 | this.Controls.Add(this.picFeature);
120 | this.Controls.Add(this.picLoad);
121 | this.Controls.Add(this.lblSpeed);
122 | this.Controls.Add(this.btnLoading);
123 | this.Controls.Add(this.cobxCameraList);
124 | this.Controls.Add(this.picCamera);
125 | this.Name = "UcDynamic";
126 | this.Size = new System.Drawing.Size(810, 555);
127 | this.Load += new System.EventHandler(this.UcDynamic_Load);
128 | ((System.ComponentModel.ISupportInitialize)(this.picCamera)).EndInit();
129 | ((System.ComponentModel.ISupportInitialize)(this.picFeature)).EndInit();
130 | ((System.ComponentModel.ISupportInitialize)(this.picLoad)).EndInit();
131 | this.ResumeLayout(false);
132 | this.PerformLayout();
133 |
134 | }
135 |
136 | #endregion
137 |
138 | private System.Windows.Forms.PictureBox picCamera;
139 | private System.Windows.Forms.ComboBox cobxCameraList;
140 | private System.Windows.Forms.Button btnLoading;
141 | private System.Windows.Forms.PictureBox picFeature;
142 | private System.Windows.Forms.Timer timer1;
143 | private System.Windows.Forms.Label lblSpeed;
144 | private System.Windows.Forms.PictureBox picLoad;
145 | }
146 | }
147 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcDynamic.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.Windows.Forms;
5 | using Com.Facecore.platform;
6 | using AForge.Video.DirectShow;
7 | using Com.Facecore.platform.Common;
8 | using AForge.Video;
9 | using System.Threading;
10 | using System.IO;
11 |
12 | namespace faceView.UcControl
13 | {
14 | public partial class UcDynamic : UserControl
15 | {
16 | FaceClient client = new FaceClient("2d7d715aaf2110973132cabbb4e11393");
17 | ///
18 | /// USB摄像头硬件Id集合
19 | ///
20 | private List _cameraList = new List();
21 | ///
22 | /// 视频驱动
23 | ///
24 | private VideoCaptureDevice _videoCaptureDevice;
25 | private Image imgobj;
26 | private Image ImgLoad { get; set; }
27 | private Image ImgLoad_Click { get; set; }
28 |
29 | public UcDynamic()
30 | {
31 | InitializeComponent();
32 | ImgLoad = Common.ConvertImage(Path.GetFullPath("Images\\button\\加载摄像头.png"));
33 | ImgLoad_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\加载摄像头-点击.png"));
34 | picLoad.Image = ImgLoad;
35 | }
36 |
37 | private void UcDynamic_Load(object sender, EventArgs e)
38 | {
39 | #region 填充摄像头下拉框
40 | _cameraList = FaceCommon.GetCameraDeviceId();//获取所有USB摄像头硬件Id集合
41 | if (_cameraList != null && _cameraList.Count > 0)
42 | {
43 | foreach (var item in _cameraList)
44 | {
45 | cobxCameraList.Items.Add(item);//向下拉框中添加摄像头列表
46 | }
47 | }
48 | else
49 | {
50 | //如何未获取到USB摄像头则禁用此选择
51 | cobxCameraList.Enabled = false;
52 | }
53 | #endregion
54 | }
55 | ///
56 | /// 开启播放
57 | ///
58 | private void StartCamera()
59 | {
60 | if (_videoCaptureDevice != null)
61 | {
62 | _videoCaptureDevice.Start();
63 | }
64 | }
65 | ///
66 | /// 停止播放
67 | ///
68 | private void StopCamera()
69 | {
70 | if (_videoCaptureDevice != null)
71 | {
72 | _videoCaptureDevice.SignalToStop();
73 | }
74 | }
75 |
76 | ///
77 | /// 初始化摄像头
78 | ///
79 | private void InitialCamera()
80 | {
81 | if (this.cobxCameraList.SelectedItem != null)
82 | {
83 | _videoCaptureDevice = new VideoCaptureDevice(this.cobxCameraList.SelectedItem.ToString());
84 | _videoCaptureDevice.NewFrame += HandNewFrame;
85 | }
86 | }
87 | ///
88 | /// 播放事件
89 | ///
90 | ///
91 | ///
92 | private void HandNewFrame(object sender, NewFrameEventArgs args)
93 | {
94 | try
95 | {
96 | this.Invoke(new Action(() =>
97 | {
98 | if (args != null)
99 | {
100 | this.picCamera.Image = args.Frame.Clone() as Image;
101 | //GetPic(args.Frame.Clone() as Image);
102 | imgobj = args.Frame.Clone() as Image;
103 | //StartCheck(args.Frame.Clone() as Image);
104 | }
105 | }));
106 | //this.picCamera.Image = args.Frame.Clone() as Image;
107 | //StartCheck(args.Frame.Clone() as Image);
108 | }
109 | catch (Exception exception)
110 | {
111 | //throw;
112 | }
113 |
114 | }
115 | private void btnLoading_Click(object sender, EventArgs e)
116 | {
117 | InitialCamera();
118 | StartCamera();
119 | }
120 | Thread th = null;
121 | private void StartCheck(Image _bitmap)
122 | {
123 | th = new Thread(new ParameterizedThreadStart(GetPic));
124 | th.Start(_bitmap);
125 | }
126 | object obj = new object();
127 | private void GetPic(object _bitmap)
128 | {
129 | //var image = Convert.ToBase64String(Common.GetFilebyte(_bitmap as Image));
130 | lock (obj)
131 | {
132 | var faceDetectResponse = client.FaceDetect(_bitmap as Image);
133 | if (faceDetectResponse.facemodels.Count == 0)
134 | {
135 | Send(_bitmap as Image);
136 | return;
137 | }
138 | Image bitmap = null;
139 | foreach (var model in faceDetectResponse.facemodels)
140 | {
141 | bitmap = Common.DrawImage(_bitmap as Image, model.facerectanglex, model.facerectangley, model.facerectanglewidth, model.facerectangleheight);
142 | }
143 | Send(bitmap);
144 | }
145 |
146 | }
147 | private void Send(Image img)
148 | {
149 | if (this.picFeature.InvokeRequired)
150 | {
151 | SendMess mess = new SendMess(Send);
152 | this.picFeature.Invoke(mess, img);
153 | }
154 | else
155 | {
156 | this.picFeature.Image = img;
157 | }
158 | }
159 | public delegate void SendMess(Image img);
160 | int waittime = 5;
161 | private void timer1_Tick(object sender, EventArgs e)
162 | {
163 | if (waittime > 0)
164 | {
165 | lblSpeed.Text = string.Format("检测倒计时{0}秒", waittime);
166 | waittime -= 1;
167 | }
168 | else
169 | {
170 | lblSpeed.Text = string.Format("检测倒计时{0}秒", waittime);
171 | waittime = 5;
172 | if (imgobj != null)
173 | StartCheck(imgobj);
174 | }
175 | }
176 |
177 | private void picLoad_MouseEnter(object sender, EventArgs e)
178 | {
179 | picLoad.Image = ImgLoad_Click;
180 | }
181 |
182 | private void picLoad_MouseLeave(object sender, EventArgs e)
183 | {
184 | picLoad.Image = ImgLoad;
185 | }
186 |
187 | }
188 | }
189 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcDynamic.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | 17, 17
122 |
123 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcDynamicCom.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Drawing;
4 | using System.Windows.Forms;
5 | using Com.Facecore.platform;
6 | using AForge.Video.DirectShow;
7 | using Com.Facecore.platform.Common;
8 | using AForge.Video;
9 | using System.Threading;
10 | using FaceCore.OpenPlatform.DTO.Models;
11 | using System.IO;
12 |
13 | namespace faceView.UcControl
14 | {
15 | public partial class UcDynamicCom : UserControl
16 | {
17 | FaceClient client = new FaceClient("2d7d715aaf2110973132cabbb4e11393");
18 | ///
19 | /// USB摄像头硬件Id集合
20 | ///
21 | private List _cameraList = new List();
22 | ///
23 | /// 视频驱动
24 | ///
25 | private VideoCaptureDevice _videoCaptureDevice;
26 | private Image imgobj;
27 | private string facetrue1 = string.Empty;//照片的人脸信息
28 | public UcDynamicCom()
29 | {
30 | InitializeComponent();
31 | }
32 | private Image ImgLoad { get; set; }
33 | private Image ImgLoad_Click { get; set; }
34 | private Image ImgPhoto { get; set; }
35 | private Image ImgPhoto_Click { get; set; }
36 | private Image ImgSelect { get; set; }
37 | private Image ImgSelect_Click { get; set; }
38 | private Image ImgCompar { get; set; }
39 | private Image ImgCompar_Click { get; set; }
40 | private void UcDynamic_Load(object sender, EventArgs e)
41 | {
42 | #region 填充摄像头下拉框
43 | _cameraList = FaceCommon.GetCameraDeviceId();//获取所有USB摄像头硬件Id集合
44 | if (_cameraList != null && _cameraList.Count > 0)
45 | {
46 | foreach (var item in _cameraList)
47 | {
48 | cobxCameraList.Items.Add(item);//向下拉框中添加摄像头列表
49 | }
50 | }
51 | else
52 | {
53 | //如何未获取到USB摄像头则禁用此选择
54 | cobxCameraList.Enabled = false;
55 | }
56 | #endregion
57 | ImgLoad = Common.ConvertImage(Path.GetFullPath("Images\\button\\加载摄像头.png"));
58 | ImgLoad_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\加载摄像头-点击.png"));
59 | ImgPhoto = Common.ConvertImage(Path.GetFullPath("Images\\button\\拍照-动态人脸比对.png"));
60 | ImgPhoto_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\拍照-点击-动态人脸比对.png"));
61 | ImgSelect = Common.ConvertImage(Path.GetFullPath("Images\\button\\选择照片-动态人脸比对.png"));
62 | ImgSelect_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\选择照片-点击-动态人脸比对.png"));
63 | ImgCompar = Common.ConvertImage(Path.GetFullPath("Images\\button\\开始比对-动态人脸比对.png"));
64 | ImgCompar_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\开始比对-点击-动态人脸比对.png"));
65 | picLoad.Image = ImgLoad;
66 | picPhoto.Image = ImgPhoto;
67 | picSelect.Image = ImgSelect;
68 | picCompar.Image = ImgCompar;
69 | }
70 | ///
71 | /// 开启播放
72 | ///
73 | private void StartCamera()
74 | {
75 | if (_videoCaptureDevice != null)
76 | {
77 | _videoCaptureDevice.Start();
78 | }
79 | }
80 | ///
81 | /// 停止播放
82 | ///
83 | private void StopCamera()
84 | {
85 | if (_videoCaptureDevice != null)
86 | {
87 | _videoCaptureDevice.SignalToStop();
88 | }
89 | }
90 |
91 | ///
92 | /// 初始化摄像头
93 | ///
94 | private void InitialCamera()
95 | {
96 | if (this.cobxCameraList.SelectedItem != null)
97 | {
98 | _videoCaptureDevice = new VideoCaptureDevice(this.cobxCameraList.SelectedItem.ToString());
99 | _videoCaptureDevice.NewFrame += HandNewFrame;
100 | }
101 | }
102 | ///
103 | /// 播放事件
104 | ///
105 | ///
106 | ///
107 | private void HandNewFrame(object sender, NewFrameEventArgs args)
108 | {
109 | try
110 | {
111 | this.Invoke(new Action(() =>
112 | {
113 | if (args != null)
114 | {
115 | this.picCamera.Image = args.Frame.Clone() as Image;
116 | imgobj = args.Frame.Clone() as Image;
117 | }
118 | }));
119 |
120 | }
121 | catch (Exception exception)
122 | {
123 | //throw;
124 | }
125 |
126 | }
127 | private void btnLoading_Click(object sender, EventArgs e)
128 | {
129 | InitialCamera();
130 | StartCamera();
131 | }
132 | Thread th = null;
133 | private void StartCheck(Image _bitmap)
134 | {
135 | th = new Thread(new ParameterizedThreadStart(GetPic));
136 | th.Start(_bitmap);
137 | }
138 | object obj = new object();
139 | private void GetPic(object _bitmap)
140 | {
141 | //var image = Convert.ToBase64String(Common.GetFilebyte(_bitmap as Image));
142 | lock (obj)
143 | {
144 | var faceDetectResponse = client.FaceDetect(_bitmap as Image);
145 | if (faceDetectResponse.facemodels.Count == 0)
146 | {
147 | return;
148 | }
149 | Image bitmap = null;
150 | float avalue = 0;
151 | int imgIndex = 0;
152 | FaceModel facemodel = null;
153 | for (int i = 0; i < faceDetectResponse.facemodels.Count; i++)
154 | {
155 | var model = faceDetectResponse.facemodels[i];
156 | float o = client.FaceContrast(facetrue1, model.base64feature).similar;
157 | if (o > avalue)
158 | {
159 | avalue = o;
160 | facemodel = model;
161 | }
162 | //bitmap = Common.DrawImage(_bitmap as Image, model.facerectanglex, model.facerectangley, model.facerectanglewidth, model.facerectangleheight);
163 |
164 | }
165 | bitmap = Common.DrawImage(_bitmap as Image, facemodel.facerectanglex, facemodel.facerectangley, facemodel.facerectanglewidth, facemodel.facerectangleheight);
166 | Send(bitmap, avalue);
167 | }
168 |
169 | }
170 | private void Send(Image img, float value)
171 | {
172 | if (this.picTemp.InvokeRequired)
173 | {
174 | SendMess mess = new SendMess(Send);
175 | this.picTemp.Invoke(mess, img, value);
176 | }
177 | else
178 | {
179 | this.picTemp.Image = img;
180 | lblCom.Text = string.Format("相似度{0}%", (value * 100).ToString("0.00"));
181 | }
182 | }
183 | public delegate void SendMess(Image img, float value);
184 | int waittime = 10;
185 | private void timer1_Tick(object sender, EventArgs e)
186 | {
187 | if (waittime > 0)
188 | {
189 | lblSpeed.Text = string.Format("检测倒计时{0}秒", waittime);
190 | waittime -= 1;
191 | }
192 | else
193 | {
194 | lblSpeed.Text = string.Format("检测倒计时{0}秒", waittime);
195 | waittime = 10;
196 | if (imgobj != null)
197 | StartCheck(imgobj);
198 | }
199 | }
200 |
201 | private void btnPhoto_Click(object sender, EventArgs e)
202 | {
203 | if (imgobj == null)
204 | return;
205 | Image _bitmap = imgobj.Clone() as Image;
206 | var faceDetectResponse = client.FaceDetect(_bitmap);
207 | if (faceDetectResponse.facemodels.Count == 0)
208 | {
209 | MessageBox.Show("未检测到人脸信息!");
210 | return;
211 | }
212 | Image bitmap = null;
213 | foreach (var model in faceDetectResponse.facemodels)
214 | {
215 | bitmap = Common.DrawImage(_bitmap as Image, model.facerectanglex, model.facerectangley, model.facerectanglewidth, model.facerectangleheight);
216 | facetrue1 = model.base64feature;
217 | break;
218 | }
219 | picFeature.Image = bitmap;
220 | }
221 | private void btnCompar_Click(object sender, EventArgs e)
222 | {
223 | if (string.IsNullOrEmpty(facetrue1))
224 | {
225 | MessageBox.Show("无比对人员照片");
226 | return;
227 | }
228 | this.timer1.Enabled = true;
229 | }
230 | private void btnSelect_Click(object sender, EventArgs e)
231 | {
232 | string filename = SelectPicture();
233 | if (!string.IsNullOrEmpty(filename))
234 | {
235 | byte[] bts = Common.GetFilebyte(filename);
236 | var request = client.FaceDetect(bts);
237 | if (request != null && request.facemodels.Count > 0)
238 | {
239 | var model = request.facemodels[0];
240 | facetrue1 = model.base64feature;
241 | Image img = Image.FromStream(new MemoryStream(bts));
242 | Image imgphoto = Common.DrawImage(img, model.facerectanglex, model.facerectangley, model.facerectanglewidth, model.facerectangleheight);
243 | picFeature.Image = imgphoto;
244 | }
245 | else
246 | {
247 | facetrue1 = string.Empty;
248 | picFeature.Image = null;
249 | MessageBox.Show("选择的照片上未发现人脸!");
250 | return;
251 | }
252 | }
253 |
254 | }
255 | private string SelectPicture()
256 | {
257 | var openFileDialog = new OpenFileDialog();
258 | openFileDialog.Filter =
259 | "JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg|" +
260 | "Windows Bitmap(*.bmp)|*.bmp|" +
261 | "Graphics Interchange Format (*.gif)|(*.gif)|" +
262 | "Portable Network Graphics (*.png)|*.png|" +
263 | "Tag Image File Format (*.tif)|*.tif;*.tiff";
264 | openFileDialog.ShowDialog();
265 | return openFileDialog.FileName;
266 | }
267 |
268 | private void picLoad_MouseEnter(object sender, EventArgs e)
269 | {
270 | picLoad.Image = ImgLoad_Click;
271 | }
272 | private void picLoad_MouseLeave(object sender, EventArgs e)
273 | {
274 | picLoad.Image = ImgLoad;
275 | }
276 | private void picPhoto_MouseEnter(object sender, EventArgs e)
277 | {
278 | picPhoto.Image = ImgPhoto_Click;
279 | }
280 | private void picPhoto_MouseLeave(object sender, EventArgs e)
281 | {
282 | picPhoto.Image = ImgPhoto;
283 | }
284 | private void picSelect_MouseEnter(object sender, EventArgs e)
285 | {
286 | picSelect.Image = ImgSelect_Click;
287 | }
288 | private void picSelect_MouseLeave(object sender, EventArgs e)
289 | {
290 | picSelect.Image = ImgSelect;
291 | }
292 | private void picCompar_MouseEnter(object sender, EventArgs e)
293 | {
294 | picCompar.Image = ImgCompar_Click;
295 | }
296 | private void picCompar_MouseLeave(object sender, EventArgs e)
297 | {
298 | picCompar.Image = ImgCompar;
299 | }
300 | }
301 | }
302 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcDynamicCom.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
121 | 17, 17
122 |
123 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcFaceCheck.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Drawing;
3 | using System.Windows.Forms;
4 | using Com.Facecore.platform;
5 | using Com.Facecore.platform.Common;
6 | using System.IO;
7 | using System.Text.RegularExpressions;
8 |
9 | namespace faceView.UcControl
10 | {
11 | public partial class UcFaceCheck : UserControl
12 | {
13 | private Image ImgSelect { get; set; }
14 | private Image ImgSelect_Click { get; set; }
15 | private Image ImgLoading { get; set; }
16 | private Image ImgLoading_Click { get; set; }
17 | public UcFaceCheck()
18 | {
19 | InitializeComponent();
20 | ImgSelect = Common.ConvertImage(Path.GetFullPath("Images\\button\\选择图片.png"));
21 | ImgSelect_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\选择图片-点击.png"));
22 | ImgLoading = Common.ConvertImage(Path.GetFullPath("Images\\button\\加载-人脸检测.png"));
23 | ImgLoading_Click = Common.ConvertImage(Path.GetFullPath("Images\\button\\加载-点击-人脸检测.png"));
24 | //btnSelect.BackgroundImage = ImgSelect;
25 | //btnLoad.BackgroundImage = ImgLoading;
26 | picSelect.Image = ImgSelect;
27 | picLoad.Image = ImgLoading;
28 | }
29 | private string SelectPicture()
30 | {
31 | var openFileDialog = new OpenFileDialog();
32 | openFileDialog.Filter =
33 | "JPEG File Interchange Format (*.jpg)|*.jpg;*.jpeg|" +
34 | "Windows Bitmap(*.bmp)|*.bmp|" +
35 | "Graphics Interchange Format (*.gif)|(*.gif)|" +
36 | "Portable Network Graphics (*.png)|*.png|" +
37 | "Tag Image File Format (*.tif)|*.tif;*.tiff";
38 | openFileDialog.ShowDialog();
39 | return openFileDialog.FileName;
40 | }
41 | private void btnSelect_Click(object sender, EventArgs e)
42 | {
43 | string filename = SelectPicture();
44 | txtFilePath.Text = filename;
45 |
46 | }
47 | private void loadImage(string filename)
48 | {
49 | if (!string.IsNullOrEmpty(filename))
50 | {
51 | FaceClient client = new FaceClient("8c1be718fa976083a6940009f36c056e");
52 | byte[] bt = Common.GetFilebyte(filename);
53 | var face = client.FaceDetect(bt);//获取特征值
54 | //var face = client.FaceDetectAgeAndSex(bt);
55 | picSource.Image = Image.FromStream(new MemoryStream(bt));
56 | if (face != null && face.facemodels.Count > 0)
57 | {
58 | Image img = Image.FromStream(new MemoryStream(bt));
59 | foreach (var model in face.facemodels)
60 | {
61 | img = Common.DrawImage(img, model.facerectanglex, model.facerectangley, model.facerectanglewidth, model.facerectangleheight);
62 | }
63 | picCheck.Image = img;
64 | }
65 | else
66 | {
67 | MessageBox.Show("未读取到人脸信息");
68 | }
69 |
70 | }
71 | }
72 | private void btnLoad_Click(object sender, EventArgs e)
73 | {
74 | if (string.IsNullOrEmpty(txtFilePath.Text))
75 | return;
76 | Regex regEx = new Regex("^(http|https|ftp)\\://([a-zA-Z0-9\\.\\-]+(\\:[a-zA-" + "Z0-9\\.&%\\$\\-]+)*@)?((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{" + "2}|[1-9]{1}[0-9]{1}|[1-9])\\.(25[0-5]|2[0-4][0-9]|[0-1]{1}" + "[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-4][0-9]|" + "[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0)\\.(25[0-5]|2[0-" + "4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0" + "-9\\-]+\\.)*[a-zA-Z0-9\\-]+\\.[a-zA-Z]{2,4})(\\:[0-9]+)?(/" + "[^/][a-zA-Z0-9\\.\\,\\?\\'\\\\/\\+&%\\$\\=~_\\-@]*)*$");
77 | if (regEx.IsMatch(txtFilePath.Text))
78 | {//URL验证
79 | string filepath = AppDomain.CurrentDomain.BaseDirectory+"\\DownFile";
80 | if(!Directory.Exists(filepath))
81 | Directory.CreateDirectory(filepath);
82 | string filename = filepath+"\\"+DateTime.Now.ToString("yyyyMMddHHmmss")+".jpg";
83 | try
84 | {
85 | Download.DownloadFile(txtFilePath.Text, filename);
86 | }
87 | catch(Exception ex)
88 | {
89 | MessageBox.Show("下载文件失败");
90 | return;
91 | }
92 | if (File.Exists(filename))
93 | {
94 | loadImage(filename);
95 | }
96 |
97 | }
98 | else
99 | loadImage(txtFilePath.Text);
100 | }
101 | private void pnlbg_Click(object sender, EventArgs e)
102 | {
103 | Panel pnl = sender as Panel;
104 | if (pnl != null)
105 | {
106 | //byte[] bts = Common.GetFilebyte(pnl.BackgroundImage);
107 | picSource.Image = pnl.BackgroundImage;
108 | FaceClient client = new FaceClient("8c1be718fa976083a6940009f36c056e");
109 | var face = client.FaceDetect(picSource.Image);//获取特征值
110 | //var face = client.FaceDetectAgeAndSex(picSource.Image);//获取特征值
111 | if (face != null && face.facemodels.Count > 0)
112 | {
113 | byte[] bts = Common.GetFilebyte(pnl.BackgroundImage);
114 | Image img = Image.FromStream(new MemoryStream(bts));
115 |
116 | foreach (var model in face.facemodels)
117 | {
118 | string strInfo = string.Format("左眼坐标(X:{0},Y{1}) 右眼坐标(X:{2},Y{3})", model.lefteye.x, model.lefteye.y
119 | , model.righteye.x, model.righteye.y);
120 | //string strInfo = string.Format("性别:{0},年龄{1}", model.ageandsex.sex == "Female" ? "女" : "男", model.ageandsex.age.ToString("0.00"));
121 | img = Common.DrawImage(img, model.facerectanglex, model.facerectangley, model.facerectanglewidth, model.facerectangleheight);
122 |
123 | }
124 | picCheck.Image = img;
125 | }
126 | }
127 | }
128 | private void btnSelect_Enter(object sender, EventArgs e)
129 | {
130 | //btnSelect.BackgroundImage = ImgSelect_Click;
131 | picSelect.Image = ImgSelect_Click;
132 | }
133 | private void btnSelect_Leave(object sender, EventArgs e)
134 | {
135 | //btnSelect.BackgroundImage = ImgSelect;
136 | picSelect.Image = ImgSelect;
137 | }
138 |
139 | private void btnLoad_Enter(object sender, EventArgs e)
140 | {
141 | //btnLoad.BackgroundImage = ImgLoading_Click;
142 | picLoad.Image = ImgLoading_Click;
143 | }
144 |
145 | private void btnLoad_Leave(object sender, EventArgs e)
146 | {
147 | //btnLoad.BackgroundImage = ImgLoading;
148 | picLoad.Image = ImgLoading;
149 | }
150 | }
151 | }
152 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcIndex.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace faceView.UcControl
2 | {
3 | partial class UcIndex
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region 组件设计器生成的代码
24 |
25 | ///
26 | /// 设计器支持所需的方法 - 不要
27 | /// 使用代码编辑器修改此方法的内容。
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.panel1 = new System.Windows.Forms.Panel();
32 | this.label4 = new System.Windows.Forms.Label();
33 | this.label3 = new System.Windows.Forms.Label();
34 | this.label2 = new System.Windows.Forms.Label();
35 | this.label1 = new System.Windows.Forms.Label();
36 | this.panel1.SuspendLayout();
37 | this.SuspendLayout();
38 | //
39 | // panel1
40 | //
41 | this.panel1.Controls.Add(this.label1);
42 | this.panel1.Controls.Add(this.label4);
43 | this.panel1.Controls.Add(this.label3);
44 | this.panel1.Controls.Add(this.label2);
45 | this.panel1.Location = new System.Drawing.Point(-3, 1);
46 | this.panel1.Name = "panel1";
47 | this.panel1.Size = new System.Drawing.Size(810, 555);
48 | this.panel1.TabIndex = 1;
49 | //
50 | // label4
51 | //
52 | this.label4.AutoSize = true;
53 | this.label4.Location = new System.Drawing.Point(119, 503);
54 | this.label4.Name = "label4";
55 | this.label4.Size = new System.Drawing.Size(557, 12);
56 | this.label4.TabIndex = 7;
57 | this.label4.Text = "FaceCore人脸识别开放平台 - http://facecore.cn - QQ群:2338380147 - 技术支持:facecore@qq.com";
58 | //
59 | // label3
60 | //
61 | this.label3.AutoSize = true;
62 | this.label3.Font = new System.Drawing.Font("微软雅黑", 26.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
63 | this.label3.ForeColor = System.Drawing.Color.Blue;
64 | this.label3.Location = new System.Drawing.Point(131, 169);
65 | this.label3.Name = "label3";
66 | this.label3.Size = new System.Drawing.Size(545, 46);
67 | this.label3.TabIndex = 5;
68 | this.label3.Text = "(重新定义你对人脸识别的认识)";
69 | //
70 | // label2
71 | //
72 | this.label2.AutoSize = true;
73 | this.label2.Font = new System.Drawing.Font("微软雅黑", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
74 | this.label2.ForeColor = System.Drawing.Color.Red;
75 | this.label2.Location = new System.Drawing.Point(241, 87);
76 | this.label2.Name = "label2";
77 | this.label2.Size = new System.Drawing.Size(324, 39);
78 | this.label2.TabIndex = 4;
79 | this.label2.Text = "FaceCore人脸识别技术";
80 | //
81 | // label1
82 | //
83 | this.label1.AutoSize = true;
84 | this.label1.Location = new System.Drawing.Point(285, 281);
85 | this.label1.Name = "label1";
86 | this.label1.Size = new System.Drawing.Size(0, 12);
87 | this.label1.TabIndex = 8;
88 | //
89 | // UcIndex
90 | //
91 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
92 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
93 | this.Controls.Add(this.panel1);
94 | this.Name = "UcIndex";
95 | this.Size = new System.Drawing.Size(810, 555);
96 | this.panel1.ResumeLayout(false);
97 | this.panel1.PerformLayout();
98 | this.ResumeLayout(false);
99 |
100 | }
101 |
102 | #endregion
103 |
104 | private System.Windows.Forms.Panel panel1;
105 | private System.Windows.Forms.Label label4;
106 | private System.Windows.Forms.Label label3;
107 | private System.Windows.Forms.Label label2;
108 | private System.Windows.Forms.Label label1;
109 | }
110 | }
111 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcIndex.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Windows.Forms;
9 |
10 | namespace faceView.UcControl
11 | {
12 | public partial class UcIndex : UserControl
13 | {
14 | public UcIndex()
15 | {
16 | InitializeComponent();
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/faceView/UcControl/UcIndex.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/faceView/UcMenuItem.Designer.cs:
--------------------------------------------------------------------------------
1 | namespace faceView
2 | {
3 | partial class UcMenuItem
4 | {
5 | ///
6 | /// 必需的设计器变量。
7 | ///
8 | private System.ComponentModel.IContainer components = null;
9 |
10 | ///
11 | /// 清理所有正在使用的资源。
12 | ///
13 | /// 如果应释放托管资源,为 true;否则为 false。
14 | protected override void Dispose(bool disposing)
15 | {
16 | if (disposing && (components != null))
17 | {
18 | components.Dispose();
19 | }
20 | base.Dispose(disposing);
21 | }
22 |
23 | #region 组件设计器生成的代码
24 |
25 | ///
26 | /// 设计器支持所需的方法 - 不要
27 | /// 使用代码编辑器修改此方法的内容。
28 | ///
29 | private void InitializeComponent()
30 | {
31 | this.pic = new System.Windows.Forms.PictureBox();
32 | ((System.ComponentModel.ISupportInitialize)(this.pic)).BeginInit();
33 | this.SuspendLayout();
34 | //
35 | // pic
36 | //
37 | this.pic.Dock = System.Windows.Forms.DockStyle.Fill;
38 | this.pic.Location = new System.Drawing.Point(0, 0);
39 | this.pic.Name = "pic";
40 | this.pic.Size = new System.Drawing.Size(131, 100);
41 | this.pic.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
42 | this.pic.TabIndex = 0;
43 | this.pic.TabStop = false;
44 | this.pic.Click += new System.EventHandler(this.pic_Click);
45 | this.pic.MouseEnter += new System.EventHandler(this.pic_MouseEnter);
46 | this.pic.MouseLeave += new System.EventHandler(this.pic_MouseLeave);
47 | //
48 | // UcMenuItem
49 | //
50 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
51 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
52 | this.Controls.Add(this.pic);
53 | this.Name = "UcMenuItem";
54 | this.Size = new System.Drawing.Size(131, 100);
55 | this.Load += new System.EventHandler(this.UcMenuItem_Load);
56 | ((System.ComponentModel.ISupportInitialize)(this.pic)).EndInit();
57 | this.ResumeLayout(false);
58 | this.PerformLayout();
59 |
60 | }
61 |
62 | #endregion
63 |
64 | private System.Windows.Forms.PictureBox pic;
65 |
66 | }
67 | }
68 |
--------------------------------------------------------------------------------
/faceView/UcMenuItem.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.ComponentModel;
4 | using System.Drawing;
5 | using System.Data;
6 | using System.Linq;
7 | using System.Text;
8 | using System.Windows.Forms;
9 |
10 | namespace faceView
11 | {
12 | public partial class UcMenuItem : UserControl
13 | {
14 | public UcMenuItem()
15 | {
16 | InitializeComponent();
17 | }
18 | ///
19 | /// 鼠标进入时
20 | ///
21 | public Image EnterImage { get; set; }
22 | ///
23 | /// 鼠标离开时
24 | ///
25 | public Image LeaveImage { get; set; }
26 | private void pic_MouseEnter(object sender, EventArgs e)
27 | {//移入
28 | pic.Image = EnterImage;
29 | }
30 | private void pic_MouseLeave(object sender, EventArgs e)
31 | {//离开
32 | pic.Image = LeaveImage;
33 | }
34 |
35 | private void pic_Click(object sender, EventArgs e)
36 | {
37 | if (Click != null)
38 | Click(this);
39 | }
40 |
41 | public event OnItemClick Click;
42 |
43 | private void UcMenuItem_Click(object sender, EventArgs e)
44 | {
45 | pic_Click(null, null);
46 | }
47 |
48 | private void UcMenuItem_Load(object sender, EventArgs e)
49 | {
50 | pic.Image = LeaveImage;
51 | }
52 |
53 | }
54 | public delegate void OnItemClick(object sender);
55 | }
56 |
--------------------------------------------------------------------------------
/faceView/UcMenuItem.resx:
--------------------------------------------------------------------------------
1 |
2 |
3 |
62 |
63 |
64 |
65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 |
73 |
74 |
75 |
76 |
77 |
78 |
79 |
80 |
81 |
82 |
83 |
84 |
85 |
86 |
87 |
88 |
89 |
90 |
91 |
92 |
93 |
94 |
95 |
96 |
97 |
98 |
99 |
100 |
101 |
102 |
103 |
104 |
105 |
106 |
107 |
108 |
109 | text/microsoft-resx
110 |
111 |
112 | 2.0
113 |
114 |
115 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
116 |
117 |
118 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
119 |
120 |
--------------------------------------------------------------------------------
/faceView/bin/Debug/AForge.Video.DirectShow.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/AForge.Video.DirectShow.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/AForge.Video.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/AForge.Video.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/AForge.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/AForge.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/AxInterop.WMPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/AxInterop.WMPLib.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/Com.Facecore.platform.Common.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Com.Facecore.platform.Common.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/Com.Facecore.platform.Common.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Com.Facecore.platform.Common.pdb
--------------------------------------------------------------------------------
/faceView/bin/Debug/Com.Facecore.platform.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Com.Facecore.platform.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/Com.Facecore.platform.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Com.Facecore.platform.pdb
--------------------------------------------------------------------------------
/faceView/bin/Debug/FaceCore.OpenPlatform.DTO.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/FaceCore.OpenPlatform.DTO.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/下拉箭头.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/下拉箭头.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/关闭-点击.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/关闭-点击.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/关闭.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/关闭.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/加载-人脸检测.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/加载-人脸检测.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/加载-点击-人脸检测.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/加载-点击-人脸检测.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/加载摄像头-点击.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/加载摄像头-点击.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/加载摄像头.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/加载摄像头.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/加载框-人脸检测.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/加载框-人脸检测.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/加载选框-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/加载选框-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/开始比对-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/开始比对-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/开始比对-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/开始比对-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/开始比对-点击-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/开始比对-点击-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/开始比对-点击-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/开始比对-点击-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/拍照-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/拍照-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/拍照-点击-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/拍照-点击-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/选择图片-点击.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/选择图片-点击.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/选择图片.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/选择图片.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/选择照片-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/选择照片-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/选择照片-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/选择照片-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/选择照片-点击-人脸比对认证.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/选择照片-点击-人脸比对认证.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/button/选择照片-点击-动态人脸比对.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/button/选择照片-点击-动态人脸比对.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/dfacecheck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/dfacecheck.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/dfacecheck_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/dfacecheck_click.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/dfacecom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/dfacecom.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/dfacecom_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/dfacecom_click.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/facecheck.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/facecheck.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/facecheck_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/facecheck_click.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/facecom.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/facecom.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/facecom_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/facecom_click.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/offlinehigh.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/offlinehigh.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Images/offlinehigh_click.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Images/offlinehigh_click.png
--------------------------------------------------------------------------------
/faceView/bin/Debug/Interop.WMPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Interop.WMPLib.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/Newtonsoft.Json.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/Newtonsoft.Json.dll
--------------------------------------------------------------------------------
/faceView/bin/Debug/faceView.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/faceView.exe
--------------------------------------------------------------------------------
/faceView/bin/Debug/faceView.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/faceView.pdb
--------------------------------------------------------------------------------
/faceView/bin/Debug/faceView.vshost.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/bin/Debug/faceView.vshost.exe
--------------------------------------------------------------------------------
/faceView/bin/Debug/faceView.vshost.exe.manifest:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/faceView/obj/Debug/AxInterop.WMPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/AxInterop.WMPLib.dll
--------------------------------------------------------------------------------
/faceView/obj/Debug/DesignTimeResolveAssemblyReferences.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/DesignTimeResolveAssemblyReferences.cache
--------------------------------------------------------------------------------
/faceView/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/faceView/obj/Debug/Interop.WMPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/Interop.WMPLib.dll
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.Form1.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.Form1.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.Properties.Resources.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.UcControl.UcCompar.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.UcControl.UcCompar.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.UcControl.UcDynamic.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.UcControl.UcDynamic.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.UcControl.UcDynamicCom.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.UcControl.UcDynamicCom.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.UcControl.UcFaceCheck.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.UcControl.UcFaceCheck.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.UcControl.UcIndex.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.UcControl.UcIndex.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.UcMenuItem.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.UcMenuItem.resources
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\faceView.exe
2 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\faceView.pdb
3 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.dll
4 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\FaceCore.OpenPlatform.DTO.dll
5 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Newtonsoft.Json.dll
6 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.pdb
7 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Newtonsoft.Json.xml
8 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.csprojResolveAssemblyReference.cache
9 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.Form1.resources
10 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.Properties.Resources.resources
11 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcCompar.resources
12 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcDynamic.resources
13 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcFaceCheck.resources
14 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.UcMenuItem.resources
15 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.csproj.GenerateResource.Cache
16 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.exe
17 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.pdb
18 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.Common.dll
19 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.Common.pdb
20 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AForge.dll
21 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.DirectShow.dll
22 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.dll
23 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AForge.xml
24 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.xml
25 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.DirectShow.xml
26 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcDynamicCom.resources
27 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\Interop.WMPLib.dll
28 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\AxInterop.WMPLib.dll
29 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.csproj.ResolveComReference.cache
30 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Interop.WMPLib.dll
31 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\AxInterop.WMPLib.dll
32 | E:\faceDemo\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcVideo.resources
33 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecheck.png
34 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecheck_click.png
35 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecom.png
36 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecom_click.png
37 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\facecheck.png
38 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\facecheck_click.png
39 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\facecom.png
40 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\facecom_click.png
41 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\offlinehigh.png
42 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\offlinehigh_click.png
43 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\下拉箭头.png
44 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\关闭-点击.png
45 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\关闭.png
46 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载-人脸检测.png
47 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载-点击-人脸检测.png
48 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载摄像头-点击.png
49 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载摄像头.png
50 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载框-人脸检测.png
51 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载选框-动态人脸比对.png
52 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-人脸比对认证.png
53 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-动态人脸比对.png
54 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-点击-人脸比对认证.png
55 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-点击-动态人脸比对.png
56 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\拍照-动态人脸比对.png
57 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\拍照-点击-动态人脸比对.png
58 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择图片-点击.png
59 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择图片.png
60 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-人脸比对认证.png
61 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-动态人脸比对.png
62 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-点击-人脸比对认证.png
63 | E:\faceDemo\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-点击-动态人脸比对.png
64 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\下拉箭头.png
65 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\关闭-点击.png
66 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\关闭.png
67 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载-人脸检测.png
68 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载-点击-人脸检测.png
69 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载摄像头-点击.png
70 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载摄像头.png
71 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载框-人脸检测.png
72 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\加载选框-动态人脸比对.png
73 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-人脸比对认证.png
74 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-动态人脸比对.png
75 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-点击-人脸比对认证.png
76 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\开始比对-点击-动态人脸比对.png
77 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\拍照-动态人脸比对.png
78 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\拍照-点击-动态人脸比对.png
79 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择图片-点击.png
80 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择图片.png
81 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-人脸比对认证.png
82 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-动态人脸比对.png
83 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-点击-人脸比对认证.png
84 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\button\选择照片-点击-动态人脸比对.png
85 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecheck.png
86 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecheck_click.png
87 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecom.png
88 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\dfacecom_click.png
89 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\facecheck.png
90 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\facecheck_click.png
91 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\facecom.png
92 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\facecom_click.png
93 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\offlinehigh.png
94 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Images\offlinehigh_click.png
95 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\faceView.exe
96 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\faceView.pdb
97 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AForge.dll
98 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.DirectShow.dll
99 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.dll
100 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.Common.dll
101 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.dll
102 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Newtonsoft.Json.dll
103 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.Common.pdb
104 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Com.Facecore.platform.pdb
105 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AForge.xml
106 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.xml
107 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AForge.Video.DirectShow.xml
108 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Newtonsoft.Json.xml
109 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\Interop.WMPLib.dll
110 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\bin\Debug\AxInterop.WMPLib.dll
111 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.csprojResolveAssemblyReference.cache
112 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\Interop.WMPLib.dll
113 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\AxInterop.WMPLib.dll
114 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.csproj.ResolveComReference.cache
115 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.Form1.resources
116 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.Properties.Resources.resources
117 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcCompar.resources
118 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcDynamicCom.resources
119 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcDynamic.resources
120 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcFaceCheck.resources
121 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.UcMenuItem.resources
122 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.csproj.GenerateResource.Cache
123 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.exe
124 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.pdb
125 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Debug\faceView.UcControl.UcIndex.resources
126 |
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.csproj.ResolveComReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.csproj.ResolveComReference.cache
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.exe:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.exe
--------------------------------------------------------------------------------
/faceView/obj/Debug/faceView.pdb:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Debug/faceView.pdb
--------------------------------------------------------------------------------
/faceView/obj/Release/AxInterop.WMPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/AxInterop.WMPLib.dll
--------------------------------------------------------------------------------
/faceView/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/DesignTimeResolveAssemblyReferencesInput.cache
--------------------------------------------------------------------------------
/faceView/obj/Release/Interop.WMPLib.dll:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/Interop.WMPLib.dll
--------------------------------------------------------------------------------
/faceView/obj/Release/build.force:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/build.force
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.Form1.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.Form1.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.Properties.Resources.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.Properties.Resources.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcControl.UcCompar.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcControl.UcCompar.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcControl.UcDynamic.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcControl.UcDynamic.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcControl.UcDynamicCom.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcControl.UcDynamicCom.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcControl.UcFaceCheck.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcControl.UcFaceCheck.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcControl.UcIndex.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcControl.UcIndex.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcControl.UcVideo.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcControl.UcVideo.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.UcMenuItem.resources:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.UcMenuItem.resources
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.csproj.FileListAbsolute.txt:
--------------------------------------------------------------------------------
1 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\Interop.WMPLib.dll
2 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\AxInterop.WMPLib.dll
3 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.csproj.ResolveComReference.cache
4 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.csprojResolveAssemblyReference.cache
5 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.Form1.resources
6 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.Properties.Resources.resources
7 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcControl.UcCompar.resources
8 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcControl.UcDynamicCom.resources
9 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcControl.UcDynamic.resources
10 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcControl.UcFaceCheck.resources
11 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcControl.UcIndex.resources
12 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcControl.UcVideo.resources
13 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.UcMenuItem.resources
14 | C:\Users\YinChengShuai\Desktop\Com.Facecore.platform\faceView\obj\Release\faceView.csproj.GenerateResource.Cache
15 |
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.csproj.GenerateResource.Cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.csproj.GenerateResource.Cache
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.csproj.ResolveComReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.csproj.ResolveComReference.cache
--------------------------------------------------------------------------------
/faceView/obj/Release/faceView.csprojResolveAssemblyReference.cache:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/facecord/csharpfacecore/37fb14f1e14c70dba89c96c53eeb41e096df7542/faceView/obj/Release/faceView.csprojResolveAssemblyReference.cache
--------------------------------------------------------------------------------