• 大小: 26MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-06-27
  • 语言: 其他
  • 标签: 指纹  

资源简介

包含源代码,有可执行文件,包含fvc2000指纹库,比较相似率

资源截图

代码片段和文件信息

using System;
using System.Drawing;
using System.Windows.Forms;
using PatternRecognition.FingerprintRecognition.Core;
using PatternRecognition.FingerprintRecognition.FeatureExtractors;
using PatternRecognition.FingerprintRecognition.Matchers;

namespace Fingerprint_Recognition_Project
{
    public partial class frmFingerprint : Form
    {
     
        public frmFingerprint()
        {
            InitializeComponent();
        }

        public string score;
        public string qry;
        public string temp;

        private Bitmap Change_Resolution(string file)
        {
            using (Bitmap bitmap = (Bitmap)Image.FromFile(file))
            {
                using (Bitmap newBitmap = new Bitmap(bitmap))
                {
                    newBitmap.SetResolution(500500);
                    return newBitmap;
                }
            }
        }

       private void match(string query string template)
        {
            Change_Resolution(query);
            Change_Resolution(template);

            var fingerprintImg1 = ImageLoader.LoadImage(query);
            var fingerprintImg2 = ImageLoader.LoadImage(template);

            var featExtractor = new PNFeatureExtractor() { MtiaExtractor = new Ratha1995MinutiaeExtractor() };
            var features1 = featExtractor.ExtractFeatures(fingerprintImg1);
            var features2 = featExtractor.ExtractFeatures(fingerprintImg2);

            var matcher = new PN();
            double similarity = matcher.Match(features1 features2);
            score = similarity.ToString(“0.000“);
            MessageBox.Show(“Similarity “ + similarity.ToString(“0.000“) “Results“ MessageBoxButtons.OK MessageBoxIcon.Information);

        }

        private void frmFingerprint_FormClosing(object sender FormClosingEventArgs e)
        {
            if (e.CloseReason == CloseReason.UserClosing)
            {
                DialogResult result = MessageBox.Show(“Do you really want to exit?“ “Exit“ MessageBoxButtons.YesNo MessageBoxIcon.Question);
                if (result == DialogResult.Yes)
                {
                    Environment.Exit(0);
                }
                else
                {
                    e.Cancel = true;
                }
            }
            else
            {
                e.Cancel = true;
            }
        }

        private void btFingerprint1_Click(object sender EventArgs e)
        {
            if (openFileDialog1.ShowDialog() == DialogResult.OK)
            {
                string fileName;
                fileName = openFileDialog1.FileName;
                qry = fileName;
                pictureBox1.ImageLocation = qry;

            }
        }

        private void btFingerprint2_Click(object sender EventArgs e)
        {
            if (openFileDialog2.ShowDialog() == DialogResult.OK)
            {
                string fileName;
                fileName = openFileDialog2.FileName;
                temp = fileName;
           

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      73728  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\.vs\Fingerprint_Recognition_Project\v14\.suo

    ..A..H.     62464  2019-09-20 18:36  指纹识别系统\Fingerprint-Recognition-master\.vs\Fingerprint_Recognition_Project\v15\.suo

     文件          0  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\.vs\Fingerprint_Recognition_Project\v15\Server\sqlite3\db.lock

     文件       4096  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\.vs\Fingerprint_Recognition_Project\v15\Server\sqlite3\storage.ide

     文件      32768  2019-09-20 18:35  指纹识别系统\Fingerprint-Recognition-master\.vs\Fingerprint_Recognition_Project\v15\Server\sqlite3\storage.ide-shm

     文件    4095312  2019-09-20 18:35  指纹识别系统\Fingerprint-Recognition-master\.vs\Fingerprint_Recognition_Project\v15\Server\sqlite3\storage.ide-wal

     文件      34816  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\FR.Core.dll

     文件      19456  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\FR.MTriplets.dll

     文件      15360  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\FR.Parziale2004.dll

     文件      19456  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\FR.Qi2005.dll

     文件      21504  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\FR.Ratha1995.dll

     文件       8704  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\ImageProcessingTools.dll

     文件       8192  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint References\ROC.dll

     文件      23674  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_1.bmp

     文件     145624  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_1.tif

     文件      19033  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_2.bmp

     文件     145624  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_2.tif

     文件      26619  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_3.bmp

     文件     145624  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_3.tif

     文件      20459  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_4.bmp

     文件     145624  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprints Samples\101_4.tif

     文件     348160  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition.exe

     文件        184  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\App.config

     文件     348160  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\Fingerprint_Recognition.exe

     文件        184  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\Fingerprint_Recognition.exe.config

     文件      24064  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\Fingerprint_Recognition.pdb

     文件      34816  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\FR.Core.dll

     文件      19456  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\FR.MTriplets.dll

     文件      15360  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\FR.Parziale2004.dll

     文件      19456  2019-01-20 18:36  指纹识别系统\Fingerprint-Recognition-master\Fingerprint_Recognition_Project\bin\Debug\FR.Qi2005.dll

............此处省略390个文件信息

评论

共有 条评论