Facematch & Liveness
Accura Scan face biometrics solution matches the selfie image with the image on the id card and also confirms if the user was live or not during the process.
Last updated
function startFaceMatch() {
var accuraConfs = {with_face: true, face_uri: facematchURI};
var config = {
feedbackTextSize: 18,
feedBackframeMessage: 'Frame Your Face',
feedBackAwayMessage: 'Move Phone Away',
feedBackOpenEyesMessage: 'Keep Your Eyes Open',
feedBackCloserMessage: 'Move Phone Closer',
feedBackCenterMessage: 'Move Phone Center',
feedBackMultipleFaceMessage: 'Multiple Face Detected',
feedBackHeadStraightMessage: 'Keep Your Head Straight',
feedBackBlurFaceMessage: 'Blur Detected Over Face',
feedBackGlareFaceMessage: 'Glare Detected',
// <!--// 0 for clean face and 100 for Blurry face or set it -1 to remove blur filter-->
setBlurPercentage: 80,
// <!--// Set min percentage for glare or set it -1 to remove glare filter-->
setGlarePercentage_0: -1,
setGlarePercentage_1: -1,
};
accura.startFaceMatch(accuraConfs, config, function (result) {
//Result from the SDK
}, function (error) {
alert(error);
});
}accura.startLiveness(accuraConfs, config, function (result), function (error));function startLiveness() {
var accuraConfs = {with_face: true, face_uri: facematchURI};
var config = {
feedbackTextSize: 18,
feedBackframeMessage: 'Frame Your Face',
feedBackAwayMessage: 'Move Phone Away',
feedBackOpenEyesMessage: 'Keep Your Eyes Open',
feedBackCloserMessage: 'Move Phone Closer',
feedBackCenterMessage: 'Move Phone Center',
feedBackMultipleFaceMessage: 'Multiple Face Detected',
feedBackHeadStraightMessage: 'Keep Your Head Straight',
feedBackBlurFaceMessage: 'Blur Detected Over Face',
feedBackGlareFaceMessage: 'Glare Detected',
// <!--// 0 for clean face and 100 for Blurry face or set it -1 to remove blur filter-->
setBlurPercentage: 80,
// <!--// Set min percentage for glare or set it -1 to remove glare filter-->
setGlarePercentage_0: -1,
// <!--// Set max percentage for glare or set it -1 to remove glare filter-->
setGlarePercentage_1: -1,
liveness_url: '<your liveness url>',
contentType: 'form_data',
feedBackLowLightMessage: 'Low light detected',
};
accura.startLiveness(accuraConfs, config, function (result) {
//Result from the SDK
}, function (error) {
alert(error);
});
}