void core_onImage(object source, GriauleFingerprintLibrary.Events.ImageEventArgs ie)
        {
            // button1.Enabled = false;
            try
            {
                huella = ie.RawImage;
                //template = null;

                core.Extract(huella, ref template); //try to use getbiometric data...

                pictureBox1.Image = huella.Image;

                switch (template.Quality)
                {
                case 0:
                    SetText("Bad Quality");
                    //MessageBox.Show("Huella de mala calidad favor de volver a poner el dedo", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;

                case 1:
                    SetText("Medium Quality");
                    // MessageBox.Show("Fingerprint has a medium quality, proceed anyway?", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;

                case 2:
                    SetText("Good Quality");
                    //MessageBox.Show("Fingerprint has a medium quality, proceed anyway?", "Advertencia", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                    return;
                }
            }
            catch (Exception exc)
            {
                MessageBox.Show(exc.Message);
            }
        }
Exemple #2
0
        void core_onImage(object source, GriauleFingerprintLibrary.Events.ImageEventArgs ie)
        {
            try
            {
                huella = ie.RawImage;

                core.Extract(huella, ref template);
                mainLoginPgFPImageBox.Image = huella.Image;
            }
            catch (Exception)
            {}
        }