91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 20.77MB
    文件類型: .zip
    金幣: 2
    下載: 2 次
    發布日期: 2023-07-13
  • 語言: C#
  • 標簽: [免費]C#??人臉識別??

資源簡介

C# 人臉識別 虹軟免費SDK 原版高清下載,完整版 基于虹軟最新的免費SDK寫的C# 人臉識別的Demo,包含人臉檢測,人臉對比,人臉檢索功能.有關此Demo的詳細信息可以閱讀博客 http://blog.csdn.net/feishixin/article/details/77397027

資源截圖

代碼片段和文件信息

using?ArcFaceTest.AFD;
using?ArcFaceTest.AFR;
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Drawing.Drawing2D;
using?System.Drawing.Imaging;
using?System.Linq;
using?System.Runtime.InteropServices;
using?System.Text;
using?System.Windows.Forms;

namespace?ArcFaceTest
{
????public?partial?class?Form1?:?Form
????{

????????//人臉檢測引擎
????????IntPtr?detectEngine?=?IntPtr.Zero;
????????IntPtr?recognizeEngine?=?IntPtr.Zero;

????????private?String?FaceLibraryPath?=?“G://Test/“;



????????public?Form1()
????????{
????????????InitializeComponent();

?????????
????????????int?detectSize?=?100?*?1024?*?1024;
????????????int?nScale?=?50;
????????????int?nMaxFaceNum?=?50;
????????????IntPtr?pMem?=?Marshal.AllocHGlobal(detectSize);
????????????IntPtr?pMemRecongnize?=?Marshal.AllocHGlobal(detectSize);

????????????//此處填寫你申請的到APPID和對應的KEY
//申請地址:http://www.arcsoft.com.cn/ai/arcface.html

????????????string?appId?=?“bCx99etK9Ns4Saou1EbFdB919TUrVDF52YQAE7F****“;

????????????string?sdkFDKey?=?“DpYhgf1jRkNf3o4biiazvpDrNEW38rbB1XNq6V4****“;
????????????string?sdkFRKey?=?“DpYhgf1jRkNf3o4biiazvpDyXdmBajqLRpXvhYKU****“;
????????????int?retCode?=?AFDFunction.AFD_FSDK_InitialFaceEngine(appId?sdkFDKey?pMem?detectSize?ref?detectEngine?5?nScale?nMaxFaceNum);


????????????if?(retCode?!=?0)
????????????{
????????????????MessageBox.Show(“引擎FD初始化失敗:錯誤碼為:“?+?retCode);
????????????????this.Close();
????????????}

????????????int?retCode2?=?AFR.AFRFunction.AFR_FSDK_InitialEngine(appId?sdkFRKey?pMemRecongnize?detectSize?ref?recognizeEngine);


????????????if?(retCode2?!=?0)
????????????{
????????????????MessageBox.Show(“引擎FR初始化失敗:錯誤碼為:“?+?retCode2);
????????????????this.Close();
????????????}
????????}



????????private?void?button1_Click(object?sender?EventArgs?e)
????????{


????????????IntPtr?versionPtr?=?AFDFunction.AFD_FSDK_GetVersion(detectEngine);

????????????AFD_FSDK_Version?version?=?(AFD_FSDK_Version)Marshal.PtrToStructure(versionPtr?typeof(AFD_FSDK_Version));

????????????String?VersionInfo?=?String.Format(“Version:{0}?BuildDate:{1}“?Marshal.PtrToStringAnsi(version.Version)?Marshal.PtrToStringAnsi(version.BuildDate));

????????????MessageBox.Show(VersionInfo);

????????}

????????private?void?btnOpenPic_Click(object?sender?EventArgs?e)
????????{
????????????//加載圖片
????????????//識別圖片
????????????//提取人臉
????????????//標記紅框



????????????OpenFileDialog?openFile?=?new?OpenFileDialog();

????????????openFile.Filter?=?“圖片文件|*.bmp;*.jpg;*.jpeg;*.png|所有文件|*.*;“;

????????????openFile.Multiselect?=?false;

????????????openFile.FileName?=?““;

????????????if?(openFile.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????this.pictureBox2.Image?=?null;

????????????????Image?image?=?Image.FromFile(openFile.FileName);

????????????????this.pictureBox1.Image?=?new?Bit

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????503??2017-08-08?13:53??Program.cs
?????目錄???????????0??2017-08-12?20:35??AFD\
?????文件????????1401??2017-08-11?11:51??AFD\AFDFunction.cs
?????文件?????????320??2017-08-10?13:56??AFD\AFD_FSDK_FACERES.cs
?????文件?????????548??2017-08-08?16:51??AFD\AFD_FSDK_OrientCode.cs
?????文件?????????353??2017-08-08?16:51??AFD\AFD_FSDK_OrientPriority.cs
?????文件?????????428??2017-08-10?13:50??AFD\AFD_FSDK_Version.cs
?????文件?????????668??2017-08-10?13:49??AFD\ASVLOFFSCREEN.cs
?????文件?????????273??2017-08-08?14:04??AFD\MRECT.cs
?????目錄???????????0??2017-08-13?11:17??AFR\
?????文件????????1844??2017-08-13?11:17??AFR\AFRFunction.cs
?????文件?????????264??2017-08-10?16:22??AFR\AFR_FSDK_FaceInput.cs
?????文件?????????241??2017-08-10?16:28??AFR\AFR_FSDK_FaceModel.cs
?????文件?????????506??2017-08-12?21:57??AFR\AFR_FSDK_Version.cs
?????目錄???????????0??2017-08-21?09:09??bin\
?????目錄???????????0??2017-08-12?20:35??dll\
?????文件?????2083328??2017-08-08?13:54??dll\libarcsoft_fsdk_face_detection.dll
?????文件????27293184??2017-08-11?11:08??dll\libarcsoft_fsdk_face_recognition.dll
?????目錄???????????0??2017-08-12?20:35??Properties\
?????文件????????1434??2017-08-08?13:53??Properties\AssemblyInfo.cs
?????文件????????2852??2017-08-08?13:53??Properties\Resources.Designer.cs
?????文件????????5612??2017-08-08?13:53??Properties\Resources.resx
?????文件????????1098??2017-08-08?13:53??Properties\Settings.Designer.cs
?????文件?????????249??2017-08-08?13:53??Properties\Settings.settings
?????文件????????4466??2017-08-11?11:20??ArcFaceTest.csproj
?????文件?????????228??2017-08-11?11:19??ArcFaceTest.csproj.user
?????文件?????????988??2017-08-14?09:47??ArcFaceTest.sln
?????文件???????15584??2017-08-21?09:11??Form1.cs
?????文件????????6694??2017-08-13?11:34??Form1.Designer.cs
?????文件????????5817??2017-08-13?11:34??Form1.resx

評論

共有 條評論