====== Fingerprint API ====== API that provides functions to scan, extract, and compare fingerprint template data. \\ * [[BS2_ScanFingerprint]]: Scans a fingerprint from a device and extracts template data. * [[BS2_ScanFingerprintEx]]:​ Scans a fingerprint from a device and extracts template data and scan image scores. * [[BS2_VerifyFingerprint]]: Compares the template data to check if it is the same finger. * [[BS2_GetLastFingerprintImage]]: Extracts the image of the last scanned fingerprint using the BS2_ScanFingerprint API. * [[BS2_GetFingerTemplateQuality]]: Checks the quality score of the fingerprint from the fingerprint template data. ===== Structure ===== ==== BS2Fingerprint ==== typedef struct { uint8_t index; uint8_t flag; uint8_t reserved[2]; uint8_t data[BS2_TEMPLATE_PER_FINGER][BS2_FINGER_TEMPLATE_SIZE]; } BS2Fingerprint; **1. //index//** \\ The index of finger. This is a flag that user can manage manually, not changing automatically. If you want to manage fingerprint index, please assign a number when you enroll fingerprint. \\ \\ **2. //flag//** \\ Flag that indicates the purpose of the fingerprint. \\ ^Value ^Description ^ |0 |Normal fingerprint | |1 |Duress fingerprint | **3. //reserved//** \\ Reserved space. \\ \\ **4. //data//** \\ The data of fingerprint template. \\