⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 verificationform.cs

📁 DigitalPersona.rar
💻 CS
字号:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace UI_Support
{
    public partial class VerificationForm : Form
    {
        public VerificationForm(AppData data)
        {
            InitializeComponent();
			Data = data;
			Data.OnChange += delegate { ExchangeData(false); };		// Handle data changes to keep sync
		}

        private void ExchangeData(bool read)
        {
        }

		public void OnComplete(object Control, DPFP.FeatureSet FeatureSet, ref DPFP.Gui.EventHandlerStatus Status)
        {
			DPFP.Verification.Verification ver = new DPFP.Verification.Verification();
			DPFP.Verification.Verification.Result res = new DPFP.Verification.Verification.Result();
			// Compare feature set with all stored templates.
            foreach (DPFP.Template template in Data.Templates) {
                // Get template from storage.
                if (template != null) {
                    // Compare feature set with particular template.
					ver.Verify(FeatureSet, template, ref res);
                    Data.IsFeatureSetMatched = res.Verified;
                    Data.FalseAcceptRate = res.FARAchieved;
                    if (res.Verified)
                        break; // success
                }
            }
			if (!res.Verified)
				Status = DPFP.Gui.EventHandlerStatus.Failure;
			Data.Update();
        }

		private AppData Data;	// Reference to the application data object
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -