Example #1
0
        private void fingerprint_onImage(object sorce, GriauleFingerprintLibrary.Events.ImageEventArgs ie)
        {
            rawImage = ie.RawImage;
            SetImage(ie.RawImage.Image);

            ExtracTemplate();
        }
        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);
            }
        }
Example #3
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)
            {}
        }
Example #4
0
 private void OnImage(string source, int width, int height, IntPtr rawImage, int res)
 {
     if (this.onImage != null)
     {
         ImageEventArgs ie = new ImageEventArgs(source, rawImage, width, height, res);
         this.onImage(source, ie);
     }
 }