Hi,
I am developing an application for biometric patient demographic registration, I was able to save the captured finger scanned to MS SQL server, on trying to verify the image from the scanner with the saved image is giving error's "Exception from HRESULT: 0xFFFFFFF8"Exception from HRESULT: 0xFFFFFFF8"bellow is my code for enrollment and verification.
- MemoryStream ms;
- protected void Process(DPFP.Sample Sample,Image img1)
- {
- try
- {
- DPFP.Template Template = new DPFP.Template();
-
- DataTable result_ = AppData.GetRecord();
- if (result_.Rows.Count >=1)
- {
- foreach (DataRow dt in result_.Rows)
- {
- byte[] _img = (byte[])dt["Thumb1"];
- ms = new MemoryStream(_img);
-
-
- DPFP.FeatureSet FeatureSetT = Extract_Feature(Sample, DPFP.Processing.DataPurpose.Verification);
- DPFP.Verification.Verification Verificator = new DPFP.Verification.Verification();
- DPFP.Verification.Verification.Result Results = new DPFP.Verification.Verification.Result();
- Template.DeSerialize(ms);
-
-
- Verificator.Verify(FeatureSetT, Template, ref Results);
-
- if (Results.Verified)
- {
-
- break;
- }
- else
- {
- DialogResult Result;
- Result = MessageBox.Show("Finger Template not found in DB, Kindly fill the form.", "Can't find image", MessageBoxButtons.OK);
- if (Result == System.Windows.Forms.DialogResult.OK)
-
- ms = new MemoryStream(AppData.ImageToByte(img1));
- Template.Serialize(ms);
- ms.Position = 0;
- BinaryReader br = new BinaryReader(ms);
- Byte[] bytes_ = br.ReadBytes((Int32)ms.Length);
-
- }
-
- }
- }
- else
- {
-
-
-
- int Dis = 0;
- DialogResult Result;
- Result = MessageBox.Show("Finger Template not found in DB, Kindly fill the form.", "Can't find image", MessageBoxButtons.OK);
- if (Result == System.Windows.Forms.DialogResult.OK)
-
- ms = new MemoryStream(AppData.ImageToByte(img1));
-
- ms.Position = 0;
- BinaryReader br = new BinaryReader(ms);
- Byte[] bytes_ = br.ReadBytes((Int32)ms.Length);
- Dis = AppData.SaveData(textBox1.Text, textBox2.Text, textBox3.Text, bytes_);
- if(Dis == 1)
- {
- MessageBox.Show("Data Saved successfully", "Successful", MessageBoxButtons.OK);
- }
- else
- {
- MessageBox.Show("Kindly complete each field before enrollment", "Not Saved", MessageBoxButtons.OK);
- }
- }
-
- }
- catch (Exception ex)
- {
-
- }
- }
-
-
-
- private DPFP.FeatureSet Extract_Feature(DPFP.Sample Sample, DPFP.Processing.DataPurpose Purpose)
- {
-
- var Extractor = new DPFP.Processing.FeatureExtraction();
- DPFP.Capture.CaptureFeedback FeedBack = DPFP.Capture.CaptureFeedback.None;
- var Features = new DPFP.FeatureSet();
-
- Extractor.CreateFeatureSet(Sample,Purpose,ref FeedBack,ref Features);
- if(FeedBack == DPFP.Capture.CaptureFeedback.Good)
- return Features;
- else
- return null;
- }
kindly show me module to save the image templete to MS SQL server and which data type siutable for the Templete and module for verification.
Thank you