C# 在数字角色指纹SDK中创建功能集
我正在用C#创建指纹验证系统。我有一个U.are.U.4500指纹阅读器。我正在阅读sdk来创建自己的应用程序,但我仍停留在“FeatureExtraction”这一步。在向模板添加功能时出现错误,表示“对象引用未设置为对象的实例”。我已经检查了我的代码,并在项目顶部将我的注册对象作为public启动,但错误仍然相同。 这是我的代码,它给出了错误C# 在数字角色指纹SDK中创建功能集,c#,fingerprint,fingerprinting,digital-persona-sdk,C#,Fingerprint,Fingerprinting,Digital Persona Sdk,我正在用C#创建指纹验证系统。我有一个U.are.U.4500指纹阅读器。我正在阅读sdk来创建自己的应用程序,但我仍停留在“FeatureExtraction”这一步。在向模板添加功能时出现错误,表示“对象引用未设置为对象的实例”。我已经检查了我的代码,并在项目顶部将我的注册对象作为public启动,但错误仍然相同。 这是我的代码,它给出了错误 DPFP.FeatureSet features = ExtractFeatures(Sample, DPFP.Processing.DataPurp
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
{
Enroller.AddFeatures(features); // Add feature set to template.
MessageBox.Show("The fingerprint feature set was created.");
}
下面是“ExtractFeatures”函数,它正确返回features对象
protected DPFP.FeatureSet ExtractFeatures(DPFP.Sample Sample, DPFP.Processing.DataPurpose Purpose)
{
DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction(); // Create a feature extractor
DPFP.Capture.CaptureFeedback feedback = DPFP.Capture.CaptureFeedback.None;
Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features); // TODO: return features as a result?
if (feedback == DPFP.Capture.CaptureFeedback.Good)
return features;
else
return null;
}
如果有人能帮忙,请帮我解决我的问题。
谢谢请在代码中检查以下内容: