If you use the Face Match service after the OCR or OCR w/ Verification service then the face in the front side image of the national ID captured during the OCR or OCR w/ Verification step will be used for comparison with the image captured during the Face Match step.
If you use the Face Match service separately, you need to either pass an image or a transactions id for a hit previously made to our OCR or OCR w/ Verification service for comparison with the image that will be captured for the user going through the SDK experience:
imageBitmap = Bitmap.createScaledBitmap(
bitmap,
(int)(imageBitmap.getWidth() * 0.8),
(int) (imageBitmap.getHeight() * 0.8),
true);
// uncomment for images larger than 500 KB
// bitmap.compress(Bitmap.CompressFormat.JPEG, 10, stream);
// uncomment for images smaller than or equal to 500 KB
// bitmap.compress(Bitmap.CompressFormat.JPEG, 70, stream);
The default language of the SDK is English, to set it to Arabic add the following:
.setLanguage("ar");
To add your custom logo to the splash screen:
.withCustomizedLogo("int logoImageId");
.withCustomizedLogo("byte[] logo");
Specify the number of instructions, length of each instruction, and the number of maximum number of trials for the liveness service as follows:
// default value is 4, range of allowed values is [1, 10]
.seLivenessNumOfInstruction(int livenessNumOfInstruction);
// default value is 10 seconds, minimum value is 5 seconds
.setLivenssTimerSeconds(int livenssTimerSeconds);
// minimum value is 1
.setLivenessNumOfTrials(int livenessNumOfTrials);
Remove the actions you do not want the user to perform for the liveness service as follows:
In order to generate an access token that will be used in the SDK authentication settings, use our .
OnSuccess is only called when the user has completed the experience successfully. The Valify token (valifyToken), and the data collected () are returned.
OnExit is only called when the user exits the SDK voluntarily returning to the main app. The Valify token (valifyToken), step at which the user exited (step), and the data collected before exiting () are returned to the app.
OnError is only called when the user aborts as a result of an error. The Valify token (valifyToken), error code (), step at which the user exited (step), and the data collected before the error occurred () are returned to the app.