?? verificationform.java
字號:
package com.digitalpersona.onetouch.ui.swing.sample.Enrollment;
import com.digitalpersona.onetouch.*;
import com.digitalpersona.onetouch.verification.*;
import java.awt.*;
public class VerificationForm extends CaptureForm
{
private DPFPVerification verificator = DPFPGlobal.getVerificationFactory().createVerification();
VerificationForm(Frame owner) {
super(owner);
}
@Override protected void init()
{
super.init();
this.setTitle("Fingerprint Enrollment");
updateStatus(0);
}
@Override protected void process(DPFPSample sample) {
super.process(sample);
// Process the sample and create a feature set for the enrollment purpose.
DPFPFeatureSet features = extractFeatures(sample, DPFPDataPurpose.DATA_PURPOSE_VERIFICATION);
// Check quality of the sample and start verification if it's good
if (features != null)
{
// Compare the feature set with our template
DPFPVerificationResult result =
verificator.verify(features, ((MainForm)getOwner()).getTemplate());
updateStatus(result.getFalseAcceptRate());
if (result.isVerified())
makeReport("The fingerprint was VERIFIED.");
else
makeReport("The fingerprint wan NOT VERIFIED.");
}
}
private void updateStatus(int FAR)
{
// Show "False accept rate" value
setStatus(String.format("False Accept Rate (FAR) = %1$s", FAR));
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -