Ejemplo n.º 1
0
        public TestMatchEngineForm()
        {
            InitializeComponent();
            scheduler        = TaskScheduler.FromCurrentSynchronizationContext();
            _matchProbesTest = new MatchProbesTest(_databaseDirectory, _backupDatabaseDirectory, _lateralityCode, _captureSiteCode);
            scannerStatus    = _matchProbesTest.ScannerStatus;
            if (scannerStatus.Length > 0)
            {
                Task task = new Task(() => this.UpdateScannerStatus());
                task.Start(scheduler);
            }

            // load test data into dbreeze database
            if (LOAD_TEST_FINGERPRINTS == true)
            {
                _matchProbesTest.LoadTestFingerPrintImages(@"F:\fingerprobes", true);
            }

            _matchProbesTest.FingerCaptured     += FingerCaptured;
            _matchProbesTest.GoodPairFound      += GoodPairFound;
            _matchProbesTest.NewBestMatchFound  += NewBestMatchFound;
            _matchProbesTest.DatabaseMatchFound += DatabaseMatchFound;
            _matchProbesTest.DoesNotMatch       += DoesNotMatch;
            _matchProbesTest.DatabaseMatchError += DatabaseMatchError;
            _matchProbesTest.PoorCaputure       += PoorCaputure;
        }
Ejemplo n.º 2
0
        static void Main(string[] args)
        {
            Console.WriteLine("Fingerprint scanner is being setup.");
            MatchProbesTest test = new MatchProbesTest();

            test.FingerCaptured     += FingerCaptured;
            test.GoodPairFound      += GoodPairFound;
            test.DatabaseMatchFound += DatabaseMatchFound;
            test.DatabaseMatchError += DatabaseMatchError;

            try
            {
                Console.WriteLine("Fingerprint scanner detected.");
                test.LoadTestFingerPrintImages(@"F:\fingerprobes", true);
                Console.WriteLine("Loaded test fingerprints." + test.Count.ToString());
                //test.LoadTestMinutiaDatabase(@"C:\MatchDatabase\finger.hive.0001.biodb");
            }
            catch (Exception ex)
            {
                Console.WriteLine("Error: " + ex.Message);
            }
            Console.WriteLine("Scan you finger to trigger a search.");
            Console.ReadLine();
        }