Fingerprint API > BS2_ScanFingerprint
Scans a fingerprint from a device and extracts template data.
NOTE
BS2_ScanFingerprint API has been changed in SDK 2.5.0.
For detailed information, refer to Version 2.5.0 Release note
#include "BS_API.h" int BS2_ScanFingerprint(void* context, uint32_t deviceId, BS2Fingerprint* finger, uint32_t templateIndex, uint32_t quality, uint8_t templateFormat, OnReadyToScan ptrReadyToScan);
context : ContextdeviceId : Device IDfinger : Pointer to store the template datatemplateIndex : Template data indexquality : Required quality of fingerprint templatetemplateFormat : Format of the templateptrReadyToScan : Callback function that is called when it's ready to scan a fingerprint
If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.