0
正試圖創建一個soap webservice方法來匹配使用digitalpersona one touch for windows sdk java edition的指紋。我從客戶端的一個applet捕獲功能集,並將其與服務器端的我的模板進行比較。但是我需要反序列化它並再次創建功能集,以便我可以將其與模板進行比較。無法反序列化使用DigitalPersona Sdk java版的功能集
我不知道如何重新創建功能設置,這樣我可以用它來驗證:
//This is for template retrieval: (no problem here)
String dbTemplate = result.getString("template");
byte[] byteArray = new byte[1];
byteArray = hexStringToByteArray(dbTemplate);
DPFPTemplate template = DPFPGlobal.getTemplateFactory().createTemplate();
template.deserialize(byteArray);
byte[] fsArray = new byte[1];
fsArray = hexStringToByteArray(ftSet);
//the problem is here, I've already converted it back into bytearray[] but i need to deserialize it and create the feature set again.
featureSet.deserialise(fsArray);
DPFPFeatureSet features = extractFeatures(sample, DPFPDataPurpose.DATA_PURPOSE_VERIFICATION);
//This is for matching features and template
DPFPVerification matcher = DPFPGlobal.getVerificationFactory().createVerification();
DPFPVerificationResult result1 = matcher.verify(features, template);
if (result1.isVerified()) {
return "The fingerprint was VERIFIED.";
} else {
return "The fingerprint was NOT VERIFIED.";
}
請幫助我。