i am creating fingerprint verification system in C#. i have digital persona U.are.U 4500 fingerprint reader. i am reading sdk to create my own application but i am stuck on 'FeatureExtraction' step. it gives me error while adding features to template says 'object refrence not set to instance of object. i have checked my code and initiate my enrollment object at the top of project as public but the error is still the same. here is my code that gives me the error.
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.");
}
here is the 'ExtractFeatures' function that is returning the features object correctly.
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;
}
if anyone can help then please help me solve my issue. thanks