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

Declaration

#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);

Parameter

  • [In] context : Context
  • [In] deviceId : Device ID
  • [Out] finger : Pointer to store the template data
  • [In] templateIndex : Template data index
  • [In] quality : Required quality of fingerprint template
  • [In] templateFormat : Format of the template
  • [Out] ptrReadyToScan : Callback function that is called when it's ready to scan a fingerprint

Return Value

If successfully done, BS_SDK_SUCCESS will be returned.
If there is an error, the corresponding error code will be returned.

See Also