Exemple #1
0
 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;
     DPFP.FeatureSet features = new DPFP.FeatureSet();
     Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features);                    // TODO: return features as a result?
     debugFeedback = feedback;
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
     {
         notifyEvent = new FingerArgs(ReaderSerialNumber, FingerArgs.FingerNotify.RN_CaptureGood, "Capture is Good");
         if (NotifyEvent != null)
         {
             NotifyEvent(this, notifyEvent);
         }
         return(features);
     }
     else
     {
         notifyEvent = new FingerArgs(ReaderSerialNumber, FingerArgs.FingerNotify.RN_CaptureBad, feedback.ToString());
         if (NotifyEvent != null)
         {
             NotifyEvent(this, notifyEvent);
         }
         return(null);
     }
 }
Exemple #2
0
 public void OnSampleQuality(object Capture, string ReaderSerialNumber,
                             DPFP.Capture.CaptureFeedback CaptureFeedback)
 {
     MessageBox.Show("Calidad de la muestra!!!! " +
                     CaptureFeedback.ToString());
 }
Exemple #3
0
        public DebugFP(
            bool FormVisible,
            int timeout,
            bool sendMail,
            Bitmap BmpFP,
            string reader,
            DateTime TimeFingerTouch,
            DateTime TimeFingerGone,
            string debugFirstName,
            string debugLastName,
            FingerIndexValue debugFinger,
            int FarAchieved,
            int FarThreshold,
            DPFP.Capture.CaptureFeedback debugFeedback,
            string pathImage,
            bool bIsProcessed,
            string SenderAdress,
            string LoginName,
            string Password,
            string SMTPServer,
            int SMTPPort
            )
        {
            InitializeComponent();

            this.FormVisible = FormVisible;
            this.timeout     = timeout;
            this.sendMail    = sendMail;
            timer1.Interval  = timeout * 1000;

            this.BmpFP = BmpFP;
            if (this.BmpFP != null)
            {
                pictureBoxFP.Image = new Bitmap(this.BmpFP, pictureBoxFP.Size);
            }
            //pictureBoxFP.Image = cleanBitmap(this.BmpFP);

            this.SenderAdress = SenderAdress;
            this.LoginName    = LoginName;
            this.Password     = Password;
            this.SMTPServer   = SMTPServer;
            this.SMTPPort     = SMTPPort;


            this.reader      = reader;
            labelReader.Text = "Reader S/N : " + this.reader;

            this.TimeFingerGone  = TimeFingerGone;
            this.TimeFingerTouch = TimeFingerTouch;

            labelTouch.Text = "Touch : " + TimeFingerTouch.ToString("G") + TimeFingerTouch.ToString(":fff");
            labelGone.Text  = "Gone :" + TimeFingerGone.ToString("G") + TimeFingerGone.ToString(":fff");;
            TimeSpan ts = TimeFingerGone - TimeFingerTouch;

            labelElapsed.Text = "Time Sensor :" + ts.TotalSeconds.ToString("0.000") + " sec";

            this.debugFirstName = debugFirstName;
            this.debugLastName  = debugLastName;
            this.debugFinger    = debugFinger;

            labelFirsname.Text = "First Name : " + debugFirstName;
            labelLastName.Text = "Last Name : " + debugLastName;
            labelFinger.Text   = "Finger Used : " + debugFinger.ToString();

            this.FarAchieved  = FarAchieved;
            this.FarThreshold = FarThreshold;
            labelFAR.Text     = "FAR : " + FarAchieved.ToString() + " / " + FarThreshold.ToString();

            this.debugFeedback = debugFeedback;
            labelQuality.Text  = "Quality : " + debugFeedback.ToString();

            this.pathImage = pathImage;

            this.bIsProcessed = bIsProcessed;
            if (bIsProcessed)
            {
                labelCapture.Text = "Capture Status : OK";
            }
            else
            {
                labelCapture.Text = "Capture Status : not OK";
            }

            if (!FormVisible)
            {
                this.Opacity       = 0.0f;
                this.WindowState   = FormWindowState.Minimized;
                this.ShowInTaskbar = false;
            }
            else
            {
                this.BackColor = Color.WhiteSmoke;
            }
        }