Пример #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);
     }
 }
Пример #2
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();
     try
     {
         Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref
                                    features);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
     {
         return(features);
     }
     else
     {
         return(null);
     }
 }
Пример #3
0
        void DPFP.Capture.EventHandler.OnComplete(object capture, string readerSerialNumber, Sample sample)
        {
            DelegadoEstado delegado = new DelegadoEstado(this.Estado);

            DPFP.Capture.SampleConversion convertor = new DPFP.Capture.SampleConversion();

            Bitmap bitmap = null;

            convertor.ConvertToPicture(sample, ref bitmap);

            DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction();

            DPFP.Capture.CaptureFeedback feedback = DPFP.Capture.CaptureFeedback.None;

            DPFP.FeatureSet feature = new DPFP.FeatureSet();

            Extractor.CreateFeatureSet(sample, DPFP.Processing.DataPurpose.Enrollment, ref feedback, ref feature);

            if (feedback == DPFP.Capture.CaptureFeedback.Good)
            {
                enroller.AddFeatures(feature);

                switch (enroller.TemplateStatus)
                {
                case DPFP.Processing.Enrollment.Status.Failed:
                {
                    this.Dispatcher.Invoke(delegado, "La captura de la huella no fue correcta.\nPor favor reintente", "error", bitmap);

                    break;
                }

                case DPFP.Processing.Enrollment.Status.Insufficient:
                {
                    this.Dispatcher.Invoke(delegado, "La captura de la huella fue correcta.\nPor favor repita la lectura", "acierto", bitmap);

                    break;
                }

                case DPFP.Processing.Enrollment.Status.Ready:
                {
                    this.Dispatcher.Invoke(delegado, "La captura de la huella fue correcta.\nPor favor grabe la lectura realizada", "valido", bitmap);

                    break;
                }

                default:
                {
                    this.Dispatcher.Invoke(delegado, "La captura de la huella no fue correcta.\nPor favor reintente", "error", bitmap);

                    break;
                }
                }
            }
            else
            {
                this.Dispatcher.Invoke(delegado, "La captura de la huella no fue correcta.\n Por favor reintente", bitmap);
            }
        }
Пример #4
0
        public DPFP.FeatureSet CreateFeatureSet(DPFP.Sample sample, DPFP.Processing.DataPurpose purpose)
        {
            DPFP.Processing.FeatureExtraction featureExtraction = new DPFP.Processing.FeatureExtraction();
            DPFP.Capture.CaptureFeedback      captureFeedback   = DPFP.Capture.CaptureFeedback.None;
            DPFP.FeatureSet featureSet = new DPFP.FeatureSet();

            featureExtraction.CreateFeatureSet(sample, purpose, ref captureFeedback, ref featureSet);

            return((captureFeedback == DPFP.Capture.CaptureFeedback.Good) ? featureSet : null);
        }
Пример #5
0
 protected DPFP.FeatureSet ExtractFeatures(DPFP.Sample Sample, DPFP.Processing.DataPurpose Purpose)
 {
     DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction();
     DPFP.Capture.CaptureFeedback feedback = DPFP.Capture.CaptureFeedback.None;
     DPFP.FeatureSet features = new DPFP.FeatureSet();
     Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features);
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
         return features;
     else
         return null;
 }
Пример #6
0
 public DPFP.FeatureSet ExtractFeatures(DPFP.Sample Sample, DPFP.Processing.DataPurpose Purpose)
 {
     DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction();
     DPFP.Capture.CaptureFeedback feedback = DPFP.Capture.CaptureFeedback.None;
     DPFP.FeatureSet features = new DPFP.FeatureSet();
     Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features);
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
         return features;
     else
         return null;
 }
 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?
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
         return features;
     else
         return null;
 }
Пример #8
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?
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
     {
         return(features);
     }
     else
     {
         return(null);
     }
 }
Пример #9
0
 protected DPFP.FeatureSet extraercaracteristicas(DPFP.Sample Sample, DPFP.Processing.DataPurpose Porpuse)
 {
     DPFP.Processing.FeatureExtraction extractor    = new DPFP.Processing.FeatureExtraction();
     DPFP.Capture.CaptureFeedback      alimentacion = DPFP.Capture.CaptureFeedback.None;
     DPFP.FeatureSet caracteristicas = new DPFP.FeatureSet();
     extractor.CreateFeatureSet(Sample, Porpuse, ref alimentacion, ref caracteristicas);
     if ((alimentacion == DPFP.Capture.CaptureFeedback.Good))
     {
         return(caracteristicas);
     }
     else
     {
         return(null /* TODO Change to default(_) if this is not a reference type */);
     }
 }
Пример #10
0
 private DPFP.FeatureSet ExtractFeatures(DPFP.Sample sample, DPFP.Processing.DataPurpose purpose)
 {
     DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction();
     DPFP.Capture.CaptureFeedback      feedback  = DPFP.Capture.CaptureFeedback.None;
     DPFP.FeatureSet features = new DPFP.FeatureSet();
     Extractor.CreateFeatureSet(sample, purpose, ref feedback, ref features);
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
     {
         return(features);
     }
     else
     {
         return(null);
     }
 }
Пример #11
0
        public static FeatureSet ExtractFeatures(Sample Sample, DPFP.Processing.DataPurpose Purpose)
        {
            DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction();
            DPFP.Capture.CaptureFeedback      feedback  = DPFP.Capture.CaptureFeedback.None;
            FeatureSet features = new DPFP.FeatureSet();

            Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features);
            if (feedback == DPFP.Capture.CaptureFeedback.Good)
            {
                return(features);
            }
            else
            {
                return(null);
            }
        }
Пример #12
0
        protected FeatureSet ExtractFeatures(Sample sample, DPFP.Processing.DataPurpose purpose)
        {
            var extractor = new DPFP.Processing.FeatureExtraction();    // Create a feature extractor
            var feedback  = DPFP.Capture.CaptureFeedback.None;
            var features  = new FeatureSet();

            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);
            }
        }
Пример #13
0
 public DPFP.FeatureSet ExtractFeaturesChecar(DPFP.Sample Sample, DPFP.Processing.DataPurpose Purpose)
 {
     try
     {
         DPFP.Processing.FeatureExtraction Extractor = new DPFP.Processing.FeatureExtraction();
         DPFP.Capture.CaptureFeedback      feedback  = DPFP.Capture.CaptureFeedback.None;
         DPFP.FeatureSet features = new DPFP.FeatureSet();
         Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features);
         if (feedback == DPFP.Capture.CaptureFeedback.Good)
         {
             return(features);
         }
         else
         {
             return(null);
         }
     }
     catch (Exception ex)
     {
         LogError.AddExcFileTxt(ex, "LectorHuella ~ ExtractFeaturesChecar");
         return(null);
     }
 }
 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();
     try
     {
         Extractor.CreateFeatureSet(Sample, Purpose, ref feedback, ref features);
     }
     catch (DPFP.Error.SDKException)
     {
         MessageBox.Show("Place Finger on the scanner surface");
     }
     // TODO: return features as a result?
     if (feedback == DPFP.Capture.CaptureFeedback.Good)
     {
         return(features);
     }
     else
     {
         return(null);
     }
 }