private void Capture_Renamed_OnComplete(string ReaderSerNum, object Sample) { ADODB.Recordset rs = default(ADODB.Recordset); DPFPDevXLib.DPFPCaptureFeedbackEnum Feedback = default(DPFPDevXLib.DPFPCaptureFeedbackEnum); DPFPEngXLib.DPFPVerificationResult Res = default(DPFPEngXLib.DPFPVerificationResult); object Templ = null; DPFPShrXLib.DPFPTemplate Templs = new DPFPShrXLib.DPFPTemplate(); byte[] blob = null; //UPGRADE_ISSUE: clsRC4 object was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6B85A2A7-FE9F-4FBE-AA0C-CF11AC86A305"' clsRC4 cBFCryp = new clsRC4(); ReportStatus(("The fingerprint was captured.")); // Draw fingerprint image. //UPGRADE_WARNING: Couldn't resolve default property of object ConvertSample.ConvertToPicture(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' DrawPicture(ConvertSample.ConvertToPicture(Sample)); // Process sample and create feature set for purpose of verification. Feedback = CreateFtrs.CreateFeatureSet(Sample, DPFPEngXLib.DPFPDataPurposeEnum.DataPurposeVerification); // Quality of sample is not good enough to produce feature set. if (Feedback == DPFPDevXLib.DPFPCaptureFeedbackEnum.CaptureFeedbackGood) { Prompt.Text = "Touch the fingerprint reader with a different finger."; rs = modRecordSet.getRS(ref "SELECT * FROM PersonFPLnk WHERE PersonID = " + gID); //UPGRADE_WARNING: Couldn't resolve default property of object rs.RecordCount. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' if (rs.RecordCount > 0) { //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' //UPGRADE_WARNING: Couldn't resolve default property of object cBFCryp.DecodeArray64. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' blob = cBFCryp.DecodeArray64(Convert.ToString(rs("Person_FPs"))); if (Templs == null) Templs = new DPFPShrXLib.DPFPTemplate(); // Import binary data to template. Templs.Deserialize(blob); Templ = Templs; if (Templ == null) { Interaction.MsgBox("You must create a fingerprint template before you can perform verification."); } else { // Compare feature set with template. Res = Verify.Verify(CreateFtrs.FeatureSet, Templ); // Show results of comparison. FAR.Text = Convert.ToString(Res.FARAchieved); if (Res.Verified == true) { ReportStatus(("The fingerprint was verified.")); Interaction.MsgBox("Finger print matched."); } else { ReportStatus(("The fingerprint was not verified.")); Interaction.MsgBox("No finger print match found !"); } } } else { } } else { ReportStatus(("The quality of feature set is poor.")); } }
private void Capture_Renamed_OnComplete(string ReaderSerNum, object Sample) { object rs = null; DPFPDevXLib.DPFPCaptureFeedbackEnum Feedback = default(DPFPDevXLib.DPFPCaptureFeedbackEnum); ReportStatus(("The fingerprint sample was captured.")); // Draw fingerprint image. //UPGRADE_WARNING: Couldn't resolve default property of object ConvertSample.ConvertToPicture(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' DrawPicture(ConvertSample.ConvertToPicture(Sample)); // Process sample and create feature set for purpose of enrollment. Feedback = CreateFtrs.CreateFeatureSet(Sample, DPFPEngXLib.DPFPDataPurposeEnum.DataPurposeEnrollment); // Quality of sample is not good enough to produce feature set. DPFPShrXLib.DPFPTemplate Templ = default(DPFPShrXLib.DPFPTemplate); byte[] blob = null; //UPGRADE_ISSUE: clsRC4 object was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6B85A2A7-FE9F-4FBE-AA0C-CF11AC86A305"' clsRC4 cBFCryp = new clsRC4(); if (Feedback == DPFPDevXLib.DPFPCaptureFeedbackEnum.CaptureFeedbackGood) { ReportStatus(("The fingerprint feature set was created.")); Prompt.Text = "Touch the fingerprint reader again with the same finger."; // Add feature set to template. CreateTempl.AddFeatures(CreateFtrs.FeatureSet); // Show number of samples needed to complete template. Samples.Text = Convert.ToString(CreateTempl.FeaturesNeeded); // Check if template has been created. if (CreateTempl.TemplateStatus == DPFPEngXLib.DPFPTemplateStatusEnum.TemplateStatusTemplateReady) { //MainFrame.SetTemplete CreateTempl.Template // Template has been created, so stop capturing samples. Templ = CreateTempl.Template; //UPGRADE_WARNING: Couldn't resolve default property of object Templ.Serialize. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' blob = Templ.Serialize; rs = modRecordSet.getRS(ref "SELECT * FROM PersonFPLnk WHERE PersonID = " + gID); //UPGRADE_WARNING: Couldn't resolve default property of object rs.RecordCount. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' if (rs.RecordCount > 0) { //cnnDB.Execute "UPDATE PersonFPLnk SET PersonFPLnk.Person_FP = " & blob_write & " WHERE (((PersonFPLnk.PersonID)=" & gID & "));" //rs.AddNew //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs("PersonID") = gID; //UPGRADE_WARNING: Couldn't resolve default property of object cBFCryp.EncodeArray64. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs("Person_FPs") = cBFCryp.EncodeArray64(ref blob); //UPGRADE_WARNING: Couldn't resolve default property of object rs.update. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs.update(); } else { //cnnDB.Execute "INSERT INTO PersonFPLnk (PersonID, Person_FP) VALUES (" & gID & ", " & blob_write & ")" //UPGRADE_WARNING: Couldn't resolve default property of object rs.AddNew. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs.AddNew(); //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs("PersonID") = gID; //UPGRADE_WARNING: Couldn't resolve default property of object cBFCryp.EncodeArray64. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs("Person_FPs") = cBFCryp.EncodeArray64(ref blob); //UPGRADE_WARNING: Couldn't resolve default property of object rs.update. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' rs.update(); } Capture_Renamed.StopCapture(); Prompt.Text = "Click Exit, and then click Fingerprint Verification."; Interaction.MsgBox("The fingerprint template was created."); //frmPersonFPVerifyOT.loadItem (gID) //frmPersonFPVerify.loadItem (gID) } } }
private void Capture_Renamed_OnComplete(string ReaderSerNum, object Sample) { ADODB.Recordset rs = default(ADODB.Recordset); DPFPDevXLib.DPFPCaptureFeedbackEnum Feedback = default(DPFPDevXLib.DPFPCaptureFeedbackEnum); DPFPEngXLib.DPFPVerificationResult Res = default(DPFPEngXLib.DPFPVerificationResult); object Templ = null; DPFPShrXLib.DPFPTemplate Templs = new DPFPShrXLib.DPFPTemplate(); byte[] blob = null; //UPGRADE_ISSUE: clsRC4 object was not upgraded. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6B85A2A7-FE9F-4FBE-AA0C-CF11AC86A305"' clsRC4 cBFCryp = new clsRC4(); ReportStatus(("The fingerprint was captured.")); // Draw fingerprint image. //UPGRADE_WARNING: Couldn't resolve default property of object ConvertSample.ConvertToPicture(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' DrawPicture(ConvertSample.ConvertToPicture(Sample)); // Process sample and create feature set for purpose of verification. Feedback = CreateFtrs.CreateFeatureSet(Sample, DPFPEngXLib.DPFPDataPurposeEnum.DataPurposeVerification); // Quality of sample is not good enough to produce feature set. if (Feedback == DPFPDevXLib.DPFPCaptureFeedbackEnum.CaptureFeedbackGood) { Prompt.Text = "Touch the fingerprint reader with a different finger."; rs = modRecordSet.getRS(ref "SELECT * FROM PersonFPLnk WHERE PersonID = " + gID); //UPGRADE_WARNING: Couldn't resolve default property of object rs.RecordCount. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' if (rs.RecordCount > 0) { //UPGRADE_WARNING: Couldn't resolve default property of object rs(). Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' //UPGRADE_WARNING: Couldn't resolve default property of object cBFCryp.DecodeArray64. Click for more: 'ms-help://MS.VSCC.v90/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"' blob = cBFCryp.DecodeArray64(Convert.ToString(rs("Person_FPs"))); if (Templs == null) { Templs = new DPFPShrXLib.DPFPTemplate(); } // Import binary data to template. Templs.Deserialize(blob); Templ = Templs; if (Templ == null) { Interaction.MsgBox("You must create a fingerprint template before you can perform verification."); } else { // Compare feature set with template. Res = Verify.Verify(CreateFtrs.FeatureSet, Templ); // Show results of comparison. FAR.Text = Convert.ToString(Res.FARAchieved); if (Res.Verified == true) { ReportStatus(("The fingerprint was verified.")); Interaction.MsgBox("Finger print matched."); } else { ReportStatus(("The fingerprint was not verified.")); Interaction.MsgBox("No finger print match found !"); } } } else { } } else { ReportStatus(("The quality of feature set is poor.")); } }