Need help with the integration?

Type a word or a phrase to start browsing through articles.

[BlinkID] Processing status: Getting detailed information about the recognition process

Follow

The BlinkID recognizer can check the status of the last recognition process with the processingStatus method. 

With processing status, various information can be checked regarding the last scanning session.
The information regarding the document sides can be checked, for instance, if the SDK is waiting for the other side of the document, or if the end-user present the wrong side of the document.

Information regarding why the scanning process was not successful can also be obtained, for instance, if the SDK detected some invalid characters, could not detect the information on a certain field, or if the information could not be obtained from barcodes and MRZs.

More details regarding which information can be obtained from the processing status for Android and iOS can be found here:

Brief code examples on how to use processing status with the BlinkID recognizer:

Android:

BlinkIdRecognizer.Result result = recognizer.getResult();
processingStatus = result.getProcessingStatus();

//Wrong document side detected
if (processingStatus == ProcessingStatus.ScanningWrongSide) {
Toast.makeText(this, "Scanning wrong side!", Toast.LENGTH_LONG).show();
}
//Could not read or parse the information from the scanned barcode
else if (processingStatus == ProcessingStatus.BarcodeRecognitionFailed) {
Toast.makeText(this, "Failed to read the barcode!", Toast.LENGTH_LONG).show();
}
//The document was not scanned due to modified classInfo filtering
else if (processingStatus == ProcessingStatus.ClassFiltered) {
Toast.makeText(this, "This document was filtered out with ClassInfo!", Toast.LENGTH_LONG).show();
}

iOS:

let result = self.blinkIdRecognizer?.result
let processingStatus = result?.processingStatus

//Wrong document side detected
  if processingStatus == .scanningWrongSide {
    print("Scanning wrong side!")
//Could not read or parse the information from the scanned barcode
    } else if processingStatus == .barcodeRecognitionFailed {
      print("Failed to read the barcode")
//The document was not scanned due to modified classInfo filtering
    } else if processingStatus ==  .classFiltered {
      print("This document was filtered out with ClassInfo")
    }
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments