Repository navigation
6.3.0
Pre-release
Pre-release
1. Accura OCR SDK
-
Update dependency version
implementation 'com.github.accurascan:AccuraOCR:6.3.0' -
Added function to set api data
CameraView.setServerData("your server url", "your server api key"). Make sure to call this function before initialized camera. -
Added
public void onAPIUpdate(int i, String s)method inOcrCallback.javaclass. To get the api error message.
Override this below method to your camera scan activity.
@Override
public void onAPIUpdate(int i, String s) {
Runnable runnable = () -> Toast.makeText(this, "Failed to send data on server -> " + s, Toast.LENGTH_LONG).show();
runOnUiThread(runnable);
}
- Added field
OcrData.getKycId()andRecogResult.kycIdin to model class to get scanned data id which is store on server.
2. Accura Liveness SDK
-
Update dependency
implementation 'com.github.accurascan:Liveness-Android:3.5.0' -
Update function like below
1. For ID card :
// result is instance of OcrData which is get after scan complete in 'onScannedComplete(Object result)' method.
SelfieCameraActivity.getCustomIntent(this, livenessCustomization, "your_liveness_url","your server url", "your server api key", ((OcrData) result).getKycId())
2. For Passport MRZ Document :
// result is instance of RecogResult which is get after scan complete in 'onScannedComplete(Object result)' method.
SelfieCameraActivity.getCustomIntent(this, livenessCustomization, "your_liveness_url","your server url", "your server api key", ((RecogResult) result).kycId)
- Added two fields in
AccuraVerificationResult.java- AccuraVerificationResult.getLivenessId().
- AccuraVerificationResult.getApiErrorMessage().
2. Accura Facematch SDK
-
Update dependency
implementation 'com.github.accurascan:AccuraFaceMatch:3.3.0' -
Update function like below
- Note: Make sure to call this function before FaceHelper.setMatchImage(Bitmap)
AccuraVerificationResult result = data.getParcelableExtra("Accura.liveness"); which is getting after liveness success in 'onActivityResult(int requestCode, int resultCode, @Nullable Intent data)'. FaceHelper.setApiData("your server url", "your server api key", result.getLivenessId());