public dlgCaptureFingerPrint(string sensor, FingerPrints controller, FingerprintCore fpCore)
     : this()
 {
     Sensor = sensor;
       Controller = controller;
       FPCore = fpCore;
 }
        /// <summary>
        /// Constructor and initializator
        /// </summary>
        public GriauleMatcher()
        {            
            fingerPrintCore = new FingerprintCore();

            try
            {
                fingerPrintCore.Initialize();
            }
            catch
            {
                throw new Exception("Unable to initialize fingerPrintCore");
            }

            templateCache = new Dictionary<FingerprintRawImage,FingerprintTemplate>();
        }
Exemple #3
0
        private void MainLoginPage_Load(object sender, EventArgs e)
        {
            core           = new GriauleFingerprintLibrary.FingerprintCore();
            core.onStatus += new GriauleFingerprintLibrary.StatusEventHandler(core_onStatus);
            core.onImage  += new GriauleFingerprintLibrary.ImageEventHandler(core_onImage);

            try
            {
                core.Initialize();
                core.CaptureInitialize();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
Exemple #4
0
        private void voterInterface_Load(object sender, EventArgs e)
        {
            core = new GriauleFingerprintLibrary.FingerprintCore();
            core.onStatus += new GriauleFingerprintLibrary.StatusEventHandler(core_onStatus);
            core.onImage += new GriauleFingerprintLibrary.ImageEventHandler(core_onImage);

            id = MainLoginPage.id.ToString(); 
            checkifuserhasvoted();
            if (Voted == false) 
            { 
                loadCandidateInfo();
            } 
            else 
            {
                votedGUI();
            }            
        }
Exemple #5
0
        public frmMain()
        {
            InitializeComponent();
            fingerPrint = new FingerprintCore();

            fingerPrint.onStatus += new StatusEventHandler(fingerPrint_onStatus);
            fingerPrint.onFinger += new FingerEventHandler(fingerPrint_onFinger);
            fingerPrint.onImage += new ImageEventHandler(fingerPrint_onImage);
            //fingerPrint.onImage += new ImageEventHandler(on_consolidate);
            fopt = new formOption();
            //Trackbar Values
            this.trackBarSensibility.Maximum = FingerprintConstants.GR_MAX_THRESHOLD;
            this.trackBarSensibility.Minimum = FingerprintConstants.GR_MIN_THRESHOLD;
            this.trackBarRotation.Maximum = FingerprintConstants.GR_ROT_MAX;
            this.trackBarRotation.Minimum = FingerprintConstants.GR_ROT_MIN;
            logControl = new LogControl();
            socket = new SocketControl();
        }
Exemple #6
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
       {
     FingerprintSensors.Clear();
     if (!closed)
     {
       try
       {
     try
     {
       griauleLibrary.CaptureFinalize();
     }
     catch (FingerprintException ex)
     {
       MessageBox.Show(String.Format("CaptureFinalize Error : {0} {1}", ex.ErrorCode, ex.Message), "FPLibrary Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
       }
       catch (Exception e)
       {
     MessageBox.Show(String.Format("Dispose Error : {0}", e.Message), "FPLibrary Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
       }
     }
       }
       if (griauleLibrary != null)
       {
     try
     {
       griauleLibrary.Finalizer();
       griauleLibrary = null;
     }
     catch (FingerprintException ex)
     {
       MessageBox.Show(String.Format("Finalizer Error : {0} {1}", ex.ErrorCode, ex.Message), "FPLibrary Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
       }
 }
Exemple #7
0
 /// <summary>
 /// Initialize the finger print library as wel as the underlying Griaule core library
 /// </summary>
 /// <param name="dal">Data access layer interface to interact with underlying data store, User responsible to manage opening and disposing object</param>
 public void Initialize(IFPDal dal)
 {
     DataAccessLayer = dal;
       if (!closed)
       {
     throw new FPLibraryException(FPLibraryException.LibraryInitialisationError, "Library has already been initialized.");
       }
       griauleLibrary = new FingerprintCore();
       griauleLibrary.onStatus += new StatusEventHandler(griauleLibrary_onStatus);
       //griauleLibrary.onFinger - not yet linked - only once we want to be notified
       //griauleLibrary.onImage - not yet linked - only once we want to be notified
       try
       {
     griauleLibrary.Initialize();
     griauleLibrary.CaptureInitialize();
     griauleLibrary.SetIdentifyParameters(IdentificationThreshold, IdentificationRotationTolerance);
     griauleLibrary.SetVerifyParameters(VerificationThreshold, VerificationRotationTolerance);
     closed = false;
       }
       catch (FingerprintException ex)
       {
     MessageBox.Show(String.Format("Initialize Error : {0} {1}", ex.ErrorCode, ex.Message), "FPLibrary Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
       }
       catch (Exception e)
       {
     MessageBox.Show(String.Format("Initialize Error : {0}", e.Message), "FPLibrary Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
       }
 }