Skip to content

6.3.0

Pre-release
Pre-release

Choose a tag to compare

@mahdisomjee123 mahdisomjee123 released this 02 Jan 11:39

1. Accura OCR SDK

  1. Update dependency version

    implementation 'com.github.accurascan:AccuraOCR:6.3.0'

  2. Added function to set api data CameraView.setServerData("your server url", "your server api key"). Make sure to call this function before initialized camera.

  3. Added public void onAPIUpdate(int i, String s) method in OcrCallback.java class. 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);
}
  1. Added field OcrData.getKycId() and RecogResult.kycId in to model class to get scanned data id which is store on server.

2. Accura Liveness SDK

  1. Update dependency

    implementation 'com.github.accurascan:Liveness-Android:3.5.0'

  2. 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)
  1. Added two fields in AccuraVerificationResult.java
    • AccuraVerificationResult.getLivenessId().
    • AccuraVerificationResult.getApiErrorMessage().

2. Accura Facematch SDK

  1. Update dependency

    implementation 'com.github.accurascan:AccuraFaceMatch:3.3.0'

  2. 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());