我已经使用小程序以字符串的形式捕获了一个功能集。我需要将该字符串转换回字节并反序列化以匹配它。但我不知道哪里出了问题,因为它没有将模板与功能集进行比较。我已经为此奋斗了几个星期,请任何人帮助我。
//Converting string stored in db back to template:
byte[] byteArray = new byte[1];
byteArray = hexStringToByteArray(dbTemplate);
DPFPTemplate template = DPFPGlobal.getTemplateFactory().createTemplate();
template.deserialize(byteArray);
//Converting featureset string captured by applet
byte[] fsArray = new byte[1];
fsArray = hexStringToByteArray(ftsetstring);
DPFPFeatureSet features = null;
features.deserialize(fsArray);
//Comparing template with features acquired
DPFPVerification matcher = DPFPGlobal.getVerificationFactory().createVerification();
DPFPVerificationResult fresult = matcher.verify(features, template);
if (fresult.isVerified()) {
return "The fingerprint was VERIFIED.";
} else {
return "The fingerprint was NOT VERIFIED.";
我的错误在哪里???