getAccuraSetup = () => {
//Method for get license info from native OS.
AccurascanFinger.getMetaData((error, response) => {
if (error != null) {
console.log(error);
} else {
console.log(response);
}
});
};
Method for Enroll scan Finger documents.
const startEnroll = async () => {
const handSelected = rightHand ? "right" : "left";
//Method for start Enroll Finger scaning from native OS.
AccurascanFinger.startFingerEnroll([handSelected], (error, result) => {
if (error) {
console.error('Enrollment error:', error);
return;
}
const parsedResult = JSON.parse(result);
const tempDict = parsedResult.template_data;
console.log('Success!', Object.values(tempDict));
});
};
Method for Verify scan Finger documents.
const startVerify = async () => {
const handSelected = rightHand ? "right" : "left";
AccurascanFinger.startFingerVerify([handSelected], (error, result) => {
if (error) {
console.error('Verify error:', error);
return;
}
const parsedResult = JSON.parse(result);
const tempDict = parsedResult.template_data;
console.log("Success!", Object.values(tempDict));
});
};
Method for GetResult scan Finger documents.
const getResult = async (tempDict) => {
AccurascanFinger.getResult([enrollTemplate, verifyTemplate], (error, result) => {
if (error) {
console.error('getResult error:', error);
return;
}
console.log('getResult result:', result);
const parsedResult = JSON.parse(result);
console.log("RESULT:", parsedResult);
});
};