尝试使用数字角色4500和单触SDK注册指纹模板,我不断获得的模板大小为1632字节,如何将字节数组中模板的大小减小/压缩到小于800字节所以我可以将它存储在NFC / RFID MIFARE 1k卡中。
protected override void Process(DPFP.Sample Sample)
{
base.Process(Sample);
// Process the sample and create a feature set for the enrollment purpose.
DPFP.FeatureSet features = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Enrollment);
// Check quality of the sample and add to enroller if it's good
if (features != null) try
{
MakeReport("The fingerprint feature set was created.");
Enroller.AddFeatures(features); // Add feature set to template.
}
finally {
UpdateStatus();
// Check if template has been created.
switch(Enroller.TemplateStatus)
{
case DPFP.Processing.Enrollment.Status.Ready: // report success and stop capturing
OnTemplate(Enroller.Template);
SetPrompt("Click Close, and then click Fingerprint Verification.");
Stop();
break;
case DPFP.Processing.Enrollment.Status.Failed: // report failure and restart capturing
Enroller.Clear();
Stop();
UpdateStatus();
OnTemplate(null);
Start();
break;
}
}
}
答案 0 :(得分:0)
只是一个建议。你怎么样保存,例如只有一个人的'身份NO'(唯一密钥)进入nfc / rfid mifare卡才有例如一个基于SQL的数据库,在那里你可以保存相同的'身份NO'来对抗人的指纹模板,这样当mifare卡出现用于验证时,它所拥有的'Identity NO'用于检索针对相同的'保存的指纹模板'身份NO'用于从SQL数据库验证?