Collecting Returns
To obtain the RequestResponseObject object, which contains the captures obtained by the SDK, override the onActivityResult method in the same activity where you started the DocumentRecognitionActivity:
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
DocumentRecognition.RequestResponseObject result;
if (requestCode == REQUEST_CODE){
if (resultCode == RESULT_OK && data != null){
DocumentRecognition.RequestResponseObject mRequestResponseObject = data.ParcelableExtra("result");
}
}
}
RequestResponseObject Attributes Description
| Attribute | Description |
|---|---|
| ocr_key | Identification key of the provided image that can be used in any other QI Tech system service. |