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

📄 verificationform.vb

📁 DigitalPersona.rar
💻 VB
字号:
Public Class VerificationForm

    Public Data As AppData

	Sub New(ByVal data As AppData)
		InitializeComponent()
		Me.Data = data
	End Sub

	Sub OnComplete(ByVal Control As Object, ByVal FeatureSet As DPFP.FeatureSet, ByRef EventHandlerStatus As DPFP.Gui.EventHandlerStatus) Handles VerificationControl.OnComplete
		Dim ver As New DPFP.Verification.Verification()
		Dim res As New DPFP.Verification.Verification.Result()

		For Each template As DPFP.Template In Data.Templates	' Compare feature set with all stored templates:
			If Not template Is Nothing Then						'   Get template from storage.
				ver.Verify(FeatureSet, template, res)			'   Compare feature set with particular template.
				Data.IsFeatureSetMatched = res.Verified			'   Check the result of the comparison
				Data.FalseAcceptRate = res.FARAchieved			'   Determine the current False Accept Rate
				If res.Verified Then
					EventHandlerStatus = DPFP.Gui.EventHandlerStatus.Success
					Exit For ' success
				End If
			End If
		Next
		If Not res.Verified Then EventHandlerStatus = DPFP.Gui.EventHandlerStatus.Failure
		Data.Update()
	End Sub

End Class

⌨️ 快捷键说明

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