Old revisions Add to book Export to PDF Book Creator Add this page to your book Book Creator Remove this page from your book Manage book (0 page(s)) Help Face API > BS2_ScanFace BS2_ScanFace IR Face based Scans the face from a device and extracts template and image data. Declaration #include "BS_API.h" int BS2_ScanFace(void* context, uint32_t deviceId, BS2Face* face, uint8_t erollmentThreshold, OnReadyToScan ptrReadyToScan); See BS2Face Structure Parameter [In] context : Context [In] deviceId : Device ID [Out] face : Pointer to store the face data [In] erollmentThreshold : Required enrollment threshold - Please refer to the BS2FaceConfig.enrollThreshold [Out] ptrReadyToScan : Callback function that is called when it's ready to scan a face Return Value If successfully done, BS_SDK_SUCCESS will be returned. If there is an error, the corresponding error code will be returned.