c#如何使用数字角色单触sdk减少指纹模板字节大小以适应mifare 1k卡

时间:2016-06-30 07:51:27

标签: c# nfc fingerprint mifare

尝试使用数字角色4500和单触SDK注册指纹模板,我不断获得的模板大小为1632字节,如何将字节数组中模板的大小减小/压缩到小于800字节所以我可以将它存储在NFC / RFID MIFARE 1k卡中。

protected override void Process(DPFP.Sample Sample)
            {
                base.Process(Sample);

                // Process the sample and create a feature set for the enrollment purpose.
                DPFP.FeatureSet features = ExtractFeatures(Sample, DPFP.Processing.DataPurpose.Enrollment);

                // Check quality of the sample and add to enroller if it's good
                if (features != null) try
                {
                    MakeReport("The fingerprint feature set was created.");
                    Enroller.AddFeatures(features);     // Add feature set to template.
                }
                finally {
                    UpdateStatus();

                    // Check if template has been created.
                    switch(Enroller.TemplateStatus)
                    {
                        case DPFP.Processing.Enrollment.Status.Ready:   // report success and stop capturing
                            OnTemplate(Enroller.Template);
                            SetPrompt("Click Close, and then click Fingerprint Verification.");
                            Stop();
                            break;

                        case DPFP.Processing.Enrollment.Status.Failed:  // report failure and restart capturing
                            Enroller.Clear();
                            Stop();
                            UpdateStatus();
                            OnTemplate(null);
                            Start();
                            break;
                    }
                }
            }

1 个答案:

答案 0 :(得分:0)

只是一个建议。你怎么样保存,例如只有一个人的'身份NO'(唯一密钥)进入nfc / rfid mifare卡才有例如一个基于SQL的数据库,在那里你可以保存相同的'身份NO'来对抗人的指纹模板,这样当mifare卡出现用于验证时,它所拥有的'Identity NO'用于检索针对相同的'保存的指纹模板'身份NO'用于从SQL数据库验证?