コード例 #1
0
        /// <summary>
        /// Verifies the fingerprint.
        /// </summary>
        /// <param name="enrollResult">The enroll result.</param>
        /// <param name="pgmFilePath">The PGM file path.</param>
        /// <returns></returns>
        public bool VerifyFingerprint(EnrollStageResult enrollResult, string pgmFilePath)
        {
            const string galleryKey = "dummy";

            using var gallery = new FingerprintGallery();
            gallery.Add(galleryKey, enrollResult);
            return(VerifyFingerprint(galleryKey, gallery, pgmFilePath));
        }
コード例 #2
0
 /// <summary>
 /// Adds the specified fingerprint data and associates it with the specified key.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="enrollResult">The enroll result.</param>
 public void Add(string key, EnrollStageResult enrollResult)
 {
     this.Add(key, enrollResult.FingerprintData);
 }
コード例 #3
0
 /// <summary>
 /// Verifies the fingerprint.
 /// </summary>
 /// <param name="enrollResult">The enroll result.</param>
 /// <returns></returns>
 public bool VerifyFingerprint(EnrollStageResult enrollResult) => VerifyFingerprint(enrollResult, null);
コード例 #4
0
 /// <summary>
 /// Adds the specified fingerprint data and associates it with the specified key.
 /// </summary>
 /// <param name="key">The key.</param>
 /// <param name="enrollResult">The enroll result.</param>
 public void Add(string key, EnrollStageResult enrollResult)
 {
     this.Add(key, enrollResult.FingerprintData);
 }
コード例 #5
0
 /// <summary>
 /// Verifies the fingerprint.
 /// </summary>
 /// <param name="enrollResult">The enroll result.</param>
 /// <returns></returns>
 public bool VerifyFingerprint(EnrollStageResult enrollResult)
 {
     return(this.VerifyFingerprint(enrollResult, null));
 }
コード例 #6
0
 /// <summary>
 /// Verifies the fingerprint.
 /// </summary>
 /// <param name="enrollResult">The enroll result.</param>
 /// <returns></returns>
 public bool VerifyFingerprint(EnrollStageResult enrollResult)
 {
     return this.VerifyFingerprint(enrollResult, null);
 }
コード例 #7
0
 /// <summary>
 /// Verifies the fingerprint.
 /// </summary>
 /// <param name="enrollResult">The enroll result.</param>
 /// <param name="pgmFilePath">The PGM file path.</param>
 /// <returns></returns>
 public bool VerifyFingerprint(EnrollStageResult enrollResult, string pgmFilePath)
 {
     const string galleryKey = "dummy";
     using (var gallery = new FingerprintGallery())
     {
         gallery.Add(galleryKey, enrollResult);
         return VerifyFingerprint(galleryKey, gallery, pgmFilePath);
     }
 }