Setup Accura Face Liveness
Method for Face Liveness with Voice Authentication
liveness:()=>{
var accuraConfs = {
face_uri: FaceURI,
};
var lconfig = {
backGroundColor: '#FFC4C4C5',
closeIconColor: '#FF000000',
feedbackBackGroundColor: '#FFC4C4C5',
feedbackTextColor: '#FF000000',
setFeedbackTextSize: 18,
setFeedBackframeMessage: 'Frame Your Face',
setFeedBackAwayMessage: 'Move Phone Away',
setFeedBackOpenEyesMessage: 'Keep Your Eyes Open',
setFeedBackCloserMessage: 'Move Phone Closer',
setFeedBackCenterMessage: 'Move Phone Center',
setFeedbackMultipleFaceMessage: 'Multiple Face Detected',
setFeedBackFaceSteadymessage: 'Keep Your Head Straight',
setFeedBackBlurFaceMessage: 'Blur Detected Over Face',
setFeedBackGlareFaceMessage: 'Glare Detected',
setBlurPercentage: 80,
setGlarePercentage_0: -1,
setGlarePercentage_1: -1,
setLivenessURL: 'Your URL',
setFeedBackLowLightMessage: 'Low light detected',
feedbackLowLightTolerence: 39,
feedbackDialogMessage: 'Loading...',
feedBackProcessingMessage: 'Processing...',
isShowLogo: 1,
setEnableFaceMovement: true,
};
accura.startLiveness(accuraConfs,lconfig,
function success(result){
console.log(result)
},function error(error){
console.log(error)
})
},
Add This to enable Face Movement setEnableFaceMovement: true
Success: JSON Response
Error: String
Last updated