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."));
            }
        }
Exemple #2
0
        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."));
            }
        }