我目前正在使用 One touch SDK 使用 DigitalPersona u.are.u 4500
我使用此代码创建要保存在数据库中的模板
DPFPFeatureSet features = extractFeatures(sample, DPFPDataPurpose.DATA_PURPOSE_ENROLLMENT);
// Check quality of the sample and add to enroller if it's good
if (features != null) {
try
{
System.out.println("The fingerprint feature set was created.");
enroller.addFeatures(features); // Add feature set to template.
}
然后我把它放在插入语句enroller.getTemplate.Serialize() 中,以将模板保存在 mysql 中,数据类型为 blob
问题是当我检索和反序列化模板并与我的功能集进行比较时,它不匹配,我发现保存到模板的格式与我预期的相差太大。
这是我从数据库中得到的值:5b4240333532366366(我通过 netbeans IDE 得到这个值)
是否有我必须使用的代码在我的数据库中保存正确格式的模板