Facematch and 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.
Facematch
The method use to Start Facematch is
AccuraFacematch.startFaceMatch(accuraConfs)In above method accuraConfs is an array consist of Face Uri in String Format, value will be provided by MRZ or OCR response.
var accuraConfs = [
{"face_uri":faceMatchURL}
];Methods use to set Facematch configs are as follows
AccuraFacematch.setFaceMatchFeedbackTextSize(18);
AccuraFacematch.setFaceMatchFeedBackframeMessage("Frame Your Face");
AccuraFacematch.setFaceMatchFeedBackAwayMessage("Move Phone Away");
AccuraFacematch.setFaceMatchFeedBackOpenEyesMessage("Keep Your Eyes Open");
AccuraFacematch.setFaceMatchFeedBackCloserMessage("Move Phone Closer");
AccuraFacematch.setFaceMatchFeedBackCenterMessage("Move Phone Center");
AccuraFacematch.setFaceMatchFeedbackMultipleFaceMessage("Multiple Face Detected");
AccuraFacematch.setFaceMatchFeedBackFaceSteadymessage("Keep Your Head Straight");
AccuraFacematch.setFaceMatchFeedBackLowLightMessage("Low light detected");
AccuraFacematch.setFaceMatchFeedBackBlurFaceMessage("Blur Detected Over Face");
AccuraFacematch.setFaceMatchFeedBackGlareFaceMessage("Glare Detected");
AccuraFacematch.setFaceMatchBlurPercentage(80);
AccuraFacematch.setFaceMatchGlarePercentage_0(-1);
AccuraFacematch.setFaceMatchGlarePercentage_1(-1);The example function is shown below
Response:
On Success: JSON Response { detect: (URI), score: (Float) }
Error: String
Liveness
The method use to Start Liveness is
In above method accuraConfs is an array consist of Face Uri in String Format, value will be provided by MRZ or OCR response.
Methods use to set Liveness configs are as follows
The example function is shown below
Response:
On Success: JSON Response
Error: String
Last updated